/* DA CITY Pause-Map & Radio Tuner
   Dacitycoin (DACT) — neon magenta on black, teal night, sodium accents */

:root {
  --pink: #ff00c8;
  --pink-2: #fa02b8;
  --pink-deep: #9a0078;
  --cyan: #00e8ff;
  --teal: #00ffd0;
  --sodium: #ff8a3d;
  --sodium-2: #ffc14d;
  --black: #050308;
  --ink: #0a0612;
  --glass: rgba(7, 5, 14, 0.72);
  --glass-2: rgba(8, 6, 16, 0.88);
  --chrome: #f3f3f7;
  --muted: #9aa3b4;
  --line: rgba(255, 0, 200, 0.4);
  --cyan-line: rgba(0, 232, 255, 0.45);
  --radio-h: 72px;
  --hud-h: 52px;
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-mono: "Chivo Mono", ui-monospace, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--black);
  color: var(--chrome);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html { background: #050308; }
img, svg { max-width: 100%; display: block; }
button, a { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ========== FX ========== */
#fx-root {
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
}
.fx-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0,0,0,.62) 100%);
}
.fx-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0 2px,
    rgba(0,0,0,.16) 2px 3px
  );
  opacity: .35; mix-blend-mode: multiply;
}
.fx-grain {
  position: absolute; inset: 0; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
  background-size: 180px 180px;
}
#city-fx { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ========== BACKDROP ========== */
#backdrop {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #050308;
}
.bd-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(255,0,200,.18), transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(0,232,255,.1), transparent 45%),
    linear-gradient(180deg, #07040c 0%, #14061a 40%, #1a0a14 70%, #050308 100%);
}
.bd-layer {
  position: absolute; inset: -6%;
  background-size: cover; background-position: center 40%;
  opacity: 0; transition: opacity 700ms ease;
  will-change: transform, opacity;
  transform: scale(1.08);
}
.bd-skyline { background-image: url("../assets/scenes/skyline.jpg"); }
.bd-welcome { background-image: url("../assets/scenes/welcome-sign.jpg"); }
.bd-streets { background-image: url("../assets/scenes/streets.jpg"); }
.bd-drive { background-image: url("../assets/scenes/night-drive.jpg"); }
.bd-radio { background-image: url("../assets/scenes/radio.jpg"); }
body[data-stop="welcome"] .bd-skyline,
body[data-stop="welcome"] .bd-welcome { opacity: 1; }
body[data-stop="welcome"] .bd-skyline { opacity: .85; }
body[data-stop="welcome"] .bd-welcome { opacity: .55; mix-blend-mode: screen; }
body[data-stop="city"] .bd-skyline { opacity: .4; }
body[data-stop="mark"] .bd-skyline { opacity: .9; }
body[data-stop="score"] .bd-streets { opacity: .75; }
body[data-stop="radio"] .bd-radio { opacity: .7; }
body[data-stop="radio"] .bd-drive { opacity: .35; mix-blend-mode: screen; }
body[data-stop="close"] .bd-welcome { opacity: .8; }
.bd-fog {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,3,8,.15), transparent 30%, rgba(5,3,8,.5) 100%),
    radial-gradient(ellipse at 30% 80%, rgba(255,0,200,.12), transparent 50%);
}
@keyframes kenburns {
  0% { transform: scale(1.08) translate3d(-1.2%, 0, 0); }
  50% { transform: scale(1.14) translate3d(1.4%, -1%, 0); }
  100% { transform: scale(1.08) translate3d(-1.2%, 0, 0); }
}
body:not(.is-reduced):not(.is-hidden) .bd-layer { animation: kenburns 42s ease-in-out infinite alternate; }

