/* askaboutgta: tokens from design/sayo.pen (AskAboutGTA frames, gta-* variables). */
@font-face { font-family: "Anton"; src: url("fonts/anton.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --night: #0a0612;
  --panel: #160b26;
  --line: rgba(255, 255, 255, 0.12);
  --ink: #fff4e8;
  --dim: #d2c3e2;
  --mute: #a091b8;
  --pink: #ff2e88;
  --orange: #ff7a3d;
  --gold: #ffc24b;
  --cyan: #2de2e6;
  --sun: linear-gradient(90deg, var(--pink), var(--orange) 60%, var(--gold));
  --display: "Anton", "Impact", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --gutter: 56px;
  --dock: 150px;
  color-scheme: dark;
}
@media (max-width: 760px) { :root { --gutter: 16px; --dock: 156px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--night); color: var(--ink); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--ink); color: var(--night); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sun-text { background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (forced-colors: active) { .sun-text { background: none; color: CanvasText; } }

/* ---------- top bar ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gutter); background: linear-gradient(var(--night), rgba(10, 6, 18, 0.85) 60%, transparent); }
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 6, 18, 0.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); opacity: 0; pointer-events: none; }
.brand { display: flex; align-items: center; gap: 14px; }
.wordmark { font: 30px/1 var(--display); letter-spacing: 0.5px; }
.pill-unofficial { font: 600 11px/1 var(--mono); letter-spacing: 1.5px; color: var(--cyan); border: 1px solid var(--cyan); border-radius: 999px; padding: 6px 10px; }
.top-right { display: flex; align-items: center; gap: 16px; }
.powered { font-size: 13px; color: var(--dim); }
.powered b { color: var(--ink); }
.ghost { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.08); border: 0; border-radius: 999px; padding: 9px 14px; font-size: 13px; font-weight: 600; }
@media (max-width: 760px) {
  .top { padding: 14px var(--gutter); }
  .wordmark { font-size: 22px; }
  .brand { flex-direction: column; align-items: flex-start; gap: 4px; }
  .pill-unofficial { border: 0; padding: 0; font-size: 9px; }
  .powered { display: none; }
}

/* ---------- welcome ---------- */
.welcome { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px var(--gutter) calc(var(--dock) + 24px); overflow: hidden; }
/* hero-scene.jpg is hero.jpg without its baked-in dark left third, so the art runs edge to edge behind the title. */
.welcome-art { position: absolute; inset: 0; background: url("art/hero-scene.jpg") 60% 40% / cover no-repeat; }
.welcome-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 6, 18, 0.95), rgba(10, 6, 18, 0.7) 38%, rgba(10, 6, 18, 0) 72%), linear-gradient(transparent 50%, var(--night)); }
.welcome-copy { position: relative; max-width: 900px; }
.eyebrow-mono { font: 600 13px/1 var(--mono); letter-spacing: 2.5px; color: var(--gold); margin: 0 0 22px; }
.welcome-title { font: 112px/0.92 var(--display); margin: 0; font-weight: 400; }
.welcome-title span { display: block; }
.welcome-deck { font-size: 20px; line-height: 1.45; color: var(--dim); max-width: 560px; margin: 22px 0 32px; }
.starters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.starters button { width: 100%; height: 100%; text-align: left; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(22, 11, 38, 0.8); backdrop-filter: blur(16px); font-size: 15px; line-height: 1.4; position: relative; isolation: isolate; }
/* A sunset glow that follows the cursor (app.js sets --mx and --my; desktop only). */
.starters button::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 46, 136, 0.22), rgba(255, 122, 61, 0.08) 45%, transparent 70%); opacity: 0; transition: opacity 200ms ease; pointer-events: none; }
.tag { font: 600 11px/1 var(--mono); letter-spacing: 1.5px; color: var(--cyan); }
@media (max-width: 1000px) { .welcome-title { font-size: 76px; } .starters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .welcome { align-items: flex-start; padding-top: clamp(96px, 16svh, 180px); } /* top-aligned: on tall screens (iPad mini, 744 wide) flex-end left an empty top half */
  .welcome-art { background-position: 70% center; }
  .welcome-title { font-size: 52px; }
  .welcome-deck { font-size: 16px; margin: 16px 0 20px; }
  .eyebrow-mono { font-size: 10px; letter-spacing: 1.5px; }
  .starters { grid-template-columns: 1fr; gap: 8px; }
  .starters li:nth-child(n + 4) { display: none; }
  .starters button { padding: 12px 14px; font-size: 14px; }
}

