/* ============================================================
   GRAND THEFT CAREER — LOS ANKITOS (3D)
   GTA V-flavoured HUD: chunky condensed type with heavy outlines,
   translucent black panels, gold / green / blue accents.
   System font stacks only (no CDN fonts — see CLAUDE.md).
   ============================================================ */
:root {
  --ink: #090c11; --ink2: #10151d; --panel: #151c27; --line: #263142;
  --muted: #8c9bb0;
  --gold: #f5c542; --cash: #6fcf4a; --cash2: #9be36f; --blue: #5aa9ff; --red: #e0414a; --pink: #ff5ec4; --cyan: #2fd3f5;
  /* v5 3.3: the title screen's sunset, shared with the mission title cards, MISSION PASSED and the final card */
  --dusk-ink: #1a0724; --dusk-deep: #2b0c3a; --dusk-pink: #ff3d7f; --dusk-orange: #ff8a3c; --dusk-sun: #ffd23f;
  --cond: "Arial Narrow", "Bahnschrift Condensed", "Roboto Condensed", "Helvetica Neue", Impact, system-ui, sans-serif;
  --title: Impact, "Haettenschweiler", "Arial Black", "Arial Narrow", system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --outline: 0 0 2px #000, 0 0 2px #000, 0 2px 3px rgba(0,0,0,.9);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
/* C12: page background/colour are declared once, in the "v4 — daylight
   page chrome" block below (the paper look is the one that ships; these
   dark tokens still style the in-game HUD, pause menu and phone). */
body {
  font-family: var(--body); min-height: 100vh; padding: 14px;
  -webkit-font-smoothing: antialiased;
}
.page { max-width: none; margin: 0 auto; }
/* v6 WP1: the game is the page. The column (HUD buttons, frame, key strip)
   is as wide as the window allows while the frame, at 16:9, still fits the
   window's height with the buttons above it and the key strip below it
   (--above-below: the page's top padding, the button row and its gap, the
   key strip, a little air). Everything else — the title, the profile, the
   missions, the stats — is below it, for whoever scrolls. */
:root { --hb-h: 46px; --above-below: 116px; }
.layout { display: block; }
.game-column, .below { width: min(100%, max(560px, calc((100vh - var(--above-below)) * 16 / 9))); margin: 0 auto; }
@supports (height: 100dvh) { .game-column, .below { width: min(100%, max(560px, calc((100dvh - var(--above-below)) * 16 / 9))); } }
body.gtc-touch .game-column, body.gtc-touch .below { width: 100%; }
.site-header { text-align: center; padding: 6px 0 18px; }
.site-header h1 { font-family: var(--title); font-size: clamp(32px, 5.5vw, 60px); letter-spacing: 1px; font-weight: 400; }
.accent { color: var(--gold); }
.tagline { color: var(--muted); font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; margin-top: 8px; }

/* ---------- game frame ---------- */
.game-frame { position: relative; background: #000; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 18px 50px rgba(0,0,0,.55); user-select: none; -webkit-user-select: none; }
#gameCanvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#gameCanvas:active { cursor: grabbing; }
#hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--cond); }
body.switching #gameCanvas { filter: saturate(.15) contrast(1.15) brightness(1.08); transition: filter .35s; }
#gameCanvas { transition: filter .5s; }

/* letterbox */
.lb { position: absolute; left: 0; right: 0; height: 0; background: #000; transition: height .5s ease; z-index: 3; }
.lb-top { top: 0; } .lb-bottom { bottom: 0; }
body.cinematic .lb { height: 11%; }
body.cinematic .mm-wrap, body.cinematic .topright, body.cinematic .objective, body.cinematic .area { opacity: 0; }

/* help box — GTA's top-left black box */
.help { position: absolute; top: 3%; left: 2%; max-width: 34%; background: rgba(0,0,0,.72); padding: 10px 14px; font-family: var(--body); font-size: clamp(11px, 1.15vw, 15px); line-height: 1.45; color: #fff; opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; z-index: 4; }
.help.show { opacity: 1; transform: none; }

/* colour codes */
.hc-y { color: var(--gold); } .hc-b { color: var(--blue); } .hc-g { color: var(--cash2); } .hc-r { color: #ff5a62; } .hc-p { color: var(--pink); }

/* top right: cash, stars */
.topright { position: absolute; top: 3%; right: 2.2%; text-align: right; transition: opacity .3s; z-index: 4; }
.cash { font-family: var(--title); font-size: clamp(22px, 2.8vw, 38px); color: var(--cash); text-shadow: var(--outline); letter-spacing: 1px; }
/* F1: the wanted stars are Ankit's SEV level (an incident's severity) */
.sev-label { font-family: var(--cond); font-weight: 700; font-size: clamp(9px, 1vw, 12px); letter-spacing: 2px; color: var(--muted); text-shadow: var(--outline); }
.stars { margin-top: 2px; font-size: clamp(14px, 1.7vw, 22px); letter-spacing: 2px; color: rgba(255,255,255,.18); text-shadow: 0 0 2px #000, 0 0 2px #000; }
.stars i { font-style: normal; transition: color .2s; }
.stars i.on { color: #fff; }
.stars.flash i.on { animation: starflash .6s infinite; }
@keyframes starflash { 50% { color: var(--red); } }
.speedo { font-family: var(--title); font-size: clamp(14px, 1.6vw, 20px); color: #fff; text-shadow: var(--outline); margin-top: 6px; letter-spacing: 1px; }

/* v6 WP2 item 8: the radio's now-playing strip lives in .rp-wrap, above the minimap (see there). */

/* toasts — right side feed */
.toasts { position: absolute; top: 20%; right: 2%; width: 34%; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; z-index: 4; }
.toast { background: rgba(0,0,0,.7); border-left: 4px solid var(--gold); color: #fff; padding: 6px 11px; font-size: clamp(11px, 1.15vw, 15px); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; animation: toastin .25s ease; transition: opacity .5s, transform .5s; }
.toast.out { opacity: 0; transform: translateX(14px); }
@keyframes toastin { from { opacity: 0; transform: translateX(14px); } }

/* big floating word */
.floatword { position: absolute; left: 50%; top: 38%; transform: translate(-50%, 0); font-family: var(--title); font-size: clamp(20px, 3vw, 42px); text-shadow: var(--outline); letter-spacing: 1px; white-space: nowrap; animation: floatup 1.8s ease forwards; z-index: 4; }
@keyframes floatup { 0% { opacity: 0; transform: translate(-50%, 14px) scale(.9); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -40px); } }

/* v6 WP3 (9): cash pickup feedback, right at the pickup's own screen spot
   (projected in hud.js) — a burst ring and a floating "+$N", plus the cash
   readouts pulse. CSS only, no new asset files. .cash-fx is a static
   wrapper (positioned once, in JS) so the inner element's own animated
   transform (scale, rise) never fights the positioning one. */
.cash-fx { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 5; }
.cash-burst { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 3px solid var(--cash); box-shadow: 0 0 10px rgba(111,207,74,.8); animation: cashburst .55s ease-out forwards; }
@keyframes cashburst { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(3.6); opacity: 0; } }
.cash-plus { margin: -16px 0 0 -26px; width: 52px; text-align: center; font-family: var(--title); font-size: 20px; color: var(--cash); text-shadow: var(--outline); white-space: nowrap; animation: cashplus .9s ease-out forwards; }
@keyframes cashplus { 0% { opacity: 0; transform: translateY(6px) scale(.85); } 18% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-34px) scale(1); } }
.cash.pulse { animation: cashpulse .4s ease-out; }
#hud-cash.pulse { display: inline-block; animation: cashpulse .4s ease-out; }
@keyframes cashpulse { 0% { transform: scale(1); } 35% { transform: scale(1.3); color: #fff; } 100% { transform: scale(1); } }

/* minimap — .mm-wrap is itself a <button> (tap/click anywhere on it to
   expand): reset the button defaults, keep the same look and layout. */
.mm-wrap { display: block; position: absolute; left: 2%; bottom: 3.5%; width: 23%; min-width: 150px; margin: 0; padding: 0; border: 0; background: none; font: inherit; text-align: left; color: inherit; cursor: pointer; pointer-events: auto; transition: opacity .3s, width .22s ease, left .22s ease, top .22s ease, bottom .22s ease, transform .22s ease; z-index: 4; }
.mm-wrap:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
#minimap { display: block; width: 100%; height: auto; border-radius: 4px; border: 2px solid rgba(0,0,0,.65); box-shadow: 0 2px 12px rgba(0,0,0,.6); background: #2b3530; }
.mm-expand-ic { position: absolute; right: 4px; top: 4px; width: 18px; height: 18px; display: grid; place-items: center; background: rgba(0,0,0,.6); border-radius: 3px; color: #fff; font-size: 12px; line-height: 1; pointer-events: none; }
/* v6: "put an E to guide people to expand with E button" — an overlay on
   the map itself (like .mm-expand-ic), so it adds no flow height: the
   .radio strip above is positioned off the map's own box, not its canvas
   content, and must stay untouched by anything drawn on top of the map. */
.mm-expand-key { position: absolute; left: 4px; top: 4px; display: flex; align-items: center; gap: 3px; background: rgba(0,0,0,.6); border-radius: 3px; padding: 2px 5px; font-family: var(--cond); font-weight: 700; font-size: 9px; letter-spacing: .06em; color: rgba(255,255,255,.9); pointer-events: none; }
.mm-expand-key kbd { background: rgba(255,255,255,.18); border-radius: 2px; padding: 0 3px; }
.mm-wrap.expanded .mm-expand-key { display: none; }
/* Expanded: centred, much bigger — the small corner view is hard to read
   on a phone (the owner: "the map doesn't expand on mobile"); the health/
   armour bars step aside so the map itself gets the room. */
.mm-wrap.expanded { left: 50%; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(82%, 560px); z-index: 30; }
.mm-wrap.expanded #minimap { box-shadow: 0 0 0 3px rgba(245,197,66,.55), 0 20px 60px rgba(0,0,0,.6); }
.mm-wrap.expanded .mm-expand-ic { width: 26px; height: 26px; font-size: 16px; transform: rotate(180deg); }
.mm-wrap.expanded .bar-label, .mm-wrap.expanded .bars { display: none; }
/* F1: health already regenerates, so "error budget" fits — it burns down
   under pressure and recovers, same as the real thing. */
.bar-label { margin-top: 4px; font-family: var(--cond); font-weight: 700; font-size: clamp(8px, .9vw, 11px); letter-spacing: 1.5px; color: #fff; text-shadow: var(--outline); }
.bars { display: flex; gap: 3px; margin-top: 3px; }
.bar { height: 7px; background: rgba(0,0,0,.6); flex: 1; overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; transition: width .2s; }
.bar.health i { background: linear-gradient(90deg, #4c9a2a, #6fcf4a); }
.bar.armour i { background: linear-gradient(90deg, #3a7ad0, #5aa9ff); width: 0; }

/* area name — bottom right */
.area { position: absolute; right: 2.2%; bottom: 4%; text-align: right; text-shadow: var(--outline); color: #fff; transition: opacity .3s; z-index: 4; }
#area-name { font-family: var(--title); font-size: clamp(16px, 2vw, 26px); letter-spacing: 1px; }
#area-sub { font-size: clamp(11px, 1.1vw, 14px); letter-spacing: 2px; color: #d8dee6; font-weight: 700; }
#clock { font-size: clamp(11px, 1.1vw, 14px); letter-spacing: 2px; color: var(--gold); font-weight: 700; margin-top: 2px; }
.area.show #area-name { animation: areain 4s ease; }
@keyframes areain { 0% { opacity: 0; } 15%, 85% { opacity: 1; } }

/* objective & subtitles — bottom centre */
.objective { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); width: 48%; text-align: center; font-family: var(--body); font-size: clamp(12px, 1.35vw, 18px); font-weight: 600; color: #fff; text-shadow: var(--outline); opacity: 0; transition: opacity .3s; z-index: 4; }
.objective.show { opacity: 1; animation: objin 6s ease; }
body.gtc-scene .objective.show { opacity: 0; animation: none; }   /* v5 WP5: a set piece holds the shot; the objective comes back after */
/* C8: distance to the objective, and an off-screen arrow pointing to it */
#obj-dist { color: var(--gold); font-weight: 700; }
.obj-arrow { position: absolute; left: 50%; top: 14%; font-size: clamp(16px, 2vw, 26px); color: var(--gold); text-shadow: var(--outline); opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 4; }
.obj-arrow.show { opacity: 1; }
@keyframes objin { 0% { opacity: 0; } 8% { opacity: 1; } }
.subtitle { position: absolute; left: 50%; bottom: 15%; transform: translateX(-50%); width: 50%; text-align: center; font-family: var(--body); font-size: clamp(12px, 1.4vw, 19px); color: #fff; text-shadow: var(--outline); opacity: 0; transition: opacity .25s; z-index: 5; line-height: 1.4; }
.subtitle.show { opacity: 1; }
body.cinematic .subtitle { bottom: 13%; }

/* NEW ROLE */
.role { position: absolute; left: 50%; top: 22%; transform: translate(-50%, -10px); text-align: center; opacity: 0; transition: opacity .3s, transform .3s; z-index: 5; }
.role.show { opacity: 1; transform: translate(-50%, 0); }
.role small { display: block; font-size: clamp(11px, 1.2vw, 15px); letter-spacing: 3px; color: var(--gold); font-weight: 700; text-shadow: var(--outline); }
.role b { display: block; font-family: var(--title); font-weight: 400; font-size: clamp(26px, 4vw, 54px); color: #fff; text-shadow: var(--outline); letter-spacing: 1px; margin: 2px 0; }

/* title card */
.titlecard { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 0 0 16% 6%; opacity: 0; z-index: 6; background: linear-gradient(90deg, rgba(26,7,36,.78), rgba(120,18,86,.34) 38%, rgba(255,61,127,0) 64%), linear-gradient(0deg, rgba(255,138,60,.3), rgba(255,61,127,.1) 30%, rgba(255,61,127,0) 55%); transition: opacity .45s; }
.titlecard.show { opacity: 1; }
#tc-small { font-size: clamp(12px, 1.4vw, 18px); letter-spacing: 4px; color: var(--gold); font-weight: 700; text-shadow: var(--outline); }
#tc-big { font-family: var(--title); font-size: clamp(36px, 7vw, 96px); color: #fff; text-shadow: 0 4px 0 var(--dusk-ink), 0 0 30px rgba(255,61,127,.5); line-height: .95; letter-spacing: 1px; }
#tc-sub { font-size: clamp(12px, 1.4vw, 18px); letter-spacing: 4px; color: #d8dee6; font-weight: 700; text-shadow: var(--outline); margin-top: 4px; }
.titlecard.show #tc-big { animation: tcin .7s cubic-bezier(.2,.9,.3,1.2); }
/* v5 2.2: the résumé line under a mission's title — role and employer, years and place, the headline */
.tc-line { margin-top: .9em; max-width: min(62%, 640px); padding: .5em .8em .45em; border-left: 4px solid var(--gold); background: rgba(26,7,36,.8); font-family: var(--body); color: #fff; }
.tc-line[hidden] { display: none; }
.tl-role { font: 400 clamp(14px, 1.9vw, 24px)/1.1 var(--title); letter-spacing: .02em; text-transform: uppercase; }
.tl-meta { margin-top: .2em; font: 700 clamp(10px, 1.05vw, 13px)/1.3 var(--body); letter-spacing: .08em; color: #ffe2d2; }
.tl-head { display: inline-block; margin-top: .45em; padding: .15em .5em; background: var(--gold); color: #111; font: 700 clamp(11px, 1.2vw, 15px)/1.3 var(--body); }
.tl-skip { margin-top: .5em; font: 700 clamp(8px, .85vw, 11px) var(--body); letter-spacing: .14em; opacity: .6; }
.titlecard.show .tc-line { animation: tcin .7s .25s cubic-bezier(.2,.9,.3,1.2) backwards; }
@keyframes tcin { from { opacity: 0; transform: translateX(-40px); } }

/* MISSION PASSED */
.passed { position: absolute; left: 0; right: 0; top: 26%; text-align: center; opacity: 0; z-index: 6; background: linear-gradient(90deg, rgba(26,7,36,0), rgba(26,7,36,.8) 20%, rgba(43,12,58,.8) 50%, rgba(26,7,36,.8) 80%, rgba(26,7,36,0)); padding: 14px 0 16px; transition: opacity .35s; }
/* thin sunset rules above and below the band */
.passed::before, .passed::after { content: ''; position: absolute; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, rgba(255,61,127,0), var(--dusk-pink) 25%, var(--dusk-orange) 60%, rgba(255,210,63,0)); }
.passed::before { top: 0; } .passed::after { bottom: 0; }
.passed.show { opacity: 1; }
.passed-title { font-family: var(--title); font-size: clamp(34px, 6vw, 84px); color: var(--dusk-sun); text-shadow: 0 4px 0 var(--dusk-ink), 0 0 40px rgba(255,138,60,.45); letter-spacing: 1px; }
.passed.show .passed-title { animation: passin .5s cubic-bezier(.2,.9,.3,1.3); }
@keyframes passin { from { transform: scale(1.4); opacity: 0; } }
.passed-medal { margin-top: 4px; font-size: clamp(13px, 1.5vw, 19px); letter-spacing: 3px; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.medal-icon { width: 22px; height: 22px; border-radius: 50%; display: inline-block; border: 2px solid rgba(0,0,0,.5); box-shadow: 0 0 10px rgba(255,255,255,.3); }
.medal-icon.gold { background: radial-gradient(circle at 35% 35%, #fff2b0, #f5c542 50%, #b8860b); }
.medal-icon.silver { background: radial-gradient(circle at 35% 35%, #fff, #c9d1d9 50%, #7d8790); }
.medal-icon.bronze { background: radial-gradient(circle at 35% 35%, #ffd9b0, #c8783a 50%, #7a4a20); }
.passed-stats { margin: 10px auto 0; width: min(420px, 70%); font-size: clamp(11px, 1.2vw, 15px); }
.passed-stats div { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid rgba(255,138,60,.28); letter-spacing: 1px; }
.passed-stats b { color: var(--cash2); }

/* phone call */
.phone { position: absolute; right: 3%; bottom: 24%; width: 15%; min-width: 120px; opacity: 0; transform: translateY(40px); transition: transform .45s cubic-bezier(.2,.9,.3,1.1), opacity .3s; z-index: 5; }
.phone.show { transform: none; opacity: 1; }
.phone-screen { background: linear-gradient(160deg, #1f2c3f, #0d131c); border: 3px solid #2b3445; border-radius: 16px; padding: 12px 10px 16px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.phone-top { font-size: 11px; letter-spacing: 2px; color: var(--cash2); font-weight: 700; animation: ringblink 1s infinite; }
@keyframes ringblink { 50% { opacity: .4; } }
.phone-from { font-family: var(--title); font-size: clamp(13px, 1.3vw, 17px); color: #fff; margin: 6px 0; letter-spacing: .5px; }
.phone-avatar { font-size: 30px; }

/* flash / fade */
.flash { position: absolute; inset: 0; opacity: 0; z-index: 7; }
.flash.go { animation: flash .6s ease; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.fade { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .4s; z-index: 8; }
.fade.on { opacity: 1; }
/* F4: the 90-second cut — one lower-third card per era */
.cut-card { position: absolute; left: 4%; bottom: 14.5%; width: min(54%, 560px); padding: .8em 1em .7em; border-left: 5px solid var(--gold, #f5c542);
  background: linear-gradient(90deg, rgba(8, 11, 16, .9), rgba(8, 11, 16, .62)); color: #fff; font-family: var(--body, system-ui, sans-serif);
  opacity: 0; transform: translateX(-18px); transition: opacity .35s ease, transform .35s ease; z-index: 5; pointer-events: none; }
.cut-card.show { opacity: 1; transform: none; }
.cut-card .cc-top { display: flex; justify-content: space-between; gap: 1em; font: 700 clamp(9px, 1vw, 13px) var(--body, system-ui, sans-serif); letter-spacing: .12em; color: var(--gold, #f5c542); }
.cut-card .cc-title { font: 400 clamp(17px, 2.5vw, 32px)/1.08 Impact, "Arial Narrow Bold", "Arial Narrow", system-ui, sans-serif; letter-spacing: .02em; margin: .2em 0 .1em; text-transform: uppercase; }
.cut-card .cc-inst { font-size: clamp(10px, 1.1vw, 14px); opacity: .85; }
.cut-card .cc-stat { display: inline-block; margin-top: .45em; padding: .15em .55em; background: var(--gold, #f5c542); color: #111; font: 700 clamp(10px, 1.05vw, 13px) var(--body, system-ui, sans-serif); letter-spacing: .06em; }
.cut-card .cc-stat:empty { display: none; }
.cut-card .cc-skills { display: flex; flex-wrap: wrap; gap: .3em .4em; margin-top: .55em; }
.cut-card .cc-skills span { padding: .14em .5em; border: 1px solid rgba(255, 255, 255, .32); border-radius: 3px; font-size: clamp(9px, .95vw, 12px); white-space: nowrap; }
.cut-card .cc-foot { display: flex; justify-content: space-between; margin-top: .6em; font: 700 clamp(8px, .85vw, 11px) var(--body, system-ui, sans-serif); letter-spacing: .14em; opacity: .6; }
/* v5 2.4: the Quick Tour's bar — top centre, above the fade, always on screen while the tour runs */
.tour-bar { position: absolute; left: 50%; top: 2.5%; transform: translateX(-50%); display: none; align-items: center; gap: .55em; max-width: 72%; padding: .35em .45em .35em .8em; border-radius: 6px;
  background: rgba(8, 11, 16, .82); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font: 700 clamp(10px, 1.1vw, 13px)/1.2 var(--cond); letter-spacing: .08em; white-space: nowrap; z-index: 9; pointer-events: auto; }
.tour-bar.show { display: flex; }
.tour-bar .tr-k { color: var(--gold); letter-spacing: .14em; }
.tour-bar .tr-step { opacity: .7; }
.tour-bar .tr-stage { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tour-bar .tr-clock { flex: 0 0 auto; width: clamp(36px, 6vw, 80px); height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.tour-bar .tr-clock i { display: block; height: 100%; width: 0; background: var(--gold); }
.tour-bar .tr-clock i[data-phase="card"] { background: #9ad0ff; }
.tour-bar .tr-clock i[data-phase="hold"] { background: rgba(255, 255, 255, .4); }   /* v6 WP3 (7b): STAY AND PLAY — no clock running */
.tour-bar .tr-btn { flex: 0 0 auto; padding: .35em .7em; border-radius: 4px; border: 1.5px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; letter-spacing: .08em; cursor: pointer; }
.tour-bar .tr-btn:hover, .tour-bar .tr-btn:focus-visible { background: rgba(255, 255, 255, .22); outline: none; }
.tour-bar .tr-btn:disabled { opacity: .35; cursor: default; }
.tour-bar .tr-next { background: var(--gold); border-color: var(--gold); color: #111; }
.tour-bar .tr-next:hover, .tour-bar .tr-next:focus-visible { background: #ffe27a; }
.tour-bar kbd { margin-left: .25em; padding: 0 .3em; border-radius: 3px; background: rgba(0, 0, 0, .35); font: inherit; font-size: .85em; }
.tour-bar .tr-next kbd { background: rgba(0, 0, 0, .15); }
/* v6 WP2 item 7: PLAY THE FULL GAME — the way out of the tour into the story, in the title screen's main-button magenta */
.tour-bar .tr-full { background: var(--hot, #d10f55); border-color: #ff7aa8; color: #fff; }
.tour-bar .tr-full:hover, .tour-bar .tr-full:focus-visible { background: #e8306f; }
/* A small frame (a laptop's short window, a phone held sideways): the bar drops its "QUICK TOUR" word and the
   key chips, and starts right of the pause buttons instead of centring, so it stays inside the frame and clear of the cash. */
@media (max-width: 960px), (max-height: 600px) {
  .tour-bar { left: 7.5%; transform: none; gap: .45em; padding-left: .55em; }
  .tour-bar .tr-k, .tour-bar .tr-btn kbd { display: none; }
}
body.gtc-touch .tour-bar .tr-btn kbd { display: none; }
/* The top-centre meters and the radio banner move down under the bar while the tour runs. */
body.gtc-tour .count-meter, body.gtc-tour .queue-meter { top: 12%; }
/* C17: the 21,000 — a counter that falls as you walk the queue */
.count-meter { position: absolute; left: 50%; top: 3%; transform: translateX(-50%); text-align: center; color: #fff; text-shadow: var(--outline, 0 2px 0 #000); opacity: 0; transition: opacity .3s; z-index: 4; pointer-events: none; }
.count-meter.show { opacity: 1; }
.count-meter b { display: block; font: 400 clamp(26px, 4.6vw, 58px)/1 Impact, "Arial Narrow Bold", "Arial Narrow", system-ui, sans-serif; color: var(--gold, #f5c542); letter-spacing: .02em; }
.count-meter span { font: 700 clamp(9px, 1.05vw, 13px) var(--body, system-ui, sans-serif); letter-spacing: .14em; }
body.cinematic .count-meter { opacity: 0; }
/* v5 5.1: the passport stamp over the ocean — red ink, a double frame, slammed on at an angle */
.passport-stamp { position: absolute; right: 8%; top: 24%; z-index: 4; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: .1em;
  padding: .45em 1.1em .5em; border: .22em double #d0263a; border-radius: 1.1em; color: #d0263a; background: rgba(255, 246, 232, .14);
  font: 700 clamp(10px, 1.2vw, 15px) var(--body, system-ui, sans-serif); letter-spacing: .16em; text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  opacity: 0; transform: rotate(-11deg) scale(1.9); transition: opacity .18s ease-out, transform .22s cubic-bezier(.2, 1.6, .4, 1); }
.passport-stamp.show { opacity: .95; transform: rotate(-11deg) scale(1); }
.passport-stamp b { font: 400 clamp(30px, 5vw, 64px)/1 Impact, "Arial Narrow Bold", "Arial Narrow", system-ui, sans-serif; letter-spacing: .06em; }
.passport-stamp .ps-stars { letter-spacing: .5em; font-size: .8em; }
body.cinematic .passport-stamp { opacity: 0; }
/* v5 5.4: six months in fast-forward — a calendar page that flips, and the role badge */
.calendar { position: absolute; left: 50%; top: 10%; transform: translateX(-50%); display: flex; align-items: center; gap: .7em; z-index: 4; pointer-events: none;
  font: 700 clamp(10px, 1.05vw, 14px) var(--body, system-ui, sans-serif); color: #fff; opacity: 0; transition: opacity .3s; perspective: 300px; }
.calendar.show { opacity: 1; }
.cal-page { background: #f6f1e6; color: #1b1b1b; border-radius: 6px; border-top: .55em solid #c8102e; padding: .1em .8em .25em; text-align: center; min-width: 3.4em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .45); transform-origin: top center; }
.cal-page small { display: block; font-size: .7em; letter-spacing: .16em; color: #555; }
.cal-page b { display: block; font: 400 2.3em/1 Impact, "Arial Narrow Bold", "Arial Narrow", system-ui, sans-serif; }
.calendar.flip .cal-page { animation: cal-flip .45s ease-out; }
@keyframes cal-flip { from { transform: rotateX(80deg); opacity: .25; } to { transform: none; opacity: 1; } }
.cal-badge { padding: .35em .8em; border-radius: 20px; background: rgba(8, 11, 16, .78); border: 1px solid var(--tint, #ff9a3c); color: var(--tint, #ff9a3c); letter-spacing: .1em; white-space: nowrap; text-shadow: 0 1px 0 #000; }
.cal-badge.swap { animation: cal-swap .5s ease-out; }
@keyframes cal-swap { from { transform: scale(1.35); } to { transform: none; } }
body.cinematic .calendar { opacity: 0; }
/* v5 5.6: a stage's own action — one card, four looks: a quiz show (1-1), an
   answer sheet (1-2), a test report (2-1), an incident console (4-1). Shown
   over the letterbox (the shot is held while it is up); its buttons take a
   click or a tap as well as the number keys. */
.act-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -48%) scale(.97); width: min(58%, 560px); max-height: 76%; overflow: hidden; z-index: 7;
  display: flex; flex-direction: column; gap: .35em; padding: .7em 1em .6em; border-radius: 8px; border: 2px solid var(--gold);
  background: rgba(12, 10, 24, .93); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); font: 400 clamp(11px, 1.25vw, 15px)/1.25 var(--body);
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s; }
.act-card.show { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.ac-top { display: flex; justify-content: space-between; gap: 1em; font: 700 .78em var(--cond); letter-spacing: .16em; color: var(--gold); }
.ac-sev:empty { display: none; }
.ac-title { font: 400 1.55em/1.08 var(--title); letter-spacing: .02em; text-transform: uppercase; }
.ac-prompt { font-size: .86em; opacity: .82; }
.ac-prompt:empty, .ac-note:empty { display: none; }
.ac-opts { display: flex; flex-direction: column; gap: .3em; }
.ac-opt { display: flex; align-items: center; gap: .6em; width: 100%; min-height: 2em; text-align: left; padding: .32em .6em; border-radius: 5px; border: 1.5px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .06); color: inherit; font: 600 1em/1.2 var(--body); cursor: pointer; }
.ac-opt:hover, .ac-opt:focus-visible { background: rgba(255, 255, 255, .16); outline: none; }
.ac-opt kbd { flex: 0 0 auto; min-width: 1.7em; text-align: center; padding: .08em .35em; border-radius: 4px; background: var(--gold); color: #111; font: 700 .9em var(--cond); }
.ac-opt .ac-t { flex: 1 1 auto; min-width: 0; }
.ac-opt .ac-s { flex: 0 1 auto; opacity: .78; font-size: .86em; text-align: right; }
.ac-opt .ac-cs { flex: 1 0 100%; display: flex; gap: .5em; padding-left: 2.3em; }
.ac-opt .ac-c { flex: 1 1 0; min-width: 0; padding: .05em .45em; border-radius: 3px; font: 600 .84em/1.25 ui-monospace, Consolas, "Courier New", monospace; }
.ac-opt .ac-c small { margin-right: .5em; font: 700 .78em var(--cond); letter-spacing: .12em; opacity: .6; }
.ac-opt .ac-c.bad { color: #ff6b6b; background: rgba(255, 107, 107, .14); }
.act-card[data-kind="bug"] .ac-opt { flex-wrap: wrap; row-gap: .15em; }
.ac-opt.right { border-color: #9be36f; background: rgba(155, 227, 111, .2); }
.ac-opt.right kbd { background: #9be36f; }
.ac-opt.wrong { border-color: #ff6b6b; background: rgba(255, 107, 107, .16); animation: ac-shake .32s; }
.ac-opt.pass { opacity: .55; }
@keyframes ac-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.ac-note { font-weight: 700; font-size: .92em; }
.ac-note.good { color: #9be36f; } .ac-note.bad { color: #ffa08f; }
.ac-foot { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.ac-keys { font: 700 .72em var(--cond); letter-spacing: .14em; opacity: .72; }
.ac-skip { flex: 0 0 auto; padding: .2em .6em; border-radius: 4px; border: 1px solid currentColor; background: none; color: inherit; opacity: .7; font: 700 .72em var(--cond); letter-spacing: .14em; cursor: pointer; }
.ac-skip:hover, .ac-skip:focus-visible { opacity: 1; outline: none; }
.act-card.ended .ac-skip { visibility: hidden; }
/* a touch screen: clear of the touch pad on the right */
body.gtc-touch .act-card { left: 44%; width: 64%; }
/* 1-1: a quiz show in the sunset colours */
.act-card[data-kind="quiz"] { background: linear-gradient(160deg, var(--dusk-deep), #12061f 70%); border-color: var(--dusk-pink); }
.act-card[data-kind="quiz"] .ac-k { color: var(--dusk-sun); }
/* 1-2: an answer sheet — paper, a ringed bubble per question, the pen's sweep */
.act-card[data-kind="exam"] { background: #f7f3e8; color: #1b1b1b; border-color: #2f5fa8; box-shadow: 6px 6px 0 rgba(23, 20, 15, .8); }
.act-card[data-kind="exam"] .ac-k { color: #2f5fa8; }
.act-card[data-kind="exam"] .ac-opt { border-color: rgba(0, 0, 0, .18); background: transparent; }
.act-card[data-kind="exam"] .ac-opt.cur { border-color: #2f5fa8; background: rgba(47, 95, 168, .08); }
.act-card[data-kind="exam"] .ac-opt.right { border-color: rgba(19, 136, 8, .5); background: rgba(19, 136, 8, .07); }
.act-card[data-kind="exam"] .ac-note.bad { color: #b3261e; } .act-card[data-kind="exam"] .ac-note.good { color: #138808; }
.ac-bs { display: flex; gap: .5em; }
.ac-b { width: 1.8em; height: 1.8em; border-radius: 50%; border: 2px solid #6a6a6a; display: inline-grid; place-items: center; font: 700 .72em var(--body); color: #555; transition: background .08s; }
.ac-b.target { border-color: #c8102e; box-shadow: 0 0 0 2px rgba(200, 16, 46, .28); color: #c8102e; }
.ac-b.on { background: rgba(47, 95, 168, .45); color: #fff; }
.ac-b.filled { background: #1b1b1b; border-color: #1b1b1b; color: #fff; box-shadow: none; }
/* 2-1: a test report */
.act-card[data-kind="bug"] { background: #0d1117; border-color: #2fe0cf; }
.act-card[data-kind="bug"] .ac-k { color: #2fe0cf; }
.act-card[data-kind="bug"] .ac-title { color: #e9eef4; }
/* 4-1: the incident console, with its SEV level */
.act-card[data-kind="triage"] { background: linear-gradient(180deg, #2a0b11, #12080b 60%); border-color: #ff4d5e; }
.act-card[data-kind="triage"] .ac-k, .act-card[data-kind="triage"] .ac-sev { color: #ff6b6b; }
.act-card[data-kind="triage"] .ac-opt.right kbd { background: #9be36f; }
@media (max-width: 760px) { .act-card { width: 72%; padding: .5em .75em .45em; gap: .25em; } .ac-title { font-size: 1.3em; } .ac-opt { min-height: 1.7em; padding: .22em .5em; } }
/* F2: the queue outside the bank, while you work inside */
.queue-meter { position: absolute; left: 50%; top: 3.2%; transform: translateX(-50%); display: flex; align-items: center; gap: .7em; padding: .35em .8em; border-radius: 6px;
  background: rgba(8, 11, 16, .72); border: 1px solid rgba(255, 107, 107, .65); font: 700 clamp(10px, 1.05vw, 14px) var(--body, system-ui, sans-serif); letter-spacing: .08em; color: #fff;
  opacity: 0; transition: opacity .3s; z-index: 4; white-space: nowrap; }
.queue-meter.show { opacity: 1; }
.queue-meter .queue-k { color: #ff8a8a; }
.queue-meter .queue-bar { width: clamp(70px, 12vw, 170px); height: .7em; border-radius: 3px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.queue-meter .queue-bar i { display: block; height: 100%; width: 100%; background: #ff6b6b; transition: width .5s ease; }
.queue-meter.clear { border-color: rgba(155, 227, 111, .8); }
.queue-meter.clear .queue-k, .queue-meter.clear .queue-t { color: #9be36f; }
body.cinematic .queue-meter { opacity: 0; }
body.cinematic .obj-arrow, body.cinematic .toasts { opacity: 0; }   /* nothing of the HUD over a held shot */
/* v5 2.3: the résumé, building on screen. Left of the frame, between the
   help box and the minimap: its height is what is left above the minimap
   (23% of the frame's width, at least 150 px, at 150/220 of that, plus its
   bars), so it never reaches it; it stops short of the objective's column. */
.rp-wrap { position: absolute; inset: 0; container: hud / size; z-index: 4; pointer-events: none; --np-h: clamp(30px, 6.4cqh, 42px); }
body.gtc-touch .rp-wrap { --np-h: 42px; }                       /* a thumb-sized tap target */
.resume-panel { position: absolute; left: 2%; top: 22%; width: clamp(150px, 21%, 270px); max-height: calc(74.5cqh - max(15.7cqw, 102px) - 44px - var(--np-h)); display: none; flex-direction: column; pointer-events: auto;
  background: rgba(8, 11, 16, .74); border-left: 3px solid var(--gold); border-radius: 0 6px 6px 0; color: #fff; font-family: var(--body); transition: opacity .3s; }
body.gtc-started .resume-panel.has { display: flex; }
body.cinematic .resume-panel, body.gtc-cut .resume-panel { opacity: 0; visibility: hidden; }
/* v6 WP2 item 8: now playing — station over song, as wide as the minimap and just above it
   (the minimap: 3.5% up, 23% of the frame wide, at least 150 px, 150/220 as tall, plus its
   bars). It stays on in play and in cutscenes; it steps aside only for the 90-second cut and
   the tour's résumé card, which sit in the same corner. R, a click or a tap: the next station. */
.radio { position: absolute; left: 2%; bottom: calc(3.5cqh + max(15.7cqw, 102px) + 34px); width: max(23cqw, 200px); height: var(--np-h);
  display: flex; align-items: center; gap: .5em; padding: 0 .45em 0 .55em; pointer-events: auto; cursor: pointer; text-align: left;
  background: rgba(8, 11, 16, .8); color: #fff; border: 0; border-left: 3px solid var(--pink); border-radius: 0 6px 6px 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
  font-family: var(--cond); transition: opacity .3s, background .15s; touch-action: manipulation; }
.radio:hover, .radio:focus-visible { background: rgba(40, 14, 44, .9); outline: none; }
.radio .np-icon { flex: 0 0 auto; color: var(--pink); font-size: clamp(13px, 1.6cqw, 19px); line-height: 1; }
.radio .np-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.radio #np-station { font: 700 clamp(10px, 1.15cqw, 14px)/1.15 var(--cond); letter-spacing: .1em; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio #np-song { font: 600 clamp(10px, 1.12cqw, 14px)/1.2 var(--body); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio.off #np-station { color: #c9cfd8; }
.radio.off #np-song { color: #c9cfd8; font-style: italic; }
.radio .np-key { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1px; font: 700 clamp(7px, .72cqw, 9px)/1 var(--cond); letter-spacing: .12em; color: #dbe5f0; }
.radio .np-key kbd { font-size: clamp(10px, 1.05cqw, 12px); padding: 0 .45em; }
.radio .np-tap { display: none; }
body.gtc-touch .radio .np-k { display: none; }
body.gtc-touch .radio .np-tap { display: inline; }
.radio.np-new { animation: npflash 1.6s ease-out; }   /* not .flash: that is the screen flash's class */
@keyframes npflash { 0% { background: rgba(209, 15, 85, .75); box-shadow: 0 0 0 2px #ff7aa8; } 100% { background: rgba(8, 11, 16, .8); box-shadow: 0 2px 10px rgba(0, 0, 0, .45); } }
body.gtc-cut .radio, #hud:has(#cut-card.show) .radio { opacity: 0; visibility: hidden; }
.rp-head { display: flex; align-items: center; gap: .6em; width: 100%; padding: .4em .65em; background: none; border: 0; color: #fff; cursor: pointer; text-align: left; font: 700 clamp(10px, 1.1cqw, 13px)/1.2 var(--cond); letter-spacing: .14em; }
.rp-head:hover, .rp-head:focus-visible { background: rgba(255, 255, 255, .08); outline: none; }
.rp-k { color: var(--gold); }
.rp-count { margin-left: auto; opacity: .8; letter-spacing: .08em; }
.rp-caret { transition: transform .2s; }
.resume-panel.collapsed .rp-caret { transform: rotate(-90deg); }
.resume-panel.collapsed .rp-body { display: none; }
.rp-body { display: flex; flex-direction: column-reverse; min-height: 0; overflow-y: auto; padding: 0 .65em .55em; scrollbar-width: thin; }
.rp-stage h4 { margin: .45em 0 .15em; font: 700 clamp(10px, 1.05cqw, 12px)/1.25 var(--cond); letter-spacing: .05em; color: #ffe9a8; text-transform: uppercase; }
.rp-stage h4 b { margin-right: .3em; color: var(--gold); }
.rp-stage h4.done::after { content: ' \2713'; color: var(--cash2); }
.rp-stage ul { list-style: none; }
.rp-stage li { position: relative; padding-left: .9em; font-size: clamp(11px, 1.1cqw, 13px); line-height: 1.3; }
.rp-stage li::before { content: '\25B8'; position: absolute; left: 0; color: var(--gold); opacity: .75; }
.rp-stage li.new { animation: rpnew 1.4s ease; }
@keyframes rpnew { from { background: rgba(245, 197, 66, .45); } to { background: transparent; } }
/* P3: shown over the fade while a place that loads in stage 2 is still being built */
.world-loading { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 9; text-align: center; pointer-events: none;
  font: 700 clamp(14px, 2.2vw, 22px) Impact, "Arial Narrow Bold", "Arial Narrow", system-ui, sans-serif; letter-spacing: .12em; color: var(--gold, #f5c542); opacity: 0; }
.world-loading.show { opacity: 1; }
#hud.hurt::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 120px rgba(220,30,30,.65); animation: hurt .6s ease forwards; }
@keyframes hurt { to { opacity: 0; } }

/* ---------- overlays ---------- */
.overlay { position: absolute; inset: 0; display: none; align-items: flex-start; justify-content: center; padding: 18px; background: rgba(5,8,12,.88); backdrop-filter: blur(3px); z-index: 10; overflow-y: auto; }
.overlay.active { display: flex; }
.overlay > * { margin: auto; }
.splash { background: linear-gradient(180deg, rgba(5,8,12,.55), rgba(5,8,12,.88)); }
.splash-inner { text-align: center; max-width: 640px; padding: 6px 0; }
.splash-title { font-family: var(--title); font-weight: 400; font-size: clamp(32px, 6vw, 64px); color: #fff; text-shadow: 0 4px 0 #000; line-height: 1; }
.splash-sub { font-family: var(--cond); font-weight: 700; color: var(--muted); font-size: 13px; letter-spacing: 2px; margin: 8px 0 10px; }
/* F3: "?for=Acme+Bank" — a personalised line on the title screen. */
.splash-for { font-family: var(--cond); font-weight: 700; color: var(--tangerine); font-size: 13px; letter-spacing: 2px; margin: 6px 0 0; }
.loadbar { width: min(540px, 100%); height: 6px; margin: 8px auto 4px; background: #1d2736; border-radius: 3px; overflow: hidden; }
.loadbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--cash2)); transition: width .3s; }
.load-label { font-family: var(--cond); font-weight: 700; font-size: 12px; letter-spacing: 2px; color: var(--muted); }
#loading.ready .load-label { color: var(--cash2); }
.splash-rules { text-align: left; background: rgba(21,28,39,.92); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin-top: 10px; }
.splash-rules-title { font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: 2px; color: var(--gold); margin-bottom: 6px; }
.splash-rules ul { list-style: none; display: grid; gap: 4px; font-size: 13px; color: #d4dde7; }
.splash-rules p { margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.5; }

.btn { display: inline-block; font-family: var(--cond); font-weight: 700; font-size: 16px; letter-spacing: 1.5px; text-transform: uppercase; padding: 10px 18px; margin: 4px; background: var(--gold); color: #121212; border: none; border-radius: 6px; cursor: pointer; text-decoration: none; box-shadow: 0 3px 0 #9c7a16; transition: transform .08s, box-shadow .08s, filter .15s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(3px); box-shadow: none; }
.btn:disabled { filter: grayscale(1) brightness(.6); cursor: wait; }
.btn-big { font-size: 22px; padding: 12px 30px; margin-top: 10px; }
.btn-alt { background: #243043; color: #e6ecf3; box-shadow: 0 3px 0 #141c28; }

.mission-card { background: linear-gradient(180deg, #19212e, #10161f); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 10px; padding: 18px 20px; max-width: 580px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.mission-top { display: flex; justify-content: space-between; gap: 10px; font-family: var(--cond); font-weight: 700; letter-spacing: 1.5px; }
.mission-tag { color: var(--gold); font-size: 15px; }
.mission-year { color: var(--muted); font-size: 14px; }
.mission-title { font-family: var(--title); font-weight: 400; font-size: 28px; line-height: 1.1; color: #fff; margin: 8px 0 4px; text-transform: uppercase; }
.mission-inst { color: var(--cyan); font-size: 13px; margin-bottom: 8px; }
.mission-stat { display: inline-block; font-family: var(--cond); font-weight: 700; letter-spacing: 1.5px; background: #0e2a16; color: var(--cash2); border: 1px solid #2d5a38; border-radius: 6px; padding: 4px 10px; font-size: 14px; margin-bottom: 10px; }
.mission-desc { font-size: 14px; line-height: 1.62; color: #ccd7e3; }
.mission-skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.skill-tag { font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: .6px; background: #22304a; border: 1px solid #35496b; color: #bcd2ef; padding: 3px 9px; border-radius: 20px; }
.mission-actions { margin-top: 14px; }

.teaser-card { text-align: center; font-family: var(--cond); }
.teaser-q { font-family: var(--title); font-size: 90px; color: var(--gold); text-shadow: 0 0 30px rgba(245,197,66,.4); line-height: 1; }
.teaser-card h3 { font-family: var(--title); font-weight: 400; font-size: 40px; letter-spacing: 2px; color: #fff; margin: 8px 0; }
.teaser-loading { color: var(--gold); letter-spacing: 4px; font-size: 17px; font-weight: 700; }
.teaser-sub { color: var(--muted); font-size: 14px; margin-top: 10px; font-family: var(--body); }
.dots span { animation: blink 1.2s infinite; } .dots span:nth-child(2) { animation-delay: .2s; } .dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

.final-card { border-top-color: var(--cash2); max-width: 620px; }
/* v5 3.3: MISSION PASSED's card and the final card in the title screen's sunset —
   deep violet falling to a warm glow. The top border still takes the era's tint (hud.js). */
#card-overlay .mission-card, #final-overlay .mission-card { background: linear-gradient(180deg, #2b0c3a 0%, #1a0724 58%, #2c0a22 100%); border-color: rgba(255,61,127,.35); box-shadow: 0 20px 60px rgba(10,2,16,.7), 0 0 60px rgba(255,90,90,.16); }
#card-overlay .mission-tag, #final-overlay .mission-tag { color: var(--dusk-sun); }
#card-overlay .mission-year, #final-overlay .mission-year { color: #e7b9cf; }
#card-overlay .mission-desc, #final-overlay .mission-desc { color: #f0dfe9; }
#card-overlay .mission-stat { background: rgba(255,138,60,.14); color: #ffc48a; border-color: rgba(255,138,60,.55); }
#card-overlay .skill-tag { background: rgba(255,61,127,.14); border-color: rgba(255,61,127,.45); color: #ffd3e2; }
#final-overlay .final-card { border-top: 3px solid var(--dusk-orange); }
#final-overlay .loading-gag { background: rgba(26,7,36,.75); border-color: rgba(255,61,127,.35); }
#final-overlay .loading-gag-label { color: var(--dusk-sun); }
#final-overlay .loading-gag-list, #final-overlay .hire-caption { color: #dcb8cc; }
#final-overlay .loading-bar { background: #3a1448; }
#final-overlay .loading-bar-fill { background: linear-gradient(90deg, var(--dusk-pink), var(--dusk-orange), var(--dusk-sun)); }
#card-overlay .btn-alt, #final-overlay .btn-alt { background: #3a1448; color: #f7e6ef; box-shadow: 0 3px 0 #1a0724; }
/* Q4: the résumé reader reuses .pm-paper (cqw-sized), which otherwise only
   lives inside the pause menu's container-type: inline-size ancestor. */
#resume-overlay-card { container-type: inline-size; max-height: 86%; overflow-y: auto; }
.loading-gag { margin: 14px 0; background: #0d131c; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.loading-gag-label { font-family: var(--cond); font-weight: 700; letter-spacing: 2px; color: var(--gold); font-size: 13px; margin-bottom: 7px; }
.loading-bar { height: 9px; background: #1d2736; border-radius: 5px; overflow: hidden; }
.loading-bar-fill { height: 100%; width: 40%; background: linear-gradient(90deg, var(--cyan), var(--cash2)); animation: load 2.6s ease-in-out infinite; }
@keyframes load { 0%, 100% { width: 8%; } 50% { width: 88%; } }
.loading-gag-list { margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.hire-block { text-align: center; margin: 14px 0 6px; }
.hire-btn { background: var(--cash2); box-shadow: 0 3px 0 #4d8a31; font-size: 18px; }
.hire-caption { font-family: var(--cond); font-weight: 700; letter-spacing: 1.5px; color: var(--muted); font-size: 12px; margin-top: 6px; }
.hire-caption a { color: var(--gold); }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* touch — phones and tablets (body.gtc-touch, set by game.js). The buttons
   are a two-column pad under the right thumb, sized to the screen's height
   so all six fit on a phone held sideways; they appear with the game, not
   over the title screen. */
.touch { position: absolute; right: 2%; bottom: 18%; display: none; grid-template-columns: repeat(2, auto); gap: 8px; z-index: 9; align-items: center; justify-items: center; }
.tb { width: clamp(40px, 13vh, 54px); height: clamp(40px, 13vh, 54px); border-radius: 50%; border: 2px solid rgba(255,255,255,.35); background: rgba(0,0,0,.45); color: #fff; font-family: var(--cond); font-weight: 700; font-size: 15px; touch-action: none; }
.tb-big { width: clamp(50px, 17vh, 70px); height: clamp(50px, 17vh, 70px); font-size: 26px; background: rgba(245,197,66,.35); }
#tb-radio { order: 1; } #tb-skills { order: 2; } #tb-horn { order: 3; } #tb-use { order: 4; } #tb-sprint { order: 5; } #tb-punch { order: 6; }
body.gtc-touch.gtc-started .touch { display: grid; }
body.gtc-touch.gtc-cut .touch { display: none; }
/* The pager rings where the thumb pad is: on a phone it moves in beside it. */
body.gtc-touch .phone { right: calc(2% + 2 * clamp(40px, 13vh, 54px) + 28px); bottom: 20%; }
/* The move stick, drawn where the left thumb lands. */
.stick { position: absolute; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); background: rgba(0,0,0,.18); z-index: 8; pointer-events: none; opacity: 0; transition: opacity .12s; }
.stick.on { opacity: 1; }
.stick i { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255,255,255,.55); }
.touch-hint { display: none; }
body.gtc-touch.gtc-started:not(.gtc-cut) .touch-hint { display: block; position: absolute; left: 50%; top: 14%; transform: translateX(-50%); z-index: 9; padding: .5em 1em; border-radius: 6px; background: rgba(0,0,0,.7); color: #fff; font: 700 clamp(10px, 1.6vw, 13px)/1.3 var(--cond); letter-spacing: .08em; white-space: nowrap; pointer-events: none; animation: touchHintFade 10s ease forwards; }
.touch-only { display: none; }
body.gtc-touch .touch-only { display: list-item; }
/* A phone held upright gets a 16:9 strip of the game, too small to play: it
   says so across the frame until the phone is turned (game.js then lets the
   game fill the screen). Nothing is lost while it shows — there is no fail
   state — and the 90-second cut, which needs no controls, plays without it. */
.rotate-tip { display: none; }
@media (orientation: portrait) {
  body.gtc-touch.gtc-started:not(.gtc-cut) .rotate-tip { display: grid; place-items: center; position: absolute; inset: 0; z-index: 20; padding: 8%; background: rgba(8,4,16,.72); color: #fff; font: 700 clamp(13px, 4.6vw, 20px)/1.3 var(--cond); letter-spacing: .08em; text-align: center; pointer-events: none; }
  body.gtc-touch.gtc-started .touch, body.gtc-touch.gtc-started .touch-hint { display: none; }
  /* The title screen needs more room than a 16:9 strip of a phone's width. */
  body.gtc-touch:not(.gtc-started) .game-frame { aspect-ratio: auto; height: min(84vh, 780px); height: min(84dvh, 780px); }
}
/* The thumb hint fades after a few seconds (the "turn your phone" note above does not: it holds until the phone is turned). */
@keyframes touchHintFade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
/* Keyboard hints and the page's own chips mean nothing on a phone. */
body.gtc-touch .controls-note, body.gtc-touch .chrome { display: none; }
/* Before the game starts the HUD has nothing to show, and the city behind the title screen should be clean. */
body:not(.gtc-started) #hud > :not(.fade) { visibility: hidden; }

.controls-note { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; padding: 9px 6px 0; font-size: 14px; color: var(--muted); min-height: 36px; }
kbd { background: #243043; border: 1px solid #35496b; border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; font-family: var(--cond); font-weight: 700; font-size: 12px; color: #dbe5f0; }

/* ---------- below the game: who, the missions, the stats (v6 WP1: was a tall phone beside the frame; v6 WP4.1, 19 Nov: the owner didn't like the cream paper-card look against the game and asked for it to match — restyled dark/glass in one padded panel so the chips row, SHARE and the card grid all share the same edges; v6 WP4 round 2: that first restyle went dark-purple-and-neon-rainbow and was rejected as "AI slop" — now one warm asphalt base + --tangerine everywhere, --hot spent only on the profile card) ---------- */
.below { margin-top: 34px; background: linear-gradient(180deg, var(--dusk-asphalt) 0%, var(--dusk-asphalt-deep) 55%, #0a0707 100%); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 28px clamp(16px, 4vw, 44px) 30px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 60px rgba(0,0,0,.4); }
.sidebar { display: grid; grid-template-columns: minmax(330px, 1.15fr) minmax(0, 2fr) minmax(240px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .missions-card { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 640px) { .below { padding: 22px 14px 24px; border-radius: 14px; } .sidebar { grid-template-columns: minmax(0, 1fr); } .missions-card { grid-row: auto; } .card h2 { flex-direction: column; align-items: flex-start; gap: 2px; } }
/* v6 WP4 round 2: one warm accent (--tangerine) for every card's everyday
   structure (border, dividers, hovers), not a different neon colour each —
   the "AI slop" tell was the per-card rainbow. --hot is spent in exactly
   one place below: the profile card, this section's one hero. */
.card { --acc: var(--tangerine); background: var(--glass); border: 1px solid rgba(255,255,255,.14); border-top: 3px solid var(--acc); border-radius: 10px; padding: 14px 16px 12px; box-shadow: 0 10px 28px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05); color: #e7ecf4; }
.card h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-family: var(--cond); font-weight: 700; font-size: 16px; letter-spacing: .16em; color: #fff; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid rgba(255,255,255,.16); }
.hint { font-family: var(--body); font-weight: 600; font-size: 12px; letter-spacing: 0; color: #a7b0c2; }
/* v6 WP2: the profile card has room — the name never reaches the edge, the badge is a line of its own that wraps as a block */
.profile { --acc: var(--hot); display: flex; gap: 18px; align-items: center; padding: 16px 20px 16px 16px; }
.profile > div:last-child { min-width: 0; flex: 1 1 auto; }
.portrait { border-radius: 8px; overflow: hidden; border: 2px solid var(--hot); flex: 0 0 auto; background: #1a0b24; box-shadow: 0 0 .45em rgba(209,15,85,.3); }
#portraitCanvas { display: block; width: 96px; height: 128px; }
.profile-name { font-family: var(--title); font-size: 25px; letter-spacing: .5px; line-height: 1.05; color: #fff; }
.profile-title { margin: 6px 0 10px; font: 700 13px/1.2 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--hot); }
.badge { display: block; width: fit-content; max-width: 100%; font: 700 12px/1.35 var(--body); background: rgba(0,0,0,.4); color: #ffe9a8; padding: 5px 10px; border-radius: 4px; border: 1px solid rgba(255,210,63,.3); text-wrap: balance; }
.mission-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.mission-node { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); border-left: 5px solid var(--tangerine); border-radius: 6px; font-size: 12.5px; line-height: 1.4; color: #c3cbda; cursor: pointer; transition: background .15s, border-color .15s, transform .08s; }
.mission-node:hover, .mission-node:focus-visible { background: rgba(255,106,26,.12); border-color: var(--tangerine); transform: translate(-1px, -1px); outline: none; }
.mission-node b { color: #fff; font-family: var(--cond); font-size: 15px; letter-spacing: .04em; }
.mission-node.start { cursor: default; border-left-color: #a97ef0; background: rgba(169,126,240,.12); }
.mission-node.start:hover { transform: none; box-shadow: none; background: rgba(169,126,240,.12); border-color: rgba(255,255,255,.14); border-left-color: #a97ef0; }
.mission-node.done { border-left-color: var(--cash2); }
.mission-node.done .m-tag { background: var(--cash2); color: #0c2e0c; }
.m-tag { flex: 0 0 auto; font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: .06em; background: rgba(0,0,0,.5); color: var(--sun); border-radius: 4px; padding: 3px 6px; min-width: 34px; text-align: center; }
.stats-card { display: grid; gap: 2px; }
.stat { padding: 6px 0 7px; border-bottom: 1px dashed rgba(255,255,255,.16); font-family: var(--cond); font-weight: 700; font-size: 12.5px; letter-spacing: .12em; color: #a7b0c2; }
.stat:last-child { border-bottom: 0; }
/* F1: facts, not unsourced percentage bars */
.stat-fact { margin-top: 2px; font-family: var(--body); font-weight: 700; font-size: 14.5px; letter-spacing: 0; color: #fff; }

/* v6: a closing contact section, same width and dark-panel language as
   .below (it sits on the bright page, like .below itself does). */
.lets-talk { width: min(100%, max(560px, calc((100vh - var(--above-below)) * 16 / 9))); margin: 20px auto 0; text-align: center; background: linear-gradient(180deg, var(--dusk-asphalt) 0%, var(--dusk-asphalt-deep) 55%, #0a0707 100%); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 34px clamp(16px, 4vw, 44px) 30px; color: #e7ecf4; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 60px rgba(0,0,0,.4); }
@supports (height: 100dvh) { .lets-talk { width: min(100%, max(560px, calc((100dvh - var(--above-below)) * 16 / 9))); } }
body.gtc-touch .lets-talk { width: 100%; }
.lets-talk h2 { font-family: var(--title); font-size: clamp(26px, 4vw, 42px); color: #fff; margin-bottom: 10px; }
.lt-role { font: 700 12.5px/1.4 var(--cond); letter-spacing: .08em; color: var(--tangerine); text-transform: uppercase; margin-bottom: 16px; }
.lt-tagline { max-width: 640px; margin: 0 auto 16px; font: 700 14px/1.55 var(--cond); letter-spacing: .02em; color: #fff; }
.lt-recruit { max-width: 560px; margin: 0 auto 22px; font: 500 13px/1.6 var(--body); color: #c3cbda; }
.lt-recruit b { color: var(--sun); }
.lt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.site-footer { text-align: center; padding: 26px 10px 14px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.site-footer a { color: var(--cash2); }
.disclaimer { font-size: 10.5px; color: #6b7a8c; max-width: 760px; margin: 4px auto 0; }

/* ============================================================
   v3 — loading tips, MISSION SELECT, pause button, pause menu,
   skill wheel (js/menu.js). Sizes use container query units
   (cqw / cqh) so the menu scales with the 16:9 game frame.
   ============================================================ */
.splash-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; }

/* pause button (top-left of the frame; works on touch and mouse) */
.pause-btn { position: absolute; top: 2.4%; left: 1.4%; z-index: 9; width: clamp(26px, 2.7vw, 38px); height: clamp(26px, 2.7vw, 38px); display: none; align-items: center; justify-content: center; padding: 0; border: 2px solid rgba(255,255,255,.6); border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font: 700 clamp(9px, .9vw, 13px)/1 var(--cond); letter-spacing: -1px; cursor: pointer; touch-action: manipulation; box-shadow: 0 2px 10px rgba(0,0,0,.55); transition: background .15s, border-color .15s, transform .08s; }
.pause-btn:hover, .pause-btn:focus-visible { background: rgba(245,197,66,.85); border-color: #fff; color: #111; outline: none; }
.pause-btn:active { transform: scale(.94); }
body.gtc-started .pause-btn { display: flex; }
body.menu-open .pause-btn { display: none; }
/* The fullscreen button sits under the pause button. */
.fs-btn { top: calc(2.4% + clamp(26px, 2.7vw, 38px) + 8px); letter-spacing: 0; font-size: clamp(11px, 1.1vw, 15px); }
.fs-btn.on { border-color: var(--gold, #f5c542); }
/* Fullscreen: the real thing, or — where the browser refuses it — the frame
   fills the window (body.gtc-fill). Either way the frame takes the screen's
   own shape, and game.js sizes the picture to match. The two :fullscreen
   selectors are separate rules: an unknown one would void a shared rule. */
.game-frame:fullscreen { aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
.game-frame:-webkit-full-screen { aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; width: 100%; height: 100%; }
body.gtc-fill { overflow: hidden; }
body.gtc-fill .game-frame { position: fixed; inset: 0; z-index: 900; width: 100vw; height: 100vh; height: 100dvh; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
body.gtc-started .help { left: calc(1.4% + clamp(26px, 2.7vw, 38px) + 10px); }
body.no-subtitles #subtitle { display: none !important; }

/* ---------- pause menu ---------- */
/* C23: the pause menu covers the whole browser window, not just the game
   frame — escapes .game-frame's positioning context entirely (it has no
   transform, so position: fixed is relative to the viewport here). */
.pmenu { position: fixed; inset: 0; z-index: 1000; display: none; flex-direction: column; gap: .9cqw; padding: 1.8% 2.2% 1.2%; container-type: inline-size; font-family: var(--cond); color: #fff; user-select: none; -webkit-user-select: none;
  background: radial-gradient(120% 80% at 50% -10%, rgba(40,60,90,.35), transparent 60%), linear-gradient(180deg, rgba(3,5,9,.94), rgba(6,9,14,.86) 45%, rgba(3,5,9,.95));
  -webkit-backdrop-filter: blur(6px) saturate(.55); backdrop-filter: blur(6px) saturate(.55); }
.pmenu.open { display: flex; animation: pmin .18s ease-out; }
@keyframes pmin { from { opacity: 0; } }
.pmenu button { font-family: var(--cond); }
.pmenu kbd { font-size: .9em; padding: 0 .4em; margin-right: .2em; }

.pm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2cqw; }
.pm-brand { font-family: var(--title); font-size: clamp(18px, 3.1cqw, 42px); line-height: .95; letter-spacing: .5px; text-shadow: 0 3px 0 #000; white-space: nowrap; }
.pm-brand small { display: block; margin-top: .45cqw; font: 700 clamp(8.5px, .9cqw, 12px)/1 var(--cond); letter-spacing: .32em; color: var(--muted); text-shadow: none; }
.pm-who { text-align: right; min-width: 0; }
.pm-name { font: 700 clamp(13px, 1.9cqw, 25px)/1 var(--cond); letter-spacing: .1em; }
.pm-meta { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0 1.3cqw; margin-top: .35cqw; font: 700 clamp(9.5px, 1.1cqw, 14.5px)/1.2 var(--cond); letter-spacing: .12em; color: #c9d3de; }
.pm-meta #pm-time { color: var(--gold); }
.pm-meta #pm-time:empty { display: none; }
.pm-cash { color: var(--cash); }

.pm-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .3cqw; border-bottom: 1px solid rgba(255,255,255,.14); }
.pm-tab { position: relative; padding: .85cqw .4cqw .8cqw; border: 0; background: rgba(0,0,0,.55); color: rgba(255,255,255,.62); font-weight: 700; font-size: clamp(9.5px, 1.3cqw, 17px); letter-spacing: .1em; cursor: pointer; transition: color .12s, background .12s; }
.pm-tab:hover { color: #fff; background: rgba(255,255,255,.08); }
.pm-tab.on { color: #fff; background: rgba(255,255,255,.15); }
.pm-tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: max(3px, .3cqw); background: var(--gold); box-shadow: 0 0 12px rgba(245,197,66,.55); }
.pm-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

.pm-body { flex: 1; min-height: 0; position: relative; }
.pm-panel { display: none; height: 100%; min-height: 0; }
.pm-panel.on { display: grid; }
.pm-h { font: 700 clamp(12px, 1.5cqw, 20px)/1.1 var(--cond); letter-spacing: .14em; color: #fff; }
.pm-h2 { margin-top: 1.2cqw; }
.pm-sub { margin-top: .3cqw; font: 700 clamp(8.5px, .9cqw, 12px)/1.2 var(--cond); letter-spacing: .16em; color: var(--muted); }
.pm-scroll, .pm-mlist, .pm-mdetail, .pm-legend, .pm-slist, .pm-stats { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.35) transparent; }

.pm-btn { display: inline-flex; align-items: center; gap: .4em; padding: .5cqw 1.1cqw; border: 0; border-radius: 3px; background: var(--gold); color: #121212; font: 700 clamp(10px, 1.08cqw, 14px)/1.2 var(--cond); letter-spacing: .12em; text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: 0 2px 0 #9c7a16; transition: filter .12s, transform .08s; }
.pm-btn:hover { filter: brightness(1.1); }
.pm-btn:active { transform: translateY(2px); box-shadow: none; }
.pm-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pm-btn-alt { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.pm-btn-alt:hover { background: rgba(255,255,255,.2); }
.pm-btn-big { font-size: clamp(12px, 1.4cqw, 18px); padding: .75cqw 1.6cqw; }
.pm-chips { display: flex; flex-wrap: wrap; gap: .4cqw; margin-top: .8cqw; }
.pm-chip { font: 700 clamp(9px, .95cqw, 12.5px)/1.3 var(--cond); letter-spacing: .04em; padding: .15cqw .7cqw; border-radius: 20px; background: rgba(90,169,255,.14); border: 1px solid rgba(90,169,255,.35); color: #cfe2fb; }

/* MAP */
.pm-map.on { grid-template-columns: minmax(0, 1fr) clamp(140px, 23cqw, 300px); gap: .9cqw; }
.pm-map-view { position: relative; min-height: 0; overflow: hidden; background: #0c1620; border: 1px solid rgba(255,255,255,.14); }
#pm-map-canvas { position: absolute; left: 0; top: 0; display: block; }
.pm-map-note { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: .2cqw; padding: .9cqw 1.2cqw; background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,.55)); border-top: 2px solid var(--gold); font-size: clamp(10px, 1.05cqw, 14px); }
.pm-map-note:empty { display: none; }
.pm-map-note b { font-size: 1.2em; letter-spacing: .12em; color: var(--gold); }
.pm-map-note span { font-family: var(--body); color: #d6dee8; }
.pm-legend { overflow-y: auto; min-height: 0; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.1); padding: .4cqw .9cqw 1cqw; font-size: clamp(10px, 1.05cqw, 13.5px); }
.pm-lg-h { margin: .9cqw 0 .35cqw; font-weight: 700; font-size: .85em; letter-spacing: .18em; color: var(--muted); }
.pm-lg-p { font-family: var(--body); color: #cfd8e2; line-height: 1.4; }
.pm-lg-row { display: flex; align-items: center; gap: .7cqw; width: 100%; padding: .3cqw; border: 0; background: none; color: #e8edf2; text-align: left; font: inherit; letter-spacing: .06em; font-weight: 700; }
.pm-lg-venue { cursor: pointer; border-radius: 2px; }
.pm-lg-venue:hover, .pm-lg-venue:focus-visible { background: rgba(255,255,255,.92); color: #0b0e13; outline: none; }
.pm-lg-venue:disabled { cursor: default; background: none; color: #e8edf2; }
.pm-lg-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.pm-lg-t small { font-weight: 400; font-family: var(--body); font-size: .85em; letter-spacing: 0; opacity: .75; }
.pm-lg-t small.pm-lg-tags { display: flex; flex-wrap: wrap; gap: .25em; margin-top: .15em; opacity: 1; }
.pm-lg-tags em { font-style: normal; font-family: var(--cond); font-weight: 700; font-size: .95em; padding: 0 .35em; border-radius: 2px; background: rgba(245,197,66,.2); color: var(--gold); }
.pm-lg-venue:hover .pm-lg-tags em, .pm-lg-venue:focus-visible .pm-lg-tags em { background: #0b0e13; }
.pm-sw { flex: 0 0 auto; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #0b0e13; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.pm-sw-sq { position: relative; }
.pm-sw-sq::after { content: ""; position: absolute; inset: 1px; background: rgba(255,255,255,.9); }
.pm-sw-you { width: 0; height: 0; border: 0; border-radius: 0; box-shadow: none; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 12px solid #fff; background: none !important; }

/* MISSIONS */
.pm-missions.on { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: .9cqw; }
.pm-mlist { list-style: none; margin: 0; padding: .35cqw; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: .3cqw; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.1); }
.pm-mrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .9cqw; padding: .5cqw .8cqw; background: rgba(255,255,255,.045); border-left: 3px solid rgba(255,255,255,.12); cursor: pointer; transition: background .1s; }
.pm-mrow.done { border-left-color: var(--cash2); }
.pm-mrow.cur, .pm-mrow.playing { border-left-color: var(--gold); }
.pm-mrow.sel { background: rgba(255,255,255,.93); color: #0b0e13; }
.pm-mtag { min-width: 3.1em; text-align: center; padding: .15cqw .45cqw; border-radius: 3px; background: #22304a; color: #bcd2ef; font-weight: 700; font-size: clamp(10px, 1.1cqw, 14px); letter-spacing: .06em; }
.pm-mrow.done .pm-mtag { background: var(--cash2); color: #10200f; }
.pm-mrow.sel .pm-mtag { background: #0b0e13; color: #fff; }
.pm-mtext { min-width: 0; }
.pm-mtext b { display: block; font-size: clamp(11px, 1.35cqw, 17.5px); letter-spacing: .06em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-mtext small { display: block; font-family: var(--body); font-size: clamp(8.5px, .92cqw, 12px); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-mrow.sel .pm-mtext small { color: #3d4855; }
.pm-mstatus { font-weight: 700; font-size: clamp(8.5px, .9cqw, 12px); letter-spacing: .1em; color: rgba(255,255,255,.45); white-space: nowrap; }
.pm-mrow.done .pm-mstatus { color: var(--cash2); }
.pm-mrow.cur .pm-mstatus, .pm-mrow.playing .pm-mstatus { color: var(--gold); }
.pm-mrow.sel .pm-mstatus { color: #2a3440; }
.pm-mrow.sel.done .pm-mstatus { color: #2f7a1f; }
.pm-play { padding: .3cqw .8cqw; border: 0; border-radius: 3px; background: var(--gold); color: #111; font-weight: 700; font-size: clamp(9px, .95cqw, 12.5px); letter-spacing: .1em; cursor: pointer; white-space: nowrap; }
.pm-play:hover { filter: brightness(1.12); }
.pm-mrow:not(.sel) .pm-play { background: rgba(255,255,255,.12); color: #fff; }
.pm-mdetail { min-height: 0; overflow-y: auto; padding: 1.2cqw 1.4cqw; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.1); border-top: 3px solid var(--gold); font-size: clamp(10.5px, 1.12cqw, 14.5px); }
.pm-dtop { display: flex; justify-content: space-between; gap: 1cqw; font-weight: 700; letter-spacing: .14em; font-size: .92em; }
.pm-dtag { color: var(--gold); }
.pm-dyear { color: var(--muted); }
.pm-dtitle { margin: .4cqw 0 .1cqw; font-family: var(--title); font-weight: 400; font-size: clamp(20px, 2.9cqw, 40px); line-height: 1; letter-spacing: .5px; text-shadow: 0 2px 0 #000; }
.pm-dwhere { font-weight: 700; letter-spacing: .1em; color: #c9d3de; }
.pm-drole { margin-top: .8cqw; font-weight: 700; font-size: 1.15em; letter-spacing: .04em; color: #fff; }
.pm-dinst { color: var(--cyan); font-family: var(--body); font-size: .95em; margin-top: .15cqw; }
.pm-dstat { display: inline-block; margin-top: .6cqw; padding: .2cqw .8cqw; border-radius: 3px; background: #0e2a16; border: 1px solid #2d5a38; color: var(--cash2); font: 700 clamp(9.5px, 1cqw, 13px)/1.3 var(--cond); letter-spacing: .12em; }
.pm-ddesc { margin-top: .7cqw; font-family: var(--body); line-height: 1.55; color: #d3dce6; }
.pm-dquote { margin-top: .7cqw; padding-left: .8cqw; border-left: 3px solid var(--red); font: 700 clamp(10px, 1.05cqw, 14px)/1.4 var(--cond); letter-spacing: .06em; color: #ff8a92; }
.pm-dact { display: flex; align-items: center; flex-wrap: wrap; gap: .6cqw 1.2cqw; margin-top: 1.2cqw; }
.pm-dact small { font-family: var(--body); font-size: .85em; color: var(--muted); max-width: 30em; }

/* BRIEF */
.pm-brief.on { grid-template-rows: auto minmax(0, 1fr); gap: .8cqw; }
.pm-brief-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6cqw 1.2cqw; }
.pm-brief-h { display: flex; flex-direction: column; justify-content: center; gap: .1cqw; min-width: 0; }
.pm-brief-h .pm-btn { align-self: flex-start; margin-bottom: .3cqw; }
.pm-brief-act { display: flex; flex-wrap: wrap; gap: .5cqw; align-items: center; }
.pm-scroll { min-height: 0; overflow-y: auto; padding-right: .4cqw; }
.pm-log { list-style: none; margin: 0; padding: 0; position: relative; }
.pm-log::before { content: ""; position: absolute; left: calc(clamp(46px, 6.4cqw, 86px) / 2 - 1px); top: .5cqw; bottom: .5cqw; width: 2px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.28), rgba(255,255,255,.05)); }
.pm-log-e { position: relative; display: grid; grid-template-columns: clamp(46px, 6.4cqw, 86px) minmax(0, 1fr); gap: .9cqw; margin-bottom: .8cqw; }
.pm-log-rail { position: relative; display: flex; flex-direction: column; align-items: center; gap: .25cqw; padding-top: .7cqw; }
.pm-log-tag { position: relative; z-index: 1; min-width: 3em; text-align: center; padding: .2cqw .4cqw; border-radius: 3px; background: #0b0e13; border: 2px solid var(--acc, var(--gold)); font-weight: 700; font-size: clamp(10px, 1.1cqw, 14px); letter-spacing: .06em; }
.pm-log-e.done .pm-log-tag { background: var(--acc, var(--gold)); color: #0b0e13; }
.pm-log-year { position: relative; z-index: 1; background: #070a0f; padding: 0 .2em; font-weight: 700; font-size: clamp(8px, .82cqw, 11px); letter-spacing: .06em; color: var(--muted); text-align: center; }
.pm-log-body { position: relative; padding: .9cqw 1.2cqw 1cqw; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.09); border-left: 3px solid var(--acc, var(--gold)); font-size: clamp(10.5px, 1.1cqw, 14.5px); }
.pm-log-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1cqw; }
.pm-log-head h4 { font: 700 clamp(12px, 1.45cqw, 19px)/1.15 var(--cond); letter-spacing: .04em; color: #fff; }
.pm-log-st { flex: 0 0 auto; font-weight: 700; font-size: .82em; letter-spacing: .14em; color: rgba(255,255,255,.45); }
.pm-log-e.done .pm-log-st { color: var(--cash2); }
.pm-log-inst { margin-top: .15cqw; font-family: var(--body); font-size: .95em; color: var(--cyan); }
.pm-log-desc { margin-top: .5cqw; font-family: var(--body); line-height: 1.55; color: #d3dce6; }
.pm-log-play { position: absolute; right: 1cqw; bottom: .9cqw; padding: .2cqw .7cqw; border: 1px solid rgba(255,255,255,.25); border-radius: 3px; background: rgba(255,255,255,.08); color: #fff; font-weight: 700; font-size: clamp(8.5px, .88cqw, 11.5px); letter-spacing: .12em; cursor: pointer; }
.pm-log-play:hover { background: var(--gold); color: #111; border-color: var(--gold); }
.pm-log-body .pm-chips { padding-right: 7em; }

/* the full resume: a clean, readable "dossier" sheet */
.pm-paper { max-width: 860px; margin: 0 auto .6cqw; padding: 2.2cqw 3cqw 2.4cqw; background: #f5f3ee; color: #1b2027; border-top: 5px solid var(--gold); box-shadow: 0 12px 40px rgba(0,0,0,.55); font-family: var(--body); font-size: clamp(12px, 1.22cqw, 15.5px); line-height: 1.6; user-select: text; -webkit-user-select: text; }
.pm-paper h2 { font-family: var(--title); font-weight: 400; font-size: clamp(24px, 3.3cqw, 42px); line-height: 1; letter-spacing: .5px; color: #0f1318; }
.pm-paper .pm-md-tagline { margin-top: .4em; font: 700 1.05em/1.3 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: #8a6a10; }
.pm-paper .pm-md-contact { margin-top: .3em; color: #39424d; }
.pm-paper h3 { margin: 1.3em 0 .5em; padding-bottom: .2em; border-bottom: 2px solid #1b2027; font: 700 1.12em/1.2 var(--cond); letter-spacing: .18em; text-transform: uppercase; color: #1b2027; }
.pm-paper h4 { margin: 1.1em 0 0; font: 700 1.12em/1.25 var(--cond); letter-spacing: .03em; color: #0f1318; }
.pm-paper .pm-md-meta { margin: .05em 0 .35em; font: 700 .86em/1.3 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: #6a7480; }
.pm-paper .pm-md-sub { margin: .8em 0 .1em; color: #0f1318; }
.pm-paper p { margin: .5em 0; }
.pm-paper ul { margin: .3em 0 .6em 1.25em; }
.pm-paper li { margin: .2em 0; }
.pm-paper li::marker { color: #b8860b; }
.pm-paper hr { border: 0; border-top: 1px solid #d5d1c6; margin: 1em 0; }
.pm-paper strong { color: #0f1318; }
.pm-paper em { color: #3a4450; }
.pm-paper a { color: #0a5bb5; text-decoration: underline; text-underline-offset: 2px; }
.pm-md-loading { font: 700 1em/1.4 var(--cond); letter-spacing: .2em; color: #6a7480; }

/* STATS */
.pm-stats.on { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.4cqw; overflow-y: auto; align-content: start; }
.pm-col { min-width: 0; display: flex; flex-direction: column; gap: .7cqw; }
.pm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5cqw; }
.pm-tile { display: flex; flex-direction: column; justify-content: center; padding: .65cqw .9cqw; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.08); border-left: 3px solid rgba(255,255,255,.35); min-width: 0; }
.pm-tile.live { border-left-color: var(--gold); }
.pm-tile b { font-family: var(--title); font-weight: 400; font-size: clamp(16px, 2.25cqw, 31px); line-height: 1.05; letter-spacing: .5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-tile.live b { color: var(--gold); }
.pm-tile span { margin-top: .15cqw; font-weight: 700; font-size: clamp(9px, .95cqw, 12.5px); letter-spacing: .12em; }
.pm-tile small { font-weight: 700; font-size: clamp(7.5px, .76cqw, 10.5px); letter-spacing: .06em; color: var(--muted); line-height: 1.25; }
.pm-bars { display: flex; flex-direction: column; gap: .75cqw; padding: .9cqw 1.1cqw; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.08); }
.pm-bar-top { display: flex; justify-content: space-between; font-weight: 700; font-size: clamp(9.5px, 1.05cqw, 14px); letter-spacing: .12em; margin-bottom: .3cqw; }
.pm-bar-top b { color: #c9d3de; }
.pm-segs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: max(2px, .3cqw); height: clamp(6px, .75cqw, 10px); }
.pm-segs span { position: relative; background: rgba(255,255,255,.13); overflow: hidden; }
.pm-segs i { position: absolute; left: 0; top: 0; bottom: 0; background: #fff; }

/* SETTINGS */
.pm-settings.on { grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: .8cqw; }
.pm-slist { width: min(100%, 74cqw); min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: .3cqw; }
.pm-srow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1cqw; padding: .55cqw 1cqw; background: rgba(0,0,0,.55); border-left: 3px solid transparent; font-weight: 700; font-size: clamp(11px, 1.35cqw, 17.5px); letter-spacing: .1em; cursor: pointer; }
.pm-srow.sel { background: rgba(255,255,255,.93); color: #0b0e13; border-left-color: var(--gold); }
.pm-sctl { display: flex; align-items: center; gap: .5cqw; }
.pm-arrow { padding: 0 .35em; border: 0; background: none; color: inherit; font-size: 1.45em; line-height: 1; cursor: pointer; opacity: .75; }
.pm-arrow:hover { opacity: 1; }
.pm-sbar { position: relative; width: clamp(80px, 16cqw, 230px); height: clamp(8px, .95cqw, 13px); background: rgba(255,255,255,.18); cursor: pointer; touch-action: none; }
.pm-sbar i { position: absolute; left: 0; top: 0; bottom: 0; background: #fff; }
.pm-srow.sel .pm-sbar { background: rgba(11,14,19,.18); }
.pm-srow.sel .pm-sbar i { background: #0b0e13; }
.pm-sval { min-width: 4.6em; text-align: center; }
.pm-sfoot { width: min(100%, 74cqw); display: flex; align-items: center; justify-content: space-between; gap: 1cqw; }
.pm-sdesc { flex: 1; padding: .6cqw 1cqw; background: rgba(0,0,0,.55); border-left: 3px solid var(--gold); font-family: var(--body); font-size: clamp(10px, 1.08cqw, 14px); line-height: 1.4; color: #d6dee8; }
.pm-stations { width: min(100%, 74cqw); list-style: none; margin: .4cqw 0 1cqw; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17em), 1fr)); gap: .3cqw; max-height: 30cqh; overflow-y: auto; }
.pm-stations li { display: flex; justify-content: space-between; gap: .8cqw; padding: .4cqw .8cqw; background: rgba(0,0,0,.4); border-left: 3px solid rgba(255,255,255,.15); font-size: clamp(9.5px, 1cqw, 13px); }
.pm-station-name { font-weight: 700; letter-spacing: .06em; color: #fff; }
.pm-station-genre { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
/* C27: the wardrobe — cash's one purpose. A locked tile shows a padlock
   instead of its tint; the worn one gets a gold ring; everything else is a
   plain button so Enter/click works the same as any other control here. */
.pm-wardrobe { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5em, 1fr)); gap: .5cqw; margin-top: .3cqw; }
.wd-item { display: flex; flex-direction: column; align-items: center; gap: .3cqw; padding: .5cqw .3cqw; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.12); border-radius: 4px; cursor: pointer; color: #fff; }
.wd-item:hover:not(:disabled) { background: rgba(255,255,255,.1); border-color: var(--tint, var(--gold)); }
.wd-item.worn { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.wd-item.locked, .wd-item:disabled { cursor: default; opacity: .55; }
.wd-swatch { width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--tint, #888); display: flex; align-items: center; justify-content: center; }
.wd-item.locked .wd-swatch { background: #2a2d33; }
.wd-lock { font-size: .85em; }
.wd-name { font: 700 clamp(7.5px, .82cqw, 10.5px)/1.2 var(--cond); letter-spacing: .05em; text-align: center; }

/* footer */
.pm-foot { display: flex; justify-content: space-between; align-items: center; gap: 1cqw; font-weight: 700; font-size: clamp(8.5px, .95cqw, 12.5px); letter-spacing: .12em; color: rgba(255,255,255,.7); }
.pm-keys { display: flex; flex-wrap: wrap; gap: .2cqw 1.6cqw; }
.pm-back { padding: .45cqw 1.2cqw; border: 0; border-radius: 2px; background: rgba(255,255,255,.93); color: #0b0e13; font-weight: 700; font-size: clamp(10px, 1.1cqw, 14px); letter-spacing: .14em; cursor: pointer; }
.pm-back:hover { background: var(--gold); }
/* v5 1.1/1.2: HOME and the stage buttons sit beside BACK TO GAME */
.pm-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5cqw; }
.pm-back.pm-alt { background: rgba(255,255,255,.16); color: #fff; }
.pm-back.pm-alt:hover { background: var(--gold); color: #0b0e13; }
.pm-back:disabled { opacity: .35; cursor: default; background: rgba(255,255,255,.16); color: #fff; }

@container (max-width: 820px) {
  .pm-keys span:nth-child(3) { display: none; }
  .pm-mstatus { display: none; }
  .pm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- skill wheel ---------- */
.skillwheel { position: absolute; inset: 0; z-index: 25; display: none; align-items: center; justify-content: center; container-type: size; font-family: var(--cond); color: #fff; user-select: none; -webkit-user-select: none;
  background: radial-gradient(closest-side, rgba(0,0,0,.25), rgba(0,0,0,.7));
  -webkit-backdrop-filter: saturate(.3) brightness(.85); backdrop-filter: saturate(.3) brightness(.85); }
.skillwheel.open { display: flex; animation: pmin .14s ease-out; }
.sw-title { position: absolute; top: 3.2%; left: 0; right: 0; text-align: center; font-weight: 700; font-size: clamp(11px, 3.2cqh, 20px); letter-spacing: .2em; text-shadow: var(--outline); }
.sw-hint { position: absolute; bottom: 3%; left: 0; right: 0; text-align: center; font-weight: 700; font-size: clamp(9px, 2.4cqh, 14px); letter-spacing: .14em; color: rgba(255,255,255,.75); text-shadow: var(--outline); }
.sw-wheel { position: relative; width: min(84cqh, 66cqw); aspect-ratio: 1; }
#sw-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sw-halo { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 1.5; }
.sw-hub { fill: rgba(6,9,14,.84); stroke: rgba(255,255,255,.18); stroke-width: 1.5; }
.sw-seg { cursor: pointer; transition: transform .1s; }
.sw-bg { fill: rgba(8,11,16,.8); stroke: rgba(255,255,255,.16); stroke-width: 1.2; transition: fill .1s; }
.sw-seg:hover .sw-bg { fill: rgba(40,48,60,.85); }
.sw-seg.sel .sw-bg { fill: rgba(255,255,255,.92); stroke: #fff; }
.sw-icon { font: 400 20px/1 "Segoe UI Symbol", "Noto Sans Symbols 2", "DejaVu Sans", system-ui, sans-serif; text-anchor: middle; dominant-baseline: central; font-variant-emoji: text; }
.sw-name { font: 700 11.5px/1 "Arial Narrow", "Bahnschrift Condensed", "Roboto Condensed", system-ui, sans-serif; letter-spacing: .06em; text-anchor: middle; dominant-baseline: central; fill: #fff; }
.sw-num { font: 700 10px/1 "Arial Narrow", "Bahnschrift Condensed", "Roboto Condensed", system-ui, sans-serif; letter-spacing: .08em; text-anchor: middle; dominant-baseline: central; fill: rgba(255,255,255,.6); }
.sw-seg.sel .sw-name { fill: #0b0e13; }
.sw-seg.sel .sw-num { fill: #3a4450; }
.sw-seg.empty:not(.sel) { opacity: .62; }
.sw-prog { opacity: .95; }
.sw-centre { position: absolute; left: 50%; top: 50%; width: 45%; height: 46%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; justify-content: safe center; gap: 1.2%; text-align: center; overflow: hidden; pointer-events: none; }
.sw-cat { display: flex; align-items: center; justify-content: center; gap: .35em; max-width: 86%; font-weight: 700; font-size: clamp(10px, 3cqh, 22px); letter-spacing: .06em; line-height: 1.05; }
.sw-cat-icon { font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", system-ui, sans-serif; font-variant-emoji: text; }
.sw-count { font-weight: 700; font-size: clamp(8.5px, 2.1cqh, 13px); letter-spacing: .16em; color: var(--gold); }
.sw-skills { display: flex; flex-wrap: wrap; justify-content: center; gap: .15em .5em; margin-top: 1.5%; font-weight: 700; font-size: clamp(8px, 2.15cqh, 13.5px); line-height: 1.15; letter-spacing: .03em; }
.sw-skills.dense { font-size: clamp(7px, 1.75cqh, 12px); }
.sw-skills span { color: rgba(255,255,255,.36); }
.sw-skills span.got { color: #fff; text-shadow: 0 0 8px rgba(255,255,255,.25); }
.sw-skills span.more { color: var(--gold); }

@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* ============================================================
   v4 — daylight page chrome and title screen.
   The old navy-black + gold glow read as dark and generic. The page
   is now warm paper with ink outlines and flat offset shadows (the
   title screen, below, is dusk over the live city). In-game HUD, pause
   menu and the phone keep their dark panels (they sit over the 3D view).
   ============================================================ */
:root {
  --paper: #f4ecdd; --paper2: #fffaf0; --ink-line: #17140f; --ink-soft: #5d5446;
  --sun: #ffd23f; --tangerine: #ff6a1a; --leaf: #1f7a36;
}
/* v6 WP1: the page round the frame is warm and bright — a sunset glow
   falling to warm paper — so the frame reads as a lit screen on it. */
body { background: radial-gradient(90% 520px at 50% 0%, #ffd7bd 0%, rgba(255,215,189,0) 100%), linear-gradient(180deg, #fbe6d2 0%, var(--paper) 640px); background-color: var(--paper); color: var(--ink-line); padding: 10px 12px 0; }
.controls-note, .site-footer { color: var(--ink-soft); }
.site-footer a { color: var(--leaf); }
.game-frame { border: 2px solid var(--ink-line); box-shadow: 6px 6px 0 rgba(23,20,15,.85), 0 18px 60px rgba(209,15,85,.18); }
.controls-note kbd { background: var(--paper2); color: var(--ink-line); border: 1.5px solid var(--ink-line); border-bottom-width: 3px; }

/* ---------- v6 WP1: the HUD buttons above the frame ----------
   Game buttons, not page chips: deep night-violet keycaps with a coloured
   icon tile, a lip that sinks when pressed, a ring in the button's colour
   on hover and focus, and the key that does the same thing where there is
   one. A disabled button goes flat and hollow. MISSIONS and CASH are the
   two readouts (they open mission select and the wardrobe); the stage
   buttons appear once a stage is playing. */
.chrome { display: flex; align-items: center; gap: 8px; height: var(--hb-h); margin: 2px 0 10px; font-family: var(--cond); text-transform: uppercase; }
.hb-group { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hb-nav { margin-left: auto; }
.hb-sys { margin-left: 14px; }
body:not(.gtc-started) .hb-nav, body:not(.gtc-started) .hb-cash { display: none; }
body:not(.gtc-started) .hb-sys { margin-left: auto; }
#hud-radio[aria-pressed="false"] .hb-ic { background: rgba(255,255,255,.18); color: #fff; }
.hb { --acc: #ffd23f; position: relative; display: inline-flex; align-items: center; gap: 9px; height: calc(var(--hb-h) - 4px); padding: 0 14px 0 7px; border: 0; border-radius: 9px;
  background: linear-gradient(180deg, #34204a 0%, #1a0b24 100%); color: #fff; font: 700 15.5px/1 var(--cond); letter-spacing: .09em; white-space: nowrap; cursor: pointer;
  box-shadow: 0 4px 0 #0b0410, inset 0 1px 0 rgba(255,255,255,.16); transform: translateY(-2px); transition: transform .07s, box-shadow .07s, background .15s, color .15s; }
.hb-ic { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--acc); color: #1a0b24; box-shadow: inset 0 -2px 0 rgba(0,0,0,.22); }
.hb-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hb-t { display: inline-flex; align-items: baseline; gap: 5px; }
.hb-key { margin-left: 2px; padding: 3px 6px 4px; border: 0; border-radius: 5px; background: rgba(255,255,255,.14); color: #fff; font: 700 11.5px/1 var(--cond); box-shadow: inset 0 -2px 0 rgba(0,0,0,.45); }
.hb:hover { background: linear-gradient(180deg, #46295f 0%, #24102f 100%); box-shadow: 0 4px 0 #0b0410, 0 0 0 2px var(--acc), 0 8px 20px rgba(26,11,36,.35); transform: translateY(-3px); }
.hb:active { transform: translateY(1px); box-shadow: 0 1px 0 #0b0410, 0 0 0 2px var(--acc); transition-duration: .03s; }
.hb:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.hb:disabled, .hb:disabled:hover, .hb:disabled:active { background: transparent; color: rgba(23,20,15,.45); box-shadow: inset 0 0 0 2px rgba(23,20,15,.25); transform: none; cursor: not-allowed; }
.hb:disabled .hb-ic { background: rgba(23,20,15,.1); color: rgba(23,20,15,.4); box-shadow: none; }
/* Readouts: a label over a big value. */
.hb-stat .hb-t { flex-direction: column; align-items: flex-start; gap: 3px; }
.hb-stat small { font: 700 10.5px/1 var(--cond); letter-spacing: .18em; color: #d9c6ea; }
.hb-stat b { font: 400 19px/1 var(--title); letter-spacing: .04em; color: #fff; }
.hb-cash { --acc: #7ee05a; }
.hb-cash b { color: #8fe86a; }
/* Each button's colour. NEXT STAGE is the one that moves you on: it is filled. */
#hud-home { --acc: #2fd3c4; }
#hud-retry { --acc: #ff9a3c; }
#hud-radio { --acc: #ff6fae; }
#hud-fullscreen { --acc: #fff; }
.hb-go { padding: 0 8px 0 15px; background: linear-gradient(180deg, #d81a62 0%, #b30c4a 100%); box-shadow: 0 4px 0 #5e0627, inset 0 1px 0 rgba(255,255,255,.22); --acc: #fff; }
.hb-go:hover { background: linear-gradient(180deg, #e0216a 0%, #c00f52 100%); box-shadow: 0 4px 0 #5e0627, 0 0 0 2px #ffd23f, 0 8px 20px rgba(209,15,85,.4); }
.hb-go .hb-ic { background: #fff; color: #b30c4a; }
/* A narrower frame: first the key hints go and the buttons tighten; then the
   words (they stay in each button's tooltip), leaving icons and values. */
.chrome { container: hud / inline-size; }
@container hud (max-width: 1130px) { .hb-key { display: none; } .hb { padding-right: 11px; gap: 7px; } .hb-go { padding-left: 12px; } .hb-group { gap: 7px; } }
@container hud (max-width: 900px) { .hb-nav .hb-t, .hb-sys .hb-t { display: none; } .hb, .hb-go { padding: 0 6px; } }
@container hud (max-width: 520px) { .hb-stat small { display: none; } }
/* A big screen: bigger buttons (and the frame leaves them the room). */
@media (min-width: 1500px) and (min-height: 900px) {
  :root { --hb-h: 56px; --above-below: 128px; }
  .hb { gap: 11px; padding: 0 17px 0 8px; font-size: 18px; border-radius: 10px; }
  .hb-go { padding: 0 9px 0 18px; }
  .hb-ic { width: 36px; height: 36px; border-radius: 8px; }
  .hb-ic svg { width: 21px; height: 21px; }
  .hb-key { font-size: 13px; padding: 4px 7px 5px; }
  .hb-stat small { font-size: 12px; }
  .hb-stat b { font-size: 23px; }
  .chrome, .hb-group { gap: 10px; }
}

/* ============================================================
   v6 WP4: the title screen — "Make a simple but cool homepage for the
   game." The owner turned down a busy first screen ("information
   overdose"), so: one focal point (the title and the hero) and one
   obvious action (START CAREER MODE), with room round them. The live
   city at dusk, graded bright and hot (.sp-grade: an overlay blend lays
   a magenta-to-gold sky over the real picture, a screen blend lifts it
   and puts the low sun behind the hero); the title in heavy system type
   (Impact), CAREER in a sunset fill with an ink outline and a pink
   bloom; LOS ANKITOS a neon sign — cyan tubes in a pink tube frame, no
   palm, no script — that flickers on at READY (the one motion; off
   under reduced motion); the name and one line; the SRE standing large
   on the right, lit by the low sun (game.js renderTitleCast). Mood
   only: no published game's lettering, logo, characters or art, and
   system fonts only. Every word sits on a plate of its own or inside an
   ink outline: 4.5:1 or better (title-screen-text-has-contrast).
   Every size is in container units of the frame (the splash container),
   so one layout holds from 711×400 to a fullscreen 4K frame; a short
   frame keeps every way in, an upright phone gets one centred column.
   ============================================================ */
:root { --night: #1a0b24; --hot: #d10f55; --teal: #14c8b8; --glass: rgba(14,8,32,.84); --neon-c: #39f2ff; --neon-p: #ff3fa4; --gold2: #ffc53d; }
/* v6 WP4 round 2 ("tone down the color"): the below-the-frame panel's own
   warm, neutral base — asphalt, not purple — so its cards can read as one
   calm set with a single reserved hero accent, not a neon rainbow. */
:root { --dusk-asphalt: #241a19; --dusk-asphalt-deep: #120d0d; }
/* The grade: under the overlay (no z-index, so it is not a stacking context
   and its three layers blend with the canvas itself), and over the black fade
   only once the fade has lifted (the fade's z-index is above it). */
.sp-grade { display: none; position: absolute; inset: 0; pointer-events: none; }
.sp-grade::before, .sp-grade::after { content: ''; position: absolute; inset: 0; }
.sp-grade::before { mix-blend-mode: overlay; background: linear-gradient(180deg, #ff3d9a 0%, #ff7a45 40%, #ffc061 60%, #e0567a 82%, #b8337a 100%); }
.sp-grade::after { mix-blend-mode: screen; background:
    radial-gradient(28% 38% at 74% 60%, rgba(255,222,150,.78) 0%, rgba(255,150,96,.32) 52%, rgba(255,120,90,0) 100%),
    linear-gradient(180deg, rgba(110,36,140,.2) 0%, rgba(255,110,80,.12) 58%, rgba(130,36,110,.16) 100%); }
/* and a colour layer that pushes the sky's own pale blue to magenta and orange (it leaves the light alone) */
.sp-grade i { position: absolute; inset: 0; mix-blend-mode: color; opacity: .5; background: linear-gradient(180deg, #c2187a 0%, #ff4d6d 30%, #ff8a3c 55%, rgba(255,138,60,0) 78%); }
body:not(.gtc-started):not(.gtc-trailer) .sp-grade { display: block; }

.splash {
  container: splash / size; padding: 0; align-items: stretch; color: #fff; backdrop-filter: none; overflow: hidden;
  /* the low sun's halo behind the hero, and a soft shade on the left for the words */
  background:
    radial-gradient(12% 18% at 74% 58%, rgba(255,248,214,.5) 0%, rgba(255,226,150,.24) 50%, rgba(255,200,120,0) 100%),
    linear-gradient(90deg, rgba(26,8,40,.42) 0%, rgba(26,8,40,.18) 38%, rgba(26,8,40,0) 58%);
}
.splash > * { margin: 0; }
/* The hero: one figure, large, on the right, standing on the bottom of the frame. */
.sp-crew { position: absolute; z-index: 0; right: 3cqw; bottom: 0; height: 96cqh; width: auto; pointer-events: none; transition: opacity .3s; }   /* v6 WP2: no outer glow; renderTitleCast lights him instead */
.splash:has(.splash-rules:not([hidden])) .sp-crew { opacity: .15; }
.splash > .splash-inner { position: absolute; inset: 0; z-index: 1; margin: 0; max-width: none; padding: 0; text-align: left; }

/* The words and the ways in, on the left, in the middle of the height. */
.sp-main { position: absolute; left: 5.5cqw; top: 0; bottom: 0; width: 54cqw; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 4cqh 0; }
.sp-eyebrow { margin: 0 0 1.6cqh; padding: .5em .9em .45em; background: var(--glass); border-radius: 2em; color: #fff; font: 700 clamp(9px, 1.7cqh, 20px)/1 var(--cond); letter-spacing: .42em; }
/* The lockup. Each line's ink outline and its bloom are a second copy of
   the words (::before, from data-t), drawn fat behind the clean fill — so
   the fill keeps its full width and colour. */
.splash-title { display: grid; justify-items: start; isolation: isolate; font: 400 1em/.86 var(--title); color: #fff; text-shadow: none; }
.st-top, .st-big { position: relative; }
.st-top::before, .st-big::before { content: attr(data-t); position: absolute; left: 0; top: 0; z-index: -1; color: var(--ink-line); -webkit-text-stroke: .14em var(--ink-line); }
.st-top { font-size: clamp(22px, 9.4cqh, 140px); letter-spacing: .03em; color: #fff; }
.st-top::before { -webkit-text-stroke-width: .17em; text-shadow: .06em .07em 0 var(--ink-line); }
.st-big { margin-top: .03em; font-size: clamp(44px, 19.5cqh, 290px); letter-spacing: .012em; color: transparent;
  background: linear-gradient(180deg, #fffbe0 0%, #ffe066 32%, #ffb02e 62%, #ff7a3d 86%, #ff5a6e 100%); -webkit-background-clip: text; background-clip: text; }
.st-big::before { text-shadow: .045em .055em 0 var(--hot), .07em .085em 0 #8a0a3c, 0 0 .3em rgba(255,63,164,.55); }
/* LOS ANKITOS: a neon sign — cyan tubes in a pink tube frame, on a dark board. It flickers on at READY. */
.splash .edition { justify-content: flex-start; margin: 1.6cqh 0 2.4cqh .5cqw; }
.splash .edition::before, .splash .edition::after { display: none; }
.splash .edition span { padding: .14em .5em .1em .62em; font: italic 700 clamp(16px, 5.6cqh, 72px)/1 var(--cond); letter-spacing: .14em; color: #e9feff; background: rgba(12,6,28,.9);
  border: .06em solid #ffd2ec; border-radius: .32em; transform: rotate(-3deg);
  box-shadow: 0 0 0 .04em var(--neon-p), 0 0 .3em var(--neon-p), 0 0 .8em rgba(255,63,164,.55), inset 0 0 .3em rgba(255,63,164,.6);
  text-shadow: 0 0 .05em #fff, 0 0 .16em var(--neon-c), 0 0 .38em #00c8ff, 0 0 .8em rgba(0,150,255,.7); }
#loading:not(.ready) .edition span { color: #a9cfd4; border-color: #9a6a86; box-shadow: 0 0 0 .04em rgba(255,63,164,.3); text-shadow: none; }
/* v6: "keep the flicker for a longer period of time, it's in ms right
   now" — a tube light's own stutter: two short bursts with a pause
   between them, then a longer pause before it settles on for good.
   3.6 s total (was 1.5 s); js/audio.js's 'neonFlicker' sfx is timed to
   the same on-moments (game.js, where #loading.ready is set). */
#loading.ready .edition span { animation: sp-neon-on 3.6s steps(1, end) both; }
@keyframes sp-neon-on {
  0%, 4%, 10%, 25%, 33% { color: #a9cfd4; border-color: #9a6a86; box-shadow: 0 0 0 .04em rgba(255,63,164,.3); text-shadow: none; }
  2%, 7%, 22%, 30%, 50%, 100% { color: #e9feff; border-color: #ffd2ec; box-shadow: 0 0 0 .04em var(--neon-p), 0 0 .3em var(--neon-p), 0 0 .8em rgba(255,63,164,.55), inset 0 0 .3em rgba(255,63,164,.6); text-shadow: 0 0 .05em #fff, 0 0 .16em var(--neon-c), 0 0 .38em #00c8ff, 0 0 .8em rgba(0,150,255,.7); }
}
/* Who this is: the name, large, and one line under it. Kept at every size. */
.splash-who { display: flex; flex-wrap: wrap; align-items: center; gap: 1cqh 0; margin: 0; color: #fff; }
.splash-who .sw-name { flex: 0 0 100%; font: 400 clamp(18px, 6.4cqh, 84px)/1 var(--title); letter-spacing: .04em; color: #fff;
  text-shadow: -.05em -.05em 0 var(--ink-line), .05em -.05em 0 var(--ink-line), -.05em .05em 0 var(--ink-line), .05em .05em 0 var(--ink-line), 0 .06em 0 var(--ink-line), .07em .09em 0 var(--ink-line); }
.splash-who .sw-role, .splash-who .sw-meta { padding: .5em 0 .44em; font: 700 clamp(10.5px, 2.2cqh, 28px)/1 var(--cond); letter-spacing: .1em; background: var(--glass); }
.splash-who .sw-role { padding-left: .75em; color: #fff; border-radius: .3em 0 0 .3em; }
.splash-who .sw-meta { padding-right: .75em; padding-left: .35em; color: #ffd38a; border-radius: 0 .3em .3em 0; }
.sw-dot { font-style: normal; }
.splash-for { margin: 1cqh 0 0; padding: .35em .6em; background: var(--night); color: var(--sun); font: 700 clamp(10px, 1.6cqh, 18px)/1.3 var(--cond); letter-spacing: .16em; }
/* The honest line for phones (owner's request): shown only on touch devices. */
.splash-mobile { display: none; margin: 1.4cqh 0 0; padding: .6em .9em; max-width: 44em; border-left: 4px solid var(--sun); background: rgba(26,11,36,.92); color: #fff; font: 500 clamp(11px, 1.5cqw, 13px)/1.45 var(--body); }
.splash-mobile b { color: var(--sun); font-family: var(--cond); letter-spacing: .08em; }
body.gtc-touch .splash-mobile { display: block; }

/* The ways in: START CAREER MODE; the tour and the cut under it; one quiet row of links. */
.sp-cta { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 1.5cqh; margin-top: 3.4cqh; }
.sp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2cqh .9cqw; }
.splash .btn { margin: 0; border: 0; border-radius: 6px; font-family: var(--cond); font-weight: 700; text-transform: uppercase; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transition: transform .07s, box-shadow .12s, background-color .15s, border-color .15s, color .15s; }
.splash .btn:hover { filter: none; }
.splash .btn:focus-visible, .sp-icon:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.splash .btn:disabled { filter: saturate(.5); opacity: .6; cursor: wait; }
/* START CAREER MODE: hot pink with a neon rim and a dark play disc. */
.splash .sp-primary { display: inline-flex; align-items: center; gap: .6em; padding: .3em 1.1em .3em .32em; font-size: clamp(15px, 3.9cqh, 50px); letter-spacing: .05em; line-height: 1;
  background-color: #c4104f; background-image: linear-gradient(180deg, #dc176a 0%, #b90d4d 60%, #960a40 100%); color: #fff; border: .06em solid #ff9ccd; border-radius: .36em;
  box-shadow: 0 0 0 .04em rgba(255,63,164,.55), 0 0 .6em rgba(255,40,140,.55), 0 .25em .6em rgba(40,0,20,.4); animation: sp-call 2.6s ease-out 2.2s infinite; }
.splash .sp-primary:hover { background-color: #d4125a; transform: translateY(-2px); box-shadow: 0 0 0 .05em rgba(255,140,205,.85), 0 0 .9em rgba(255,40,140,.8), 0 .35em .8em rgba(40,0,20,.45); }
.splash .sp-primary:active { transform: translateY(1px); }
.splash .sp-primary:disabled { animation: none; }
.sp-play { flex: 0 0 auto; display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: #1a0b24; color: #fff; box-shadow: 0 0 0 .07em rgba(255,255,255,.9), 0 0 .4em rgba(255,63,164,.7); }
.sp-play svg { width: 52%; height: 52%; margin-left: 3%; fill: currentColor; }
.sp-pl { display: grid; gap: .32em; text-align: left; }
.sp-pl b { font-weight: 700; }
.sp-primary .splash-sub { display: block; margin: 0; color: #fff; font: 700 .4em/1 var(--cond); letter-spacing: .24em; text-shadow: none; }
@keyframes sp-call { 0% { box-shadow: 0 0 0 .04em rgba(255,63,164,.55), 0 0 .6em rgba(255,40,140,.55), 0 .25em .6em rgba(40,0,20,.4), 0 0 0 0 rgba(255,63,164,.5); } 70%, 100% { box-shadow: 0 0 0 .04em rgba(255,63,164,.55), 0 0 .6em rgba(255,40,140,.55), 0 .25em .6em rgba(40,0,20,.4), 0 0 0 .6em rgba(255,63,164,0); } }
/* The tour and the cut: night glass, a white rim. */
.splash .sp-second { padding: .68em 1.05em .62em; font-size: clamp(10.5px, 2cqh, 26px); letter-spacing: .1em; line-height: 1; background: rgba(14,8,32,.86); color: #fff; border: 1.5px solid rgba(255,255,255,.6); border-radius: .4em; }
.splash .sp-second:hover { background: #24123f; border-color: var(--neon-c); transform: translateY(-1px); box-shadow: 0 0 .7em rgba(57,242,255,.35); }
.splash .sp-second:active { transform: translateY(1px); }
/* The quiet row: three small links on one dark pill. */
.splash .sp-links { gap: 0; padding: .1em .4em; background: rgba(14,8,32,.74); border-radius: 2em; }
.splash .sp-third { padding: .62em .8em .56em; font-size: clamp(9.5px, 1.5cqh, 19px); letter-spacing: .12em; line-height: 1; background: none; color: #fff; border-radius: 0; text-decoration: none; }
.splash .sp-third + .sp-third { box-shadow: inset 1px 0 0 rgba(255,255,255,.28); }
.splash .sp-third:hover { color: var(--sun); text-decoration: underline; text-underline-offset: .25em; }
.splash .sp-third:disabled { opacity: .55; }
/* Loading / READY and the visitor count: small, under the links. */
.sp-status { display: flex; flex-wrap: wrap; align-items: center; gap: .8cqh 1cqw; margin-top: 2.2cqh; font-size: clamp(9px, 1.35cqh, 16px); }
.sp-load { display: inline-flex; align-items: center; gap: .8em; padding: .5em .8em; width: 15em; border-radius: 2em; background: var(--glass); }
.splash .loadbar { flex: 1 1 auto; width: auto; height: 4px; margin: 0; background: rgba(255,255,255,.22); border: 0; border-radius: 3px; }
.splash .loadbar i { background: linear-gradient(90deg, #ff4f8b, var(--sun)); }
.splash .load-label { color: #fff; white-space: nowrap; font-size: 1em; letter-spacing: .16em; }
#loading.ready .load-label { color: #9be36f; }
.splash .visitor-count { margin: 0; min-height: 0; padding: .5em .8em; border-radius: 2em; background: var(--glass); color: #ffe2b8; font-size: 1em; }
.splash .visitor-count:empty { display: none; }

/* Top right: sound, fullscreen (both ways), how to play */
.sp-icons { position: absolute; top: 3cqh; right: 2.4cqw; display: flex; gap: .7cqw; }
/* v6: "the page loads as sound off" — a browser won't make any sound before
   a real click/tap/key anywhere on the page; this says so until the first
   one lands (game.js shows/hides it), instead of leaving SOUND ON to imply
   something is already playing when nothing can be yet. */
.sound-hint { position: absolute; top: max(8.5cqh, 58px); right: 2.4cqw; margin: 0; padding: .35cqh .9cqw; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.3); border-radius: 1cqh; color: #fff; font: 700 clamp(8px, 1.05cqh, 12px)/1.3 var(--cond); letter-spacing: .08em; text-align: right; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 5; }
.sound-hint.show { opacity: .7; animation: sound-hint-pulse 1.8s ease-in-out infinite; }
@keyframes sound-hint-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.sp-icon { display: grid; justify-items: center; align-content: center; gap: .45cqh; min-width: max(42px, 7cqh); padding: .8cqh .6cqw .65cqh; background: var(--glass); color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 1cqh; cursor: pointer; font: 700 clamp(9px, 1.25cqh, 15px)/1 var(--cond); letter-spacing: .1em; transition: background-color .15s, border-color .15s, transform .07s; }
.sp-icon svg { width: max(18px, 2.9cqh); height: max(18px, 2.9cqh); fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sp-icon:hover { background: #24123f; border-color: var(--neon-c); }
.sp-icon:active { transform: translateY(1px); }
.sp-icon small { font: inherit; white-space: nowrap; }
.sp-icon .sp-off, .sp-icon .fs-out { display: none; }
.sp-icon .sp-off { stroke: var(--neon-p); }
#splash-mute-btn[aria-pressed="true"] .sp-off, #splash-fs-btn[aria-pressed="true"] .fs-out { display: inline; }
#splash-fs-btn[aria-pressed="true"] .fs-in { display: none; }
#splash-fs-btn[aria-pressed="true"], #howto-btn[aria-expanded="true"] { border-color: var(--sun); color: var(--sun); }

/* HOW TO PLAY opens over the right of the picture, which dims. */
.sp-side { position: absolute; right: 2.4cqw; top: 14cqh; width: 42cqw; }
.splash-rules { width: 100%; max-height: 78cqh; overflow-y: auto; margin: 0; padding: 12px 16px; text-align: left; background: rgba(14,8,32,.95); border: 1px solid rgba(255,255,255,.5); border-radius: 10px; }
.splash-rules-title { color: var(--sun); }
.splash-rules ul { color: #f3eaff; font-size: clamp(12px, 1.9cqh, 17px); }
.splash-rules p { font-size: clamp(11.5px, 1.75cqh, 16px); color: #ddd0ec; }
.splash-rules .hc-y { color: var(--ink-line); background: var(--sun); padding: 0 4px; border-radius: 2px; }

/* A short frame (the first visit to a wide desktop, a phone held sideways): every way in stays; the trimmings go. */
@container splash (max-height: 600px) { .sp-primary .splash-sub { display: none; } .splash .sp-primary { padding-block: .26em; } .sp-play { width: 1.7em; height: 1.7em; } }
@container splash (max-height: 470px) {
  .sp-eyebrow, .splash .visitor-count { display: none; }
  .sp-main { left: 4cqw; width: 62cqw; padding: 3cqh 0; }
  .st-top { font-size: clamp(18px, 8.4cqh, 84px); }
  .st-big { font-size: clamp(34px, 16cqh, 190px); }
  .splash .edition { margin: 1.2cqh 0 1.6cqh .4cqw; }
  .splash .edition span { font-size: clamp(13px, 4.8cqh, 40px); }
  .splash-who { gap: .7cqh 0; }
  .splash-who .sw-name { font-size: clamp(15px, 5.8cqh, 40px); }
  .splash-who .sw-role, .splash-who .sw-meta { font-size: 10.5px; }
  .splash-mobile { margin-top: 1cqh; padding: .35em .6em; font-size: 10px; line-height: 1.3; }
  .sp-cta { margin-top: 2cqh; gap: 1.2cqh .9cqw; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sp-row2 { display: contents; }
  .splash .sp-second { padding: .55em .7em; font-size: 10.5px; letter-spacing: .06em; }
  .splash .sp-third { font-size: 10px; padding: .55em .6em; letter-spacing: .06em; }
  .sp-status { margin-top: 1.2cqh; }
  .sp-load { padding: .3em .6em; }
  .sp-icons { top: 3cqh; right: 2.4cqw; }
  .sp-icon small { display: none; }
  .sp-side { top: 18cqh; width: 58cqw; }
}
/* A narrow upright frame (a phone held upright, a small tall window): one centred column. */
@container splash ((max-width: 720px) and (orientation: portrait)) or (max-width: 520px) {
  .sp-eyebrow { display: none; }
  .splash > .splash-inner { display: flex; flex-direction: column; }
  .sp-main { position: relative; left: auto; top: auto; bottom: auto; width: auto; flex: 1 0 auto; justify-content: flex-start; align-items: center; text-align: center; padding: 2.6cqh 5cqw 1cqh; }
  .splash-title { justify-items: center; }
  .splash-who { justify-content: center; }
  .st-top { font-size: clamp(22px, min(9.6cqw, 8.6cqh), 60px); }
  .st-big { font-size: clamp(40px, min(21cqw, 18cqh), 130px); }
  .splash .edition { justify-content: center; margin: 1.6cqh 0; }
  .splash .edition span { font-size: clamp(16px, 6.4cqw, 34px); }
  .splash-who .sw-name { font-size: clamp(18px, 7.6cqw, 40px); }
  .splash-who .sw-role, .splash-who .sw-meta { font-size: clamp(10.5px, 3.2cqw, 14px); }
  .splash-who .sw-role, .splash-who .sw-meta { flex: 0 0 auto; padding: .5em .75em .44em; border-radius: .3em; }
  .splash-who .sw-role { margin-bottom: .6cqh; }
  .sw-dot { display: none; }
  .splash-mobile { text-align: left; font-size: 11.5px; line-height: 1.38; }
  .sp-cta { align-items: stretch; width: 100%; }
  .sp-row2 { display: grid; grid-template-columns: 1fr 1fr; }
  .sp-row2 .btn, .splash .sp-primary { width: 100%; justify-content: center; }
  .splash .sp-primary { font-size: clamp(15px, 5.2cqw, 24px); }
  .splash .sp-second { font-size: clamp(10.5px, 3.2cqw, 14px); padding: .6em .4em; }
  .splash .sp-links { justify-content: center; border-radius: 1em; }
  .splash .sp-third { font-size: clamp(10px, 3cqw, 13px); }
  .sp-status { justify-content: center; }
  .sp-icons { position: relative; top: auto; right: auto; order: -1; justify-content: center; margin: 1.6cqh 0 0; }
  .sp-icon small { display: none; }
  .sound-hint { display: none; }   /* no room for it in this column layout; SOUND ON above still gets a real click to work with */
  .sp-side { position: relative; right: auto; top: auto; width: auto; margin: 0 5cqw 2cqh; }
  /* The hero steps down to the bottom right corner, behind the small controls. */
  .sp-crew { right: 0; height: 30cqh; }
}

/* ---- v6 WP4: below the frame — the numbers, SHARE and the three eras (moved off the title screen) ---- */
.site-header h1, .site-header .tagline { color: #fff; }
.site-header h1 { text-shadow: 0 0 .4em rgba(255,63,164,.4); }
.site-header h1 .accent { color: transparent; background: linear-gradient(180deg, #fffbe0 0%, #ffe066 32%, #ffb02e 62%, #ff7a3d 86%, #ff5a6e 100%); -webkit-background-clip: text; background-clip: text; }
.site-header .tagline { opacity: .82; }
/* The edition stamp reuses the splash's own neon-sign treatment (cyan tubes, pink frame) instead of the ink-on-paper stamp. */
.site-header .edition::before, .site-header .edition::after { background: rgba(255,255,255,.22); }
/* v6 WP4 round 2: calmer than the splash's own neon sign — a dark plate,
   gold text, no cyan glow. */
.site-header .edition span { padding: .2em .7em .16em; background: rgba(12,6,28,.9); color: var(--sun); border: 2px solid rgba(255,210,63,.45); }
.site-header .facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; list-style: none; margin: 16px auto 14px; }
.facts li { padding: 6px 13px 5px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font: 700 13px/1.2 var(--cond); letter-spacing: .05em; color: #e7ecf4; }
.facts b { margin-right: 4px; font: 400 18px/1 var(--title); letter-spacing: .02em; color: var(--tangerine); }
.site-header #share-btn { margin: 0; padding: 7px 14px; font-size: 13px; }
.site-header #share-btn svg { vertical-align: -3px; }
.eras-card { grid-column: 1 / -1; }
.eras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.era { margin: 0; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: center; }
.era-fig { display: block; width: 104px; height: 130px; border: 2px solid var(--tangerine); border-radius: 8px; background: linear-gradient(180deg, #ff9a62 0%, #ff4d7a 45%, #6a1f6e 80%, #1a0b24 100%); }
.era figcaption { display: grid; gap: 4px; min-width: 0; }
.era figcaption b { font: 400 30px/1 var(--title); letter-spacing: .03em; color: #fff; }
.era figcaption span { font: 700 14px/1.1 var(--cond); letter-spacing: .14em; color: var(--tangerine); }
.era figcaption em { font: 700 14px/1.3 var(--body); font-style: normal; color: #e7ecf4; }
.era figcaption small { font: 600 12.5px/1.4 var(--body); color: #a7b0c2; }
@media (max-width: 900px) { .eras { grid-template-columns: minmax(0, 1fr); } }
/* v6: the pitch — his own words on why this game exists, and how he works */
.pitch-card { grid-column: 1 / -1; }
.pitch-lede { font: 700 15px/1.45 var(--cond); letter-spacing: .01em; color: #fff; margin-bottom: 10px; }
.pitch-body { font: 500 13.5px/1.62 var(--body); color: #c3cbda; max-width: 760px; }
.pitch-traits { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 14px; padding: 0; }
.pitch-traits li { padding: 4px 11px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font: 700 11px/1.2 var(--cond); letter-spacing: .08em; color: var(--tangerine); }
@media (max-width: 480px) { .era { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; } .era-fig { width: 76px; height: 95px; } .era figcaption b { font-size: 22px; } }

/* Stage-start "COLLECT YOUR RESUME" card (missions.js resumeIntro) */
.resume-intro { position: absolute; left: 3%; top: 13%; width: min(34%, 380px); z-index: 7; background: #fffaf0; color: #17140f; border: 2px solid #17140f; border-radius: 8px; box-shadow: 6px 6px 0 rgba(23,20,15,.85); padding: 12px 16px 10px; opacity: 0; transform: translateX(-20px); transition: opacity .3s, transform .35s cubic-bezier(.2,.9,.3,1.2); pointer-events: none; }
.resume-intro.show { opacity: 1; transform: none; }
.ri-k { font-family: var(--cond); font-weight: 700; font-size: 11px; letter-spacing: 3px; color: #ff6a1a; }
.ri-title { font-family: var(--title); font-size: clamp(18px, 2.6vw, 30px); line-height: 1.05; margin: 2px 0 4px; }
.ri-title span { background: #ffd23f; padding: 0 6px; }
.ri-sub { font-size: clamp(11px, 1.1vw, 13px); color: #5d5446; margin-bottom: 8px; }
#ri-list { list-style: none; display: grid; gap: 5px; margin-bottom: 8px; }
#ri-list li { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 8px; font-size: clamp(11px, 1.15vw, 14px); }
#ri-list .ri-ic { width: 28px; height: 28px; display: grid; place-items: center; background: #17140f; color: #ffd23f; border-radius: 6px; font-size: 15px; }
#ri-list b { font-family: var(--cond); letter-spacing: .5px; }
.ri-skip { font-family: var(--cond); font-weight: 700; font-size: 11px; letter-spacing: 2px; color: #5d5446; text-align: right; animation: ringblink 1.2s infinite; }
@media (max-width: 700px) { .resume-intro { width: 46%; top: 10%; padding: 8px 10px; } .ri-sub { display: none; } }

/* Edition stamp: "GRAND THEFT CAREER" is the game, "LOS ANKITOS" the edition. */
.edition { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px auto 2px; }
.edition::before, .edition::after { content: ''; width: clamp(24px, 6vw, 70px); height: 3px; background: var(--ink-line); }
.edition span { display: inline-block; font-family: var(--title); font-size: clamp(15px, 2.3vw, 24px); letter-spacing: .32em; padding: 3px 8px 3px 14px; background: var(--ink-line); color: var(--sun); transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--tangerine); }

/* "PLAYED N TIMES" (game.js countVisit → worker/index.js). Empty until the counter answers. */
.visitor-count { font-family: var(--cond); font-weight: 700; font-size: 12px; letter-spacing: 2px; min-height: 14px; margin: 4px 0; color: var(--leaf); }

/* ============================================================
   v5 6.1: trailer mode (index.html?trailer, ?trailer=square; js/trailer.js).
   The game frame alone, as large as the window allows, in 16:9 or 1:1:
   no page around it, no HUD, no buttons, no cursor. What stays of the
   in-game overlays is what the shots are about (the falling counter, the
   passport stamp, the calendar, the incident console), drawn larger. The
   captions and the end card are sized in units of the frame (cqmin), so
   they read the same in a recording at any window size.
   ============================================================ */
.trailer { display: none; }
body.gtc-trailer { overflow: hidden; background: #000; cursor: none; }
body.gtc-trailer * { cursor: none !important; }
body.gtc-trailer .site-header, body.gtc-trailer .chrome, body.gtc-trailer .sidebar, body.gtc-trailer .below, body.gtc-trailer .controls-note, body.gtc-trailer .site-footer,
body.gtc-trailer .game-frame > .overlay, body.gtc-trailer .pause-btn, body.gtc-trailer .touch, body.gtc-trailer .stick, body.gtc-trailer .touch-hint,
body.gtc-trailer .rotate-tip, body.gtc-trailer .pmenu, body.gtc-trailer .skillwheel { display: none !important; }
body.gtc-trailer .game-frame { position: fixed; z-index: 900; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(100vw, calc(100vh * 16 / 9)); height: auto;
  aspect-ratio: 16 / 9; border: 0; border-radius: 0; box-shadow: none; container: tframe / size; }
body.gtc-trailer-sq .game-frame { width: min(100vw, 100vh); aspect-ratio: 1 / 1; }
body.gtc-trailer #hud > :not(#fade):not(#flash):not(#count-meter):not(#passport-stamp):not(#calendar):not(#act-card) { display: none !important; }
/* The shots' own overlays stay up in a held shot (the game hides them under its letterbox), and grow. */
body.gtc-trailer .count-meter.show, body.gtc-trailer .calendar.show { opacity: 1; }
body.gtc-trailer .count-meter, body.gtc-trailer .calendar, body.gtc-trailer .passport-stamp:not(.show) { transition: none; }      /* a hard cut takes them away with the shot (the stamp still slams on) */
body.gtc-trailer .passport-stamp.show { opacity: .95; }
body.gtc-trailer .count-meter { top: 5%; }
body.gtc-trailer .count-meter b { font-size: 12cqmin; }
body.gtc-trailer .count-meter span { font-size: 2.3cqmin; }
body.gtc-trailer .calendar { top: 7%; font-size: 2.5cqmin; }
body.gtc-trailer .passport-stamp { top: 16%; font-size: 2.2cqmin; }
body.gtc-trailer .passport-stamp b { font-size: 9cqmin; }
body.gtc-trailer .act-card { left: 70%; top: 44%; width: 44cqw; font-size: 2.5cqmin; }
body.gtc-trailer-sq .act-card { left: 50%; top: 40%; width: 84cqw; font-size: 3cqmin; }
body.gtc-trailer .act-card .ac-foot { display: none; }
body.gtc-trailer .flash.go { animation-duration: .45s; }

body.gtc-trailer .trailer { display: block; position: absolute; inset: 0; z-index: 9; pointer-events: none; overflow: hidden; color: #fff; font-family: var(--title); }
/* The hook: two lines, the second landing a beat after the first. */
.tr-hook { position: absolute; left: 4cqw; right: 4cqw; top: 22%; display: grid; justify-items: center; gap: 1.6cqmin; text-align: center; opacity: 0; }
.tr-hook.show { opacity: 1; }
.tr-hook b { display: block; font: 400 12cqmin/.95 var(--title); letter-spacing: .02em; color: #fff;
  text-shadow: -.05em -.05em 0 var(--dusk-ink), .05em -.05em 0 var(--dusk-ink), -.05em .05em 0 var(--dusk-ink), .05em .05em 0 var(--dusk-ink), .07em .09em 0 var(--dusk-ink), 0 0 .5em rgba(0, 0, 0, .55); }
.tr-hook b + b { font-size: 15cqmin; color: var(--dusk-sun); animation: tr-pop .3s ease-out; }
.tr-hook b:empty { visibility: hidden; }
/* A caption: one line (two in a square frame), boxed in the title screen's dusk colours. */
.tr-cap { position: absolute; left: 4cqw; right: 4cqw; bottom: 9cqh; display: flex; justify-content: center; text-align: center; opacity: 0; }
.tr-cap.show { opacity: 1; animation: tr-pop .28s ease-out; }
.tr-cap b { display: inline-block; max-width: 100%; padding: .14em .5em .1em; font: 400 7.4cqmin/1.05 var(--title); letter-spacing: .025em; color: #fff; text-wrap: balance;
  background: rgba(26, 7, 36, .8); border-left: .14em solid var(--dusk-sun); box-shadow: .12em .12em 0 var(--dusk-pink); }
body.gtc-trailer-sq .tr-cap { bottom: 7cqh; }
@keyframes tr-pop { from { opacity: 0; transform: translateY(.4em) scale(.96); } }
/* The end card: the title screen's dusk over the flyover, the crew on the right, the title and the address. */
.tr-end { position: absolute; inset: 0; opacity: 0; container: trend / size;
  background:
    linear-gradient(90deg, rgba(24,6,32,.88) 0%, rgba(24,6,32,.55) 40%, rgba(24,6,32,0) 66%),
    radial-gradient(46% 42% at 72% 72%, rgba(255,176,70,.7) 0%, rgba(255,96,110,.34) 45%, rgba(255,80,120,0) 100%),
    linear-gradient(180deg, rgba(70,12,96,.55) 0%, rgba(222,38,124,.32) 34%, rgba(255,84,96,.28) 56%, rgba(255,146,54,.46) 76%, rgba(70,14,44,.6) 100%); }
.tr-end.show { opacity: 1; animation: tr-fade .5s ease-out; }
@keyframes tr-fade { from { opacity: 0; } }
.tr-crew { position: absolute; right: 2cqw; bottom: 0; height: 96cqh; width: auto; max-width: 48cqw; object-fit: contain; object-position: right bottom; filter: drop-shadow(0 0 1.6cqh rgba(255,128,64,.45)); }
.tr-lockup { position: absolute; left: 6cqw; top: 50%; transform: translateY(-50%); width: 56cqw; display: grid; justify-items: start; gap: 2.2cqh; }
.tr-badge { font: 700 2.4cqh/1.2 var(--cond); letter-spacing: .3em; color: #ffd9c2; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.tr-title.splash-title { margin: 0; }
.tr-title .st-top { font-size: min(7.6cqw, 13cqh); }
.tr-title .st-big { font-size: min(17cqw, 27cqh); }
.tr-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .7em; font: 700 3.2cqh/1.2 var(--cond); letter-spacing: .12em; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.tr-who b { font: 400 4.6cqh/1.1 var(--title); letter-spacing: .04em; }
.tr-who span { color: var(--dusk-sun); }
.tr-play { display: grid; gap: .25em; margin-top: 1cqh; padding: .45em .9em .5em; background: var(--dusk-sun); color: var(--ink-line); border: .2cqh solid var(--ink-line); box-shadow: .9cqh .9cqh 0 var(--ink-line), 0 0 6cqh rgba(255,150,60,.5); }
.tr-play span { font: 700 2.4cqh/1 var(--cond); letter-spacing: .24em; }
.tr-play b { font: 400 min(6.4cqh, 4.6cqw)/1 var(--title); letter-spacing: .03em; overflow-wrap: anywhere; }
/* Square: the title over the crew, both centred. */
body.gtc-trailer-sq .tr-end { background:
    radial-gradient(60% 40% at 50% 82%, rgba(255,176,70,.68) 0%, rgba(255,96,110,.3) 50%, rgba(255,80,120,0) 100%),
    linear-gradient(180deg, rgba(24,6,32,.9) 0%, rgba(70,12,96,.62) 34%, rgba(222,38,124,.3) 58%, rgba(255,146,54,.42) 80%, rgba(70,14,44,.62) 100%); }
body.gtc-trailer-sq .tr-crew { right: 50%; transform: translateX(50%); height: 42cqh; max-width: 90cqw; object-position: center bottom; }
body.gtc-trailer-sq .tr-lockup { left: 5cqw; right: 5cqw; top: 4cqh; width: auto; transform: none; justify-items: center; text-align: center; gap: 1.4cqh; }
body.gtc-trailer-sq .tr-title { justify-items: center; }
body.gtc-trailer-sq .tr-title .st-top { font-size: 8cqw; }
body.gtc-trailer-sq .tr-title .st-big { font-size: 17cqw; }
body.gtc-trailer-sq .tr-who { justify-content: center; }
body.gtc-trailer-sq .tr-play b { font-size: 6cqw; }
/* Before the roll: one quiet line on the black frame (it fades while the mouse is still). */
.tr-ready { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 90%; text-align: center; font: 700 clamp(11px, 1.8cqmin, 18px)/1.5 var(--cond); letter-spacing: .22em; color: rgba(255,255,255,.72); opacity: 0; transition: opacity .6s; }
.tr-ready.show { opacity: 1; }