/* ========== LOADER ========== */
#loader {
  position: fixed; inset: 0; z-index: 120;
  background: #050308;
  display: grid; place-items: center;
  transition: opacity 500ms ease, visibility 500ms ease;
}
#loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner {
  width: min(520px, calc(100% - 32px));
  text-align: center;
  padding-bottom: 12px;
}
.loader-map {
  position: relative;
  height: 200px;
  margin: 0 auto 16px;
  max-width: 440px;
}
.loader-roads { width: 100%; height: 100%; overflow: visible; }
.loader-roads .road {
  fill: none; stroke: var(--pink); stroke-width: 1.6;
  stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600;
  animation: roadDraw 2.4s ease forwards;
  filter: drop-shadow(0 0 4px var(--pink));
}
.loader-roads .r2 { stroke: var(--cyan); animation-delay: .2s; }
.loader-roads .r3 { stroke: var(--pink-2); animation-delay: .35s; }
.loader-roads .r4 { stroke: var(--sodium); stroke-width: 1.2; animation-delay: .5s; }
.loader-roads .node {
  fill: var(--chrome); opacity: 0;
  animation: nodePop .4s ease forwards;
}
.n1 { animation-delay: .7s; } .n2 { animation-delay: .95s; }
.n3 { animation-delay: 1.15s; } .n4 { animation-delay: 1.35s; }
.n5 { animation-delay: 1.5s; } .n6 { animation-delay: 1.7s; }
@keyframes roadDraw { to { stroke-dashoffset: 0; } }
@keyframes nodePop { to { opacity: 1; } }
.loader-scan {
  position: absolute; inset: 10% 4%;
  background: linear-gradient(180deg, transparent, rgba(0,232,255,.28), transparent);
  height: 18%;
  animation: scanSweep 2.4s linear infinite;
  pointer-events: none;
}
@keyframes scanSweep { from { top: 8%; } to { top: 78%; } }
.loader-logo {
  position: absolute; left: 50%; top: 50%;
  width: 92px; height: 92px; margin: -46px 0 0 -46px;
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(255,0,200,.45);
  animation: logoPulse 1.6s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 8px var(--pink)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 18px var(--pink)); transform: scale(1.04); }
}
.loader-kicker, .sheet-kicker, .hero-kicker, .led-label, .ticket-label, .fw-state, .cart-freq {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--cyan);
}
.loader-title, .hero-title, .sheet-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: .82;
  text-transform: uppercase;
}
.loader-title {
  font-size: clamp(56px, 16vw, 96px);
  color: var(--chrome);
  text-shadow: 0 0 24px rgba(255,0,200,.45);
  margin: 6px 0 12px;
}
.loader-districts {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px;
  min-height: 44px; margin-bottom: 16px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  color: var(--muted);
}
.loader-districts li { opacity: .2; transition: opacity .3s, color .3s; }
.loader-districts li.is-on { opacity: 1; color: var(--pink); }
.loader-bar {
  height: 3px; background: #1a1220; overflow: hidden; border-radius: 2px;
}
.loader-bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  box-shadow: 0 0 8px var(--pink);
  transition: width 80ms linear;
}
.loader-pct {
  margin-top: 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.loader-enter {
  margin-top: 16px;
  padding: 10px 22px;
  font-family: var(--font-mono);
  letter-spacing: .2em;
  font-size: 11px;
  color: var(--black);
  background: var(--pink);
  box-shadow: 0 0 18px rgba(255,0,200,.45);
}
.loader-enter:hover { transform: translateY(-1px); }
.loader-enter:active { transform: scale(.97); }

/* ========== HUD ========== */
.hud-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: calc(var(--hud-h) + var(--safe-t));
  padding: var(--safe-t) 14px 0;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(5,3,8,.78), transparent);
  pointer-events: none;
}
.hud-brand { display: flex; align-items: center; gap: 10px; pointer-events: auto; }
.hud-brand img {
  width: 34px; height: 34px; border-radius: 50%;
  box-shadow: 0 0 12px rgba(255,0,200,.4);
}
.hud-brand strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .08em;
  line-height: 1;
}
.hud-brand span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--cyan);
}
.hud-meta {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  color: var(--muted);
}
.hud-live {
  color: var(--pink);
  animation: blink 1.6s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .35; } }
#hud-clock { color: var(--chrome); }

/* ========== MAP ========== */
#map-viewport {
  position: fixed; inset: 0;
  z-index: 5;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
