/* Millionaire Play homepage concepts: one shared stylesheet.
   .c-screen = Concept A "Big Screen"   .c-tiles = Concept B "Question 1 of 4"
   Flat colours only: no gradients, blur, glow or blobs. */

/* ---------- Self-hosted fonts (@fontsource, woff2) ---------- */
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap; src: url(fonts/big-shoulders-display-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-display: swap; src: url(fonts/big-shoulders-display-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Mono"; font-weight: 700; font-display: swap; src: url(fonts/space-mono-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 200 800; font-display: swap; src: url(fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url(fonts/figtree-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url(fonts/figtree-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 800; font-display: swap; src: url(fonts/figtree-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url(fonts/jetbrains-mono-latin-700-normal.woff2) format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --gold: #f8c537;
  --gold-ink: #1a1405;
  --red: #dc2626;
  --blue: #2563eb;
  --yellow: #eab308;
  --green: #15803d;
  --ok: #4ade80;
  --bad: #fca5a5;
  --wrap: min(1200px, calc(100% - 48px));
  --radius: 6px;
  --dur: 220ms;
}
.c-screen {
  --bg: #0b1222;           /* world colour: studio night */
  --panel: #131c30;
  --panel-2: #1b2742;
  --line: #2c3b5e;
  --ink: #f5f1e6;
  --muted: #b9c2d6;
  --footer: #070c17;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --radius: 4px;
}
.c-tiles {
  --bg: #111418;           /* the app's question screen */
  --forest: #12291d;       /* world colour: the "Correct" screen */
  --panel: #1e2632;
  --panel-2: #26303e;
  --line: #3a4757;
  --ink: #f1ebdd;
  --muted: #c4cbd3;
  --footer: #0a0c0f;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 10px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html.has-overlay { overflow: hidden; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--gold); color: var(--gold-ink); font-weight: 700; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.kicker, .mono-label { font-family: var(--mono); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.mono-small { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.hint { color: var(--muted); font-size: 0.98rem; }
.hint a { color: var(--ink); text-underline-offset: 3px; }
.msg { min-height: 1.5em; margin-top: 10px; color: var(--bad); font-weight: 700; font-size: 0.98rem; }
.fine { margin-top: 28px; color: var(--muted); font-size: 0.9rem; }
.empty { color: var(--muted); }
.tag { display: inline-block; padding: 2px 8px; border: 1px solid var(--gold); border-radius: 3px; color: var(--gold); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 52px; padding: 0 1.4rem; border: 2px solid transparent; border-radius: var(--radius); font-weight: 700; text-decoration: none; transition: transform var(--dur), background-color var(--dur); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #ffd65c; }
.btn-line { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-line:hover { border-color: var(--gold); }
.btn-xl { min-height: 60px; padding: 0 1.8rem; font-size: 1.12rem; }
.text-link { color: var(--ink); font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--gold); }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--line); border-radius: var(--radius); background: transparent; }
.icon-btn:hover { border-color: var(--gold); }

/* Topbar (shared shell) */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px; width: 100%; padding: 12px max(24px, calc((100% - 1200px) / 2)); background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; }

