/* GETAWAYS UI v2 — night base + the launch screen's teal / orange / magenta split (UI_V2.md, palette_tokens.json).
   Display type: Exo 2 Black Italic ("Exo2Callout", css/callouts.css). Body type: Exo 2 SemiBold/ExtraBold ("Exo2UI", subset WOFF).
   The hero accent (--hc) follows the picked runner: #app.hc-dash / hc-vega / hc-ghost (ui.setHero).
   Reserved colour code (ENV_BIBLE v2): Coin Gold = coins/cash only, Part Cyan = parts only, Hit Red = run-ending danger only,
   Tag Lime = crew tag only, drone green / amber / red = the drone threat light only. Amber is NOT used in UI chrome. */
@font-face { font-family: "Exo2UI"; src: url("../assets/fonts/exo2-ui.woff") format("woff"); font-weight: 600 800; font-style: normal; font-display: swap; }
:root {
  --bg-0: #0B0A14; --bg-1: #14121F; --surface-1: #1B1830; --surface-2: #242040; --surface-3: #2F2A52; --keyline: #14141E;
  --line: rgba(244,238,248,.14); --line-2: rgba(244,238,248,.28); --glass: rgba(20,18,34,.78);
  --text-hi: #F4EEF8; --text: #DDD5EA; --text-dim: #A69CC0; --text-ink: #14121F;
  --dash: #FF732E; --dash-lt: #FFCFB0; --dash-dk: #6B2300;
  --vega: #109C80; --vega-lt: #5FD8BC; --vega-dk: #003D32;
  --ghost: #FF5CC8; --ghost-lt: #FFA6E0; --ghost-dk: #5C0A46;
  --split: linear-gradient(90deg, var(--vega) 0 33.3%, var(--dash) 33.3% 66.6%, var(--ghost) 66.6% 100%);
  --warden: #8861FF; --warden-lt: #B9A3FF; --warden-dk: #2A1C66;
  --hit: #FF3B4E; --coin: #FF9C33; --part: #38CDFF;
  --hc: var(--dash); --hc-lt: var(--dash-lt); --hc-dk: var(--dash-dk); --glow: 0 0 0 transparent;
  --lean: 12px;
  --disp: "Exo2Callout", "Exo 2", system-ui, sans-serif;
  --font: "Exo2UI", "Exo 2", system-ui, sans-serif;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);   /* cl-19: 0 in portrait today; future-proofs notch-side layouts */
}
#app.hc-dash  { --hc: var(--dash);  --hc-lt: var(--dash-lt);  --hc-dk: var(--dash-dk); }
#app.hc-vega  { --hc: var(--vega);  --hc-lt: var(--vega-lt);  --hc-dk: var(--vega-dk); --glow: none; }   /* VEGA teal is matte: no glow on it */
#app.hc-ghost { --hc: var(--ghost); --hc-lt: var(--ghost-lt); --hc-dk: var(--ghost-dk); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg-1); overflow: hidden; overscroll-behavior: none; touch-action: none; }
body { font-family: var(--font); font-weight: 700; color: var(--text); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#app { position: fixed; inset: 0; overflow: hidden; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
.screen { position: absolute; inset: 0; }
.disp, .chip, .tap-run, .pill, .prompt, .banner, .go, .res-head, .panel h2, .hw h3 { font-family: var(--disp); font-weight: 900; font-style: italic; text-transform: uppercase; }

/* ---------------------------------------------------------------- HUD */
#hud { position: absolute; inset: 0 var(--sar) 0 var(--sal); pointer-events: none; }
.hud-top { position: absolute; left: 0; right: 0; top: calc(var(--sat) + 10px); display: flex; justify-content: space-between; padding: 0 12px; }
.hud-left, .hud-right { display: flex; gap: 8px; align-items: center; }
/* HUD chips: glass speed-cut parallelograms (one lean for every cut) */
.chip { position: relative; display: flex; align-items: center; gap: 7px; padding: 0 14px 0 12px; min-height: 34px; background: var(--glass);
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%); font-size: 18px; line-height: 1; color: var(--text-hi);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-variant-numeric: tabular-nums; }
.chip small { font-family: var(--font); font-weight: 800; font-style: normal; font-size: 10px; letter-spacing: .14em; color: var(--text); }   /* audit 1128 L7: TRICKS label 10 px in --text (6.5:1 even over a white scene through the glass; was 9 px --text-dim, 3.6:1) */
.chip.score { flex-direction: column; align-items: flex-end; gap: 2px; padding: 5px 14px 4px; }
.chip.cash b { color: var(--coin); }
.chip.pop { animation: pop .18s ease-out; }
@keyframes pop { 0% { transform: scale(1.18); } 100% { transform: scale(1); } }
.ico { display: inline-block; width: 18px; height: 18px; flex: none; }
.ico.coin { border-radius: 50%; background: radial-gradient(circle at 38% 32%, #FFE2B8 0, var(--coin) 46%, #B8641C 100%); box-shadow: 0 0 0 2px var(--keyline); }
/* cash: a Coin Gold banded bill (never green: green is the drone's spot light) */
.ico.bill { width: 22px; height: 14px; border-radius: 2px; background: linear-gradient(#FFC27A, var(--coin) 55%, #B8641C); box-shadow: 0 0 0 2px var(--keyline); position: relative; }
.ico.bill::after { content: ""; position: absolute; left: 8px; top: 0; width: 5px; height: 14px; background: #FFE2B8; opacity: .85; }
.pause-btn { pointer-events: auto; width: 48px; height: 44px; display: flex; gap: 6px; align-items: center; justify-content: center; background: var(--glass); cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.pause-btn i { width: 5px; height: 16px; background: var(--text-hi); transform: skewX(-12deg); }
/* ESCAPE LINE (was the progress bar): hero-colour fill trails the runner chevron; the Seal's shutter front is violet; the ward gate ends the line */
.progress { position: absolute; left: 14px; right: 22px; top: calc(var(--sat) + 62px); height: 14px; }
.progress .track { position: absolute; inset: 4px 0; background: rgba(20,18,34,.78); box-shadow: 0 0 0 1px var(--line-2); transform: skewX(-20deg); }
.progress .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, transparent, var(--hc)); }
.progress .mark { position: absolute; top: -5px; width: 6px; height: 14px; margin-left: -3px; }
.progress .mark.you { top: -6px; width: 14px; height: 16px; margin-left: -7px; background: #fff; clip-path: polygon(0 0, 60% 0, 100% 50%, 60% 100%, 0 100%, 40% 50%); }
.progress .mark.rival { background: var(--text-dim); box-shadow: 0 0 0 1px var(--keyline); }   /* the guard: neutral tick (the guard dot is the real read) */
.progress .flag { position: absolute; right: -9px; top: -4px; width: 11px; height: 14px; border: 2.5px solid var(--warden-lt); border-bottom: 0; box-shadow: inset 0 -3px 0 -1px var(--warden-lt); }
/* Guard proximity: a small dot, red only when he is close (gap < 2 m), then the GUARD ON YOU tape
   (audit 1128 M8: ink text on Hit Red = 5.3:1, AA; white was 3.5:1. Wording unchanged.) */
.gap { position: absolute; left: 14px; top: calc(var(--sat) + 86px); display: flex; align-items: center; gap: 7px; }
.gap .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--text-dim); box-shadow: 0 0 0 2px rgba(20,18,34,.8); flex: none; }
.gap b { display: none; font-family: var(--disp); font-style: italic; font-weight: 900; font-size: 12px; letter-spacing: .06em; color: var(--text-ink); background: var(--hit); padding: 3px 9px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.gap.low .dot { background: var(--hit); } .gap.low b { display: block; }
/* STYLE meter (cl-15b): top-left column under the guard dot; rank word + 4-segment skewed bar + multiplier.
   Empty = dim STYLE label (learnable slot). Rank up: accent flash; rank down: red tint. Pops are JS (js/style.js popFrames). */
.style-m { position: absolute; left: 14px; top: calc(var(--sat) + 110px); width: 140px; pointer-events: none; }
.style-m .sm-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; height: 20px; }
.style-m b { display: inline-block; font-family: var(--disp); font-style: italic; font-weight: 900; font-size: 17px; letter-spacing: .04em; line-height: 20px;
  color: var(--hc-lt); text-shadow: 0 1px 0 rgba(20,18,34,.9), 0 0 5px rgba(20,18,34,.85); white-space: nowrap; transform-origin: 0 60%; }
.style-m em { font-family: var(--disp); font-style: italic; font-weight: 900; font-size: 13px; color: #fff; text-shadow: 0 1px 0 rgba(20,18,34,.9), 0 0 4px rgba(20,18,34,.85); }
.style-m .sm-bar { position: relative; margin-top: 3px; width: 134px; height: 7px; background: rgba(20,18,34,.78); box-shadow: 0 0 0 1px var(--line-2); transform: skewX(-20deg); overflow: hidden; }
.style-m .sm-bar i { position: absolute; inset: 0; background: var(--hc-lt); transform-origin: 0 50%; transform: scaleX(0); transition: transform .15s linear; }
.style-m .sm-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(25% - 1px), rgba(20,18,34,.95) calc(25% - 1px) calc(25% + 1px), transparent calc(25% + 1px) calc(50% - 1px), rgba(20,18,34,.95) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px) calc(75% - 1px), rgba(20,18,34,.95) calc(75% - 1px) calc(75% + 1px), transparent calc(75% + 1px)); }
.style-m.r0 b { font-size: 11px; letter-spacing: .14em; color: var(--text-dim); }
.style-m.r5 .sm-bar i { background: linear-gradient(90deg, var(--hc-lt), #fff); }
.style-m.r5 b { color: #fff; text-shadow: 0 1px 0 rgba(20,18,34,.9), 0 0 6px var(--hc); }
.style-m.up b { color: #fff; }
.style-m.down b { color: var(--hit); }
#app.lefty .style-m { left: auto; right: 14px; }
.rm .style-m .sm-bar i { transition: none; }
@media (prefers-reduced-motion: reduce) { .style-m .sm-bar i { transition: none; } }
.hud-side { position: absolute; right: 12px; top: calc(var(--sat) + 88px); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.speed { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.speed-bar { position: relative; width: 92px; height: 9px; background: rgba(20,18,34,.78); box-shadow: 0 0 0 1px var(--line-2); transform: skewX(-20deg); overflow: hidden; }
.speed-bar i { display: block; height: 100%; width: 30%; background: var(--hc-lt); transition: width .12s linear; }
.speed-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(33.3% - 1px), rgba(20,18,34,.95) calc(33.3% - 1px) calc(33.3% + 1px), transparent calc(33.3% + 1px) calc(66.6% - 1px), rgba(20,18,34,.95) calc(66.6% - 1px) calc(66.6% + 1px), transparent calc(66.6% + 1px)); }
.speed span { font-family: var(--disp); font-size: 11px; letter-spacing: .1em; font-style: italic; font-weight: 900; color: var(--text-hi); text-shadow: 0 1px 0 rgba(20,18,34,.8), 0 0 4px rgba(20,18,34,.8); }
.boost { position: relative; width: 50px; height: 50px; }
.boost svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.boost .bg { fill: rgba(20,18,34,.72); stroke: rgba(244,238,248,.2); stroke-width: 4; }
.boost .fg { fill: none; stroke: var(--hc-lt); stroke-width: 4; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; transition: stroke-dashoffset .2s; }
/* BOOST RING (Anton 2026-11-20: keep the ring and the TAP label always visible, make the states read).
   charging: a segmented tracker fill in the hero colour, TAP dim and outlined. full: a white disc ring with the hero-colour glow (matte on VEGA), TAP solid.
   A tap while empty shakes the ring. */
.boost .seg { fill: none; stroke: rgba(20,18,34,.96); stroke-width: 4.8; stroke-dasharray: 1.5 4.155; }
.boost span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--disp); font-size: 11px; font-style: italic; font-weight: 900; color: transparent; -webkit-text-stroke: 1px rgba(221,213,234,.8); letter-spacing: .04em; }
.boost::before { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: 0;
  background: conic-gradient(from 0deg, transparent 0 78%, rgba(255,255,255,.95) 96%, transparent 100%);
  -webkit-mask: radial-gradient(circle closest-side, transparent 72%, #000 75%, #000 90%, transparent 93%); mask: radial-gradient(circle closest-side, transparent 72%, #000 75%, #000 90%, transparent 93%); }
.boost::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; border: 2px solid var(--hc-lt); opacity: 0; }
.boost.full span { color: #fff; -webkit-text-stroke: 0; text-shadow: 0 1px 0 rgba(20,18,34,.8), 0 0 6px var(--hc); animation: pulse .6s infinite alternate; }
.boost.full .fg { stroke: #fff; }
.boost.full .bg { stroke: var(--hc-lt); }
.boost.full svg { animation: boostGlow .7s infinite alternate; }
.boost.snap::before { animation: boostShine .55s ease-out; }
.boost.snap::after { animation: boostPop .5s ease-out; }
.boost.nope { animation: boostNope .3s; }
@keyframes boostGlow { from { filter: drop-shadow(0 0 1px var(--hc)); } to { filter: drop-shadow(0 0 6px var(--hc)); } }
#app.hc-vega .boost.full svg { animation: none; filter: none; }
@keyframes boostShine { from { opacity: 1; transform: rotate(-90deg); } to { opacity: 0; transform: rotate(270deg); } }
@keyframes boostPop { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
@keyframes boostNope { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-4px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }
.rm .boost, .rm .boost *, .rm .boost::before, .rm .boost::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .boost, .boost *, .boost::before, .boost::after, .chip.pop, .go.on, .banner, .prompt { animation: none !important; transition: none !important; } }
/* audit 1128 L5: the in-game toggle (#app.rm) stops the same animations as the OS setting. GO! keeps showing under both,
   as a plain fade (no scale) instead of vanishing (its base opacity is 0, so animation: none would hide it). */
#app.rm .chip.pop, #app.rm .go.on, #app.rm .banner, #app.rm .prompt { animation: none !important; transition: none !important; }
#app.rm .go.on { animation: gofade .7s linear forwards !important; }
@media (prefers-reduced-motion: reduce) { .go.on { animation: gofade .7s linear forwards !important; } }
@keyframes gofade { 0% { opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.15); } }

.dial.teach::after { content: "TAP AS YOU LAND"; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; white-space: nowrap; font-size: 10px; letter-spacing: .08em; color: #fff; text-shadow: 0 1px 2px #000; }
.popup { position: absolute; left: 12px; right: 12px; top: 29%; text-align: center; pointer-events: none; }
.popup .p.long .name { font-size: clamp(17px, 5vw, 28px); }
.popup .p { display: block; font-family: var(--disp); font-style: italic; font-weight: 900; text-transform: uppercase; animation: popin .9s ease-out forwards; }
.popup .p .name { font-size: clamp(20px, 6.2vw, 34px); letter-spacing: .02em; color: #fff; text-shadow: 0 2px 0 rgba(20,18,34,.7); -webkit-text-stroke: 1px rgba(20,18,34,.6); }
.popup .p .grade { display: block; font-size: clamp(14px, 4.4vw, 22px); margin-top: 2px; letter-spacing: .1em; }
.popup .p .pts { display: block; font-size: clamp(16px, 5vw, 26px); color: var(--text-hi); text-shadow: 0 2px 0 rgba(20,18,34,.7); }
.popup .clean .grade { color: var(--hc-lt); text-shadow: 0 2px 0 rgba(20,18,34,.7); }
.popup .sloppy .grade { color: var(--text-dim); }
.popup .crash .grade { color: #ffd0d6; text-shadow: 0 2px 0 rgba(20,18,34,.7); }
.popup .bad .name { color: #fff; -webkit-text-stroke: 1.5px #5a1020; }
.popup .bad .grade { color: #ffe2e6; }
.popup .mega .name { color: #fff; font-size: clamp(26px, 8vw, 44px); }
@keyframes popin { 0% { opacity: 0; transform: scale(.6) translateY(10px); } 14% { opacity: 1; transform: scale(1.12); } 26% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }

/* onboarding prompt: a speed-cut slab with a hero-colour leading edge */
.prompt { position: absolute; left: 50%; bottom: calc(var(--sab) + 13%); transform: translateX(-50%); padding: 10px 24px; font-size: clamp(13px, 3.8vw, 17px); letter-spacing: .05em; color: var(--text-hi);
  background: rgba(20,18,34,.88); box-shadow: inset 4px 0 0 var(--hc); clip-path: polygon(var(--lean) 0, 100% 0, calc(100% - var(--lean)) 100%, 0 100%); opacity: 0; transition: opacity .2s;
  /* cl-19 (Neon touch QA r2): never edge to edge: 16 px side margins inside the safe area (#hud is already inset by --sal/--sar);
     a long line wraps to two balanced lines instead */
  box-sizing: border-box; max-width: calc(100% - 32px); width: max-content; text-align: center; white-space: normal; text-wrap: balance; }
.prompt.on { opacity: 1; }
/* first-ever drone: tiny non-blocking hint, above the prompt line, never takes input */
.hint { position: absolute; left: 50%; bottom: calc(var(--sab) + 21%); transform: translateX(-50%); padding: 3px 10px; font-size: clamp(10px, 2.8vw, 12px); font-weight: 800;
  letter-spacing: .1em; color: var(--text-hi); background: rgba(20,18,34,.7); white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
.hint.on { opacity: .95; }
/* save notes (CORE_LOOP_SPEC §4): the hint style outside the HUD so it shows on any screen; never blocks a tap */
.save-note { position: absolute; z-index: 60; top: calc(var(--sat) + 14px); bottom: auto; pointer-events: none; white-space: nowrap; }

/* landing dial: perfect white, clean = hero colour, sloppy = grey, crash = Hit Red (green / amber are left to the drone's threat light) */
.dial { position: absolute; width: 74px; height: 74px; margin: -37px 0 0 -37px; opacity: 0; transition: opacity .12s; pointer-events: none; filter: drop-shadow(0 0 4px rgba(0,0,0,.6)); }
.dial.on { opacity: .9; }
.dial svg { width: 100%; height: 100%; overflow: visible; }
.dial path { fill: none; stroke-width: 7; }
.dial .z-red { stroke: rgba(255,59,78,.6); }
.dial .z-amber { stroke: rgba(166,156,192,.85); }
.dial .z-green { stroke: var(--hc-lt); }
.dial .z-perfect { stroke: #ffffff; stroke-width: 9; }
.dial #dRelease { stroke: #fff; stroke-width: 3.5; stroke-linecap: round; }
.dial #dNeedle { stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.dial #dGhost { stroke: var(--text-dim); stroke-width: 3; stroke-dasharray: 3 3; }
.dial .hub { fill: #fff; }

.danger { position: absolute; inset: 0; pointer-events: none; opacity: 0; box-shadow: inset 0 -60px 90px -10px rgba(255,59,78,.85), inset 0 0 50px rgba(255,59,78,.35); }
.warn { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 50% 100%, rgba(255,59,78,.0) 40%, rgba(255,59,78,.45) 100%); }
.warn.on { animation: warnp .18s infinite alternate; }
@keyframes warnp { from { opacity: .25; } to { opacity: .8; } }
/* audit 1128 M1: reduced motion (in-game toggle = #app.rm, or the OS setting): the warning holds steady, no 2.8 Hz pulse */
#app.rm .warn.on { animation: none; opacity: .5; }
@media (prefers-reduced-motion: reduce) { .warn.on { animation: none; opacity: .5; } }
.flash { position: absolute; inset: 0; pointer-events: none; background: #fff; opacity: 0; }
.go { position: absolute; left: 0; right: 0; top: 38%; text-align: center; font-size: clamp(40px, 15vw, 80px); color: #fff; text-shadow: 0 3px 0 var(--hc-dk); opacity: 0; pointer-events: none; }
.go.on { animation: goin .7s ease-out forwards; }
@keyframes goin { 0% { opacity: 0; transform: scale(2.2); } 20% { opacity: 1; transform: scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: scale(.9); } }

/* ---------------------------------------------------------------- title v5 (key-art rebuild, branch neon-title-v5) */
/* Night base #14121F; billing order: TORQ (lead, orange) > VEGA (teal) & GHOST (magenta) > hero drone (cropped right,
   amber lens only) > mid/far drones & Riot Guard (balcony below, losing ground) > SHIM (Depot doorway easter egg).
   Fixed 390x844 design box scaled by ui.js (--ts); GPU-composited parallax (--px, --py) + 2.0 s reveal (0.8 s return). */
#title { display: flex; align-items: stretch; justify-content: center; background: #14121F;
  --tealL: #8FE3CF; --orngL: #F7C79C; --magL: #F2BCDF; --vteal: #55A693; --vorng: #D6834B; --vmag: #CC7DB3; }
.title-fill { position: absolute; inset: -40px; background: url(../assets/img/title_bg.webp) center / cover; filter: blur(28px) brightness(.36) saturate(.9); display: none; }
/* cl-17c wide screens (desktop / landscape, aspect >= 4:5, ui.fitTitle sets #title.wide + --ts): one centred portrait column.
   Backdrop = the same city key art (title_bg.webp) carried out to both sides as mirrored copies flush with the column, so the
   alley reads as continuing past the frame; darkened, softly blurred, and vignetted toward the screen edges. The column gets a
   thin Warden-violet edge and a soft shadow so it reads as a framed poster, not a phone in a void. Phones never get .wide. */
#title.wide .title-fill { display: block; inset: -30px; background: #0B0A14; filter: blur(9px) brightness(.5) saturate(1.05); }
#title.wide .title-fill::before, #title.wide .title-fill::after { content: ""; position: absolute; top: 0; bottom: 0; transform: scaleX(-1);
  background: linear-gradient(180deg, rgba(8,7,14,.55), rgba(8,7,14,0) 22%, rgba(8,7,14,0) 72%, rgba(8,7,14,.8)), var(--fade), url(../assets/img/title_bg.webp) var(--bx) center / auto 100% repeat-x; }
/* (both copies are mirrored, so the outer-edge fade runs the other way in each one's own coordinates) */
#title.wide .title-fill::before { left: 0; right: calc(50% + 195px * var(--ts, 1) - 2px); --bx: left; --fade: linear-gradient(90deg, rgba(8,7,14,.1), rgba(8,7,14,.92)); }
#title.wide .title-fill::after { left: calc(50% + 195px * var(--ts, 1) - 2px); right: 0; --bx: right; --fade: linear-gradient(270deg, rgba(8,7,14,.1), rgba(8,7,14,.92)); }
#title.wide .title-scene { box-shadow: 0 0 0 1px rgba(136,97,255,.28), 0 0 30px rgba(136,97,255,.16), 0 0 90px 24px rgba(5,4,10,.82); }
#title.wide .title-inner { position: absolute; left: 50%; top: 50%; width: 390px; height: 844px; transform: translate(-50%, -50%) scale(var(--ts, 1)); }
.title-scene { position: absolute; left: 50%; top: 50%; width: 390px; height: 844px; transform: translate(-50%, -50%) scale(var(--ts, 1)); overflow: hidden; pointer-events: none; --px: 0; --py: 0; }
.ts-cam { position: absolute; inset: 0; transform-origin: 50% 44%; }
.ts-cam > * { position: absolute; }
.title-scene img { display: block; height: auto; user-select: none; -webkit-user-drag: none; }

/* Layer 0: city backdrop + sweeping distant searchlights */
.ts-bg { inset: -14px; background: url(../assets/img/title_bg.webp) center 62% / cover no-repeat;
  transform: translate3d(calc(var(--px) * -4px), calc(var(--py) * -3px), 0); }
.ts-beams { inset: 0; overflow: hidden; pointer-events: none; mix-blend-mode: screen; opacity: .55; }
.ts-beams i { position: absolute; bottom: 28%; left: 50%; width: 140px; height: 520px; transform-origin: 50% 100%;
  background: linear-gradient(180deg, rgba(188,198,236,0) 0%, rgba(188,198,236,.16) 55%, rgba(235,215,195,.22) 100%);
  clip-path: polygon(18% 0, 82% 0, 56% 100%, 44% 100%); filter: blur(4px); }
.ts-beams i:nth-child(1) { margin-left: -108px; animation: tsbeam1 9.5s ease-in-out infinite alternate; }
.ts-beams i:nth-child(2) { margin-left: -26px; animation: tsbeam2 11.2s ease-in-out -3s infinite alternate; }
@keyframes tsbeam1 { from { transform: rotate(-34deg); } to { transform: rotate(-22deg); } }
@keyframes tsbeam2 { from { transform: rotate(22deg); } to { transform: rotate(35deg); } }

/* Layer 0.5: Giant Warden shadow v3 (cl-15k, Riot Guard armoured pauldrons & chest under squared capelet; head clear below tagline) */
.ts-warden-shadow { position: absolute; left: -16px; top: 76px; width: 422px; pointer-events: none; opacity: .94;
  transform: translate3d(calc(var(--px) * -3px), calc(var(--py) * -2px), 0);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.98) 0%, rgba(0,0,0,.95) 56%, rgba(0,0,0,.46) 78%, transparent 98%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.98) 0%, rgba(0,0,0,.95) 56%, rgba(0,0,0,.46) 78%, transparent 98%); }
.ts-warden-shadow svg { display: block; width: 100%; height: auto; }
.ts-warden-shadow .ws-glint { animation: tswardenglint 3.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes tswardenglint { from { opacity: .82; } to { opacity: 1; } }

/* Layer 1: Warden drones (amber lens ONLY — no red light, no laser, no lock-on) */
.ts-drone { pointer-events: none; }
.ts-drone img { width: 100%; }
.ts-drone .eye { position: absolute; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255,232,174,.95) 0%, rgba(255,181,46,.65) 38%, rgba(255,181,46,0) 72%);
  animation: tseyepulse 2.6s ease-in-out infinite alternate; }
@keyframes tseyepulse { from { opacity: .75; transform: scale(.94); } to { opacity: 1; transform: scale(1.08); } }
.ts-drone.far { width: 42px; left: 146px; top: 136px; transform: translate3d(calc(var(--px) * -2px), calc(var(--py) * -2px), 0) rotate(8deg);
  filter: brightness(.74) saturate(.78); opacity: .88; animation: tshover 4.8s ease-in-out -1.3s infinite alternate; }
.ts-drone.far .eye { width: 10px; height: 10px; left: 15px; top: 17px; }
.ts-drone.mid { width: 62px; left: 172px; top: 196px; transform: translate3d(calc(var(--px) * 1px), calc(var(--py) * 1px), 0) rotate(13deg);
  filter: brightness(.82) saturate(.84); opacity: .94; animation: tsscan 4.2s ease-in-out -0.8s infinite alternate; }
.ts-drone.mid .eye { width: 14px; height: 14px; left: 22px; top: 30px; }
/* Hero drone: big & close, cropped dramatically by the right frame edge, clear of GET OUT. and GHOST's face */
.ts-drone.near { width: 164px; right: -72px; top: 104px;
  transform: translate3d(calc(var(--px) * 9px), calc(var(--py) * 6px), 0) rotate(-10deg);
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.62));
  animation: tshover 3.5s ease-in-out infinite alternate; }
.ts-drone.near .eye { width: 30px; height: 30px; left: 60px; top: 66px; }
@keyframes tshover { from { translate: 0 0; } to { translate: 0 -5px; } }
@keyframes tsscan  { from { translate: -4px 0; rotate: -4deg; } to { translate: 4px -3px; rotate: 4deg; } }

/* Riot Guard: secondary threat a floor below TORQ on right fire-escape balcony, soft fade under rail (no hard crop) */
.ts-guard-wrap { right: -4px; top: 446px; width: 72px; height: 102px;
  transform: translate3d(calc(var(--px) * 1.5px), calc(var(--py) * 1px), 0);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%); }
.ts-guard { position: absolute; left: 6px; top: 2px; width: 60px; transform-origin: 55% 75%;
  filter: brightness(.76) contrast(1.06) drop-shadow(0 4px 8px rgba(0,0,0,.75));
  animation: tsguardshake 1.75s ease-in-out infinite; }
.ts-rail { position: absolute; left: 0; right: 0; top: 54px; height: 48px; pointer-events: none;
  border-top: 2.5px solid #1e1d27; box-shadow: inset 0 1px 0 rgba(160,175,210,.22), 0 -2px 6px rgba(0,0,0,.55);
  background: repeating-linear-gradient(90deg, rgba(18,17,25,.92) 0 3px, rgba(16,15,24,.15) 3px 11px); }
@keyframes tsguardshake {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  10% { transform: rotate(-4.5deg) translateY(-2px); }
  20% { transform: rotate(3deg) translateY(0); }
  30% { transform: rotate(-4.5deg) translateY(-2px); }
  40% { transform: rotate(2.5deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-1px); }
  60% { transform: rotate(0deg) translateY(0); }
}

/* Layer 2: neutral night staging shade + drifting dusk motes */
.ts-shade { inset: 0; background:
  linear-gradient(180deg, rgba(14,12,26,.92) 0%, rgba(14,12,26,.42) 20%, rgba(14,12,26,0) 35%, rgba(14,12,26,0) 58%, rgba(14,12,26,.52) 72%, rgba(14,12,26,0) 100%); }
.ts-motes { inset: 0; overflow: hidden; pointer-events: none; opacity: .45; }
.ts-motes i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: rgba(244,234,248,.75);
  box-shadow: 0 0 4px rgba(170,196,255,.6); animation: tsmote 7s linear infinite; }
.ts-motes i:nth-child(1) { left: 16%; top: 28%; animation-duration: 6.4s; animation-delay: -1s; }
.ts-motes i:nth-child(2) { left: 42%; top: 22%; animation-duration: 8.1s; animation-delay: -3.2s; width: 2.5px; height: 2.5px; }
.ts-motes i:nth-child(3) { left: 68%; top: 34%; animation-duration: 7.2s; animation-delay: -2.1s; }
.ts-motes i:nth-child(4) { left: 26%; top: 52%; animation-duration: 6.8s; animation-delay: -4.5s; }
.ts-motes i:nth-child(5) { left: 78%; top: 48%; animation-duration: 8.8s; animation-delay: -0.6s; }
.ts-motes i:nth-child(6) { left: 54%; top: 42%; animation-duration: 7.5s; animation-delay: -5.2s; width: 1.5px; height: 1.5px; }
@keyframes tsmote {
  0%   { transform: translate3d(0, 12px, 0); opacity: 0; }
  20%  { opacity: .8; }
  80%  { opacity: .65; }
  100% { transform: translate3d(-24px, -38px, 0); opacity: 0; }
}

/* Layer 3: Crew (unified lighting, single drop-shadow per hero for 60 fps mobile perf) */
.ts-hero { pointer-events: none; }
.h-dash-wrap { width: 246px; left: 72px; top: 326px;
  transform: translate3d(calc(var(--px) * 6px), calc(var(--py) * 4px), 0); }
.h-dash { width: 100%;
  filter: contrast(1.04) drop-shadow(0 18px 18px rgba(0,0,0,.64));
  animation: tsidledash 4.2s ease-in-out infinite alternate; }

.h-vega-wrap { width: 152px; left: 14px; top: 128px;
  transform: translate3d(calc(var(--px) * 3.5px), calc(var(--py) * 2.5px), 0); }
.h-vega { width: 100%; transform: rotate(-3deg);
  filter: brightness(.97) drop-shadow(0 14px 14px rgba(0,0,0,.5));
  animation: tsidlevega 3.8s ease-in-out -0.9s infinite alternate; }

.h-ghost-wrap { width: 130px; right: 8px; top: 226px;
  transform: translate3d(calc(var(--px) * 3px), calc(var(--py) * 2px), 0); }
.h-ghost { width: 100%;
  filter: brightness(.97) drop-shadow(0 14px 14px rgba(0,0,0,.5));
  animation: tsidleghost 4.0s ease-in-out -1.8s infinite alternate; }

@keyframes tsidledash  { from { translate: 0 0; } to { translate: 0 -2.5px; } }
@keyframes tsidlevega  { from { translate: 0 0; } to { translate: -2px -4px; } }
@keyframes tsidleghost { from { translate: 0 0; } to { translate: 2px -4px; } }

/* Layer 5: lower UI contrast shade + cheap static grain pattern (no heavy mix-blend filter) */
.ts-shade2 { inset: 0; background:
  radial-gradient(ellipse at 50% 44%, rgba(14,12,26,0) 48%, rgba(10,8,20,.42) 100%),
  linear-gradient(180deg, rgba(14,12,26,0) 64%, rgba(14,12,26,.82) 76%, rgba(14,12,26,.97) 100%); }
.ts-grain { inset: 0; pointer-events: none; opacity: .035;
  background-image: repeating-radial-gradient(circle at 0 0, rgba(255,255,255,.5) 0 1px, transparent 1px 3px);
  background-size: 6px 6px; }

/* Title UI column */
.title-inner { position: relative; width: min(100%, 560px); display: flex; flex-direction: column; align-items: center;
  padding: calc(max(var(--sat), 12px) + 10px) 18px calc(max(var(--sab), 8px) + 12px); }
.logo { width: min(100%, 470px); margin: 6px 0 0 -8px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.65)); }
.logo svg { width: 100%; height: auto; display: block; }
.tagline { margin-top: 2px; font-size: 12.5px; letter-spacing: .3em; color: #F4EEF8; text-shadow: 0 2px 8px rgba(0,0,0,.85); font-style: italic; text-align: center; }
@media (max-width: 370px) { .tagline { font-size: 11.5px; letter-spacing: .26em; } }

/* Cinematic reveal choreography (~2.0 s first visit; ~0.8 s return via --rv: 0.4) */
#title.v5-reveal { --rv: 1; }
#title.v5-reveal.v5-fast { --rv: 0.4; }
#title.v5-reveal .ts-cam { animation: v5cam calc(1.7s * var(--rv)) cubic-bezier(.16,1,.3,1) both; }
#title.v5-reveal .ts-warden-shadow { animation: v5warden calc(.75s * var(--rv)) ease-out calc(.12s * var(--rv)) both; }
@keyframes v5warden { from { opacity: 0; transform: translate3d(0, 12px, 0) scale(1.03); } to { opacity: .94; transform: translate3d(0, 0, 0) scale(1); } }
#title.v5-reveal .ts-drone.far,
#title.v5-reveal .ts-drone.mid,
#title.v5-reveal .ts-guard-wrap { animation: v5fadein calc(.65s * var(--rv)) ease-out calc(.28s * var(--rv)) both; }
#title.v5-reveal .h-vega-wrap { animation: v5vega calc(.62s * var(--rv)) cubic-bezier(.16,1,.3,1) calc(.34s * var(--rv)) both; }
#title.v5-reveal .h-ghost-wrap { animation: v5ghost calc(.62s * var(--rv)) cubic-bezier(.16,1,.3,1) calc(.40s * var(--rv)) both; }
#title.v5-reveal .h-dash-wrap { animation: v5dash calc(.60s * var(--rv)) cubic-bezier(.18,1.08,.32,1) calc(.36s * var(--rv)) both; }
#title.v5-reveal .ts-drone.near { animation: v5near calc(.7s * var(--rv)) cubic-bezier(.16,1,.3,1) calc(.62s * var(--rv)) both; }
#title.v5-reveal .logo { animation: v5logo calc(.52s * var(--rv)) cubic-bezier(.16,1.22,.32,1) calc(.92s * var(--rv)) both; }
#title.v5-reveal .tagline { animation: v5tag calc(.42s * var(--rv)) ease-out calc(1.12s * var(--rv)) both; }
#title.v5-reveal .level-badge,
#title.v5-reveal .level-select { animation: v5ui calc(.44s * var(--rv)) cubic-bezier(.16,1,.3,1) calc(1.32s * var(--rv)) both; }
#title.v5-reveal .tap-run { animation: v5run calc(.48s * var(--rv)) cubic-bezier(.16,1.12,.3,1) calc(1.48s * var(--rv)) both; }
#title.v5-reveal .title-foot { animation: v5ui calc(.42s * var(--rv)) ease-out calc(1.56s * var(--rv)) both; }

@keyframes v5cam   { from { transform: scale(1.08); filter: brightness(.55); } to { transform: scale(1); filter: brightness(1); } }
@keyframes v5fadein{ from { opacity: 0; } to { opacity: 1; } }
@keyframes v5vega  { 0% { opacity: 0; translate: -46px -22px; scale: .92; } 35% { opacity: 1; } 100% { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes v5ghost { 0% { opacity: 0; translate: 46px -24px; scale: .92; } 35% { opacity: 1; } 100% { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes v5dash  { 0% { opacity: 0; translate: 0 54px; scale: .94; } 28% { opacity: 1; } 100% { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes v5near  { from { opacity: 0; translate: 58px -18px; } to { opacity: 1; translate: 0 0; } }
@keyframes v5logo  { from { opacity: 0; transform: translateX(-28px) skewX(-8deg) scale(1.08); filter: blur(3px) drop-shadow(0 8px 18px rgba(0,0,0,.65)); }
                     to   { opacity: 1; transform: translateX(0) skewX(0) scale(1); filter: drop-shadow(0 8px 18px rgba(0,0,0,.65)); } }
@keyframes v5tag   { from { opacity: 0; letter-spacing: .44em; transform: translateY(-6px); } to { opacity: 1; letter-spacing: .3em; transform: translateY(0); } }
@keyframes v5ui    { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes v5run   { from { opacity: 0; transform: translateY(18px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Reduced motion: static final composition immediately, zero camera move, zero idle motion */
@media (prefers-reduced-motion: reduce) { #title *, #title *::before, #title *::after, .boot * { animation: none !important; transition: none !important; } }
#app.rm #title *, #app.rm #title *::before, #app.rm #title *::after { animation: none !important; transition: none !important; }
.popup .p.perfect .grade { color: #ffffff; text-shadow: 0 2px 0 rgba(30,14,28,.45); }

/* the Seal: shutter front on the progress bar, gate tick, result banner */
.progress .sealfill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: repeating-linear-gradient(90deg, rgba(136,97,255,.5) 0 5px, rgba(30,14,40,.55) 5px 9px); }
.progress .mark.seal { width: 4px; background: #8861ff; box-shadow: 0 0 8px #8861ff; top: -7px; height: 18px; }
.progress .mark.seal.slipped { opacity: .35; }
.progress .gate { position: absolute; top: -8px; width: 3px; height: 20px; margin-left: -1px; background: var(--text-hi); box-shadow: 0 0 0 1px var(--keyline); }
.progress .gate.slipped { background: var(--hc-lt); }
.progress .gate.squeezed { background: var(--warden-lt); }
.banner { position: absolute; left: 0; right: 0; top: 34%; text-align: center; pointer-events: none; opacity: 0; transform: scale(.85); transition: opacity .18s, transform .18s; font-style: italic; }
.banner.on { opacity: 1; transform: scale(1); }
.banner b { display: block; font-size: clamp(26px, 8.5vw, 46px); letter-spacing: .03em; color: #fff; -webkit-text-stroke: 1.5px rgba(42,22,40,.7); }
.banner span { display: inline-block; margin-top: 4px; padding: 4px 12px; font-size: clamp(11px, 3.3vw, 15px); letter-spacing: .12em; background: rgba(46,24,44,.78); }
.banner.good b { text-shadow: 0 2px 0 rgba(30,14,28,.45); } .banner.good span { color: var(--hc-lt); border: 1px solid var(--hc); }
.banner.warn b { text-shadow: 0 2px 0 rgba(30,14,28,.45); } .banner.warn span { color: #d8ccff; border: 1px solid rgba(136,97,255,.6); }
.banner b { text-shadow: 0 3px 0 rgba(30,14,28,.55); }

/* handedness: mirror the HUD only (swipes never flip) */
#app.lefty .hud-top { flex-direction: row-reverse; }
#app.lefty .hud-left, #app.lefty .hud-right { flex-direction: row-reverse; }
#app.lefty .hud-side { right: auto; left: 12px; align-items: flex-start; }

.test-badge { position: absolute; left: 14px; top: calc(var(--sat) + 116px); padding: 3px 8px; border-radius: 8px; font-size: 10px; letter-spacing: .12em; font-style: italic;
  background: rgba(20,18,34,.85); box-shadow: 0 0 0 1px var(--line-2); color: var(--text-hi); pointer-events: none; }
#app.lefty .test-badge { left: auto; right: 14px; }

/* ---------------------------------------------------------------- title chrome v2: TONIGHT'S ROUTE card, RUN, thumb row */
.level-badge { margin-top: auto; display: flex; gap: 8px; align-items: baseline; padding: 7px 16px 6px; background: var(--glass); font-size: 12px; letter-spacing: .1em;
  clip-path: polygon(var(--lean) 0, 100% 0, calc(100% - var(--lean)) 100%, 0 100%); font-family: var(--disp); font-style: italic; font-weight: 900; text-transform: uppercase; }
.level-badge span { color: var(--hc-lt); } .level-badge b { color: var(--text-hi); font-size: 15px; } .level-badge em { color: var(--text); font-size: 10px; font-style: italic; }
.level-badge::before { content: "//"; color: var(--hc); }
.level-select { display: flex; gap: 6px; justify-content: center; align-items: center; margin: 8px 0 2px; pointer-events: auto; position: relative; }
.level-select .lvl { position: relative; min-width: 70px; min-height: 48px; padding: 6px 8px 4px; text-align: center; background: var(--surface-2); color: var(--text-hi); cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.level-select .lvl::before { content: ""; position: absolute; inset: 0; clip-path: inherit; box-shadow: inset 0 0 0 1.5px var(--line-2); pointer-events: none; }
.level-select .lvl b { display: block; font-family: var(--disp); font-size: 20px; font-style: italic; font-weight: 900; line-height: 1.05; }
.level-select .lvl i.marks { display: flex; justify-content: center; gap: 3px; margin-top: 2px; }
.marks u { width: 11px; height: 9px; background: rgba(244,238,248,.2); clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%); }
.marks u.on { background: var(--hc-lt); }
.level-select .lvl i.lk { display: block; font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .12em; color: var(--warden-lt); }
.level-select .lvl.sel { background: var(--surface-3); }
.level-select .lvl.sel::before { box-shadow: inset 0 0 0 2.5px var(--hc); }
.level-select .lvl.locked { background: repeating-linear-gradient(180deg, #2A2548 0 5px, #1B1734 5px 7px); color: var(--text); }
.level-select .lvl.locked::before { box-shadow: inset 0 0 0 1.5px rgba(136,97,255,.45); }
.tap-run { pointer-events: auto; position: relative; margin-top: 12px; width: min(100%, 330px); min-height: 68px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-ink);
  clip-path: polygon(var(--lean) 0, 100% 0, calc(100% - var(--lean)) 100%, 0 100%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--hc) 62%, #fff) 0%, var(--hc) 50%, color-mix(in srgb, var(--hc) 80%, #000) 100%); animation: breathe 1.6s ease-in-out infinite; }
.tap-run::before { content: ""; position: absolute; left: 14px; top: 24%; width: 44px; height: 52%; background: repeating-linear-gradient(180deg, rgba(20,18,34,.75) 0 3px, transparent 3px 9px); transform: skewX(-14deg); }
.tap-run::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -4px 0 rgba(20,18,34,.35), inset 0 2px 0 rgba(255,255,255,.4); pointer-events: none; }
.tap-run .lbl { display: flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1; font-size: 28px; letter-spacing: .06em; }
.tap-run small { font-family: var(--font); font-style: normal; font-weight: 800; font-size: 11px; letter-spacing: .14em; opacity: .85; }
@keyframes breathe { 50% { filter: brightness(1.1); transform: scale(1.025); } }
.title-foot { margin-top: 12px; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ibtn { pointer-events: auto; position: relative; width: 52px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--glass); cursor: pointer; color: var(--text-hi);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.ibtn::before { content: ""; position: absolute; inset: 0; clip-path: inherit; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.ibtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ibtn.off svg { opacity: .5; } .ibtn.off::after { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; height: 2.5px; background: var(--text-hi); transform: rotate(-35deg); }
.best { flex: 1; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--text); text-align: center; text-shadow: 0 1px 4px rgba(0,0,0,.8); text-transform: uppercase; }

/* ---------------------------------------------------------------- buttons: speed-cut parallelograms (one lean for every cut) */
.pill { pointer-events: auto; position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; margin: 8px auto 0; padding: 0 24px; width: min(100%, 320px);
  font-size: 18px; letter-spacing: .04em; cursor: pointer; color: var(--text-hi); background: var(--surface-2);
  clip-path: polygon(var(--lean) 0, 100% 0, calc(100% - var(--lean)) 100%, 0 100%); transition: transform .08s, filter .1s; }
.pill::before { content: ""; position: absolute; inset: 0; clip-path: inherit; box-shadow: inset 0 0 0 1.5px var(--line-2); pointer-events: none; }
.pill svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pill:active, .tap-run:active, .ibtn:active, .pause-btn:active { transform: translateY(2px); filter: brightness(1.2); }
.pill.primary { min-height: 64px; color: var(--text-ink); font-size: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hc) 62%, #fff) 0%, var(--hc) 50%, color-mix(in srgb, var(--hc) 80%, #000) 100%); }
.pill.primary::before { box-shadow: inset 0 -4px 0 rgba(20,18,34,.35), inset 0 2px 0 rgba(255,255,255,.4); }
.pill.primary::after { content: ""; position: absolute; left: 12px; top: 26%; width: 36px; height: 48%; background: repeating-linear-gradient(180deg, rgba(20,18,34,.7) 0 3px, transparent 3px 9px); transform: skewX(-14deg); pointer-events: none; }
.pill.primary .lbl { display: flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1; }
.pill.primary small { font-family: var(--font); font-style: normal; font-weight: 800; font-size: 11px; letter-spacing: .14em; opacity: .85; }
.pill.big { min-height: 64px; }
.pill.ghost { background: transparent; font-size: 15px; min-height: 48px; color: var(--text); }
.pill.ghost::before { box-shadow: none; }
.pill.erase { color: #FFD5DA; } .pill.erase::before { box-shadow: inset 0 0 0 1.5px rgba(255,59,78,.7); } .pill.erase.armed { background: rgba(255,59,78,.35); color: #fff; }
/* secondary when a NEXT button is showing: one primary per screen */
#nextBtn:not(.hidden) ~ #againBtn { min-height: 52px; font-size: 18px; color: var(--text-hi); background: var(--surface-2); }
#nextBtn:not(.hidden) ~ #againBtn::before { box-shadow: inset 0 0 0 1.5px var(--line-2); } #nextBtn:not(.hidden) ~ #againBtn::after { display: none; }
.modal { padding-left: var(--sal); padding-right: var(--sar); display: flex; align-items: center; justify-content: center; background: rgba(11,10,20,.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.panel { position: relative; width: min(92%, 400px); padding: 20px 18px 14px; text-align: center; background: linear-gradient(180deg, rgba(27,24,48,.96), rgba(20,18,31,.98));
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px rgba(0,0,0,.5); animation: panelin .28s cubic-bezier(.2,1.3,.4,1); }
.panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--split); }   /* the lineup's tri-split */
@keyframes panelin { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.panel h2 { margin: 2px 0 10px; letter-spacing: .1em; color: var(--text-hi); font-size: 22px; }
.kk { color: var(--hc); }
@media (prefers-reduced-motion: reduce) { .panel, .stars i.on, .tap-run { animation: none !important; } }
#app.rm .panel, #app.rm .stars i.on { animation: none !important; }

/* ---------------------------------------------------------------- pause: the crew radio */
#pause { background: rgba(11,10,20,.55); backdrop-filter: blur(5px) saturate(.6); -webkit-backdrop-filter: blur(5px) saturate(.6); align-items: flex-end; padding-bottom: calc(var(--sab) + 16px); }
.paused { position: absolute; left: 0; right: 0; top: calc(var(--sat) + 48px); text-align: center; pointer-events: none; }
.paused h1 { margin: 0; font-family: var(--disp); font-style: italic; font-weight: 900; font-size: 46px; color: var(--text-hi); letter-spacing: .02em; }
.paused .kick { margin-top: 4px; font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--text); }
.radio { width: min(86%, 340px); padding: 74px 18px 22px; border-radius: 26px 26px 30px 30px; text-align: center; background: linear-gradient(180deg, #2A2645 0%, #1D1A30 40%, #161427 100%);
  box-shadow: inset 0 0 0 2px rgba(244,238,248,.1), inset 0 3px 0 rgba(255,255,255,.07), 0 30px 40px rgba(0,0,0,.6); }
.radio::before { left: 14px; right: 14px; top: auto; bottom: 10px; height: 4px; border-radius: 2px; }
.radio .ant { position: absolute; left: 34px; top: -46px; width: 16px; height: 62px; border-radius: 6px 6px 2px 2px; background: linear-gradient(90deg, #15131F, #2B2840 50%, #15131F); }
.radio .ant::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--hc); box-shadow: var(--glow, 0 0 8px var(--hc)); }
.radio .grille { position: absolute; left: 26px; right: 26px; top: 16px; height: 34px; background: radial-gradient(circle, #0D0C16 2px, transparent 2.5px) 0 0 / 10px 10px; }
.radio .brand { position: absolute; left: 0; right: 0; top: 54px; font-family: var(--disp); font-style: italic; font-weight: 900; font-size: 11px; letter-spacing: .3em; color: var(--text-dim); }
.lcd { margin-top: 6px; padding: 9px 12px 10px; text-align: left; border-radius: 8px; background: linear-gradient(180deg, #101423, #0C0F1B); box-shadow: inset 0 0 0 2px #070810; color: var(--text-hi); }
.lcd .ch { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; color: var(--text-dim); }
.lcd .ch b { color: var(--text-hi); font-weight: 800; }
.lcd .st { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; }
.lcd .st div { font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--text-dim); }
.lcd .st b { display: block; font-family: var(--disp); font-style: italic; font-weight: 900; font-size: 19px; letter-spacing: .02em; color: var(--text-hi); font-variant-numeric: tabular-nums; }
.lcd .st b.wd { color: var(--warden-lt); font-size: 16px; padding-top: 2px; } .lcd .st b.cn { color: var(--coin); }
.radio .pill.primary { margin-top: 14px; }
.krow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.krow .pill { margin: 0; width: auto; min-height: 56px; padding: 0 6px; flex-direction: column; gap: 3px; font-size: 11.5px; letter-spacing: .06em;   /* cl-19: the slanted .pill plate (no rounded rects: Anton's no-pills rule) */
  background: linear-gradient(180deg, #34305A, #26223F); box-shadow: inset 0 -4px 0 rgba(0,0,0,.35); }
.krow .pill::before { box-shadow: inset 0 0 0 1.5px rgba(244,238,248,.16); }

/* ---------------------------------------------------------------- results: the getaway report (win) / the Warden pin shot (caught) */
.panel.results { max-height: calc(100% - var(--sat) - var(--sab) - 16px); overflow-y: auto; text-align: left; padding-top: 16px; scrollbar-width: none; }
.panel.results::-webkit-scrollbar { display: none; }
.rep-kick { font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--text-dim); text-transform: uppercase; }
.rep-kick::before { content: "// "; color: var(--hc); }
.rep-top { display: flex; align-items: center; gap: 14px; margin: 10px 0 4px; }
.res-pol { position: relative; flex: none; width: 74px; height: 86px; transform: rotate(-4deg); background: #E9E4F0 url(../assets/img/title_dash.webp) 50% 6% / 150% auto no-repeat; border: 5px solid #E9E4F0; border-bottom-width: 16px; box-shadow: 0 4px 10px rgba(0,0,0,.5); }
.res-pol::before { content: ""; position: absolute; left: 50%; top: -12px; width: 34px; height: 12px; margin-left: -17px; background: rgba(244,238,248,.45); transform: rotate(3deg); }
#app.hc-vega .res-pol { background-image: url(../assets/img/title_vega.webp); background-position: 40% 20%; background-size: 190% auto; }
#app.hc-ghost .res-pol { background-image: url(../assets/img/title_ghost.webp); background-position: 50% 12%; background-size: 160% auto; }
.rep-right { flex: 1; min-width: 0; }
/* the rating is a rubber stamp in the hero colour */
.res-head { display: inline-block; padding: 6px 14px 3px; font-size: clamp(28px, 9vw, 40px); letter-spacing: .02em; line-height: .95; color: var(--hc); border: 4px solid var(--hc); outline: 2px solid var(--hc); outline-offset: 3px; transform: rotate(-6deg); margin: 4px 0 4px 4px; }
.res-head.long { font-size: clamp(22px, 6.8vw, 30px); white-space: nowrap; }
.res-head.fail { color: var(--hit); border-color: var(--hit); outline-color: var(--hit); }
.res-sub { margin-top: 6px; font-size: 12.5px; letter-spacing: .1em; font-weight: 800; color: var(--text); min-height: 18px; text-transform: uppercase; }
.stars { margin: 10px 0 0 6px; display: flex; gap: 6px; }
.stars i { width: 30px; height: 26px; background: rgba(244,238,248,.16); clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%); }   /* getaway marks: chevrons, not stars */
.stars i.on { background: var(--hc-lt); animation: star .4s cubic-bezier(.2,1.6,.4,1) both; }
.stars i.on:nth-child(2) { animation-delay: .15s; } .stars i.on:nth-child(3) { animation-delay: .3s; }
@keyframes star { from { transform: scale(0) translateX(-10px); } }
.rows { margin: 8px 0 4px; display: flex; flex-direction: column; gap: 5px; }
.rl { display: flex; align-items: baseline; gap: 6px; }
.rl .k { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--text-dim); flex: none; }
.rl i { flex: 1; border-bottom: 2px dotted rgba(244,238,248,.2); transform: translateY(-3px); min-width: 8px; }
.rl .v { font-family: var(--disp); font-style: italic; font-weight: 900; font-size: 15px; color: var(--text-hi); text-align: right; font-variant-numeric: tabular-nums; text-transform: uppercase; }
.rl .v.good { color: var(--hc-lt); } .rl .v.gold { color: var(--coin); } .rl .v.seal { color: var(--warden-lt); }
/* PARTS: luggage tags (Traveler's Bag: leather, brass, one cyan skyline line, NEW sticker; a missing part is a dashed '?') */
.res-parts { margin: 8px 0 2px; display: flex; flex-direction: column; gap: 6px; }
.pset .ph { display: flex; align-items: baseline; gap: 8px; font-size: 11px; letter-spacing: .12em; font-weight: 800; }
.pset .ph b { color: var(--text-hi); font-family: var(--disp); font-style: italic; font-size: 13px; } .pset .ph span { color: var(--part); } .pset .ph em { margin-left: auto; font-size: 10.5px; color: var(--text-dim); font-style: normal; }
.pset.done .ph span { color: var(--hc-lt); }
.pset .slots { display: flex; gap: 8px; margin-top: 4px; }
.pset .slot { position: relative; flex: 1; min-width: 0; height: 40px; display: flex; align-items: center; justify-content: center; font-family: var(--disp); font-style: italic; font-size: 11px; letter-spacing: .08em; overflow: hidden; white-space: nowrap; }
.pset .slot.have { background: linear-gradient(160deg, #6A4532, #5A3A2A 60%, #3E2619); color: #F4E7D6; clip-path: polygon(14% 0, 86% 0, 100% 24%, 100% 100%, 0 100%, 0 24%); border-bottom: 3px solid var(--part); }
.pset .slot.new { filter: brightness(1.15); }
.pset .slot.new i { position: absolute; top: 2px; right: 6px; padding: 0 4px; font-size: 8px; font-style: normal; font-weight: 900; color: var(--text-ink); background: var(--part); letter-spacing: .06em; transform: rotate(6deg); }
.pset .slot.miss { border: 1.5px dashed rgba(244,238,248,.3); color: rgba(244,238,248,.5); font-size: 16px; border-radius: 4px; }
.res-tip { margin: 8px 0 2px; font-weight: 700; font-size: 13px; color: var(--text); line-height: 1.35; }
.res-bank { margin: 6px 0 2px; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--coin); text-align: center; }
.res-bank:empty { display: none; }
.panel.results .pill { margin-top: 8px; }
/* CAUGHT: the Warden pin shot. The live frame behind is shown through a tilted, desaturated, violet-tinted window (a spotlight hole in a dark sheet); no extra draw calls. */
.pinwin { display: none; }
#results.caught { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; align-items: flex-start; }
#results.caught .panel.results { background: none; box-shadow: none; animation: none; padding-top: calc(var(--sat) + 14px); text-align: left; max-height: 100%; }
#results.caught .panel.results::before { display: none; }
#results.caught .pinwin { display: block; position: relative; height: 190px; margin: 6px 6px 14px; transform: rotate(-1.5deg); box-shadow: 0 0 0 100vmax rgba(14,12,26,.92), 0 0 0 4px #E9E4F0;
  backdrop-filter: grayscale(.85) contrast(1.1) brightness(.9); -webkit-backdrop-filter: grayscale(.85) contrast(1.1) brightness(.9); }
#results.caught .pinwin::before { content: ""; position: absolute; inset: 0; background: rgba(136,97,255,.22); mix-blend-mode: multiply; box-shadow: inset 0 0 0 2px rgba(185,163,255,.7); }
#results.caught .pinwin::after { content: ""; position: absolute; left: 50%; top: -14px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #D8CCFF, var(--warden) 60%, var(--warden-dk)); box-shadow: 0 3px 4px rgba(0,0,0,.6); }
.pinwin .cam { position: absolute; left: 10px; top: 8px; padding: 2px 8px; font-family: var(--font); font-size: 10.5px; font-weight: 800; letter-spacing: .16em; background: rgba(14,12,26,.8); color: var(--warden-lt); }
.pinwin .ts { position: absolute; left: 10px; bottom: 8px; padding: 2px 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; background: rgba(14,12,26,.8); color: var(--text-hi); font-variant-numeric: tabular-nums; }
.pinwin .ret { position: absolute; right: 12px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border: 2px solid var(--warden-lt); border-radius: 50%; }
.pinwin .ret::before, .pinwin .ret::after { content: ""; position: absolute; background: var(--warden-lt); }
.pinwin .ret::before { left: 50%; top: -7px; bottom: -7px; width: 2px; margin-left: -1px; } .pinwin .ret::after { top: 50%; left: -7px; right: -7px; height: 2px; margin-top: -1px; }
#results.caught .rep-kick { color: var(--warden-lt); }
#results.caught .res-pol { display: none; }
#results.caught .res-sub { color: var(--text-hi); }
#results.caught.fell .rep-kick { color: var(--text-dim); } .panel.fell .pinwin .cam { color: var(--text); }
#results.caught .rows, #results.caught .res-parts { display: none; }
#results.caught .rep-top { margin-top: 26px; } #results.caught .rep-right { display: block; }
#results.caught .res-tip { padding: 8px 10px; background: rgba(36,32,64,.85); border-left: 4px solid var(--warden); font-size: 12.5px; }

/* ---------------------------------------------------------------- crew notes (how to run) */
.howto { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(11,10,20,.78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); pointer-events: auto; }
.hw { position: relative; width: min(92%, 400px); max-height: calc(100% - 40px); overflow-y: auto; padding: 18px 16px 12px; background: rgba(20,18,31,.99); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px rgba(0,0,0,.6); scrollbar-width: none; }
.hw::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--split); }
.hw h3 { margin: 0 0 10px; font-size: 16px; letter-spacing: .1em; color: var(--text-hi); }
.notes { display: flex; flex-direction: column; gap: 7px; }
.note { display: flex; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; background: var(--surface-1); border-left: 4px solid var(--hc); }
.note .gl { width: 34px; height: 34px; flex: none; padding: 5px; fill: none; stroke: var(--hc-lt); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; background: var(--surface-3); }
.note .gl.dn { transform: rotate(180deg); }
.note p { margin: 0; font-size: 13px; line-height: 1.3; color: var(--text); font-weight: 600; }
.note b { display: block; font-family: var(--disp); font-style: italic; font-weight: 900; font-size: 14px; letter-spacing: .04em; color: var(--text-hi); }
.hw .g { color: var(--hc-lt); font-style: normal; font-weight: 800; }
.hw .kbd { margin: 8px 0 0; font-size: 11px; color: var(--text-dim); text-align: center; }
.hw .btn-row { margin-top: 6px; }
.hw .pill { width: 100%; }

/* ---------------------------------------------------------------- boot + rotate */
.boot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(70% 40% at 0% 55%, rgba(16,156,128,.24), transparent 70%), radial-gradient(70% 40% at 100% 55%, rgba(255,92,200,.2), transparent 70%), radial-gradient(60% 35% at 50% 48%, rgba(255,115,46,.16), transparent 70%), var(--bg-1); }
.boot-logo { width: min(88%, 420px); margin-left: -8px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.55)); } .boot-logo svg { width: 100%; height: auto; }
.boot .bar { width: min(60%, 260px); height: 8px; background: rgba(244,238,248,.12); transform: skewX(-20deg); overflow: hidden; }
.boot .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--vega-lt), var(--dash), var(--ghost)); transition: width .2s; }
.boot-msg { font-size: 11px; font-weight: 800; letter-spacing: .3em; color: var(--text); }
.rotate { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; text-align: center; padding: 30px; background: rgba(14,12,26,.96); z-index: 50; color: var(--text); }
.rotate svg { width: 64px; height: 64px; fill: none; stroke: var(--hc); stroke-width: 2.6; stroke-linecap: round; transform: rotate(-90deg); }
.rotate b { font-family: var(--disp); font-style: italic; font-weight: 900; font-size: 30px; color: var(--text-hi); letter-spacing: .04em; }
.rotate span { font-size: 13px; font-weight: 700; letter-spacing: .08em; }

/* ---------------------------------------------------------------- settings */
.panel.settings { width: min(92vw, 380px); max-height: 92vh; overflow-y: auto; text-align: left; scrollbar-width: none; }
.panel.settings h2 { text-align: center; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 2px 2px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 800; letter-spacing: .1em; color: var(--text); }
/* cl-19: every settings control's hit area is >= 44 px tall (Apple HIG / WCAG 2.5.5); the drawn track, knob and plate keep their cl-18 size */
.slider { position: relative; width: 52%; height: 44px; touch-action: none; cursor: pointer; }
.slider::before { content: ''; position: absolute; left: 0; right: 0; top: 19px; height: 6px; background: rgba(244,238,248,.16); transform: skewX(-20deg); }
.slider i { position: absolute; left: 0; top: 19px; height: 6px; background: var(--hc); transform-origin: 0 50%; }
.slider b { position: absolute; top: 12px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--keyline); }
.tog { position: relative; width: 52px; height: 44px; flex: none; cursor: pointer; }
.tog::before { content: ''; position: absolute; left: 0; right: 0; top: 8px; height: 28px; background: rgba(244,238,248,.14); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); transition: background .15s; }
.tog::after { content: ''; position: absolute; top: 12px; left: 8px; width: 20px; height: 20px; background: var(--text-dim); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); transition: left .15s, background .15s; }
.tog.on::before { background: var(--hc); } .tog.on::after { left: 26px; background: #fff; }
.seg { display: flex; }   /* audit 1128 L4: each option is a 44 px tap target */
.seg em { min-width: 64px; min-height: 44px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 10px 10px; text-align: center; font-style: normal; font-size: 12px; cursor: pointer; color: var(--text); background: var(--surface-2); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); margin-left: -3px; }
.seg em.on { background: var(--hc); color: var(--text-ink); }
.snote { font-size: 11px; font-weight: 600; color: var(--text-dim); margin: 8px 0 8px; line-height: 1.4; }
#settings .srow.test small { font-size: 9px; letter-spacing: .12em; color: var(--text-dim); font-style: normal; margin-left: 4px; }
#settings .cyc { pointer-events: auto; min-width: 72px; min-height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-family: var(--disp); font-style: italic; font-weight: 900; font-size: 15px;
  background: var(--surface-3); color: var(--text-hi); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
#settings .cyc.on { background: var(--text-hi); color: var(--text-ink); }
.pill.primary { padding-left: 54px; padding-right: 20px; }
#results.caught { overflow: hidden; }
#results.caught .panel.results { overflow: visible; }
#results.caught .panel > :not(.pinwin) { position: relative; }
.res-bank { color: var(--coin); }

/* cl-15f intro poster beat (js/intro_poster.js): letterbox, vignette, title card, reduced-motion dip. Driven per frame from
   JS (no transitions) and hidden before control; pointer-events: none so a tap still skips the intro. */
.intro-poster { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.intro-poster > * { position: absolute; pointer-events: none; }
.ip-vig { inset: 0; opacity: 0; background: radial-gradient(ellipse 85% 70% at 50% 46%, rgba(10,8,22,0) 55%, rgba(10,8,22,.55) 100%); }
.ip-bar { left: 0; right: 0; height: 0; background: #07060d; }
.ip-top { top: 0; } .ip-bot { bottom: 0; }
.ip-title { left: 50%; bottom: calc(10.5vh + 18px); transform: translate(-50%, 0); opacity: 0; text-align: center; white-space: nowrap;
  color: #fff; text-shadow: 0 2px 0 rgba(10,8,22,.7), 0 0 18px rgba(136,97,255,.55); }
.ip-title .ip-kick { display: block; font-family: var(--font); font-weight: 800; font-style: normal; font-size: 11px; letter-spacing: .42em; color: #d9d0ff; margin-bottom: 2px; }
.ip-title .ip-name { display: block; font-family: var(--disp); font-weight: 900; font-style: italic; font-size: 40px; letter-spacing: .04em; line-height: 1; text-transform: uppercase; }
.ip-dip { inset: 0; opacity: 0; background: #07060d; }

/* ---------------------------------------------------------------- cl-19 graphics reset (js/glguard.js)
   Above pause / settings / results, below the rotate guard. Same panel as the rest of the UI; no button: the whole screen
   is the tap target once it reads TAP TO CONTINUE / TAP TO RELOAD. */
.glreset { z-index: 45; pointer-events: auto; }
.glreset:not(.ready) { cursor: progress; }
.glreset.ready { cursor: pointer; }
.panel.glr { width: min(86%, 340px); padding: 24px 20px 20px; }
.glr-msg { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; color: var(--text); margin: 0 0 16px; }
.glr-tap { font-family: var(--disp); font-style: italic; font-weight: 900; font-size: 22px; letter-spacing: .06em; color: var(--text-dim); }
.glreset.ready .glr-tap { color: var(--hc); animation: glrpulse 1.4s ease-in-out infinite; }
@keyframes glrpulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .glreset.ready .glr-tap { animation: none; } }
#app.rm .glreset.ready .glr-tap { animation: none; }   /* audit 1128 L5 */