#map-viewport.is-drag { cursor: grabbing; }
body[data-stop="welcome"] #map-viewport { opacity: .32; }
body[data-stop="mark"] #map-viewport { opacity: .28; }
body[data-stop="score"] #map-viewport { opacity: .22; }
body[data-stop="radio"] #map-viewport { opacity: .18; }
body[data-stop="close"] #map-viewport { opacity: .28; }
body[data-stop="city"] #map-viewport { opacity: 1; }
#map-viewport { transition: opacity 500ms ease; }
#city-map {
  position: absolute; top: 0; left: 0;
  width: 2000px; height: 1500px;
  transform-origin: 0 0;
  will-change: transform;
  user-select: none;
}
.map-tex {
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
  filter: saturate(1.15) contrast(1.05);
}
.map-grid {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(0,232,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,0,200,.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mix-blend-mode: screen;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  pointer-events: auto;
  filter: drop-shadow(0 0 8px rgba(255,0,200,.55));
}
.map-pin i {
  width: 16px; height: 16px;
  border: 2px solid var(--pink);
  background: rgba(5,3,8,.85);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 0 3px rgba(255,0,200,.18), 0 0 16px var(--pink);
}
.map-pin.is-on i {
  background: var(--pink);
  box-shadow: 0 0 0 5px rgba(255,0,200,.25), 0 0 22px var(--pink);
}
.map-pin span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--chrome);
  background: rgba(5,3,8,.72);
  border: 1px solid var(--line);
  padding: 2px 6px;
  white-space: nowrap;
}
.map-pin:hover i, .map-pin:hover span { color: var(--cyan); border-color: var(--cyan); }
.map-hint {
  position: absolute; left: 50%; bottom: calc(var(--radio-h) + var(--safe-b) + 10px);
  transform: translateX(-50%);
  z-index: 6;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em;
  color: var(--muted);
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s;
}
body[data-stop="city"] .map-hint { opacity: .8; }