/* ---------- scenes ---------- */
#scenes { padding: 0 var(--gutter); }
.scene { min-height: calc(100svh - var(--dock)); padding: 104px 0 calc(var(--dock) + 24px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 516px); gap: 60px; align-items: start; border-bottom: 1px solid var(--line); animation: rise 320ms var(--ease-out) backwards; }
.scene:last-child { border-bottom: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.scene-text { display: flex; flex-direction: column; gap: 20px; max-width: 752px; }
.eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ask { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 15px; }
.rule { width: 28px; height: 2px; background: var(--pink); flex: none; }
.share { animation: pop 300ms var(--ease-out) backwards; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 16px; background: var(--sun); color: #1a0612; font-size: 14px; font-weight: 700; flex: none; }
.headline { font: 76px/0.98 var(--display); font-weight: 400; margin: 0; text-transform: uppercase; overflow-wrap: anywhere; }
.headline.thinking .s1 { font-size: 0.6em; background: linear-gradient(90deg, var(--mute) 20%, var(--ink) 50%, var(--mute) 80%) 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
/* Headline words blur and rise in as they stream (app.js adds only new ones). Each word in the second sentence carries
   the sunset itself, anchored to the viewport so the sweep stays continuous: a parent's background-clip: text doesn't
   paint into animated children. */
.headline .w { display: inline-block; animation: word 420ms var(--ease-out) backwards; }
.headline .s2.sun-text { background: none; }
.headline .s2 .w { background: var(--sun) fixed; -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes word { from { opacity: 0; filter: blur(8px); transform: translateY(0.18em); } }
@keyframes pop { from { opacity: 0; filter: blur(4px); transform: translateY(6px); } }
.md { font-size: 18px; line-height: 1.55; color: var(--dim); max-width: 68ch; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 12px; }
.md strong, .md h3, .md h4, .md th { color: var(--ink); }
.md h3, .md h4 { font: 400 26px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.3px; margin: 20px 0 8px; }
.md ul, .md ol { padding-left: 20px; margin: 0 0 12px; }
.md li { margin: 4px 0; }
.md li::marker { color: var(--pink); }
.md a { color: var(--cyan); }
.md code { font: 0.9em var(--mono); color: var(--gold); }
.md blockquote { margin: 0 0 12px; padding: 12px 16px; border-left: 3px solid var(--pink); background: rgba(255, 46, 136, 0.08); border-radius: 0 12px 12px 0; }
.md table { width: 100%; border-collapse: collapse; margin: 4px 0 12px; font-size: 15px; display: block; overflow-x: auto; }
.md th { font: 600 11px/1.2 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--mute); text-align: left; }
.md th, .md td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.md td { color: var(--ink); font-weight: 500; }
.intel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bad { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--mute); font-size: 13px; padding: 6px 4px; }
.bad:disabled { cursor: default; }
.followups { display: flex; flex-wrap: wrap; gap: 10px; }
.followups:empty { display: none; }
.chip { animation: pop 280ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 40ms); border: 1px solid rgba(45, 226, 230, 0.4); background: none; color: var(--cyan); border-radius: 999px; padding: 10px 16px; font-size: 14px; text-align: left; }
.error { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.error p { font: 44px/1 var(--display); text-transform: uppercase; margin: 0; animation: static 260ms steps(1) backwards; }
/* Lost the signal: one burst of radio static, then still. */
@keyframes static {
  0% { opacity: 0; transform: translateX(-6px); clip-path: inset(0 0 60% 0); text-shadow: 3px 0 var(--cyan), -3px 0 var(--pink); }
  20% { opacity: 1; transform: translateX(5px); clip-path: inset(45% 0 0 0); }
  40% { transform: translateX(-3px); clip-path: inset(10% 0 35% 0); text-shadow: -2px 0 var(--cyan), 2px 0 var(--pink); }
  60% { transform: translateX(2px); clip-path: inset(0 0 15% 0); }
  80% { transform: none; clip-path: none; text-shadow: 1px 0 var(--cyan), -1px 0 var(--pink); }
}
.art-card { --r: 22px; animation: art-in 700ms var(--ease-out) backwards; position: relative; margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid rgba(255, 46, 136, 0.4); box-shadow: 0 20px 60px rgba(255, 46, 136, 0.2); aspect-ratio: 516 / 600; position: sticky; top: 104px; }
.art-card img { width: 100%; height: 100%; object-fit: cover; display: block; animation: settle 1100ms var(--ease-out) backwards; }
@keyframes art-in { from { clip-path: inset(100% 0 0 0 round var(--r)); } to { clip-path: inset(0 round var(--r)); } }
@keyframes settle { from { transform: scale(1.12); } }
.art-card::after { content: ""; position: absolute; inset: 70% 0 0; background: linear-gradient(transparent, rgba(10, 6, 18, 0.85)); }
.cap { position: absolute; left: 20px; bottom: 20px; z-index: 1; font: 600 11px/1 var(--mono); letter-spacing: 1.5px; color: var(--cyan); background: rgba(10, 6, 18, 0.7); border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; animation: pop 300ms var(--ease-out) 380ms backwards; }
.fanart { position: absolute; right: 20px; bottom: 24px; z-index: 1; font-size: 11px; color: var(--mute); animation: pop 300ms var(--ease-out) 460ms backwards; }
@media (max-width: 1000px) {
  .scene { grid-template-columns: 1fr; gap: 16px; padding-top: 88px; }
  .art-card { --r: 16px; grid-row: 1; aspect-ratio: auto; height: 180px; position: relative; top: 0; }
  .headline { font-size: 52px; }
}
@media (max-width: 760px) {
  .scene { padding-top: 84px; }
  .art-card { height: 160px; }
  .headline { font-size: 40px; line-height: 1; }
  .md { font-size: 16px; }
  .ask { font-size: 14px; }
  .error p { font-size: 32px; }
}

/* ---------- dock ---------- */
.dock { position: fixed; inset: auto 0 0; z-index: 20; padding: 48px var(--gutter) 14px; background: linear-gradient(transparent, rgba(10, 6, 18, 0.95) 45%); pointer-events: none; }
.dock > * { pointer-events: auto; max-width: 900px; }
.composer { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 8px 0 22px; border-radius: 999px; border: 1.5px solid transparent; background: linear-gradient(#120a20, #120a20) padding-box, linear-gradient(90deg, var(--pink), var(--orange) 50%, var(--cyan)) border-box; box-shadow: 0 0 40px rgba(255, 46, 136, 0.25); transition: box-shadow 240ms ease; }
.composer:focus-within { box-shadow: 0 0 56px rgba(255, 46, 136, 0.42); }
.composer .phone { color: var(--pink); width: 20px; height: 20px; }
.composer input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: 17px var(--body); }
.composer input::placeholder { color: var(--mute); transition: color 160ms ease; }
.composer.flying input::placeholder { color: transparent; } /* the question is taking off from here */
.send { position: relative; width: 48px; height: 48px; border: 0; border-radius: 999px; background: var(--sun); color: #1a0612; display: grid; place-items: center; }
.send:disabled { cursor: progress; }
/* On a call: Send rings while the answer streams, and the phone icon wiggles. */
.composer.calling .send::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--pink); animation: ring 1.1s var(--ease-out) infinite; pointer-events: none; }
@keyframes ring { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
.composer.calling .phone { animation: wiggle 1.2s ease-in-out infinite; }
@keyframes wiggle { 0%, 40%, 100% { transform: rotate(0); } 8%, 24% { transform: rotate(-14deg); } 16%, 32% { transform: rotate(14deg); } }
.flight { position: fixed; z-index: 25; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform-origin: 0 0; pointer-events: none; color: var(--ink); }
.send svg { width: 22px; height: 22px; stroke-width: 2.5; }
.privacy { margin: 10px 0 0 24px; font-size: 12px; color: var(--mute); }
.link { border: 0; background: none; padding: 0; color: var(--dim); text-decoration: underline; font-size: 12px; }
@media (max-width: 760px) {
  .dock { padding-top: 36px; }
  .composer { height: 54px; padding-left: 16px; }
  .composer input { font-size: 16px; }
  .send { width: 42px; height: 42px; }
  .privacy { margin-left: 8px; font-size: 10px; }
}

/* ---------- footer, privacy ---------- */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 20px var(--gutter) calc(var(--dock) + 8px); border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.foot p { margin: 0; max-width: 900px; }
.foot a { color: var(--dim); }
.sayo-link { font-weight: 600; text-decoration: none; }
dialog { max-width: 480px; background: var(--panel); color: var(--dim); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
dialog[open] { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); @starting-style { opacity: 0; transform: scale(0.96); } }
dialog::backdrop { background: rgba(10, 6, 18, 0.7); }
dialog[open]::backdrop { transition: opacity 200ms ease; @starting-style { opacity: 0; } }
dialog h2 { font: 32px/1 var(--display); text-transform: uppercase; color: var(--ink); margin: 0 0 12px; font-weight: 400; }

/* ---------- interaction ---------- */
/* Press feedback on everything tappable; `scale` composes with the entrance animations, which use `transform`. */
:is(.starters button, .chip, .send, .share, .ghost, .bad, .sayo-link) { transition: scale 140ms var(--ease-out), translate 200ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
:is(.starters button, .chip, .send, .share, .ghost, .bad):active:not(:disabled) { scale: 0.97; }
.send:active:not(:disabled) { scale: 0.93; }
.sayo-link { display: inline-block; }
@media (hover: hover) and (pointer: fine) {
  .ghost:hover { background: rgba(255, 255, 255, 0.14); }
  .starters button:hover { border-color: rgba(255, 46, 136, 0.55); translate: 0 -2px; }
  .starters button:hover::before { opacity: 1; }
  .bad:hover:not(:disabled) { color: var(--dim); }
  .chip:hover { background: rgba(45, 226, 230, 0.1); }
  .sayo-link:hover { translate: 3px 0; color: var(--ink); }
}

/* Welcome, on page load only (index.html sets .intro, app.js removes it): it doesn't replay on "New question". */
.welcome-art { scale: 1.04; }
.intro .welcome-art { animation: art-settle 1600ms var(--ease-out) backwards; }
.intro .eyebrow-mono { animation: rise-in 600ms var(--ease-out) 80ms backwards; }
.intro .welcome-title span { animation: line-up 800ms var(--ease-out) 160ms backwards; }
.intro .welcome-title span + span { animation-delay: 260ms; }
.intro .welcome-deck { animation: rise-in 600ms var(--ease-out) 420ms backwards; }
.intro .starters li { animation: rise-in 500ms var(--ease-out) backwards; animation-delay: calc(520ms + var(--i) * 50ms); }
.starters li:nth-child(1) { --i: 0; } .starters li:nth-child(2) { --i: 1; } .starters li:nth-child(3) { --i: 2; }
.starters li:nth-child(4) { --i: 3; } .starters li:nth-child(5) { --i: 4; } .starters li:nth-child(6) { --i: 5; }
@keyframes art-settle { from { opacity: 0; transform: scale(1.08); } }
@keyframes rise-in { from { opacity: 0; filter: blur(6px); transform: translateY(14px); } }
/* The line rises behind a fixed edge: the clip shrinks as fast as the line moves up. */
@keyframes line-up { from { transform: translateY(110%); clip-path: inset(-20% -5% 110% -5%); } to { transform: none; clip-path: inset(-20% -5% -20% -5%); } }

/* Scroll: older scenes recede, the top bar firms up. Browsers without scroll-driven animations show neither. */
@supports (animation-timeline: view()) {
  .scene-text { transform-origin: 50% 0; animation: recede linear both; animation-timeline: view(); animation-range: exit 5% exit 85%; }
  .top::before { animation: firm linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
}
@keyframes recede { to { opacity: 0.25; transform: scale(0.97); } }
@keyframes firm { to { opacity: 1; } }

/* Reduced motion: no movement, but fades stay. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-property: opacity, color, background-color, border-color, box-shadow !important; }
  :is(.scene, .headline .w, .art-card, .art-card img, .cap, .fanart, .chip, .share, .error p, dialog[open]) { animation: fade 200ms ease-out backwards !important; }
  .intro :is(.welcome-art, .eyebrow-mono, .welcome-title span, .welcome-deck, .starters li) { animation: fade 300ms ease-out backwards !important; }
  .scene-text, .composer.calling .phone, .starters button::before { animation: none !important; }
  .starters button::before { display: none; }
  .composer.calling .send::after { animation: pulse 1.2s ease-in-out infinite !important; }
  .headline.thinking .s1 { animation: none; color: var(--mute); background: none; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes pulse { 50% { opacity: 0.2; } }

/* ---------- glitch and punk motion (all off with prefers-reduced-motion, above) ---------- */
/* RGB-split glitch: two coloured copies of the text, sliced and nudged for a few frames every few seconds. */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
.glitch::before { color: var(--cyan); transform: translateX(-3px); mix-blend-mode: screen; animation: slice-a 4.2s infinite steps(1); }
.glitch::after { color: var(--pink); transform: translateX(3px); mix-blend-mode: screen; animation: slice-b 4.2s infinite steps(1); }
.glitch > .sun-text { display: inline-block; animation: jolt 4.2s infinite steps(1); }
.glitch-big::before { transform: translateX(-6px); animation-duration: 5.6s; }
.glitch-big::after { transform: translateX(6px); animation-duration: 5.6s; }
.glitch-big > .sun-text { animation-duration: 5.6s; }
@keyframes slice-a { 0%, 86%, 100% { clip-path: inset(0 0 100% 0); } 88% { clip-path: inset(12% 0 60% 0); } 90% { clip-path: inset(55% 0 20% 0); transform: translateX(-6px); } 92% { clip-path: inset(30% 0 45% 0); transform: translateX(4px); } 94% { clip-path: inset(70% 0 5% 0); } }
@keyframes slice-b { 0%, 87%, 100% { clip-path: inset(0 0 100% 0); } 89% { clip-path: inset(40% 0 35% 0); } 91% { clip-path: inset(5% 0 80% 0); transform: translateX(7px); } 93% { clip-path: inset(62% 0 18% 0); transform: translateX(-3px); } 95% { clip-path: inset(20% 0 66% 0); } }
@keyframes jolt { 0%, 87%, 100% { transform: none; filter: none; } 89% { transform: skewX(-8deg) translateX(2px); } 91% { transform: skewX(6deg) translateX(-3px); filter: hue-rotate(40deg); } 93% { transform: none; } }

/* Eyebrow ticker: lines scramble in like a pager, with a blinking block cursor. */
.caret { display: inline-block; width: 0.6em; height: 1em; margin-left: 4px; vertical-align: -2px; background: var(--gold); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* CRT scanlines and a slow flicker over the welcome art. */
.scanlines { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; animation: flicker 6s infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 48% { opacity: 0.6; } 49% { opacity: 1; } 72% { opacity: 0.85; } }

/* Starters punch in one after another; a new answer's headline glitches in once. */
.starters li { animation: punch 0.42s cubic-bezier(0.2, 0.8, 0.2, 1.2) both; }
.starters li:nth-child(2) { animation-delay: 0.06s; } .starters li:nth-child(3) { animation-delay: 0.12s; }
.starters li:nth-child(4) { animation-delay: 0.18s; } .starters li:nth-child(5) { animation-delay: 0.24s; } .starters li:nth-child(6) { animation-delay: 0.3s; }
@keyframes punch { from { opacity: 0; transform: translateY(14px) skewX(-6deg); } }
.headline.landed { animation: land 0.5s steps(6) 1; }
@keyframes land { 0% { transform: translateX(-4px); text-shadow: 4px 0 var(--cyan), -4px 0 var(--pink); } 50% { transform: translateX(3px) skewX(-4deg); text-shadow: -3px 0 var(--cyan), 3px 0 var(--pink); } 100% { transform: none; text-shadow: none; } }
.starters button:hover .tag, .chip:hover { text-shadow: 0 0 12px currentColor; }

/* ---------- starter bento: fan art tiles with a HUD look ---------- */
a.powered { text-decoration: none; }
a.powered:hover b { color: var(--cyan); }
.starters { grid-template-columns: 1.3fr 1fr 1fr 1fr; grid-template-rows: 150px 150px; }
.starters li:nth-child(1) { grid-row: span 2; }
.starters li:nth-child(3) { grid-column: span 2; }
.starters li:nth-child(1) button { --art: url("art/muscle.jpg"); }
.starters li:nth-child(2) button { --art: url("art/weapons.jpg"); }
.starters li:nth-child(3) button { --art: url("art/missions.jpg"); }
.starters li:nth-child(4) button { --art: url("art/offroad.jpg"); }
.starters li:nth-child(5) button { --art: url("art/cheats.jpg"); }
.starters li:nth-child(6) button { --art: url("art/map.jpg"); }
.starters button {
  position: relative; overflow: hidden; justify-content: flex-end; border-radius: 0; border: 1px solid rgba(45, 226, 230, 0.25);
  background: var(--panel); backdrop-filter: none; font-weight: 600; font-size: 15px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
/* the art, darkened towards the text; it zooms in on hover */
.starters button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 6, 18, 0.1) 20%, rgba(10, 6, 18, 0.92)), var(--art) center / cover; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s; filter: saturate(0.9); opacity: 1; border-radius: 0; display: block; }
/* HUD corner brackets */
.starters button::after { content: ""; position: absolute; inset: 8px; pointer-events: none; opacity: 0.55; transition: opacity 0.2s, inset 0.2s;
  background: linear-gradient(var(--cyan), var(--cyan)) top left / 14px 2px, linear-gradient(var(--cyan), var(--cyan)) top left / 2px 14px,
    linear-gradient(var(--pink), var(--pink)) bottom right / 14px 2px, linear-gradient(var(--pink), var(--pink)) bottom right / 2px 14px; background-repeat: no-repeat; }
.starters button { isolation: isolate; }
.starters button:hover { border-color: var(--cyan); transform: translateY(-2px); box-shadow: 0 0 0 1px var(--cyan), 0 10px 40px rgba(45, 226, 230, 0.25); }
.starters button:hover::before { transform: scale(1.07); filter: saturate(1.2) contrast(1.05); }
.starters button:hover::after { opacity: 1; inset: 5px; }
.starters button:hover .tag { animation: tag-glitch 0.4s steps(3) 1; }
@keyframes tag-glitch { 33% { transform: translateX(3px); text-shadow: -2px 0 var(--pink); } 66% { transform: translateX(-2px); text-shadow: 2px 0 var(--cyan); } }
.starters .tag { align-self: flex-start; background: rgba(10, 6, 18, 0.75); padding: 5px 8px; border: 1px solid rgba(45, 226, 230, 0.4); position: absolute; top: 14px; left: 14px; }
.starters li:nth-child(1) button { font: 400 30px/1 var(--display); text-transform: uppercase; letter-spacing: 0.3px; }
@media (max-width: 1000px) { .starters { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 120px; } .starters li:nth-child(1) { grid-row: auto; grid-column: span 2; } .starters li:nth-child(3) { grid-column: auto; } }
@media (max-width: 760px) { .starters { grid-auto-rows: 104px; } .starters li:nth-child(n + 4) { display: none; } .starters li:nth-child(1) button { font-size: 24px; } }

/* sound toggle */
.ghost.icon { padding: 9px; }
.ghost.icon svg { width: 16px; height: 16px; }
#sound .mute { display: none; }
#sound[aria-pressed="false"] .wave { display: none; }
#sound[aria-pressed="false"] .mute { display: inline; }
#sound[aria-pressed="false"] { color: var(--mute); }

/* "Intel from" source pills (restored) */
.intel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.intel:has(.pills:empty) .label { display: none; }
.intel .label { font: 600 11px/1 var(--mono); letter-spacing: 1.5px; color: var(--mute); }
.pills { display: contents; }
.pill { font-size: 13px; color: var(--dim); text-decoration: none; background: rgba(255, 255, 255, 0.06); border-radius: 999px; padding: 6px 12px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill::after { content: " ↗"; color: var(--mute); }
.pill:hover { background: rgba(255, 255, 255, 0.12); color: var(--ink); }


/* YouTube strip from web search: click-to-play cards */
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.video { position: relative; aspect-ratio: 16 / 9; border: 1px solid rgba(45, 226, 230, 0.3); padding: 0; overflow: hidden; text-align: left; background: #000 var(--thumb) center / cover;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(10, 6, 18, 0.9)); }
.video-play { position: absolute; z-index: 1; left: 50%; top: 42%; translate: -50% -50%; width: 46px; height: 32px; border-radius: 8px; background: var(--pink); box-shadow: 0 0 24px rgba(255, 46, 136, 0.6); transition: scale 0.15s; }
.video-play::after { content: ""; position: absolute; left: 19px; top: 9px; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.video:hover .video-play { scale: 1.12; }
.video:hover { border-color: var(--cyan); }
.video-meta { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 8px; font-size: 12px; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-time { position: absolute; z-index: 1; right: 8px; top: 8px; font: 600 10px/1 var(--mono); padding: 4px 6px; background: rgba(10, 6, 18, 0.8); color: var(--ink); }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--cyan); background: #000; grid-column: span 3; }
.pill.web { border: 1px dashed rgba(255, 255, 255, 0.2); background: none; }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr 1fr; } .videos .video:nth-child(3) { display: none; } .video-frame { grid-column: span 2; } }

/* ---------- generated UI (Sayo's display blocks) ---------- */
.blocks:empty { display: none; }
.blocks { display: grid; gap: 22px; margin: 22px 0 6px; }
.block { animation: pop 320ms var(--ease-out) backwards; }
.block-title { margin: 0 0 12px; font: 400 22px/1.1 var(--display); letter-spacing: 0.5px; text-transform: uppercase; color: var(--ink); }
.block-note { margin: 10px 0 0; color: var(--mute); font-size: 14px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat { animation: pop 300ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 50ms); display: grid; gap: 6px; align-content: start; text-align: left; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
button.stat { transition: border-color 0.15s, translate 0.15s var(--ease-out); }
button.stat:hover { border-color: var(--pink); translate: 0 -2px; }
.stat-label { font: 600 11px/1.2 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--mute); }
.stat-value { font: 400 30px/1.05 var(--display); overflow-wrap: anywhere; }
.stat-detail { font-size: 13px; color: var(--dim); }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 600 11px/1.2 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--cyan); }
.compare tbody th { color: var(--ink); font-weight: 600; white-space: nowrap; }
.compare td { color: var(--dim); }
.compare td.none { color: var(--mute); }
.compare tr:last-child > * { border-bottom: 0; }

.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--pink); font: 400 20px/1 var(--display); transition: rotate 0.2s var(--ease-out); }
.faq[open] summary::after { rotate: 45deg; }
.faq p { margin: 0 0 14px; color: var(--dim); }

/* Bento: the first tile is the big one; every tile carries the fan art for its topic. */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; }
.bento.n1 { grid-template-columns: 1fr; }
.bento.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bento:not(.n1):not(.n2) .tile:first-child { grid-column: span 2; grid-row: span 2; }
.bento:not(.n1):not(.n2) .tile:first-child .tile-title { font-size: 30px; }
.tile { animation: pop 340ms var(--ease-out) backwards; animation-delay: calc(min(var(--i, 0), 8) * 45ms); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 16px; border: 1px solid rgba(255, 46, 136, 0.28); color: var(--ink); text-align: left; background: var(--panel); isolation: isolate; transition: border-color 0.2s, box-shadow 0.25s var(--ease-out), translate 0.25s var(--ease-out); }
/* The art sits on its own layer so it can zoom on hover; the scrim only darkens the bottom, where the words are. */
.tile::after { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--art); background-position: center; background-size: cover; filter: saturate(1.25) brightness(1.05); transition: transform 0.5s var(--ease-out), filter 0.3s; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(10, 6, 18, 0.55) 60%, rgba(10, 6, 18, 0.9)); }
.tile:hover, .tile:focus-visible { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink), 0 12px 36px rgba(255, 46, 136, 0.35); translate: 0 -3px; }
.tile:hover::after, .tile:focus-visible::after { transform: scale(1.07); filter: saturate(1.4) brightness(1.15); }
.tile:active { translate: 0 -1px; transition-duration: 0.08s; }
.tile-go { margin-top: 4px; font: 600 11px/1 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); opacity: 0.75; transition: opacity 0.2s; }
.tile-go span { display: inline-block; transition: translate 0.2s var(--ease-out); }
.tile:hover .tile-go { opacity: 1; }
.tile:hover .tile-go span { translate: 3px 0; }
.tile.has-photo::before { background: linear-gradient(180deg, transparent 40%, rgba(10, 6, 18, 0.6) 65%, rgba(10, 6, 18, 0.92)); }
.tile.has-photo .tile-go::before { content: "Image: GTABase · "; color: var(--mute); }
.tile-tag { font: 600 10px/1.2 var(--mono); letter-spacing: 1.4px; text-transform: uppercase; color: var(--night); background: var(--cyan); padding: 4px 7px; border-radius: 6px; margin-bottom: 4px; }
.tile-title { font: 400 19px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.3px; text-shadow: 0 2px 12px rgba(10, 6, 18, 0.8); }
.tile-text { font-size: 13px; line-height: 1.35; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 130px; }
  .bento:not(.n1):not(.n2) .tile:first-child { grid-row: span 1; }
}