/* Sections */
.section { width: var(--wrap); margin: 0 auto; padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2, .account-copy h2, .app-copy h2 { margin: 10px 0 12px; font-family: var(--display); font-weight: 900; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 0.95; }
.section-head p:not(.kicker):not(.mono-label) { color: var(--muted); }

/* Device frame for real screenshots */
.device { width: 100%; max-width: 250px; padding: 7px; background: #04060a; border: 1px solid var(--line); border-radius: 30px; }
.device img { width: 100%; height: auto; border-radius: 23px; }

/* Reel of three screens */
.reel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.reel li { display: grid; gap: 18px; justify-items: start; }
.reel p { max-width: 30ch; }
.reel .step { display: block; margin-bottom: 4px; font-family: var(--mono); font-weight: 700; color: var(--gold); }

/* App section */
.app { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.app-copy > p:not(.kicker):not(.mono-label) { max-width: 46ch; color: var(--muted); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.stores img { width: 165px; height: auto; }
.app-shots { display: flex; justify-content: center; gap: 0; }
.app-shots .device { max-width: 230px; }
.app-shots .tilt-l { transform: rotate(-3deg); }
.app-shots .tilt-r { transform: rotate(3deg) translate(-18px, 36px); }

/* Player account */
.account { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.account-copy > p:not(.kicker) { max-width: 46ch; margin-bottom: 24px; color: var(--muted); }
.account-panel { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.auth-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.auth-form { display: grid; gap: 6px; align-content: start; }
.auth-form h3 { margin-bottom: 8px; font-family: var(--display); font-weight: 800; font-size: 1.6rem; }
.auth-form label { margin-top: 6px; font-weight: 700; font-size: 0.92rem; }
.auth-form .opt { color: var(--muted); font-weight: 400; }
.auth-form input { width: 100%; min-height: 48px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); font-size: 1rem; }
.auth-form input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold); }
.auth-form .btn { margin-top: 12px; }
.turnstile-slot:empty { display: none; }
.summary-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.summary-head h3 { font-family: var(--display); font-size: 1.8rem; }
.player-games { display: grid; gap: 10px; margin-top: 16px; }
.game-card { display: grid; gap: 2px; padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.game-card span { color: var(--muted); font-size: 0.95rem; }

/* Floating dock (after the hero) */
.dock { position: fixed; left: 50%; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; background: var(--panel); border: 2px solid var(--gold); border-radius: calc(var(--radius) + 4px); transform: translate(-50%, 160%); visibility: hidden; transition: transform var(--dur) ease-out, visibility 0s linear var(--dur); }
.dock.is-visible { transform: translate(-50%, 0); visibility: visible; transition: transform var(--dur) ease-out; }
.dock-label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); white-space: nowrap; }
.dock-input { width: 10ch; min-height: 44px; padding: 0 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--mono); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.12em; }
.dock-input::placeholder { color: #6b7790; }
.dock-input:focus { outline: none; border-color: var(--gold); }
.dock .btn { min-height: 44px; }
.dock-msg { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); min-height: 0; padding: 0; color: var(--bad); font-size: 0.9rem; font-weight: 700; text-align: center; }
.dock-msg:not(:empty) { padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }

/* "Correct" verdict screen after a valid PIN */
.verdict { position: fixed; inset: 0; z-index: 400; display: grid; place-content: center; gap: 6px; padding: 24px; background: #12291d; color: #f1ebdd; text-align: center; animation: verdict-in 200ms ease-out; }
.verdict-kicker { color: var(--ok); font-weight: 800; font-size: 1.1rem; }
.verdict-title { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 10vw, 6rem); line-height: 1; }
.verdict-sub { color: #c4cbd3; font-family: var(--mono); }
@keyframes verdict-in { from { opacity: 0; } to { opacity: 1; } }

/* Answer colours */
.a-red { --a: var(--red); --a-ink: #fff; }
.a-blue { --a: var(--blue); --a-ink: #fff; }
.a-yellow { --a: var(--yellow); --a-ink: #1a1405; }
.a-green { --a: var(--green); --a-ink: #fff; }

/* Footer (identical markup on both concepts) */
.site-footer { background: var(--footer); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1.9fr; gap: 48px; width: var(--wrap); margin: 0 auto; padding: 64px 0 32px; }
.footer-brand p { max-width: 34ch; margin: 14px 0 20px; color: var(--muted); }
.footer-stores { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-stores img { width: 138px; height: auto; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h2 { margin-bottom: 12px; font-family: var(--mono); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.footer-cols li { margin-bottom: 4px; }
.footer-cols a { display: inline-block; padding: 6px 0; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.footer-cols a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.footer-note { width: var(--wrap); margin: 0 auto; padding: 20px 0 104px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

/* =====================================================================
   Concept A: "Big Screen"
   ===================================================================== */
.c-screen .topbar { display: grid; grid-template-columns: 1fr auto 1fr; }
.c-screen .brand-name { font-family: var(--display); font-weight: 900; font-size: 1.45rem; letter-spacing: 0.02em; text-transform: uppercase; }
.side-switch { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.side-switch button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-weight: 700; }
.side-switch button:hover { color: var(--ink); }
.side-switch button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.more-btn { justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 2px solid var(--line); border-radius: 4px; background: transparent; font-weight: 700; }
.more-btn:hover { border-color: var(--gold); }

.c-screen .hero { width: var(--wrap); margin: 0 auto; }
.c-screen .stage { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; min-height: min(640px, calc(100svh - 140px)); padding: 48px 0 40px; }
.pin-title { font-family: var(--display); font-weight: 900; font-size: clamp(4rem, 9vw, 8rem); line-height: 0.85; text-transform: uppercase; letter-spacing: 0.01em; }
.pin-title label { cursor: text; }
.slot-field { position: relative; max-width: 600px; margin: 28px 0 14px; border-radius: 6px; }
.slot-field:focus-within { outline: 3px solid var(--gold); outline-offset: 6px; }
.slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.slots span { display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--panel); border: 2px solid var(--line); border-radius: 4px; font-family: var(--mono); font-weight: 700; font-size: clamp(2.2rem, 5.2vw, 4.4rem); color: var(--gold); }
.slots span.is-filled { border-color: #4a5a80; }
.slots span.is-next { border-color: var(--gold); position: relative; }
.slots span.is-next:empty::after { content: ""; width: 3px; height: 42%; background: var(--gold); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.slots-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; caret-color: transparent; cursor: text; }
.is-wrong .slots span { border-color: var(--red); }
.is-wrong .slot-field { animation: shake 320ms ease-out; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.pin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 22px; }

.screen { position: relative; display: flex; flex-direction: column; min-height: 440px; padding: 20px; background: var(--panel); border: 2px solid var(--line); border-radius: 6px; }
.screen-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.screen-title { color: var(--ink); font-weight: 700; }
.screen-count { margin-left: auto; white-space: nowrap; }
.screen-title { white-space: nowrap; }
.screen-count b { color: var(--gold); }
.screen-foot { margin-top: auto; padding-top: 16px; color: var(--muted); font-size: 0.95rem; }
.screen-pin { margin: 20px 0 18px; font-family: var(--mono); font-weight: 700; color: var(--muted); }
.screen-pin b { display: block; font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1.05; color: var(--gold); letter-spacing: 0.04em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; min-height: 160px; }
.chips li { padding: 8px 14px; background: var(--panel-2); border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 4px; font-weight: 700; animation: pop 260ms ease-out; }
.chips li:nth-child(4n+2) { border-left-color: var(--blue); }
.chips li:nth-child(4n+3) { border-left-color: var(--yellow); }
.chips li:nth-child(4n) { border-left-color: var(--green); }
@keyframes pop { from { transform: translateY(8px) scale(0.92); opacity: 0; } to { transform: none; opacity: 1; } }

.pitch .kicker { margin-bottom: 14px; }
.panel-title { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: 0.9; text-transform: uppercase; }
.runsheet { margin-top: 26px; counter-reset: run; display: grid; gap: 10px; max-width: 48ch; }
.runsheet li { counter-increment: run; position: relative; padding-left: 2.6rem; color: var(--muted); }
.runsheet li::before { content: counter(run, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--mono); font-weight: 700; color: var(--gold); }
.runsheet b { color: var(--ink); }
.pitch-copy { max-width: 46ch; margin-top: 22px; color: var(--muted); font-size: 1.12rem; }

.screen-q { margin: 18px 0 8px; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.05; }
.bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; height: 250px; margin-top: auto; }
.bar { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 6px; height: 100%; text-align: center; }
.bar b { font-family: var(--mono); font-size: 1.2rem; }
.bar i { display: block; height: calc(var(--v) * 15px); background: var(--a); border-radius: 3px 3px 0 0; transform-origin: bottom; }
.bar span { font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.bar.is-correct span { color: var(--ink); }
.bar.is-correct span::before { content: "✓ "; color: var(--ok); }
.bar:not(.is-correct) i { opacity: 0.55; }
.is-playing .bar i { animation: grow 900ms cubic-bezier(.2,.8,.2,1) both; }
.is-playing .bar:nth-child(2) i { animation-delay: 80ms; }
.is-playing .bar:nth-child(3) i { animation-delay: 160ms; }
.is-playing .bar:nth-child(4) i { animation-delay: 240ms; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.advert-slot { flex: 1; display: grid; align-content: center; gap: 10px; margin-top: 18px; padding: 32px; background: var(--gold); color: var(--gold-ink); border-radius: 4px; }
.advert-brand { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 6vw, 5rem); line-height: 0.9; text-transform: uppercase; }
.advert-line { max-width: 28ch; font-weight: 700; }

.c-screen .section { border-top: 1px solid var(--line); }
.c-screen .section-head h2, .c-screen .account-copy h2, .c-screen .app-copy h2 { text-transform: uppercase; }
.roster { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid var(--line); }
.roster li { border-bottom: 1px solid var(--line); }
.roster li.empty { grid-column: 1 / -1; padding: 22px 0; }
.roster a { display: flex; align-items: center; gap: 14px; padding: 16px 0; text-decoration: none; }
.roster a:hover b { text-decoration: underline; text-decoration-color: var(--gold); }
.roster img, .roster .ph { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; background: var(--panel-2); }
.roster span { display: grid; flex: 1; }
.roster small { color: var(--muted); font-size: 0.92rem; }
.roster em { font-style: normal; font-family: var(--mono); font-size: 0.85rem; color: var(--gold); white-space: nowrap; }
.c-screen .auth-form h3 { text-transform: uppercase; }
.predictor-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0 96px; color: var(--muted); }
.predictor-strip b { color: var(--ink); }

.lower-third { display: flex; align-items: baseline; gap: 12px; padding: 18px 0 28px; border-top: 1px solid var(--line); color: var(--muted); }
.lower-third .tag { flex: 0 0 auto; border-color: var(--red); color: #fca5a5; }
.hero-note { grid-column: 1 / -1; max-width: 70ch; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(4, 7, 14, 0.72); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(440px, 92vw); padding: 20px 24px; overflow-y: auto; background: var(--panel); border-left: 2px solid var(--gold); transform: translateX(100%); transition: transform var(--dur) ease-out; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.drawer-head h2 { font-family: var(--display); font-weight: 900; font-size: 1.7rem; line-height: 1; text-transform: uppercase; }
.drawer-links a { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.drawer-links a .icon { color: var(--gold); }
.drawer-links span { display: grid; }
.drawer-links small { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.drawer-links a:hover span { text-decoration: underline; text-decoration-color: var(--gold); }
.drawer-legal { margin-top: auto; padding-top: 24px; color: var(--muted); }
.drawer-legal a { padding: 6px 0; display: inline-block; }

/* =====================================================================
   Concept B: "Question 1 of 4"
   ===================================================================== */
.c-tiles .topbar { justify-content: space-between; }
.c-tiles .brand-name { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; }
.q-chip { margin-left: auto; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
.q-chip span { color: var(--gold); font-weight: 700; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 2px solid var(--gold); border-radius: 999px; background: transparent; font-weight: 800; }
.menu-btn:hover { background: var(--gold); color: var(--gold-ink); }

.round { padding: 0 max(24px, calc((100% - 1200px) / 2)); }
.c-tiles .hero { display: grid; grid-template-columns: 1.15fr 0.85fr; grid-template-rows: auto 1fr; gap: 28px 56px; min-height: min(700px, calc(100svh - 73px)); padding-top: 32px; padding-bottom: 40px; }
.round-top { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
.timer { height: 14px; background: #4a3f17; border-radius: 3px; overflow: hidden; }
.timer i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 300ms ease-out; }
.q-form { align-self: center; }
.q-title { font-family: var(--display); font-weight: 800; font-size: clamp(3.2rem, 8.4vw, 7.4rem); line-height: 0.92; letter-spacing: -0.035em; max-width: 11ch; }
.q-title label { cursor: text; }
.q-title-sm { margin: 10px 0 24px; font-size: clamp(2.8rem, 6vw, 5.2rem); }
.q-answer { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 12px; }
.pin-tile { width: min(100%, 360px); height: 76px; padding: 0 20px; background: var(--panel); border: 2px solid var(--line); border-radius: 12px; font-family: var(--mono); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: 0.22em; color: var(--gold); }
.pin-tile::placeholder { color: #5d6776; }
.pin-tile:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold); }
.c-tiles .q-answer .btn { height: 76px; border-radius: 12px; }
.is-wrong .pin-tile { border-color: var(--red); animation: shake 320ms ease-out; }
.other-answers { align-self: center; }
.other-answers .mono-label { margin-bottom: 12px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 138px; padding: 18px; background: var(--a); color: var(--a-ink); border-radius: 10px; font-weight: 800; font-size: 1.22rem; line-height: 1.15; text-decoration: none; transition: transform var(--dur); }
.tile .icon { width: 30px; height: 30px; }
.tile:hover { transform: translateY(-3px); }
.tile:active { transform: scale(0.98); }

.c-tiles .replay { border-top: 1px solid var(--line); }
.c-tiles .section-head h2, .c-tiles .account-copy h2, .c-tiles .app-copy h2 { font-weight: 800; letter-spacing: -0.03em; }
.round-forest { background: var(--forest); }
.round-char { background: var(--bg); border-top: 1px solid var(--line); }
.round-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding: 96px 0; }
.answer-card { max-width: 560px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.answer-label { color: var(--muted); font-weight: 600; }
.answer-value { margin: 4px 0 14px; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.05; color: var(--gold); }
.answer-card > p:last-child { color: var(--muted); }
.checks { display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 28px; }

.board-example figcaption, .advert-example figcaption { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
.advert-example figcaption b { color: var(--gold); }
.lb { display: grid; gap: 8px; }
.lb > li { display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: center; gap: 12px; min-height: 60px; padding: 0 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-weight: 700; }
.lb > li > span { font-family: var(--mono); }
.lb > li.lb-first { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.lb-featured > li { padding: 0; }
.lb-featured > li.empty { padding: 18px 20px; display: block; color: var(--muted); font-weight: 400; }
.lb-featured a { grid-column: 1 / -1; display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: center; gap: 12px; padding: 14px 20px; text-decoration: none; }
.lb-featured a > span { font-family: var(--mono); }
.lb-featured b { display: grid; }
.lb-featured small { font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.lb-featured .lb-first small { color: #3d2f08; }
.lb-featured a:hover b { text-decoration: underline; }
.c-tiles .advert-slot { min-height: 300px; margin-top: 0; border-radius: 12px; }
.c-tiles .advert-brand { text-transform: none; letter-spacing: -0.03em; font-weight: 800; }
.round-account .account { width: auto; padding: 96px 0; }
.round-account .account-panel { background: #0f2218; }
.round-account .auth-form input { background: var(--forest); }
.c-tiles .account-copy .kicker { font-family: var(--mono); }
.c-tiles .final { border-top: 0; }
.predictor-line { margin-top: 22px; color: var(--muted); }
.predictor-line a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 700; text-underline-offset: 4px; text-decoration-color: var(--gold); }

/* Full-screen menu styled as the final leaderboard */
.menu-overlay { position: fixed; inset: 0; z-index: 200; overflow-y: auto; background: var(--forest); }
.menu-inner { width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 40px; }
.menu-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 12px; margin-bottom: 24px; }
.menu-head .mono-label { grid-column: 1; }
.menu-head h2 { grid-column: 1; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1; letter-spacing: -0.03em; }
.menu-head .icon-btn { grid-column: 2; grid-row: 1 / 3; align-self: start; }
.board { display: grid; gap: 8px; }
.board a { display: grid; grid-template-columns: 3.4rem 1fr auto; align-items: center; gap: 12px; min-height: 68px; padding: 10px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.1; }
.board .rank { font-family: var(--mono); font-size: 0.95rem; color: var(--gold); }
.board .row-name { display: grid; }
.board small { font-family: var(--body); font-weight: 400; font-size: 0.92rem; color: var(--muted); }
.board li:first-child a { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.board li:first-child .rank, .board li:first-child small { color: var(--gold-ink); }
.board a:hover { border-color: var(--gold); }
.menu-overlay.is-open .board li { animation: row-in 260ms ease-out both; }
.menu-overlay.is-open .board li:nth-child(2) { animation-delay: 30ms; }
.menu-overlay.is-open .board li:nth-child(3) { animation-delay: 60ms; }
.menu-overlay.is-open .board li:nth-child(4) { animation-delay: 90ms; }
.menu-overlay.is-open .board li:nth-child(5) { animation-delay: 120ms; }
.menu-overlay.is-open .board li:nth-child(6) { animation-delay: 150ms; }
.menu-overlay.is-open .board li:nth-child(7) { animation-delay: 180ms; }
@keyframes row-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.menu-legal { margin-top: 28px; color: var(--muted); line-height: 2.2; }
.menu-legal a { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .c-screen .stage, .c-tiles .hero, .round-grid, .app, .account { grid-template-columns: 1fr; }
  .c-screen .stage { min-height: 0; gap: 40px; padding: 40px 0 56px; }
  .c-tiles .hero { min-height: 0; }
  .reel { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --wrap: calc(100% - 32px); }
  body { font-size: 1rem; }
  .topbar { padding: 10px 16px; gap: 10px; }
  .brand img { width: 38px; height: 38px; }
  .c-screen .topbar { grid-template-columns: auto 1fr auto; }
  .c-screen .brand-name, .more-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .side-switch { justify-self: center; }
  .side-switch button { padding: 0 10px; gap: 4px; font-size: 0.92rem; }
  .side-switch .icon { display: none; }
  .more-btn { width: 48px; padding: 0; justify-content: center; }
  .c-tiles .brand-name { font-size: 1.1rem; }
  .q-chip { display: none; }
  .section { padding: 64px 0; }
  .slots { gap: 6px; }
  .screen { min-height: 0; }
  .chips { min-height: 120px; }
  .bars { height: 210px; gap: 8px; }
  .bar i { height: calc(var(--v) * 12px); }
  .bar span { font-size: 0.8rem; }
  .pin-actions .btn, .row-actions .btn { width: 100%; }
  .reel { grid-template-columns: 1fr; gap: 40px; }
  .reel li { grid-template-columns: 150px 1fr; align-items: center; gap: 18px; }
  .roster { grid-template-columns: 1fr; }
  .auth-forms { grid-template-columns: 1fr; gap: 32px; }
  .account-panel { padding: 16px; }
  .predictor-strip { flex-direction: column; align-items: flex-start; padding-bottom: 64px; }
  .app-shots .device { max-width: 170px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .round { padding: 0 16px; }
  .c-tiles .hero { padding-top: 20px; padding-bottom: 48px; gap: 24px; }
  .round-top { grid-template-columns: auto 1fr; }
  .round-top .mono-small { grid-column: 1 / -1; justify-self: end; margin-top: -10px; }
  .q-answer { flex-direction: column; }
  .pin-tile, .c-tiles .q-answer .btn { width: 100%; }
  .tile { min-height: 104px; font-size: 1.08rem; padding: 14px; }
  .round-grid { padding: 64px 0; gap: 40px; }
  .round-account .account { padding: 64px 0; }
  .lb > li, .lb-featured a { grid-template-columns: 2.6rem 1fr auto; padding-left: 14px; padding-right: 14px; }
  .lb-featured > li { padding: 0; }
  .dock { left: 12px; right: 12px; transform: translateY(160%); }
  .dock.is-visible { transform: none; }
  .dock-label span { display: none; }
  .dock-input { flex: 1; width: auto; min-width: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .slots span.is-next:empty::after { animation: none; }
}