/* ========== PANELS ========== */
#stage {
  position: fixed; inset: 0;
  z-index: 20;
  pointer-events: none;
  padding: calc(var(--hud-h) + var(--safe-t) + 6px) 16px calc(var(--radio-h) + var(--safe-b) + 12px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.panel {
  width: min(560px, 100%);
  pointer-events: auto;
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  animation: panelIn .55s cubic-bezier(.2,.8,.2,1);
}
.panel[hidden] { display: none; }
.panel.is-active { display: block; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* Welcome is a poster, not a heavy sheet */
.panel-welcome {
  width: min(760px, 100%);
  align-self: center;
  text-align: center;
  max-height: 100%;
}
.welcome-poster { padding: 4px 0 0; }
.hero-mark {
  width: 92px; height: 92px; margin: 0 auto 8px;
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(255,0,200,.5);
}
.hero-kicker { margin-bottom: 6px; }
.hero-title {
  font-size: clamp(72px, 22vw, 168px);
  color: #fff;
  text-shadow:
    0 0 18px rgba(255,0,200,.55),
    0 2px 0 rgba(0,0,0,.4);
  margin: 0 0 6px;
}
.hero-title .line { display: block; }
.hero-title .ch {
  display: inline-block;
  transform: translateY(0.55em) rotateX(70deg);
  opacity: 0;
  animation: letterIn .55s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes letterIn {
  to { transform: none; opacity: 1; }
}
.hero-sub {
  font-family: var(--font-mono);
  font-size: clamp(10px, 2.4vw, 13px);
  letter-spacing: .22em;
  color: var(--cyan);
  margin-bottom: 4px;
}
.hero-tag {
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.cta-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn-shield {
  position: relative;
  width: 82px; height: 94px;
  display: grid; place-items: center;
  isolation: isolate;
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)) drop-shadow(0 0 10px rgba(255,0,200,.35));
}
.btn-shield svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: #14030f;
  stroke: var(--pink);
  stroke-width: 3;
  filter: drop-shadow(0 0 6px var(--pink));
  z-index: 0;
}
.btn-shield span { position: relative; z-index: 1; pointer-events: none; }
.shield-top, .shield-bot {
  position: absolute; left: 0; right: 0; text-align: center;
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .16em;
  color: var(--cyan);
}
.shield-top { top: 12px; }
.shield-bot { bottom: 16px; }
.shield-mid {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .06em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 8px var(--pink);
}
.btn-shield:hover { transform: translateY(-3px) scale(1.04); filter: drop-shadow(0 0 16px var(--pink)); }
.btn-shield:active { transform: scale(.94) translateY(1px); }
.btn-shield-sm { width: 70px; height: 80px; }
.btn-shield-sm .shield-mid { font-size: 18px; }

.btn-ticket {
  position: relative;
  width: 168px; min-height: 78px;
  padding: 10px 12px 10px 18px;
  background:
    linear-gradient(180deg, #1a1420, #0c0810);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(0,0,0,.4), 0 0 0 1px rgba(255,0,200,.12), 0 0 16px rgba(255,0,200,.12);
  text-align: left;
  transition: transform .15s ease, box-shadow .15s ease;
  clip-path: polygon(
    8px 0%, 100% 0%, 100% 100%, 8px 100%,
    8px 92%, 0 88%, 8px 84%, 0 80%, 8px 76%, 0 72%,
    8px 68%, 0 64%, 8px 60%, 0 56%, 8px 52%, 0 48%,
    8px 44%, 0 40%, 8px 36%, 0 32%, 8px 28%, 0 24%,
    8px 20%, 0 16%, 8px 12%, 0 8%, 8px 4%
  );
}
.ticket-label { display: block; margin-bottom: 4px; }
.ticket-ca {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: #fff;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticket-stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--black);
  background: var(--sodium);
  padding: 2px 6px;
  transform: rotate(-6deg);
  box-shadow: 0 0 8px rgba(255,138,61,.4);
}
.btn-ticket:hover { transform: translateY(-3px); box-shadow: 0 0 20px rgba(255,0,200,.3); }
.btn-ticket:active { transform: scale(.96); }
.btn-ticket-sm { width: 158px; min-height: 70px; }

.btn-spray {
  position: relative;
  width: 58px; height: 88px;
  display: grid; place-items: end center;
  padding-bottom: 8px;
  transition: transform .15s ease, filter .15s ease;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)) drop-shadow(0 0 8px rgba(0,232,255,.25));
}
.btn-spray svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: #121018;
  stroke: var(--cyan);
  stroke-width: 2.2;
}
.btn-spray .can-mist { fill: none; stroke: var(--pink); opacity: .8; }
.btn-spray span {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  text-shadow: 0 0 8px var(--cyan);
  z-index: 1;
}
.btn-spray:hover { transform: translateY(-3px) rotate(-4deg) scale(1.05); }
.btn-spray:active { transform: scale(.94) rotate(0); }
.btn-spray-sm { width: 48px; height: 74px; }

.btn-freeway {
  display: flex; flex-direction: column; justify-content: center;
  min-width: 120px; min-height: 70px;
  padding: 8px 16px;
  background: #08322c;
  border: 3px solid #d8e8e0;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 0 0 2px #08322c, 0 8px 16px rgba(0,0,0,.4), 0 0 16px rgba(0,255,208,.2);
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.fw-state {
  color: #d8e8e0;
  font-size: 8px;
}
.fw-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: .06em;
  color: #fff;
  line-height: 1;
}
.fw-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .14em;
  color: var(--teal);
  margin-top: 2px;
}
.btn-freeway:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px #08322c, 0 0 22px rgba(0,255,208,.45); }
.btn-freeway:active { transform: scale(.96); }