.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: minmax(80px, 30%) 1fr auto; align-items: center; gap: 12px; font-size: 14px; }
.bar-label { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--sun); box-shadow: 0 0 14px rgba(255, 46, 136, 0.5); animation: grow 700ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 60ms); transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.bar-value { font: 600 13px/1 var(--mono); color: var(--gold); }

.guide-step { margin-top: 12px; }
.guide-q { margin: 0 0 8px; font: 600 12px/1.3 var(--mono); letter-spacing: 1px; text-transform: uppercase; color: var(--mute); }
.guide-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.guide .chip:disabled { opacity: 0.4; cursor: default; }
.guide .chip.on { opacity: 1; background: var(--cyan); color: var(--night); }

.place { display: grid; gap: 6px; justify-items: start; padding: 18px; border-radius: 16px; background: var(--panel) url("art/map.jpg") center / cover; border: 1px solid var(--line); position: relative; isolation: isolate; overflow: hidden; }
.place::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 6, 18, 0.92), rgba(10, 6, 18, 0.5)); }
@media (prefers-reduced-motion: reduce) { .block, .stat, .tile, .bar-fill { animation: fade 200ms ease-out backwards !important; } .tile, .tile::after { transition: none; } .tile:hover { translate: none; } .tile:hover::after { transform: none; } }

