/* Nova Arena: the public page. Nova's visual language (docs/claude/visual-language.md): tokens, Fraunces / Hanken
   Grotesk / JetBrains Mono, the star, motion cubic-bezier(.2,.7,.2,1). Change a token, never a call site. */

:root {
  color-scheme: dark;
  --bg: #0b0b0a;
  --bg-glow: #5aa6e91f;
  --surface: #121211;
  --surface-2: #161614;
  --surface-3: #191917;
  --ink: #f4f3ee;
  --muted: #a4a299;
  --faint: #9a988f;
  --line: #ffffff14;
  --line-strong: #ffffff26;
  --accent: #5aa6e9;
  --on-accent: #08131f;
  --link: #73b6f0;
  --gold: #e0c896;
  --green: #9bc58a;
  --media-bg: #0e0e0c;
  --shadow: 0 24px 60px -28px #000000cc;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

/* Paper: the light theme. Every pair here is measured (scratchpad site/contrast.mjs), AA in both themes. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f5f0;
    --bg-glow: #5aa6e926;
    --surface: #ffffff;
    --surface-2: #efeee8;
    --surface-3: #e8e7e0;
    --ink: #151513;
    --muted: #4f4d47;
    --faint: #5f5d56;
    --line: #1514131a;
    --line-strong: #1514132e;
    --accent: #1f6fb8;
    --on-accent: #ffffff;
    --link: #1a62a6;
    --gold: #7a5a1c;
    --green: #3b6a2a;
    --media-bg: #0e0e0c;
    --shadow: 0 24px 50px -30px #1514134d;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f5f0;
  --bg-glow: #5aa6e926;
  --surface: #ffffff;
  --surface-2: #efeee8;
  --surface-3: #e8e7e0;
  --ink: #151513;
  --muted: #4f4d47;
  --faint: #5f5d56;
  --line: #1514131a;
  --line-strong: #1514132e;
  --accent: #1f6fb8;
  --on-accent: #ffffff;
  --link: #1a62a6;
  --gold: #7a5a1c;
  --green: #3b6a2a;
  --media-bg: #0e0e0c;
  --shadow: 0 24px 50px -30px #1514134d;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.12; margin: 0; }
h1 em, h2 em { font-style: italic; color: var(--link); font-weight: 400; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--surface); color: var(--ink); padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line-strong); }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.label { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; margin-right: auto; }
.brand .star { width: 26px; height: 26px; }
.brand .wordmark { height: 17px; width: auto; color: var(--ink); }
.brand .tag { font: 500 11px/1 var(--mono); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 8px 6px 11px; }
.nav { display: none; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; transition: color .2s var(--ease), background .2s var(--ease); }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.theme { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; padding: 0; transition: background .2s var(--ease); }
.theme:hover { background: var(--surface-3); }
.theme svg { width: 20px; height: 20px; }
html.js .theme { display: inline-flex; }
.theme .i-sun { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: block; }
:root[data-theme="dark"] .theme .i-moon { display: none; }

/* ---- the star ---- */
.star { fill: url(#ng); }
.breathe { animation: breathe 3.2s var(--ease) infinite; transform-origin: 50% 50%; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: .88; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---- hero: the headline and Nova's conversation (the panel itself is assets/nova.css) ---- */
/* Phone: the headline, Nova, then the lead. Wide: the headline and the lead on the left, Nova on the right.
   overflow: clip (hidden where it is unknown) cuts the glow without making the hero a scroll container, which
   would stop the left column from staying in view (position: sticky). */
.hero { position: relative; padding: 20px 0 56px; overflow: hidden; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: -20% -30% auto auto; width: 120%; height: 120%; background: radial-gradient(closest-side, var(--bg-glow), transparent 70%); pointer-events: none; }
.hero-in { position: relative; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "nova" "copy"; }
.hero-side { display: contents; }
.hero-title { grid-area: title; }
.hero-in > .nova { grid-area: nova; }
.hero-copy { grid-area: copy; display: grid; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 10px 14px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 22%, transparent); animation: breathe 3.2s var(--ease) infinite; }
.hero h1 { font-size: clamp(32px, 7.6vw, 66px); margin: 0; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.lead strong { color: var(--ink); font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 14px; font: 600 16px/1 var(--sans); text-decoration: none; transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease); }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.ghost { color: var(--ink); border: 1px solid var(--line-strong); background: var(--surface); }
.btn.ghost:hover { background: var(--surface-3); }
.hero .fine { font-size: 15px; color: var(--faint); }

/* ---- sections ---- */
section.block { padding: 64px 0; border-top: 1px solid var(--line); }
.head { display: grid; gap: 12px; margin-bottom: 32px; max-width: 40em; }
.head h2 { font-size: clamp(32px, 8vw, 48px); }
.head p { color: var(--muted); font-size: 18px; }
.cards { display: grid; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.card h3 { font-size: 23px; margin: 12px 0 8px; }
.card p { color: var(--muted); }
.card .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--line); color: var(--link); }
.card .ico svg { width: 20px; height: 20px; }

/* games */
.games { display: grid; gap: 16px; }
.game { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: grid; }
.game .media { position: relative; aspect-ratio: 4 / 3; background: var(--media-bg); }
.game .media video, .game .media img { width: 100%; height: 100%; object-fit: cover; }
.game .media.bottom video, .game .media.bottom img { object-position: 50% 100%; }
.game .body { padding: 20px 22px 24px; display: grid; gap: 10px; }
.game h3 { font-family: var(--mono); font-weight: 600; font-size: 20px; letter-spacing: .1em; }
.game .one { color: var(--ink); font-size: 18px; }
.facts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.facts li { display: flex; gap: 10px; color: var(--muted); font-size: 16px; }
.facts li b { font: 500 12px/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); min-width: 70px; font-weight: 500; }
.soon { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; padding: 14px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 20px; }
.soon .thumb { width: 92px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: #000; }
.soon .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.soon h3 { font-family: var(--mono); font-weight: 600; font-size: 17px; letter-spacing: .1em; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.badge { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 999px; padding: 6px 9px; }
.soon p { color: var(--muted); font-size: 16px; margin-top: 6px; }

/* cash */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.steps li::before { content: "0" counter(step); font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--link); }
.steps h3 { font-size: 22px; margin: 12px 0 8px; }
.steps p { color: var(--muted); }
.split { display: grid; gap: 14px; margin-top: 14px; }
.example { background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.example table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 16px; }
.example td { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.example td:last-child { text-align: right; font-family: var(--mono); color: var(--ink); white-space: nowrap; }
.example tr:last-child td { border-bottom: 0; color: var(--ink); font-weight: 600; }
.example tr:last-child td:last-child { color: var(--green); }
.example .note { margin-top: 12px; font-size: 15px; color: var(--faint); }
.where { background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.where p { color: var(--muted); }
.where p + p { margin-top: 12px; }
.chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; }
.age { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--mono); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 8px; }

/* fair play */
.fair { display: grid; gap: 14px; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 780px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq summary { list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }
.faq details p a { padding: 12px 0; }

/* closing band */
.closing { padding: 72px 0; border-top: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; }
.closing::before { content: ""; position: absolute; left: 50%; top: 0; width: 900px; height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--bg-glow), transparent 70%); pointer-events: none; }
.closing .wrap { position: relative; display: grid; justify-items: center; gap: 16px; }
.closing svg.star { width: 56px; height: 56px; filter: drop-shadow(0 0 22px #5aa6e955); }
.closing h2 { font-size: clamp(32px, 8vw, 52px); }
.closing p { color: var(--muted); max-width: 30em; }
.closing p a { padding: 12px 0; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 15px; }
.foot-in { display: grid; gap: 22px; }
.foot .brand { margin: 0; }
.foot .co { display: grid; gap: 4px; }
.foot .co strong { color: var(--ink); font-weight: 600; }
.foot .co p > a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 44px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-left: -10px; }
.foot nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 10px; }
.foot .adult { display: flex; align-items: center; gap: 10px; }
.foot .small { color: var(--faint); font-size: 14px; }

/* reveal (only with JS, never with reduced motion) */
html.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
html.js .rv.in { opacity: 1; transform: none; }
.hero-title, .hero-in > .nova, .hero-copy { animation: rise .5s var(--ease) both; }
.hero-in > .nova { animation-delay: .06s; }
.hero-copy { animation-delay: .12s; }

/* ---- legal pages ---- */
.doc { padding: 40px 0 72px; }
.doc .wrap { max-width: 780px; }
.doc .crumbs { font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.doc .crumbs a { color: var(--muted); }
.doc h1 { font-size: clamp(36px, 9vw, 54px); margin: 16px 0 10px; }
.doc .meta { color: var(--faint); font-size: 15px; }
.doc .notice { margin-top: 20px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px 16px; color: var(--muted); font-size: 15px; }
.doc .toc { margin: 28px 0 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.doc .toc ol { margin: 10px 0 0; padding-left: 22px; color: var(--muted); }
.doc .toc li { margin: 4px 0; }
.doc .toc a { display: inline-block; padding: 6px 0; }
.prose { margin-top: 28px; }
.prose h2 { font-size: 27px; margin: 40px 0 12px; scroll-margin-top: 80px; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.prose h4 { font-size: 17px; margin: 22px 0 6px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table { margin: 0 0 14px; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--muted); }
.prose strong { font-weight: 600; }
.prose code { font: 14px/1.4 var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; color: var(--muted); }
.prose blockquote p { color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose .tbl { overflow-x: auto; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 0; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; background: var(--surface-2); }
.prose tr:last-child td { border-bottom: 0; }

/* ---- 404 ---- */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.lost .wrap { display: grid; justify-items: center; gap: 16px; }
.lost svg.star { width: 64px; height: 64px; }
.lost h1 { font-size: clamp(36px, 9vw, 56px); }
.lost p { color: var(--muted); }

/* ---- wider screens ---- */
@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .fair { grid-template-columns: repeat(3, 1fr); }
  .games { grid-template-columns: 1fr 1fr; }
  .soon { grid-column: 1 / -1; grid-template-columns: 120px 1fr; padding: 16px 20px; }
  .soon .thumb { width: 120px; }
  .foot-in { grid-template-columns: 1.2fr 1fr; align-items: start; }
  section.block { padding: 88px 0; }
  .hero { padding: 40px 0 72px; }
  .hero-in > .nova, .hero-copy { max-width: 640px; }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .hero { padding: 64px 0 96px; }
  /* The left column stays beside Nova while her panel grows with the conversation and the page follows it. */
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); grid-template-areas: "side nova"; column-gap: 64px; align-items: start; }
  .hero-side { grid-area: side; display: grid; gap: 24px; align-content: start; position: sticky; top: 88px; padding-top: 40px; }
  .hero-side > .hero-title, .hero-side > .hero-copy { grid-area: auto; }
  .hero-in > .nova, .hero-copy { max-width: none; }
  .cards.four { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .rv { opacity: 1; transform: none; }
}