.btn-mic {
  width: 64px; height: 74px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: radial-gradient(circle at 50% 30%, #2a2434, #0c0a10);
  border: 2px solid var(--line);
  border-radius: 50% 50% 18px 18px;
  box-shadow: 0 8px 14px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.mic-knob {
  width: 22px; height: 22px; border-radius: 50%;
  background: conic-gradient(from 40deg, #222, #aaa, #222, #888, #222);
  box-shadow: 0 0 8px rgba(255,0,200,.3), inset 0 0 0 3px #111;
}
.btn-mic span:last-child {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--pink);
}
.btn-mic:hover { transform: translateY(-3px); box-shadow: 0 0 16px rgba(255,0,200,.35); }
.btn-mic:active { transform: scale(.95); }

/* ========== SHEETS ========== */
.sheet {
  background: var(--glass-2);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.04);
  padding: 16px 16px 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
}
.sheet::before, .sheet::after {
  content: "";
  position: absolute; width: 12px; height: 12px;
  border: 2px solid var(--pink);
  pointer-events: none;
}
.sheet::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.sheet::after { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.sheet-kicker { margin-bottom: 4px; }
.sheet-title {
  font-size: clamp(36px, 9vw, 64px);
  margin-bottom: 8px;
  text-shadow: 0 0 16px rgba(255,0,200,.35);
}
.sheet-lead {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  margin-bottom: 14px;
}
.district-list { list-style: none; display: grid; gap: 6px; }
.district-list button {
  width: 100%;
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 8px 10px;
  background: rgba(255,0,200,.05);
  border: 1px solid rgba(255,0,200,.18);
  text-align: left;
  transition: background .15s, border-color .15s, transform .15s;
}
.district-list b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .06em;
}
.district-list span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--cyan);
  white-space: nowrap;
}
.district-list button:hover { background: rgba(255,0,200,.14); border-color: var(--pink); transform: translateX(3px); }

.mark-stage {
  display: grid; place-items: center;
  margin: 8px 0 12px;
}
.mark-stage img {
  width: min(220px, 58vw); height: auto;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(255,0,200,.45);
  animation: logoPulse 2.4s ease-in-out infinite;
}

.token-plate {
  border: 1px solid var(--cyan-line);
  background:
    linear-gradient(180deg, rgba(0,232,255,.06), rgba(5,3,8,.4));
  padding: 12px;
}
.plate-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0,232,255,.2);
  padding-bottom: 10px;
}
.plate-head img { width: 54px; height: 54px; border-radius: 50%; }
.plate-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .1em;
  line-height: 1;
}
.plate-ticker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--pink);
  margin-top: 4px;
}
.plate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin-bottom: 14px;
}
.plate-grid .plate-ca { grid-column: 1 / -1; }
.plate-grid dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--cyan);
  margin-bottom: 2px;
}
.plate-grid dd {
  font-size: 13px;
  font-weight: 500;
  word-break: break-all;
}
.plate-ca dd {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0;
  color: #fff;
}
.plate-actions {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px;
  justify-content: flex-start;
}

.game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.game-cart {
  text-align: left;
  padding: 10px 10px 12px;
  background: rgba(0,232,255,.05);
  border: 1px solid rgba(0,232,255,.22);
  min-height: 112px;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.game-cart strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .04em;
  line-height: 1;
}
.game-cart span:nth-child(3) {
  font-size: 12px;
  color: var(--muted);
  flex: 1;
}
.game-cart em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--sodium);
}
.game-cart:hover {
  transform: translateY(-2px);
  border-color: var(--pink);
  box-shadow: 0 0 16px rgba(255,0,200,.25);
}
.game-cart:active { transform: scale(.97); }