/* ---------- the Leonida map (Leaflet): in the art card's place, with the legend in the answer ---------- */
.art-card.map-card { border-color: rgba(45, 226, 230, 0.45); box-shadow: 0 20px 60px rgba(45, 226, 230, 0.18); }
.art-card.map-card::after { display: none; }
.map-frame { position: absolute; inset: 0; background: #0a0612; }
.map-frame.leaflet-container { font: inherit; background: #0a0612; }
.map-card .cap, .map-card .fanart { z-index: 500; pointer-events: none; }
.map-full-btn { position: absolute; z-index: 600; top: 12px; right: 12px; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(10, 6, 18, 0.85); color: var(--ink); font: 600 11px/1 var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.map-full-btn:hover { border-color: var(--pink); }
.art-card.map-card.map-full { position: fixed; inset: 12px; z-index: 60; aspect-ratio: auto; height: auto; top: 12px; }
html.map-open-full { overflow: hidden; }
.map-frame .leaflet-control-zoom a { background: rgba(10, 6, 18, 0.9); color: var(--ink); border-color: rgba(255, 255, 255, 0.15); }
.map-frame .leaflet-control-zoom a:hover { background: var(--pink); color: #fff; }
.map-tip { background: rgba(10, 6, 18, 0.92); color: var(--ink); border: 1px solid var(--pink); border-radius: 8px; font: 600 12px/1.2 var(--body); box-shadow: 0 6px 20px rgba(255, 46, 136, 0.35); }
.map-tip::before { display: none; }
@media (max-width: 760px) { .art-card.map-card { height: 62vh; } }

.map-search { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(45, 226, 230, 0.35); background: var(--panel); color: var(--ink); font: inherit; font-size: 15px; }
.map-search::placeholder { color: var(--mute); }
.map-search:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(45, 226, 230, 0.15); }
.map-places { display: grid; gap: 14px; margin-top: 14px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.map-group-title, .map-key-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 600 11px/1 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--mute); }
.map-group-title i, .map-roads i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); flex: none; }
.map-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.map-chip { padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--dim); font-size: 13px; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.map-chip:hover { border-color: var(--cyan); color: var(--ink); }
.map-chip.on { background: var(--cyan); border-color: var(--cyan); color: var(--night); }
.map-key-title { margin-top: 16px; }
.map-roads { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--dim); }
.map-roads span { display: inline-flex; align-items: center; gap: 7px; }
.map-roads i { border-radius: 3px; }

/* Video questions: a grid of click-to-play cards (Sayo's Brave video search, youtube-nocookie on tap). */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px 14px; }
.video-card { animation: pop 320ms var(--ease-out) backwards; animation-delay: calc(min(var(--i, 0), 8) * 45ms); min-width: 0; }
.video-card .video, .video-card .video-frame { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; }
.video-card .video:hover { border-color: var(--pink); box-shadow: 0 10px 30px rgba(255, 46, 136, 0.3); }
.video-title { margin: 10px 0 4px; font: 600 14px/1.35 var(--body); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-info { margin: 0; font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; } }

