@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --bg: #0d0b22;
  --bg2: #151236;
  --card: #1b1842;
  --line: #2b2760;
  --ink: #f6f4ff;
  --mute: #9a95c4;
  --green: #37e0a8;
  --yellow: #ffc247;
  --red: #ff6a5c;
  --blue: #6c8bff;
  --r: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; font-weight: 900; }
h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.01em; }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.muted { color: var(--mute); }
.small { font-size: 14px; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 40px); }

/* placeholder highlight: switch off in config.json once real data is filled in */
mark.ph { background: rgba(255, 194, 71, .18); color: var(--yellow); border-radius: 4px; padding: 0 3px; outline: 1px dashed rgba(255, 194, 71, .55); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(13, 11, 34, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { white-space: nowrap; color: var(--ink); font-weight: 900; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.dots i:nth-child(2) { background: var(--yellow); }
.dots i:nth-child(3) { background: var(--red); }
nav { display: flex; gap: 22px; }
nav a { color: var(--mute); font-weight: 700; }
nav a:hover { color: var(--ink); text-decoration: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; border: 0; background: var(--green); color: #07261c; font: inherit; font-weight: 900; cursor: pointer; transition: transform .15s, box-shadow .15s; box-shadow: 0 6px 24px rgba(55, 224, 168, .25); }
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(55, 224, 168, .35); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--mute); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }
button.link { background: none; border: 0; color: var(--green); font: inherit; cursor: pointer; padding: 0; }
button.link:disabled { color: var(--mute); opacity: .5; cursor: default; }

/* hero */
.hero { padding: 72px 0 56px; background: radial-gradient(900px 500px at 80% 10%, rgba(108, 139, 255, .18), transparent 60%), radial-gradient(700px 400px at 10% 90%, rgba(55, 224, 168, .10), transparent 60%); }
.hero-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.kicker { color: var(--yellow); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.lead { font-size: 20px; color: #cfcbef; max-width: 34em; }
.grad { background: linear-gradient(90deg, var(--green), var(--yellow) 50%, var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-art { position: relative; height: 360px; overflow: hidden; --jump: -230px; }
.hero-art .plat { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-art .plat i { width: 84px; height: 28px; border-radius: 14px; background: var(--yellow); }
.hero-art .plat i:nth-child(2) { background: var(--green); }
.hero-art .plat i:nth-child(3) { background: var(--blue); }
.ball { position: absolute; left: 50%; width: 64px; height: 64px; margin-left: -32px; border-radius: 50%; background: var(--green); bottom: 66px; animation: bounce 1.1s cubic-bezier(.33, 0, .67, 1) infinite alternate; box-shadow: 0 0 40px rgba(55, 224, 168, .45); }
.ball.b2, .ball.b3 { opacity: .25; animation-delay: -.12s; filter: blur(1px); }
.ball.b3 { opacity: .1; animation-delay: -.24s; }
@keyframes bounce { from { transform: translateY(0) scale(1.08, .92); } 12% { transform: translateY(-20px) scale(1); } to { transform: translateY(var(--jump)); } }
@media (prefers-reduced-motion: reduce) { .ball { animation: none; transform: translateY(-120px); } }

/* sections */
.sec { padding: 72px 0; }
[id] { scroll-margin-top: 74px; }
.sec.alt { background: var(--bg2); border-block: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.game-card { display: grid; grid-template-columns: 128px 1fr; gap: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 30px; }
.game-card + .game-card { margin-top: 20px; }
.game-card.upcoming { background: linear-gradient(135deg, rgba(55, 224, 168, .06), rgba(108, 139, 255, .06)), var(--card); border-style: dashed; }
.soon-badge { display: inline-block; vertical-align: middle; margin-left: 10px; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #2a1d00; background: var(--yellow); border-radius: 999px; padding: 4px 12px; position: relative; top: -2px; }
.game-icon { border-radius: 28px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); display: block; }
.game-icon.sm { border-radius: 18px; margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tags span { font-size: 13px; font-weight: 800; color: var(--mute); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.store { display: inline-flex; flex-direction: column; padding: 8px 18px; border-radius: 12px; background: #000; border: 1px solid #3a3670; line-height: 1.2; }
.store b { font-size: 16px; }
.store small { color: var(--mute); font-size: 12px; }

.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.facts b { display: block; color: var(--mute); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.facts span { font-weight: 800; font-size: 18px; }

.legal { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; }
.legal dl { margin: 0; display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; }
.legal dt { color: var(--mute); font-size: 14px; padding-top: 2px; }
.legal dd { margin: 0; }

/* game page */
.game-page { padding-top: 40px; }
.game-grid { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 48px; align-items: start; }
.player { position: relative; aspect-ratio: 9 / 16; width: 100%; max-height: calc(100vh - 140px); margin: 0 auto; background: #0d0b22; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.player:fullscreen { border-radius: 0; border: 0; max-height: none; }
.player-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(400px 400px at 50% 40%, rgba(30, 107, 255, .25), transparent 70%), #0d0b22; }
.player-cover img { border-radius: 26px; }
.player-cover small { color: var(--mute); }
.player-bar { display: flex; justify-content: space-between; padding: 12px 6px; font-weight: 700; font-size: 15px; }
.howto { padding-left: 20px; }
.howto li { margin-bottom: 8px; }
kbd { font: 700 13px/1 "Nunito", monospace; background: var(--card); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; padding: 3px 7px; }

/* prose */
.prose h1 { margin-top: .2em; }
.prose h2 { font-size: 24px; margin-top: 1.6em; }
.prose h3 { font-size: 18px; margin-top: 1.3em; margin-bottom: .3em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }
.langs { color: var(--mute); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 15px; background: var(--bg2); }
.foot-in { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.foot-brand { font-weight: 900; font-size: 18px; margin-bottom: 6px; }
.foot-links { display: flex; flex-direction: column; gap: 6px; text-align: right; }

@media (max-width: 860px) {
  .hero-in, .two, .game-grid { grid-template-columns: 1fr; }
  .hero-art { height: 260px; --jump: -120px; }
  .hero-art .plat i { width: 64px; height: 22px; }
  .hero { padding-top: 40px; }
  .game-card { grid-template-columns: 1fr; }
  .game-card .game-icon { width: 96px; height: 96px; }
  nav { gap: 14px; font-size: 15px; }
  .foot-links { text-align: left; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 10px; }
}
@media (max-width: 520px) {
  nav a:nth-child(2), nav a:nth-child(4) { display: none; }
  .hero-art { height: 220px; --jump: -85px; }
  .sec { padding: 52px 0; }
}