.dispatch-actions {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.disclaimer {
  font-size: 11px;
  line-height: 1.5;
  color: #8b93a3;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 10px;
}

/* ========== RADIO BAR ========== */
#radio-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--radio-h) + var(--safe-b));
  padding: 0 8px var(--safe-b);
  background:
    linear-gradient(180deg, #1a1520, #0c0a10 40%, #08060c);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
.radio-face {
  height: var(--radio-h);
  display: flex; align-items: center; gap: 8px;
  max-width: 1440px;
  margin: 0 auto;
}
.radio-led {
  flex: 0 0 auto;
  min-width: 92px;
  padding: 4px 8px;
  background: #05080a;
  border: 1px solid rgba(0,232,255,.25);
  box-shadow: inset 0 0 12px rgba(0,232,255,.08);
  text-align: left;
}
.radio-led strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
}
.radio-led em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .14em;
  color: var(--pink);
}
.radio-presets {
  flex: 1 1 auto;
  display: flex; gap: 4px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.radio-presets::-webkit-scrollbar { display: none; }
.preset {
  flex: 1 1 0;
  min-width: 52px;
  height: 52px;
  padding: 4px 4px;
  background: #141018;
  border: 1px solid #2a2230;
  color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
}
.preset span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .08em;
}
.preset b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1.1;
}
.preset.is-on, .preset[aria-selected="true"] {
  background: #1a0816;
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 0 12px rgba(255,0,200,.3);
}
.preset:hover { border-color: var(--cyan); color: #fff; }
.preset:active { transform: scale(.96); }
.radio-scan {
  flex: 0 0 auto;
  height: 52px;
  min-width: 52px;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--black);
  background: var(--sodium);
  box-shadow: 0 0 10px rgba(255,138,61,.35);
  transition: transform .12s, box-shadow .15s, background .15s;
}
.radio-scan.is-on, .radio-scan[aria-pressed="true"] {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 0 14px rgba(255,0,200,.5);
}
.radio-scan:hover { transform: translateY(-1px); }
.radio-scan:active { transform: scale(.95); }
.radio-knob {
  flex: 0 0 36px;
  width: 36px; height: 36px; border-radius: 50%;
  background: conic-gradient(from 20deg, #1a1a1a, #cfcfd4, #2a2a2a, #999, #1a1a1a);
  box-shadow: 0 2px 6px rgba(0,0,0,.5), inset 0 0 0 3px #0a0a0c;
  position: relative;
}
.radio-knob i {
  position: absolute; left: 50%; top: 5px;
  width: 2px; height: 8px; margin-left: -1px;
  background: var(--pink);
  border-radius: 1px;
  transform-origin: 50% 13px;
  transition: transform .4s ease;
}
body[data-stop="welcome"] .radio-knob i { transform: rotate(0deg); }
body[data-stop="city"] .radio-knob i { transform: rotate(50deg); }
body[data-stop="mark"] .radio-knob i { transform: rotate(110deg); }
body[data-stop="score"] .radio-knob i { transform: rotate(170deg); }
body[data-stop="radio"] .radio-knob i { transform: rotate(240deg); }
body[data-stop="close"] .radio-knob i { transform: rotate(300deg); }

/* ========== TOASTS ========== */
#toasts {
  position: fixed; z-index: 200;
  left: 50%; top: calc(var(--hud-h) + var(--safe-t) + 8px);
  transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px;
  width: min(360px, calc(100% - 24px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: rgba(8,6,14,.94);
  border: 1px solid var(--pink);
  box-shadow: 0 0 18px rgba(255,0,200,.25);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-align: center;
  animation: toastIn .3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ========== GAMES ========== */
#game-overlay {
  position: fixed; inset: 0; z-index: 160;
  background: rgba(0,0,0,.72);
  display: grid; place-items: center;
  padding: 12px 12px calc(var(--radio-h) + var(--safe-b) + 8px);
}
#game-overlay[hidden] { display: none; }
.game-shell {
  width: min(920px, 100%);
  background: #0a0810;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 30px rgba(255,0,200,.15);
  display: flex; flex-direction: column;
  max-height: 100%;
}
.game-hud {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,0,200,.2);
  font-family: var(--font-mono); font-size: 11px;
}
.game-hud strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .08em;
  flex: 1;
}
.game-stats { display: flex; gap: 12px; color: var(--muted); }
.game-stats b { color: var(--cyan); }
.game-x {
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: #fff;
  background: #2a1020;
  border: 1px solid var(--pink);
}
#game-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  max-height: min(62vh, 560px);
  background: #050308;
  display: block;
  touch-action: none;
}
.game-banner {
  position: absolute;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 8vw, 72px);
  letter-spacing: .06em;
  text-shadow: 0 0 20px var(--pink);
  pointer-events: none;
  white-space: nowrap;
}
.game-shell { position: relative; }
.game-dock {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-top: 1px solid rgba(255,255,255,.06);
}
#game-help { flex: 1; font-size: 12px; color: var(--muted); }
.btn-share, .btn-again {
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  border: 1px solid var(--cyan);
  color: var(--cyan);
}
.btn-again { background: var(--pink); color: #fff; border-color: var(--pink); }

/* ========== REVEAL ========== */
.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(.4em);
  animation: wordIn .5s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes wordIn { to { opacity: 1; transform: none; } }

/* ========== WIDTHS ========== */
@media (max-width: 720px) {
  :root { --radio-h: 66px; --hud-h: 48px; }
  .hero-mark { width: 68px; height: 68px; }
  .hero-title { font-size: clamp(64px, 22vw, 112px); }
  .hero-tag { margin-bottom: 12px; font-size: 13px; }
  .cta-row { gap: 10px; }
  .btn-shield { width: 70px; height: 80px; }
  .btn-ticket { width: 150px; min-height: 70px; padding: 8px 10px 8px 16px; }
  .ticket-ca { font-size: 11px; }
  .btn-spray { width: 50px; height: 78px; }
  .radio-knob { display: none; }
  .radio-led { min-width: 74px; padding: 3px 6px; }
  .radio-led strong { font-size: 18px; }
  .led-label { display: none; }
  .preset b { font-size: 9px; }
  .preset { min-width: 46px; height: 48px; }
  .hud-loc { display: none; }
  .sheet { padding: 14px 12px 12px; }
  .game-grid { gap: 6px; }
  .game-cart { min-height: 100px; padding: 8px; }
  .game-cart strong { font-size: 16px; }
  .plate-grid dd { font-size: 12px; }
  .map-pin span { font-size: 8px; padding: 1px 4px; }
  #stage { padding-left: 10px; padding-right: 10px; }
  .loader-map { height: 160px; }
  .loader-logo { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 68px; }
  .cta-row { gap: 8px; }
  .btn-ticket { width: 140px; }
  .radio-led { min-width: 58px; padding: 2px 5px; }
  .radio-led strong { font-size: 16px; }
  .radio-scan { min-width: 40px; height: 48px; padding: 0 5px; font-size: 8px; }
  .preset { min-width: 0; flex: 1 1 0; height: 48px; padding: 2px 1px; }
  .preset span { font-size: 7px; letter-spacing: 0; }
  .preset b { font-size: 8px; letter-spacing: 0; }
  .radio-presets { overflow-x: hidden; gap: 3px; }
  .radio-face { gap: 5px; }
}

@media (min-width: 1024px) {
  :root { --radio-h: 80px; --hud-h: 56px; }
  #stage {
    justify-content: flex-start;
    align-items: center;
    padding-left: 36px;
  }
  .panel-welcome {
    margin: 0 auto;
  }
  .panel-city, .panel-mark, .panel-score, .panel-radio, .panel-close {
    width: min(480px, 38vw);
  }
  .hero-mark { width: 120px; height: 120px; }
  .sheet { padding: 22px 22px 18px; }
  .radio-face { gap: 12px; padding: 0 12px; }
  .preset b { font-size: 13px; }
  .preset { height: 58px; }
  .radio-led { min-width: 128px; }
  .radio-led strong { font-size: 28px; }
  .btn-shield { width: 96px; height: 110px; }
  .btn-shield .shield-mid { font-size: 26px; }
  .btn-ticket { width: 196px; min-height: 90px; }
  .btn-spray { width: 66px; height: 102px; }
  .loader-map { height: 260px; max-width: 560px; }
  .loader-logo { width: 110px; height: 110px; margin: -55px 0 0 -55px; }
}

@media (min-width: 1440px) {
  .panel-city, .panel-mark, .panel-score, .panel-radio, .panel-close {
    width: min(520px, 36vw);
  }
  .hero-title { font-size: 176px; }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .bd-layer { transform: scale(1.06); }
  .hero-title .ch, .word { opacity: 1; transform: none; }
  .loader-roads .road { stroke-dashoffset: 0; }
  .loader-roads .node { opacity: 1; }
}
body.is-reduced *,
body.is-reduced *::before,
body.is-reduced *::after {
  animation-duration: 0.01ms !important;
}
body.is-reduced .hero-title .ch,
body.is-reduced .word { opacity: 1; transform: none; }
body.is-reduced .bd-layer { animation: none !important; }