/* Map hotspots */
.hotspot { cursor: pointer; transition: stroke-width 0.15s; }
.hotspot:hover { stroke: #fff; stroke-width: 3; }

/* Video popup */
dialog.player { width: min(960px, calc(100vw - 32px)); max-width: none; padding: 0; overflow: hidden; background: #000; border: 1px solid rgba(255, 46, 136, 0.5); box-shadow: 0 30px 90px rgba(255, 46, 136, 0.35); }
dialog.player::backdrop { background: rgba(10, 6, 18, 0.88); }
.player-frame { aspect-ratio: 16 / 9; background: #000; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--panel); }
.player-title { margin: 0; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-close { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink); font: 600 11px/1 var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.player-close:hover { border-color: var(--pink); }

/* Footer sources and credits */
.foot { flex-direction: column; }
.credits { display: grid; gap: 6px; margin: 4px 0 0; max-width: 1100px; }
.credits div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.credits dt { font: 600 10px/1.8 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--mute); }
.credits dd { margin: 0; line-height: 1.6; }
.credits a { color: var(--dim); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25); text-underline-offset: 2px; }
.credits a:hover { color: var(--ink); text-decoration-color: var(--pink); }
@media (max-width: 760px) { .credits div { grid-template-columns: 1fr; gap: 0; } }

/* ---------- planned scenes (scenes.js) ---------- */
.scene.wide { grid-template-columns: minmax(0, 1fr); }
.scene.wide .scene-text { max-width: none; }
.scene.wide .art-card { display: none; }
.sc-tag { font: 600 11px/1 var(--mono); letter-spacing: 1.5px; padding: 6px 10px; border: 1px solid var(--line); color: var(--dim); }
.sc-tag.cyan { color: var(--cyan); border-color: rgba(45, 226, 230, 0.4); }
.sc-tag.accent { color: var(--accent); border-color: var(--accent); background: rgba(10, 6, 18, 0.7); align-self: flex-start; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-k { font: 600 11px/1 var(--mono); letter-spacing: 1.5px; color: var(--mute); }
.sc-k.cyan { color: var(--cyan); }
.sc-note { color: var(--dim); margin: 0; }
.sc-btn { border: 1px solid var(--line); background: none; padding: 11px 16px; font-size: 14px; color: var(--dim); }
.sc-btn.sun { background: var(--sun); color: #1a0612; font-weight: 700; border: 0; }
.sc-btn:hover { border-color: var(--cyan); color: var(--ink); }
.sc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sc-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.chip.on { background: rgba(255, 46, 136, 0.15); border-color: var(--pink); color: var(--ink); }
.sc-vehicle { display: flex; flex-direction: column; gap: 18px; }
/* stat bars fill with a neon sweep */
.sc-bars { display: grid; gap: 10px; }
.sc-bar { display: grid; grid-template-columns: 150px 1fr 40px; align-items: center; gap: 12px; }
.sc-bar-k { font: 600 11px/1 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--mute); }
.sc-bar-track { height: 8px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.sc-bar-fill { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--cyan), var(--pink)); box-shadow: 0 0 12px rgba(45, 226, 230, 0.5); transform-origin: left; animation: sc-fill 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes sc-fill { from { transform: scaleX(0); } }
.sc-bar-v { font: 400 22px/1 var(--display); text-align: right; }
.sc-specs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.sc-spec { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sc-spec-k { font: 600 11px/1 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--mute); }
.sc-spec-v { font: 400 28px/1 var(--display); color: var(--ink); }
.sc-spec-v.long { font: 600 15px/1.35 var(--body); }
/* lists */
.sc-list { display: flex; flex-direction: column; gap: 16px; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-sorts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sc-sort { border: 0; padding: 8px 12px; background: rgba(255, 255, 255, 0.05); color: var(--dim); font-size: 13px; }
.sc-sort.on { background: var(--cyan); color: #0a0612; font-weight: 700; }
.sc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sc-card { position: relative; isolation: isolate; height: 210px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; text-align: left; padding: 14px 16px; overflow: hidden; border: 1px solid rgba(45, 226, 230, 0.25); background: var(--panel);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); animation: sc-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(min(var(--i), 12) * 35ms); }
.sc-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(180deg, rgba(10, 6, 18, 0.05) 25%, rgba(10, 6, 18, 0.94)), var(--art); background-size: cover; background-position: center; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sc-card.fan::before { background-size: cover, 260%; background-position: center, var(--crop, center); }
.sc-card:hover::before { transform: scale(1.06); }
.sc-card:hover, .sc-card.picked { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 10px 40px rgba(45, 226, 230, 0.2); }
.sc-rank { position: absolute; top: 12px; left: 12px; font: 600 11px/1 var(--mono); color: var(--cyan); padding: 5px 7px; background: rgba(10, 6, 18, 0.8); border: 1px solid rgba(45, 226, 230, 0.4); }
.sc-card-pick { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 1px solid var(--line); background: rgba(10, 6, 18, 0.8); color: var(--ink); font-size: 18px; line-height: 1; }
.sc-card.picked .sc-card-pick { background: var(--cyan); color: #0a0612; }
.sc-card-maker { font: 600 10px/1 var(--mono); letter-spacing: 1.4px; color: var(--mute); }
.sc-card-name { font: 400 26px/1 var(--display); color: var(--ink); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.sc-card-stat { font-size: 12px; color: var(--gold); }
.sc-tray { position: sticky; bottom: calc(var(--dock) + 8px); padding: 14px 18px; border: 1px solid var(--cyan); background: rgba(20, 10, 34, 0.95); color: var(--dim); }
@keyframes sc-in { from { opacity: 0; transform: translateY(14px); } }
/* compare */
.sc-compare { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); }
.sc-vs { display: grid; grid-template-columns: 1fr 1fr; }
.sc-vs-card { position: relative; isolation: isolate; height: 220px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 18px 22px; overflow: hidden; }
.sc-vs-card + .sc-vs-card { border-left: 1px solid var(--line); }
.sc-vs-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(180deg, transparent 30%, rgba(10, 6, 18, 0.95)), var(--art); background-size: cover; background-position: center; }
.sc-vs-table { display: flex; flex-direction: column; }
.sc-vs-row { display: grid; grid-template-columns: 1fr 180px 1fr; align-items: center; border-top: 1px solid var(--line); }
.sc-vs-k { font: 600 11px/1 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--mute); text-align: center; }
.sc-vs-v { padding: 14px 22px; font: 400 26px/1 var(--display); color: var(--dim); }
.sc-vs-row .sc-vs-v:last-child { text-align: right; }
.sc-vs-v.win { color: var(--cyan); text-shadow: 0 0 14px rgba(45, 226, 230, 0.5); }
.sc-vs-v.win::after { content: " ●"; font-size: 12px; vertical-align: middle; }
/* characters */
.sc-cast { display: flex; flex-direction: column; gap: 18px; }
.sc-duo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sc-duo.single { grid-template-columns: minmax(0, 720px); }
.sc-person { --accent: var(--pink); position: relative; isolation: isolate; min-height: 480px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 24px 28px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.sc-person::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(180deg, rgba(10, 6, 18, 0.05) 15%, rgba(10, 6, 18, 0.95) 80%), var(--art); background-size: cover; background-position: var(--pos, center 30%); }
.sc-person .sc-tag { position: absolute; top: 20px; left: 20px; }
.sc-person-name { font: 400 104px/0.88 var(--display); color: var(--accent); }
.sc-facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.sc-facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; vertical-align: middle; background: var(--accent); }
.sc-ties { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sc-out { align-self: flex-start; font-size: 13px; color: var(--dim); }
.sc-partners { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2; padding: 10px 16px; background: var(--sun); color: #1a0612; font: 600 12px/1 var(--mono); letter-spacing: 1.5px; }
.sc-wall { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* cheats */
.sc-cheats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 32px; align-items: start; }
.sc-cheat-list { display: flex; flex-direction: column; gap: 14px; }
.sc-seg { display: inline-flex; align-self: flex-start; border: 1px solid var(--line); }
.sc-seg-b { border: 0; background: none; padding: 9px 16px; font: 600 12px/1 var(--mono); letter-spacing: 1.2px; color: var(--dim); }
.sc-seg-b.on { background: var(--cyan); color: #0a0612; }
.sc-rows { display: flex; flex-direction: column; border: 1px solid var(--line); }
.sc-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); }
.sc-row:first-child { border-top: 0; }
.sc-row.on, .sc-row:hover { background: rgba(45, 226, 230, 0.08); }
.sc-row-text { display: flex; flex-direction: column; gap: 3px; }
.sc-row-text strong { color: var(--ink); font-size: 15px; }
.sc-row-text span { color: var(--mute); font-size: 12px; }
.sc-keys { display: flex; gap: 3px; flex: none; }
.sc-key { width: 20px; height: 20px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: var(--dim); font-size: 12px; }
.sc-row.on .sc-key { color: var(--cyan); }
.sc-tba { font: 600 11px/1 var(--mono); letter-spacing: 1.2px; color: var(--gold); }
.sc-tba.big { font-size: 13px; }
.sc-console { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; padding: 28px; background: rgba(20, 10, 34, 0.9); border: 1px solid rgba(45, 226, 230, 0.4); }
.sc-console-name { font: 400 56px/0.95 var(--display); background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.sc-cap { height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--dim); transition: background 0.12s, color 0.12s, box-shadow 0.12s; }
.sc-cap b { font-size: 22px; }
.sc-cap i { font: 600 9px/1 var(--mono); font-style: normal; color: var(--mute); }
.sc-cap.lit { background: var(--cyan); color: #0a0612; box-shadow: 0 0 22px rgba(45, 226, 230, 0.6); }
.sc-cap.lit i { color: #0a0612; }
.sc-warn { margin: 0; color: var(--gold); font-size: 13px; }
@media (max-width: 1000px) {
  .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-cheats, .sc-duo { grid-template-columns: 1fr; }
  .sc-partners { display: none; }
  .sc-console { position: static; }
  .sc-person-name { font-size: 72px; }
}
@media (max-width: 760px) {
  .sc-specs { grid-template-columns: repeat(2, 1fr); }
  .sc-bar { grid-template-columns: 110px 1fr 34px; }
  .sc-card { height: 170px; }
  .sc-vs-row { grid-template-columns: 1fr 100px 1fr; }
  .sc-vs-v { padding: 12px 14px; font-size: 20px; }
  .sc-console-name { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) { .sc-bar-fill, .sc-card { animation: none; } }

/* Vehicle scene, as design frame "AskAboutGTA · Scene · Vehicle": full-height art left, spec column right */
:is(.scene.vehicle, .scene.item) { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; padding-top: 80px; }
:is(.scene.vehicle, .scene.item) .art-card { grid-column: 1; grid-row: 1; aspect-ratio: auto; height: calc(100svh - 150px); min-height: 520px; border: 0; border-radius: 0; box-shadow: none; position: sticky; top: 80px; }
:is(.scene.vehicle, .scene.item) .art-card::after { inset: 0; background: linear-gradient(90deg, transparent 55%, var(--night)), linear-gradient(180deg, transparent 60%, rgba(10, 6, 18, 0.9)); }
:is(.scene.vehicle, .scene.item) .scene-text { grid-column: 2; grid-row: 1; padding-top: 28px; gap: 18px; }
:is(.scene.vehicle, .scene.item) .headline { display: flex; flex-direction: column; gap: 6px; }
:is(.scene.vehicle, .scene.item) .headline .s1 { font-size: clamp(56px, 7vw, 104px); line-height: 0.9; }
:is(.scene.vehicle, .scene.item) .headline .s2 { font-size: clamp(26px, 2.8vw, 40px); line-height: 1; }
:is(.scene.vehicle, .scene.item) .md { font-size: 17px; }
.sc-howto { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: rgba(45, 226, 230, 0.06); border: 1px solid rgba(45, 226, 230, 0.25); }
.sc-howto p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.5; }
.sc-ratings { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
@media (max-width: 1000px) {
  :is(.scene.vehicle, .scene.item) { grid-template-columns: 1fr; gap: 16px; }
  :is(.scene.vehicle, .scene.item) .art-card { grid-row: 1; height: 240px; min-height: 0; position: relative; top: 0; }
  :is(.scene.vehicle, .scene.item) .art-card::after { background: linear-gradient(180deg, transparent 50%, var(--night)); }
  :is(.scene.vehicle, .scene.item) .scene-text { grid-column: 1; grid-row: 2; padding-top: 0; }
}

/* ---------- composer: a neon border that runs round the pill, and suggestions that glitch in ---------- */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.composer {
  position: relative; --hint-left: 54px; border-width: 2px;
  background: linear-gradient(#120a20, #120a20) padding-box, conic-gradient(from var(--spin), var(--pink), var(--orange), var(--gold), var(--cyan), #7b5cff, var(--pink)) border-box;
  animation: composer-spin 5s linear infinite, composer-breathe 3.2s ease-in-out infinite, composer-jolt 9s steps(1) infinite;
}
@keyframes composer-spin { to { --spin: 360deg; } }
@keyframes composer-breathe { 50% { box-shadow: 0 0 60px rgba(255, 46, 136, 0.42), 0 0 22px rgba(45, 226, 230, 0.22); } }
/* a rare RGB jolt, like the wordmark's */
@keyframes composer-jolt { 0%, 95%, 100% { translate: 0; filter: none; } 96% { translate: 2px 0; filter: hue-rotate(60deg) saturate(1.4); } 97% { translate: -2px 0; } 98% { translate: 1px 0; filter: hue-rotate(-40deg); } }
.composer:focus-within { animation-duration: 3s, 2s, 9s; }
.composer.calling { animation-duration: 1.1s, 1.1s, 9s; }
.composer input::placeholder { color: transparent; } /* the hint below shows instead */
.hint { position: absolute; left: var(--hint-left); right: 130px; top: 50%; translate: 0 -50%; font: 17px var(--body); color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; transition: opacity 140ms ease; }
.hint.suggesting { color: var(--dim); }
.hint-key { position: absolute; right: 70px; top: 50%; translate: 0 -50%; font: 600 10px/1 var(--mono); letter-spacing: 1px; padding: 5px 7px; border: 1px solid var(--line); color: var(--mute); opacity: 0; transition: opacity 140ms ease; pointer-events: none; }
.composer:focus-within .hint.suggesting ~ .hint-key { opacity: 1; }
.composer.typing .hint, .composer.typing .hint-key, .composer.flying .hint { opacity: 0; }
@media (max-width: 760px) { .composer { --hint-left: 48px; } .hint { font-size: 16px; right: 64px; } .hint-key { display: none; } }
@media (hover: none) { .hint { pointer-events: auto; } }
@media (prefers-reduced-motion: reduce) { .composer { animation: none; } }

/* ---------- profile (profile.js): rep, case file, badges, welcome back ---------- */
.rep { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(45, 226, 230, 0.35); background: rgba(10, 6, 18, 0.6); padding: 7px 10px; color: var(--cyan); font: 600 10px/1 var(--mono); letter-spacing: 1.4px; }
.rep-bar { display: inline-block; width: 64px; height: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.rep-bar.big { width: 100%; height: 8px; }
.rep-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--pink)); box-shadow: 0 0 10px rgba(45, 226, 230, 0.6); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.casefile-n:not(:empty) { margin-left: 6px; padding: 2px 6px; background: var(--pink); color: #1a0612; font: 700 10px/1.2 var(--mono); }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(420px, 100vw); height: 100dvh; max-height: none; max-width: none; border: 0; border-left: 1px solid rgba(45, 226, 230, 0.4); border-radius: 0; padding: 22px; background: #0f0819; color: var(--dim); display: flex; flex-direction: column; gap: 22px; overflow-y: auto; }
.drawer:not([open]) { display: none; }
.drawer[open] { animation: drawer-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.drawer::backdrop { background: rgba(10, 6, 18, 0.6); backdrop-filter: blur(4px); }
.drawer section { display: flex; flex-direction: column; gap: 10px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-close { font-size: 20px; line-height: 1; width: 34px; height: 34px; justify-content: center; }
.drawer-level { font: 400 44px/1 var(--display); }
.crew-input { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--ink); padding: 10px 12px; font: 15px var(--body); }
.crew-input:focus { outline: none; border-color: var(--cyan); }
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.badge { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px dashed var(--line); opacity: 0.5; }
.badge strong { color: var(--ink); font-size: 13px; }
.badge span { font-size: 11px; color: var(--mute); }
.badge.got { opacity: 1; border-style: solid; border-color: var(--gold); background: rgba(255, 194, 75, 0.08); }
.badge.got strong::before { content: "★ "; color: var(--gold); }
.history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.history button { width: 100%; display: flex; justify-content: space-between; gap: 12px; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 10px 2px; color: var(--ink); font-size: 14px; }
.history button:hover { color: var(--cyan); }
.history i { font-style: normal; font-size: 11px; color: var(--mute); flex: none; }
.sc-note.small { font-size: 12px; }
.toast { position: fixed; z-index: 60; left: 50%; top: 84px; translate: -50% 0; display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 12px 22px; background: rgba(15, 8, 25, 0.95); border: 1px solid var(--gold); box-shadow: 0 0 40px rgba(255, 194, 75, 0.35); animation: toast-in 0.45s steps(5) both; }
.toast-k { font: 600 10px/1 var(--mono); letter-spacing: 2px; color: var(--gold); }
.toast strong { font: 400 26px/1 var(--display); color: var(--ink); text-transform: uppercase; }
.toast.out { opacity: 0; transition: opacity 0.5s; }
@keyframes toast-in { 0% { opacity: 0; transform: translateY(-10px) skewX(-8deg); text-shadow: 3px 0 var(--cyan); } 60% { transform: translateX(3px); } 100% { opacity: 1; transform: none; } }
/* Returning visitors: rank, rep and the last question in one line, in place of the deck. */
.rep-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 24px 0 30px; }
.rl-chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--cyan); font: 600 11px/1 var(--mono); letter-spacing: 1.6px; color: var(--cyan); }
.rl-bar { width: 56px; height: 4px; background: rgba(255, 255, 255, 0.12); }
.rl-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--cyan)); }
.rl-pts { font-size: 16px; color: var(--dim); }
.rl-div { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.2); }
.pickup-q { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font-size: 16px; color: var(--mute); text-align: left; }
.pickup-q strong { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 46, 136, 0.6); text-underline-offset: 4px; }
.pickup-q svg { width: 16px; height: 16px; flex: none; stroke: var(--pink); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: translate 200ms var(--ease-out); }
.pickup-q:hover strong { text-decoration-color: var(--pink); }
.pickup-q:hover svg { translate: 3px 0; }
@media (max-width: 760px) { .rep-line { gap: 10px 14px; margin: 16px 0 20px; } .rl-div { display: none; } .pickup-q, .rl-pts { font-size: 15px; } }
.onboard { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: -8px 0 22px; padding: 14px 16px; border: 1px solid rgba(45, 226, 230, 0.35); background: rgba(10, 6, 18, 0.7); max-width: 720px; }
.onboard .sc-k { width: 100%; }
.onboard-row { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }
.onboard .crew-input { flex: 1; min-width: 180px; }
@media (max-width: 760px) { .rep .rep-bar { display: none; } .casefile-btn > span:first-child { display: none; } .casefile-btn::before { content: "☰"; } }
@media (prefers-reduced-motion: reduce) { .toast, .drawer[open] { animation: none; } }

/* the composer's gamepad: face buttons blink like a controller waiting for input */
.composer .pad { color: var(--pink); }
.composer .pad .btn-a { fill: var(--cyan); stroke: none; animation: pad-blink 1.6s steps(1) infinite; }
.composer .pad .btn-b { fill: var(--gold); stroke: none; animation: pad-blink 1.6s steps(1) infinite 0.8s; }
@keyframes pad-blink { 50% { opacity: 0.25; } }
.composer:focus-within .pad, .composer.calling .pad { color: var(--cyan); filter: drop-shadow(0 0 6px rgba(45, 226, 230, 0.7)); }
/* Sayo's spark, turning slowly beside "Powered by sayo" */
.powered { display: inline-flex; align-items: center; gap: 4px; }
.powered b { font-weight: 800; letter-spacing: -0.02em; }
.sayo-star { width: 13px; height: 13px; color: #ff6a3d; align-self: flex-start; margin-top: -2px; animation: star-spin 6s linear infinite, star-pulse 2.4s ease-in-out infinite; }
.powered:hover .sayo-star { animation-duration: 1.2s, 2.4s; }
@keyframes star-spin { to { rotate: 360deg; } }
@keyframes star-pulse { 50% { scale: 1.18; } }
@media (prefers-reduced-motion: reduce) { .composer .pad circle, .sayo-star { animation: none; } }

/* mission objectives and the 100% board: tick boxes kept on this device */
.sc-objs, .sc-reqs { display: flex; flex-direction: column; border: 1px solid var(--line); }
.sc-obj-head { display: flex; justify-content: space-between; padding: 12px 16px; }
.sc-obj, .sc-req { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; color: var(--ink); font-size: 15px; }
.sc-obj:hover, .sc-req:hover { background: rgba(45, 226, 230, 0.06); }
.sc-obj-box { width: 22px; height: 22px; flex: none; border: 1px solid var(--line); display: grid; place-items: center; }
.on > .sc-obj-box { background: var(--cyan); border-color: var(--cyan); }
.on > .sc-obj-box::after { content: "✓"; color: #0a0612; font-weight: 800; font-size: 14px; }
.sc-obj.on .sc-obj-t, .sc-req.on .sc-req-t { color: var(--mute); text-decoration: line-through; text-decoration-color: rgba(45, 226, 230, 0.6); }
.sc-obj-t, .sc-req-t { flex: 1; }
.sc-spoiler { margin: 10px 0 0; padding: 10px 14px; border: 1px solid rgba(255, 194, 75, 0.4); color: var(--gold); font-size: 13px; }
.sc-more { display: flex; flex-direction: column; gap: 10px; }
.sc-hundred { display: flex; flex-direction: column; gap: 16px; }
.sc-meter { height: 12px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.sc-meter-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--pink)); box-shadow: 0 0 14px rgba(45, 226, 230, 0.5); transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sc-req.on { background: rgba(45, 226, 230, 0.05); }
.sc-req-w { font: 400 22px/1 var(--display); padding: 6px 10px; background: rgba(255, 255, 255, 0.05); color: var(--dim); }
.sc-req-w.big { background: rgba(255, 46, 136, 0.15); color: var(--pink); }
/* radio: a dial of stations, then art beside the tracklist */
.sc-radio { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sc-dial { position: relative; display: flex; overflow-x: auto; border: 1px solid var(--line); scrollbar-width: thin; }
.sc-station { flex: 1 0 150px; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; text-align: left; background: none; border: 0; border-left: 1px solid var(--line); color: var(--dim); }
.sc-station:first-child { border-left: 0; }
.sc-station strong { font-size: 14px; font-weight: 500; color: var(--dim); }
.sc-station.on { background: rgba(45, 226, 230, 0.1); }
.sc-station.on .sc-k { color: var(--cyan); }
.sc-station.on strong { color: var(--ink); font-weight: 700; }
.sc-radio-split { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 24px; align-items: start; }
.sc-radio-art { position: sticky; top: 110px; aspect-ratio: 520 / 420; background: var(--art) center / cover; border: 1px solid rgba(255, 46, 136, 0.4); }
.sc-radio-art.on-air { aspect-ratio: 16 / 11; border-color: var(--cyan); } /* video plus its title bar */
/* Stacking contexts around the slot (the scene's animations, the sticky slot) would trap the floating player under later scenes. */
:is(.scene, .scene-text):has(.now-playing.pip) { animation: none !important; }
.sc-radio-art:has(.now-playing.pip) { position: static; }
.sc-tracks-more { margin: 12px 16px; align-self: flex-start; }
.sc-tracks { display: flex; flex-direction: column; border: 1px solid var(--line); }
.sc-track { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
.sc-track-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sc-track-t strong { color: var(--ink); font-size: 15px; }
.sc-track-t span { color: var(--mute); font-size: 12px; }
.sc-play { width: 36px; height: 36px; flex: none; border: 0; background: rgba(255, 255, 255, 0.08); color: var(--ink); font-size: 13px; }
.sc-play:hover { background: var(--sun); color: #1a0612; }
.sc-track.playing { background: rgba(45, 226, 230, 0.08); }
.sc-track.playing .sc-play { background: var(--cyan); color: #0a0612; }
/* Floating player: above the composer, or beside it when the screen has room. */
/* The player fills the radio art slot; .pip floats it above the composer, or beside it when the screen has room. */
.now-playing { position: absolute; inset: 0; display: flex; flex-direction: column; background: linear-gradient(180deg, #160c26, #0d0717); }
.np-frame { order: -1; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.now-playing:not(.pip) .np-frame { flex: 1; aspect-ratio: auto; }
.now-playing:not(.pip) .np-mini { display: none; }
.now-playing.pip { position: fixed; inset: auto var(--gutter) calc(var(--dock) - 20px) auto; z-index: 21; width: min(352px, calc(100vw - 2 * var(--gutter))); overflow: hidden; border: 1px solid transparent; border-radius: 16px; background: linear-gradient(180deg, #170d28, #0d0717) padding-box, linear-gradient(125deg, var(--pink), var(--orange) 45%, var(--cyan)) border-box; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 48px rgba(255, 46, 136, 0.2); animation: np-in 320ms var(--ease-out); }
@media (min-width: 1380px) { .now-playing.pip { bottom: 14px; } }
.now-playing.pip .np-head { cursor: grab; touch-action: none; user-select: none; }
.now-playing.dragging { box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), 0 0 64px rgba(45, 226, 230, 0.28); }
.now-playing.dragging .np-head { cursor: grabbing; }
.now-playing.dragging .np-frame { pointer-events: none; }
.now-playing.snap { transition: left 260ms var(--ease-out), top 260ms var(--ease-out); }
.np-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 12px; }
.np-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.np-text > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-text .sc-k { font-size: 10px; letter-spacing: 1.6px; }
.np-text strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.np-text > span:last-child:not(.sc-k) { font-size: 12.5px; color: var(--mute); }
.np-btn { width: 32px; height: 32px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--dim); transition: background 160ms ease, color 160ms ease; }
.np-btn:hover { background: rgba(255, 255, 255, 0.14); color: var(--ink); }
.np-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.np-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.now-playing.pip.mini .np-frame { height: 0; aspect-ratio: auto; } /* hidden, still playing */
/* The visualiser tile, where cover art would sit. */
.np-eq { display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 40px; height: 40px; padding: 10px 0; flex: none; border-radius: 10px; background: linear-gradient(135deg, rgba(255, 46, 136, 0.22), rgba(45, 226, 230, 0.16)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.np-eq i { width: 4px; height: 35%; border-radius: 2px; background: var(--pink); animation: np-eq 0.9s ease-in-out infinite alternate; }
.np-eq i:nth-child(2) { background: var(--orange); animation-delay: -0.3s; animation-duration: 0.7s; }
.np-eq i:nth-child(3) { background: var(--cyan); animation-delay: -0.6s; animation-duration: 1.1s; }
@keyframes np-eq { to { height: 100%; } }
@keyframes np-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
/* Tucked into an edge: just the visualiser, rounded on the inside; the video keeps playing out of sight. */
.now-playing.pip.stashed { width: 44px; height: 84px; cursor: pointer; }
.now-playing.stashed[data-side="left"] { border-radius: 0 14px 14px 0; border-left: 0; }
.now-playing.stashed[data-side="right"] { border-radius: 14px 0 0 14px; border-right: 0; }
.now-playing.stashed .np-head { height: 100%; padding: 0; justify-content: center; }
.now-playing.stashed :is(.np-text, .np-btn) { display: none; }
.now-playing.stashed .np-eq { width: 100%; height: 100%; padding: 26px 0; border-radius: 0; background: none; box-shadow: none; }
.now-playing.stashed .np-frame { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.now-playing.stashed:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .now-playing, .np-eq i { animation: none; } .np-eq i { height: 70%; } }
@media (max-width: 1000px) { .sc-radio-split { grid-template-columns: 1fr; } .sc-radio-art { position: relative; top: auto; aspect-ratio: 16 / 11; } .sc-radio-art:not(.on-air) { display: none; } }

/* Phone header: wordmark, case file and sound only. "Powered by" is in the footer; the rank is on the welcome's rep
   line and in the case file. (These come last so they win over the base .powered and .rep rules above.) */
.top-right > * { white-space: nowrap; }
@media (max-width: 1000px) {
  .top-right .powered, .top-right .rep { display: none; }
}
@media (max-width: 760px) {
  .top-right { gap: 8px; }
  /* "Pick up: <question> →" as one line of text that wraps, not three squeezed columns. */
  .rep-line .pickup-q { display: block; flex-basis: 100%; line-height: 1.45; }
  .rep-line .pickup-q > span { margin-right: 6px; }
  .rep-line .pickup-q svg { display: inline-block; vertical-align: -3px; margin-left: 6px; }
}

/* Welcome art as ambience, not a poster: dimmed and desaturated, near-solid night behind the title, rep line and tiles
   (the tiles are the colour), the scene showing only softly on the right. Phones: a faint glow at the top. */
.welcome-art { filter: saturate(0.7) brightness(0.55); }
.welcome-art::after {
  background:
    linear-gradient(90deg, var(--night) 0%, rgba(10, 6, 18, 0.93) 42%, rgba(10, 6, 18, 0.6) 72%, rgba(10, 6, 18, 0.4) 100%),
    linear-gradient(transparent 35%, var(--night) 95%);
}
@media (max-width: 760px) {
  .welcome-art { background-position: 70% top; }
  .welcome-art::after { background: linear-gradient(rgba(10, 6, 18, 0.45), rgba(10, 6, 18, 0.85) 28%, var(--night) 48%); }
}

/* ---------- launch: spoiler switch, dock note, footer, info popups, cookie choice, suggestions ---------- */
/* Spoilers: in the header, set before asking. Off is calm; on glows gold so nobody forgets it's on. */
.spoilers { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px 6px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--dim); font: 600 12px/1 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, scale 140ms var(--ease-out); }
.spoilers:active { scale: 0.97; }
.sp-track { position: relative; width: 30px; height: 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); transition: background-color 180ms ease; }
.sp-knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transition: translate 220ms var(--ease-out); }
.sp-state { min-width: 2.2em; color: var(--mute); }
.spoilers[aria-checked="true"] { border-color: var(--gold); background: rgba(255, 194, 75, 0.12); color: var(--ink); box-shadow: 0 0 18px rgba(255, 194, 75, 0.25); }
.spoilers[aria-checked="true"] .sp-track { background: var(--gold); }
.spoilers[aria-checked="true"] .sp-knob { translate: 12px 0; background: #1a0612; }
.spoilers[aria-checked="true"] .sp-state { color: var(--gold); }
.spoilers:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .spoilers:hover { border-color: rgba(255, 255, 255, 0.3); } }
@media (prefers-reduced-motion: reduce) { .sp-knob, .spoilers { transition: none; } }

.privacy { display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
.privacy svg { flex: none; width: 15px; height: 15px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Footer: the wordmark and a quiet "Powered by sayo", then the four popups. */
.foot { display: block; padding: 28px var(--gutter) calc(var(--dock) + 8px); font-size: 13px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1100px; margin: 0 auto; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.foot-mark { font: 24px/1 var(--display); letter-spacing: 0.5px; }
.foot .powered { display: inline-flex; align-items: center; gap: 5px; color: var(--mute); font-size: 13px; text-decoration: none; }
.sayo-mark { display: inline-flex; align-items: flex-start; gap: 1px; color: var(--dim); font-weight: 800; letter-spacing: -0.04em; font-size: 15px; }
.foot .powered:hover .sayo-mark { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; max-width: 1100px; margin: 14px auto 0; }
.foot-links button { border: 0; background: none; color: var(--dim); font-size: 13px; padding: 8px 8px; border-radius: 8px; }
.foot-links button:focus-visible { outline: 2px solid var(--cyan); }
@media (hover: hover) and (pointer: fine) { .foot-links button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); } }

dialog.info { width: min(560px, calc(100vw - 32px)); max-height: min(80vh, 720px); overflow-y: auto; line-height: 1.55; font-size: 14px; }
dialog.info h3 { margin: 18px 0 4px; font: 600 11px/1.4 var(--mono); letter-spacing: 1.4px; text-transform: uppercase; color: var(--cyan); }
dialog.info p { margin: 0 0 10px; }
dialog.info form[method="dialog"] { margin-top: 16px; }
dialog.info .link { font-size: inherit; }
dialog.info .credits { margin: 0; }
dialog.info .credits div { grid-template-columns: 130px 1fr; }
@media (max-width: 760px) { dialog.info { padding: 20px; } dialog.info .credits div { grid-template-columns: 1fr; } }

.ghost.primary { background: var(--sun); color: #1a0612; }
.consent { position: fixed; z-index: 40; left: 50%; bottom: calc(var(--dock) - 28px); translate: -50% 0; width: min(720px, calc(100vw - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); font-size: 13px; color: var(--dim); animation: consent-in 260ms var(--ease-out); }
.consent p { margin: 0; }
.consent div { display: flex; gap: 8px; flex: none; }
@keyframes consent-in { from { opacity: 0; translate: -50% 12px; } }
@media (max-width: 760px) { .consent { flex-direction: column; align-items: stretch; bottom: calc(var(--dock) - 36px); } .consent div > * { flex: 1; justify-content: center; min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }

#suggest-form { display: grid; gap: 10px; }
#suggest-form p { margin: 0; }
.sg-q { color: var(--ink); font-size: 13px; }
.sg-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.sg-kinds label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; cursor: pointer; }
.sg-kinds label:has(:checked) { border-color: var(--pink); color: var(--ink); background: rgba(255, 46, 136, 0.1); }
.sg-kinds input { accent-color: var(--pink); margin: 0; }
#sg-text { width: 100%; resize: vertical; min-height: 110px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.25); color: var(--ink); font: 15px/1.5 var(--body); }
#sg-text:focus { outline: 2px solid var(--pink); outline-offset: 0; }
.sg-note, .sg-msg { font-size: 12px; color: var(--mute); }
.sg-msg:empty { display: none; }
.sg-actions { display: flex; justify-content: flex-end; gap: 8px; }
.bad svg { width: 14px; height: 14px; }

/* Phone header: wordmark, spoilers and sound fit on one row at 375px. */
@media (max-width: 760px) {
  .spoilers { min-height: 36px; padding: 5px 10px; gap: 6px; font-size: 10px; letter-spacing: 0.8px; }
  .sp-state { display: none; } /* the switch shows the state; aria-checked says it */
  #new { font-size: 0; gap: 0; padding: 9px; } /* icon only; aria-label names it */
  #new svg { width: 16px; height: 16px; }
}
@media (max-width: 400px) {
  .top { gap: 10px; }
  .top .pill-unofficial { display: none; }
  .top .wordmark { font-size: 19px; }
  .top-right { gap: 6px; }
  .top-right .casefile-btn { padding: 8px 10px; gap: 6px; }
  .top-right:has(#new:not([hidden])) #sound { display: none; } /* room for New question while an answer is open */
}
.pill-unofficial { white-space: nowrap; }
@media (max-width: 1200px) { .top .pill-unofficial { display: none; } } /* the dock note says it; the header keeps room for spoilers */
/* The logo (art/logo.webp, from the brand files). */
.top .logo { display: block; height: 56px; width: auto; margin: -8px 0; } /* overhangs the bar's padding, not its height */
.foot-logo { display: block; height: 44px; width: auto; }
@media (max-width: 760px) { .top .logo { height: 42px; margin: -6px 0; } .foot-logo { height: 36px; } }
@media (max-width: 400px) { .top .logo { height: 36px; } }
/* Small tablets (iPad mini, 744 wide) get the phone layout but have the room for all six starters. */
@media (min-width: 600px) and (max-width: 760px) { .starters li:nth-child(n + 4) { display: revert; } .starters li:nth-child(6) { grid-column: span 2; } }
.sc-card.seen { animation: none; } /* already on screen before "Show more" or a pick: no second entrance */
.sayo-mark { align-items: center; gap: 6px; letter-spacing: -0.01em; font-weight: 700; }
.sayo-logo { width: 20px; height: 20px; flex: none; }
