/*! © 2026 Marina Orlova (@o_m_alex, t.me/o_m_alex). All rights reserved.
    Original concept, design, code, artwork and music. Copying or reuse without written permission is prohibited.
    Unofficial non-commercial fan concept / parody; not affiliated with any game studio. */
/* ============ TOKENS ============ */
:root {
  --pink: #FF5C75;
  --purple: #A72D9B;
  --orange: #FF7047;
  --violet: #6338A8;
  --blue: #28B9E5;
  --night: #171324;
  --night-2: #0e0b18;
  --ink: #F6F0FB;
  --dim: rgba(246, 240, 251, .62);
  --faint: rgba(246, 240, 251, .28);
  --line: rgba(246, 240, 251, .14);
  --sea: #0d1a3a;
  --land: #221a36;
  --glass: rgba(14, 11, 24, .72);

  --f-display: "Anton", Impact, sans-serif;
  --f-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--night-2); }
body {
  background: var(--night-2);
  color: var(--ink);
  font-family: var(--f-cond);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading, body.is-locked { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
.mono { font-family: var(--f-mono); }

/* ============ LOGO (custom, not the game's) ============ */
.logo { display: inline-block; line-height: .86; }
.logo-word {
  position: relative; display: inline-block;
  font-family: var(--f-display); font-weight: 400;
  color: #fff; letter-spacing: -.01em;
  transform: skewX(-9deg);
  text-shadow: .045em .045em 0 var(--pink), .09em .09em 0 var(--violet);
}
.logo.big .logo-word { font-size: clamp(84px, 10.5vw, 200px); }
.logo.small .logo-word { font-size: 30px; }

/* ============ MEDIA + PLACEHOLDERS ============ */
.media { position: absolute; inset: 0; overflow: hidden; }
.media img, .media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .6s;
}
.media img.is-ready, .media video.is-ready { opacity: 1; }
.ph {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 70% 100%, var(--t2, #ff7047) 0%, transparent 55%),
    linear-gradient(180deg, var(--t1, #2a1450) 0%, var(--t3, #a72d9b) 70%, #1b0f2e 100%);
}
.ph::after {
  content: attr(data-label);
  position: absolute; right: 18px; bottom: 16px;
  font: 500 11px/1.3 var(--f-mono); letter-spacing: .04em;
  color: rgba(255, 255, 255, .7);
  background: rgba(0, 0, 0, .35); padding: 6px 9px; border: 1px dashed rgba(255, 255, 255, .35);
}
.media.has-media .ph::after { display: none; }

/* ============ LOADER ============ */
#loader { position: fixed; inset: 0; z-index: 100; background: #000; overflow: hidden; }
.loader-slides { position: absolute; inset: 0; }
.loader-slides .media { opacity: 0; transition: opacity .9s; }
.loader-slides .media.is-on { opacity: 1; }
.loader-slides .media.is-on .kb { animation: kenburns 6s cubic-bezier(.25,.5,.35,1) forwards; }
.kb { position: absolute; inset: 0; }
@keyframes kenburns { from { transform: scale(1.1) translateX(1.5%); } to { transform: scale(1) translateX(0); } }
.loader-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 6, 20, .85) 0%, rgba(10, 6, 20, .35) 45%, transparent 70%),
              linear-gradient(0deg, rgba(10, 6, 20, .8) 0%, transparent 35%);
}
.loader-logo { position: absolute; left: 64px; top: 56px; }
.loader-tip { position: absolute; left: 64px; bottom: 72px; max-width: 460px; }
.tip-label {
  display: inline-block; font: 700 13px var(--f-cond); letter-spacing: .2em;
  background: var(--pink); color: var(--night); padding: 3px 10px; margin-bottom: 12px;
}
.loader-tip p { font: 500 24px/1.25 var(--f-cond); min-height: 60px; }
.loader-status { position: absolute; right: 56px; bottom: 64px; display: flex; align-items: center; gap: 14px; }
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .2); border-top-color: #fff;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.status-text { font: 600 16px var(--f-cond); letter-spacing: .2em; }
.press-start {
  position: absolute; right: 56px; bottom: 60px;
  font: 700 22px var(--f-cond); letter-spacing: .24em; opacity: 0; pointer-events: none;
}
.press-start small { font: 500 13px var(--f-mono); letter-spacing: .05em; color: var(--dim); margin-left: 8px; }
#loader.is-ready .loader-status { opacity: 0; }
#loader.is-ready .press-start { opacity: 1; animation: blink 1.4s ease-in-out infinite; }
#loader.is-ready { cursor: pointer; }
@keyframes blink { 50% { opacity: .35; } }
.loader-legal {
  position: absolute; left: 0; right: 0; bottom: 18px; text-align: center;
  font: 500 10px var(--f-mono); letter-spacing: .14em; color: var(--faint);
}

/* ============ INTRO ============ */
#intro { position: relative; height: 760vh; }
.stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.layer { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform; transform-origin: 44% 64%; }
#f0 { opacity: 1; }
.stage-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(14, 8, 28, .78) 0%, rgba(14, 8, 28, .25) 42%, transparent 65%),
              linear-gradient(0deg, rgba(14, 8, 28, .7) 0%, transparent 30%),
              radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%);
}
.intro-copy { position: absolute; left: 7vw; top: 22vh; }
.kicker { font-size: 13px; letter-spacing: .12em; color: var(--dim); margin-bottom: 22px; }
.welcome-unused { font: 700 clamp(22px, 2.2vw, 34px) var(--f-cond); letter-spacing: .4em; margin-bottom: 6px; color: var(--ink); }
.tagline { margin-top: 26px; font: 400 clamp(34px, 3.6vw, 60px)/1 var(--f-display); letter-spacing: .01em; }
.sub { margin-top: 14px; font: 500 21px/1.3 var(--f-cond); color: var(--dim); max-width: 380px; }
.btn-start {
  margin-top: 34px; padding: 16px 26px 15px;
  font: 700 17px var(--f-cond); letter-spacing: .22em;
  background: var(--ink); color: var(--night);
  box-shadow: 6px 6px 0 var(--pink);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn-start span { display: inline-block; transition: transform .25s var(--ease-out); }
.btn-start:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--pink); }
.btn-start:hover span { transform: translateX(5px); }
.intro-foot {
  position: absolute; left: 7vw; right: 7vw; bottom: 34px;
  display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .14em; color: var(--dim);
}
.scroll-hint i { display: inline-block; font-style: normal; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

.lane { position: absolute; left: 0; right: 0; bottom: 6vh; height: 22vh; pointer-events: none; }
.rider { position: absolute; bottom: 0; left: 0; height: 100%; aspect-ratio: 16 / 9; transform: translateX(-60vw); }
.rider img, .rider svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.rider.police { height: 92%; }
.siren {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  box-shadow: inset 90px 0 120px -60px #ff2340, inset -90px 0 120px -60px #2e6bff;
  animation: siren .5s steps(2) infinite;
}
@keyframes siren {
  0% { box-shadow: inset 90px 0 120px -60px #ff2340, inset -90px 0 120px -60px #2e6bff; }
  100% { box-shadow: inset 90px 0 120px -60px #2e6bff, inset -90px 0 120px -60px #ff2340; }
}
.flash { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 55%, #fff 0%, #ffd2dc 35%, var(--pink) 75%, var(--violet) 100%); }

/* ============ MAP ============ */
#map { position: fixed; inset: 0; z-index: 55; overflow: hidden; background: var(--sea); visibility: hidden; opacity: 0; }
#map.is-open { visibility: visible; }
body.is-mapmode { overflow: hidden; }
.map-viewport {
  position: absolute; inset: 0; cursor: grab; overflow: hidden;
  background:
    linear-gradient(rgba(40, 185, 229, .05) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(40, 185, 229, .05) 1px, transparent 1px) 0 0 / 64px 64px,
    radial-gradient(120% 120% at 70% 40%, #13245a 0%, var(--sea) 55%, #070d22 100%);
}
.map-viewport.is-drag { cursor: grabbing; }
.map-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
#mapSvg { display: block; overflow: visible; }
.blips { position: absolute; inset: 0; }

.blip {
  position: absolute; width: 0; height: 0;
}
.blip-in {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -50%) scale(var(--inv, 1));
  transform-origin: 0 0;
}
.blip-dot {
  position: relative; display: grid; place-items: center;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  background: var(--night); border: 2px solid var(--c, #fff); color: var(--c, #fff);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .35), 0 0 16px -2px var(--c);
  transition: transform .3s var(--ease-out), background .25s, color .25s;
  cursor: pointer;
}
.blip-dot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.blip.mission { z-index: 3; }
.blip.side .blip-dot { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.blip.side .blip-dot svg { width: 15px; height: 15px; }
.blip.mission .blip-dot { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-width: 3px; }
.blip.mission .blip-dot svg { width: 24px; height: 24px; }
.blip.mission .blip-dot::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 2px solid var(--c); opacity: .5; animation: ping 2.2s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.blip-num {
  position: absolute; top: -8px; right: -10px; min-width: 20px; height: 20px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--c); color: var(--night); font: 700 12px var(--f-mono);
}
.blip-label {
  position: absolute; left: 30px; top: -10px; white-space: nowrap;
  font: 700 15px var(--f-cond); letter-spacing: .14em; color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .9);
  opacity: 0; transform: translateX(-6px); transition: .25s var(--ease-out); pointer-events: none;
}
.blip.mission .blip-label { left: 36px; top: -11px; opacity: .9; transform: none; font-size: 16px; }
.blip:hover .blip-label, .blip.is-hl .blip-label { opacity: 1; transform: none; }
.blip:hover .blip-dot, .blip.is-hl .blip-dot { transform: scale(1.28); }
.blip.is-active .blip-dot { background: var(--c); color: var(--night); }
.blip.is-done .blip-dot { border-style: solid; }
.blip.is-done .blip-num { background: #fff; }
.blip.is-dim { opacity: .18; }
.blip.hidden-spot { opacity: 0; pointer-events: none; transition: opacity .5s; }
.blip.hidden-spot.is-found { opacity: 1; pointer-events: auto; }
.blip.player .blip-dot { width: 0; height: 0; margin: 0; border: 0; background: none; box-shadow: none; cursor: default; }
.player-arrow { position: absolute; left: -14px; top: -16px; width: 28px; height: 32px; filter: drop-shadow(0 0 8px var(--blue)); }
.player-ring { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%; border: 1px solid rgba(40, 185, 229, .5); animation: ping 2.6s infinite; }

.map-top {
  position: absolute; left: 0; right: 0; top: 0; height: 92px; padding: 0 340px 0 40px;
  display: flex; align-items: center; gap: 34px;
  background: linear-gradient(180deg, rgba(7, 6, 16, .85), transparent);
  pointer-events: none;
}
.map-top > * { pointer-events: auto; }
.map-back { font: 600 13px var(--f-mono); letter-spacing: .1em; color: var(--dim); padding: 9px 14px; border: 1px solid var(--line); background: rgba(10,6,20,.4); }
.map-back span { color: var(--faint); margin-left: 6px; }
.map-back:hover { color: #fff; }
.tabs { display: flex; gap: 6px; }
.tab {
  font: 700 17px var(--f-cond); letter-spacing: .2em; padding: 9px 18px 8px;
  color: var(--dim); border-bottom: 3px solid transparent;
}
.tab:hover { color: #fff; }
.tab.is-active { color: #fff; border-color: var(--pink); background: rgba(255, 92, 117, .12); }

.legend {
  position: absolute; right: 24px; top: 150px; bottom: 210px; width: 290px;
  padding: 22px 22px 16px; overflow: auto;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 20px;
}
.legend h3 { font: 700 14px var(--f-cond); letter-spacing: .26em; color: var(--dim); margin-bottom: 10px; display: flex; justify-content: space-between; }
.legend li { display: flex; align-items: center; gap: 10px; padding: 6px 6px; cursor: pointer; font: 600 16px var(--f-cond); letter-spacing: .06em; }
.legend li:hover, .legend li.is-hl { background: rgba(255, 255, 255, .07); }
.legend .ic {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--c); color: var(--c); background: var(--night);
}
.legend .ic svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.legend .num { font: 600 11px var(--f-mono); color: var(--faint); width: 18px; }
.legend .chk { margin-left: auto; font: 600 12px var(--f-mono); color: var(--faint); }
.legend li.is-done .chk { color: var(--blue); }
.legend-grid { display: grid; grid-template-columns: 1fr 1fr; }
.legend-grid li { font-size: 14px; padding: 5px 4px; gap: 8px; }
.legend li.is-unknown { color: var(--faint); cursor: default; }
.legend-foot { margin-top: auto; font-size: 10px; letter-spacing: .06em; color: var(--faint); line-height: 1.7; }
.cheat-hint { color: var(--pink); }
.osm { margin-top: 6px; }

.stats-panel {
  position: absolute; left: 40px; top: 110px; width: 300px; padding: 22px;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: .3s var(--ease-out);
}
.stats-panel.is-on { opacity: 1; transform: none; pointer-events: auto; }
.stats-panel h3 { font: 700 14px var(--f-cond); letter-spacing: .26em; color: var(--dim); margin-bottom: 12px; }
.stats-panel dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font: 600 16px var(--f-cond); letter-spacing: .08em; }
.stats-panel dd { font-family: var(--f-mono); font-size: 14px; color: var(--pink); }

.tooltip {
  position: absolute; left: 0; top: 0; width: 280px; z-index: 5;
  background: var(--night); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease-out);
}
.tooltip.is-on { opacity: 1; transform: none; }
.tt-media { position: relative; height: 150px; overflow: hidden; }
.tt-media.is-none { display: none; }
.tt-body { padding: 13px 16px 15px; border-top: 3px solid var(--c, var(--pink)); }
.tt-tag { font-size: 11px; letter-spacing: .14em; color: var(--c, var(--pink)); }
.tt-title { font: 400 28px/1 var(--f-display); margin: 6px 0 4px; }
.tt-sub { font: 500 15px/1.3 var(--f-cond); color: var(--dim); }
.tt-cta { margin-top: 10px; font-size: 10px; letter-spacing: .14em; color: var(--faint); }

/* ============ MISSION ============ */
#mission { position: fixed; inset: 0; z-index: 60; visibility: hidden; overflow: hidden; background: #000; }
#mission.is-open { visibility: visible; }
.ms-media { position: absolute; inset: -30px; }
.ms-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 6, 20, .88) 0%, rgba(10, 6, 20, .45) 40%, transparent 65%),
              linear-gradient(0deg, rgba(10, 6, 20, .92) 0%, rgba(10, 6, 20, .4) 28%, transparent 48%); }
.ms-back, .ms-next {
  position: absolute; top: 34px; font: 600 14px var(--f-cond); letter-spacing: .2em;
  padding: 10px 16px; border: 1px solid var(--line); background: rgba(10, 6, 20, .4);
}
.ms-back { left: 40px; }
.ms-back .mono { font-size: 11px; color: var(--faint); margin-left: 8px; }
.ms-next { left: 300px; color: var(--dim); }
.ms-back:hover, .ms-next:hover { border-color: var(--pink); color: #fff; }
.ms-main { position: absolute; left: 7vw; top: 18vh; max-width: 54vw; }
.ms-tag { display: inline-block; font-size: 13px; letter-spacing: .16em; padding: 5px 10px; background: var(--c, var(--pink)); color: var(--night); font-weight: 600; }
.ms-title {
  margin-top: 18px; font: 400 clamp(64px, 8.4vw, 150px)/.88 var(--f-display);
  text-shadow: .04em .04em 0 var(--c, var(--pink));
}
.ms-place { margin-top: 18px; font: 700 26px var(--f-cond); letter-spacing: .2em; }
.ms-meta { margin-top: 8px; font-size: 13px; letter-spacing: .1em; color: var(--dim); }
.ms-objective { margin-top: 28px; max-width: 520px; font: 500 22px/1.3 var(--f-cond); }
.ms-objective .mono { display: block; font-size: 11px; letter-spacing: .2em; color: var(--c, var(--pink)); margin-bottom: 6px; }
.ms-mini {
  position: absolute; right: 36px; top: 150px; width: 320px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.ms-mini svg { display: block; width: 100%; height: 210px; background: var(--sea); }
.ms-mini-foot { display: flex; justify-content: space-between; padding: 9px 12px; font-size: 11px; letter-spacing: .08em; color: var(--dim); }
.ms-info {
  position: absolute; left: 7vw; right: 330px; bottom: 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.ms-info h4 { font: 700 13px var(--f-cond); letter-spacing: .24em; color: var(--c, var(--pink)); margin-bottom: 8px; }
.ms-info p { font: 500 17px/1.38 var(--f-cond); color: rgba(246, 240, 251, .86); }

/* ============ HUD (grammar of VI: round radar + place name, objective card, compact cash/time) ============ */
#hud { position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0; transition: opacity .6s; }
body.is-started #hud { opacity: 1; }
#hud button { pointer-events: auto; }

.hud-obj {
  position: absolute; left: 36px; top: 30px; width: 330px; padding: 14px 18px 15px;
  background: rgba(12, 9, 22, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-left: 3px solid var(--orange);
  transition: opacity .4s, transform .5s var(--ease-out);
}
.obj-title { display: flex; align-items: center; gap: 10px; font: 700 19px var(--f-cond); letter-spacing: .1em; color: #FFC24B; }
.obj-title svg { width: 18px; height: 18px; fill: none; stroke: #FFC24B; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hud-obj p { margin-top: 5px; font: 500 17px/1.3 var(--f-cond); color: var(--ink); }
body.is-mapmode .hud-obj, body.is-locked .hud-obj { opacity: 0 !important; visibility: hidden !important; }

.hud-tr { position: absolute; right: 36px; top: 26px; text-align: right; }
.hud-clock { font: 600 30px/1.05 var(--f-cond); letter-spacing: .06em; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.hud-money { font: 600 32px/1.1 var(--f-cond); letter-spacing: .04em; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); transition: color .3s; }
.hud-money.is-flash { color: #7CF2B0; }
.stars { display: flex; gap: 3px; justify-content: flex-end; margin-top: 6px; }
.star { width: 22px; height: 22px; }
.star path { fill: none; stroke: #E25CF0; stroke-width: 1.8; transition: fill .2s; }
.star.is-on path { fill: #E25CF0; filter: drop-shadow(0 0 5px #E25CF0); }
.star.is-new { animation: starblink .25s steps(2) 8; }
@keyframes starblink { 50% { opacity: .1; } }

.hud-bl { position: absolute; left: 34px; bottom: 30px; }
.hud-radar { position: relative; display: flex; align-items: flex-end; gap: 18px; transition: opacity .5s, transform .5s var(--ease-out); }
body.is-cutscene .hud-radar, body.is-mapmode .hud-radar, body.is-locked .hud-radar { opacity: 0; transform: translateY(24px); pointer-events: none; }
body.is-cutscene .hud-radar *, body.is-mapmode .hud-radar *, body.is-locked .hud-radar * { pointer-events: none !important; }
.minimap {
  position: relative; display: block; width: 196px; height: 196px; overflow: hidden; border-radius: 50%;
  border: 4px solid #E25CF0; background: var(--sea);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .35), 0 0 24px -4px rgba(226, 92, 240, .7);
}
.minimap svg { width: 100%; height: 100%; display: block; }
.mini-north {
  position: absolute; left: -9px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: #0c0916; border: 2px solid #fff; font-size: 11px; font-weight: 600; color: #fff;
}
.hud-place { padding-bottom: 14px; }
.hud-area { font: 700 26px/1 var(--f-cond); letter-spacing: .08em; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.hud-sub { margin-top: 5px; font-size: 12px; letter-spacing: .12em; color: var(--dim); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.bars { display: flex; gap: 5px; margin-top: 12px; width: 170px; }
.bar { height: 5px; flex: 1; background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .2); overflow: hidden; }
.bar.hp { flex: 2; }
.bar i { display: block; height: 100%; width: 60%; transition: width .9s var(--ease-out); }
.bar.hp i { background: #7CF2B0; }
.bar.ar i { background: var(--blue); width: 30%; }
.cheatbar {
  min-height: 34px; margin-bottom: 14px; font-size: 26px; font-weight: 600; letter-spacing: .32em;
  color: #fff; text-shadow: 0 0 14px var(--pink), 2px 2px 0 var(--violet);
  opacity: 0; transition: opacity .3s;
}
.cheatbar.is-on { opacity: 1; }
.cheatbar .caret { display: inline-block; width: .6em; animation: blink .8s steps(2) infinite; }

.hud-br { position: absolute; right: 36px; bottom: 30px; }
.hud-buttons { order: -1; display: flex; gap: 10px; }
.hud-btn {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px 8px;
  font: 700 13px var(--f-cond); letter-spacing: .2em;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .2s, transform .2s var(--ease-out);
}
.hud-btn:hover { border-color: #E25CF0; transform: translateY(-2px); }
.hud-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.speedo { position: absolute; right: 0; bottom: 0; width: 132px; height: 132px; transition: opacity .4s; }
body.is-mapmode .speedo, body.is-locked .speedo { opacity: 0; }
.speedo svg { width: 100%; height: 100%; transform: rotate(135deg); }
.sp-track, .sp-val { fill: none; stroke-width: 6; stroke-linecap: round; }
.sp-track { stroke: rgba(255, 255, 255, .22); stroke-dasharray: 235.6 314.2; }
.sp-val { stroke: #E25CF0; stroke-dasharray: 0 314.2; filter: drop-shadow(0 0 6px #E25CF0); }
.speedo-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.speedo-num b { font: 400 44px/1 var(--f-display); }
.speedo-num span { font-size: 10px; letter-spacing: .2em; color: var(--dim); margin-top: 2px; }

/* ============ TOAST / STATION / PASSED ============ */
.toast {
  position: fixed; left: 50%; top: 34px; z-index: 90; transform: translate(-50%, -20px);
  padding: 12px 26px 13px; text-align: center; min-width: 360px;
  background: rgba(10, 6, 20, .88); border-left: 4px solid var(--pink); border-right: 4px solid var(--pink);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast-kicker { font-size: 11px; letter-spacing: .2em; color: var(--pink); }
.toast-title { font: 700 24px var(--f-cond); letter-spacing: .1em; margin-top: 2px; }
.station {
  position: fixed; left: 50%; top: 120px; z-index: 90; transform: translateX(-50%); text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.station.is-on { opacity: 1; }
.station .mono { font-size: 11px; letter-spacing: .2em; color: var(--dim); }
.station-name { font: 400 40px var(--f-display); letter-spacing: .03em; text-shadow: 3px 3px 0 var(--purple); }

.passed {
  position: fixed; left: 0; right: 0; top: 40%; z-index: 95; transform: translateY(-50%);
  text-align: center; padding: 26px 0 24px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(10, 6, 20, .78) 25%, rgba(10, 6, 20, .78) 75%, transparent);
}
.passed-title {
  font: 400 clamp(60px, 7vw, 116px)/1 var(--f-display); letter-spacing: .02em;
  background: linear-gradient(180deg, #fff 10%, var(--pink) 60%, var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(4px 4px 0 var(--violet));
}
.passed-sub { font: 700 22px var(--f-cond); letter-spacing: .36em; margin-top: 8px; }
.passed-reward { margin-top: 10px; font-size: 15px; letter-spacing: .12em; color: var(--blue); }

/* ============ FX ============ */
.fx { position: fixed; inset: 0; z-index: 85; pointer-events: none; overflow: hidden; }
.fx .bm { position: absolute; top: -120px; width: 120px; height: 60px; }
.fx .bm img, .fx .bm svg { width: 100%; height: 100%; object-fit: contain; }
.rain { position: fixed; inset: 0; z-index: 84; pointer-events: none; opacity: 0; transition: opacity 1s; }
.rain.is-on { opacity: 1; }
.fire {
  position: fixed; inset: 0; z-index: 86; pointer-events: none; opacity: 0;
  background:
    radial-gradient(60% 80% at 0% 50%, rgba(255, 240, 180, .95), rgba(255, 112, 71, .85) 35%, rgba(200, 20, 40, .6) 60%, transparent 80%);
  mix-blend-mode: screen;
}
.fx-lane { position: fixed; left: 0; right: 0; bottom: 4vh; height: 24vh; z-index: 83; pointer-events: none; }
.fx-lane .rider { height: 100%; }
.bubble {
  position: absolute; left: 36%; top: -34px; white-space: nowrap;
  font: 700 22px var(--f-cond); letter-spacing: .06em; color: var(--night);
  background: #fff; padding: 6px 14px; border-radius: 6px;
}
.bubble::after { content: ""; position: absolute; left: 22px; bottom: -8px; border: 8px solid transparent; border-top-color: #fff; border-bottom: 0; }
.shake { animation: shake .45s linear; }
@keyframes shake {
  10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(4px, -2px); }
  30%, 50%, 70% { transform: translate(-7px, 3px); } 40%, 60% { transform: translate(7px, -3px); }
}

/* ============ RADIO WHEEL ============ */
.radio {
  position: fixed; inset: 0; z-index: 92; display: grid; place-items: center;
  background: rgba(5, 3, 12, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.radio.is-open { opacity: 1; visibility: visible; }
.radio-wheel { position: relative; width: 440px; height: 440px; }
.radio-seg {
  position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px;
  display: grid; place-items: center; text-align: center; border-radius: 50%;
  background: var(--glass); border: 2px solid var(--line);
  font: 700 15px/1.1 var(--f-cond); letter-spacing: .12em;
  transition: border-color .2s, background .2s, transform .25s var(--ease-out);
}
.radio-seg small { display: block; font: 500 10px var(--f-mono); color: var(--faint); margin-top: 6px; letter-spacing: .06em; }
.radio-seg:hover { border-color: var(--pink); }
.radio-seg.is-on { background: var(--pink); color: var(--night); border-color: var(--pink); }
.radio-seg.is-on small { color: rgba(0, 0, 0, .6); }
.radio-center { position: absolute; text-align: center; pointer-events: none; }
.radio-center .mono { font-size: 11px; letter-spacing: .2em; color: var(--dim); }
#radioNow { font: 400 22px var(--f-display); margin-top: 4px; }

/* ============ PHONE ============ */
.phone {
  position: fixed; right: 40px; bottom: 120px; z-index: 92; width: 300px; height: 560px;
  padding: 12px; border-radius: 38px; background: #0a0812;
  border: 2px solid rgba(255, 255, 255, .25); box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 40px -10px var(--pink);
  transform: translateY(calc(100% + 200px)); visibility: hidden;
  transition: transform .5s var(--ease-out), visibility 0s linear .5s;
}
.phone.is-open { transform: none; visibility: visible; transition: transform .5s var(--ease-out), visibility 0s; }
.phone-screen {
  position: relative; height: 100%; border-radius: 28px; overflow: hidden; padding: 16px 16px 60px;
  background: linear-gradient(170deg, #3a1660 0%, #1b0f33 55%, #0e0b18 100%);
}
.phone-status { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); }
.phone-head { font: 400 30px var(--f-display); margin: 18px 0 10px; }
.contacts li {
  display: flex; align-items: center; gap: 11px; padding: 9px 8px; border-radius: 10px; cursor: pointer;
  transition: background .2s;
}
.contacts li:hover { background: rgba(255, 255, 255, .08); }
.av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font: 700 14px var(--f-cond); color: var(--night); background: var(--c, var(--pink)); }
.ct-name { font: 700 16px/1.05 var(--f-cond); letter-spacing: .04em; }
.ct-hint { font: 500 12px var(--f-cond); color: var(--dim); }
.phone-call {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px;
  background: rgba(10, 6, 20, .94); font-size: 14px; letter-spacing: .12em; line-height: 1.8;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.phone-call.is-on { opacity: 1; }
.phone-close { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; color: var(--dim); }

/* ============ GRAIN ============ */
.grain {
  position: fixed; inset: -50%; z-index: 99; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .blip.mission .blip-dot::after, .scroll-hint i { animation: none; }
}

/* ============ LOGO — stacked game-style title + handwritten city ============ */
@font-face { font-family: "Pricedown"; src: local("Pricedown"), local("Pricedown Bl"), url("../fonts/pricedown.otf") format("opentype"); font-display: swap; }
.gt-logo { position: relative; display: inline-block; --s: 1; padding: 0 calc(70px * var(--s)) calc(56px * var(--s)) 0; }
.gt-stack { display: flex; flex-direction: column; align-items: flex-start; }
.gt-line {
  display: block; font-family: "Pricedown", "Passion One", Impact, sans-serif; font-weight: 900;
  font-size: calc(72px * var(--s)); line-height: .8; letter-spacing: -.01em; color: #fff;
  -webkit-text-stroke: calc(5px * var(--s)) #120a1f; paint-order: stroke fill;
  filter: drop-shadow(calc(4px * var(--s)) calc(5px * var(--s)) 0 #120a1f);
}
.gt-line i { display: inline-block; font-style: normal; transform: translateY(var(--dy)); }
.gt-line i.up { transform: translateY(calc(var(--dy) - .04em)) scale(1.1); transform-origin: 50% 100%; }
.gt-script {
  position: absolute; right: 0; bottom: calc(2px * var(--s)); white-space: nowrap;
  font-family: "Yellowtail", cursive; font-size: calc(50px * var(--s)); line-height: 1.1; padding: 0 .12em;
  transform: rotate(-11deg); transform-origin: 100% 100%;
  background: linear-gradient(95deg, #FFB86B 0%, #FF5C75 40%, #E25CF0 75%, #8A6CFF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 calc(8px * var(--s)) rgba(255, 92, 117, .7)) drop-shadow(calc(2px * var(--s)) calc(2px * var(--s)) 0 #120a1f);
}
.gt-logo.big { --s: 1.4; margin: 6px 0 34px; }
.gt-logo.small { --s: .4; padding-bottom: 12px; }
.loader-logo .gt-logo { --s: 1.15; }

/* ============ RIDE CUTSCENE ============ */
.letterbox { position: absolute; inset: 0; pointer-events: none; }
.letterbox i { position: absolute; left: 0; right: 0; height: 0; background: #000; transition: height .6s var(--ease-out); }
.letterbox i:first-child { top: 0; } .letterbox i:last-child { bottom: 0; }
body.is-riding .letterbox i { height: 9vh; }
.speedo { opacity: 0; }
body.is-riding .speedo { opacity: 1; }
body.is-cutscene .hud-buttons { opacity: 0; pointer-events: none; transform: translateY(14px); }
.hud-buttons { transition: opacity .5s, transform .5s var(--ease-out); }
.map-hint { margin-top: 8px; font-size: 10px; letter-spacing: .14em; color: #E25CF0; opacity: .85; }

/* final frame: hotspots live in a box with the same cover-crop as the media */
.hot-frame { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; opacity: 0; transition: opacity .6s; }
body.is-explore .hot-frame { opacity: 1; }
body.is-explore .hot-frame .hot { pointer-events: auto; }
.hot { position: absolute; width: 0; height: 0; }
.hot-ring {
  position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(226, 92, 240, .25); cursor: pointer;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .25), 0 0 22px rgba(226, 92, 240, .8);
  transition: transform .25s var(--ease-out), background .25s;
}
.hot-ring::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid #E25CF0; animation: ping 2s var(--ease-out) infinite; }
.hot-ring::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; }
.hot:hover .hot-ring { transform: scale(1.18); background: rgba(226, 92, 240, .55); }
.hot-label {
  position: absolute; left: 34px; top: -26px; white-space: nowrap; pointer-events: none;
  padding: 8px 12px 9px; background: rgba(10, 6, 20, .82); border-left: 3px solid #E25CF0;
  opacity: 0; transform: translateX(-8px); transition: .25s var(--ease-out);
}
.hot:hover .hot-label, .hot.is-hint .hot-label { opacity: 1; transform: none; }
.hot-label b { display: block; font: 700 18px var(--f-cond); letter-spacing: .12em; }
.hot-label span { display: block; margin-top: 2px; font: 500 11px var(--f-mono); letter-spacing: .1em; color: var(--dim); }
.hot-label em { display: block; margin-top: 6px; font: 600 10px var(--f-mono); font-style: normal; letter-spacing: .14em; color: #E25CF0; }

.shop {
  position: absolute; left: 40px; top: 50%; width: 380px; transform: translate(-30px, -50%);
  background: rgba(10, 6, 20, .9); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transition: opacity .3s, transform .4s var(--ease-out), visibility .3s; z-index: 5;
}
.shop.is-open { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.shop-head { padding: 18px 22px 14px; background: linear-gradient(90deg, #E25CF0, #FF5C75); color: #0b0712; }
.shop-kicker { font-size: 11px; letter-spacing: .2em; font-weight: 600; }
.shop-title { font: 400 34px/1 var(--f-display); margin-top: 4px; }
.shop-list li {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 13px 22px; cursor: pointer;
  border-bottom: 1px solid var(--line); transition: background .2s;
}
.shop-list li:hover { background: rgba(226, 92, 240, .16); }
.shop-list b { font: 700 19px var(--f-cond); letter-spacing: .04em; }
.shop-list small { grid-column: 1; font: 500 14px var(--f-cond); color: var(--dim); }
.shop-list .price { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 600 14px var(--f-mono); color: #7CF2B0; }
.shop-list li.is-illegal b { color: var(--pink); }
.shop-list li.is-illegal .price { color: var(--pink); }
.shop-leave { display: block; width: 100%; padding: 13px; font-size: 12px; letter-spacing: .2em; color: var(--dim); }
.shop-leave:hover { color: #fff; }

.speech {
  position: absolute; left: 0; top: 0; max-width: 300px; padding: 10px 14px; z-index: 6;
  background: #fff; color: #0b0712; border-radius: 8px; font: 700 18px/1.2 var(--f-cond);
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease-out);
}
.speech.is-on { opacity: 1; transform: none; }
.speech::after { content: ""; position: absolute; left: 20px; bottom: -8px; border: 8px solid transparent; border-top-color: #fff; border-bottom: 0; }

.flash-full { position: fixed; inset: 0; z-index: 96; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 55%, #fff 0%, #ffd2dc 40%, rgba(226, 92, 240, .9) 100%); }

/* ride frame sequence + tunnel warp */
canvas.layer { width: 100%; height: 100%; display: block; }
#seq { opacity: 0; }
#warp { opacity: 0; pointer-events: none; }

/* logo from the artwork SVG */
.gt-logo { padding: 0 !important; }
.logo-img { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 0 rgba(10, 4, 20, .55)) drop-shadow(0 0 18px rgba(226, 92, 240, .35)); }
.loader-logo .gt-logo { width: 330px; }
.gt-logo.big { width: clamp(300px, 31vw, 520px); margin: 0; }
.gt-logo.small { width: 96px; }
#fEnd { opacity: 0; }

/* GTA-style display font (Pricedown-based, freeware) for the big game titles */
@font-face { font-family: "GTA Russian"; src: url("../fonts/gta-russian.ttf") format("truetype"); font-display: swap; }
.passed-title, .ms-title, .shop-title, .station-name { font-family: "GTA Russian", "Anton", Impact, sans-serif; letter-spacing: .01em; }
.passed-title { font-size: clamp(70px, 8vw, 132px); }

/* phone: each contact shows its cheat code */
.phone-head { margin-bottom: 4px; }
.phone-sub { font-size: 10px; letter-spacing: .14em; color: var(--pink); margin-bottom: 12px; }
.contacts li { gap: 10px; }
.ct-text { flex: 1; min-width: 0; }
.ct-code {
  flex: none; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--night);
  background: var(--c, var(--pink)); padding: 4px 7px; border-radius: 5px;
}
.fx-lane .bubble { font-size: 20px; }

/* ================================================================
   MOBILE (phones, portrait and landscape)
   ================================================================ */
.legend-toggle, .swipe-hint { display: none; }
/* phones: the final still is moved/zoomed as one piece with its hotspots */
/* the final still is placed by the same transform as its hotspots (drag/zoom on phones, parallax on desktop) */
#fEnd img { inset: auto; left: 50%; top: 50%; width: var(--vw, 100%); height: var(--vh, 100%); max-width: none; object-fit: fill; transform: var(--vt, translate(-50%, -50%)); }
body.is-explore.can-pan .stage { touch-action: none; }
.hot { transform: scale(var(--inv, 1)); }
.stage { touch-action: pan-y; }
.map-viewport { touch-action: none; }
:root { --sa-t: env(safe-area-inset-top, 0px); --sa-b: env(safe-area-inset-bottom, 0px); }

@media (max-width: 820px), (max-height: 520px) {
  /* loader */
  .loader-shade { background: linear-gradient(180deg, rgba(10, 6, 20, .7) 0%, transparent 28%, transparent 46%, rgba(10, 6, 20, .92) 82%); }
  .loader-logo { left: 20px; top: calc(26px + var(--sa-t)); }
  .loader-logo .gt-logo { width: min(240px, 60vw); }
  .loader-tip { left: 20px; right: 20px; bottom: calc(112px + var(--sa-b)); max-width: 520px; }
  .tip-label { font-size: 11px; margin-bottom: 8px; }
  .loader-tip p { font-size: 19px; min-height: 48px; }
  .loader-status { right: auto; left: 20px; bottom: calc(62px + var(--sa-b)); }
  .status-text { font-size: 14px; }
  .press-start { right: auto; left: 20px; bottom: calc(60px + var(--sa-b)); font-size: 18px; }
  .loader-legal { left: 20px; right: 20px; bottom: calc(16px + var(--sa-b)); text-align: left; font-size: 8px; line-height: 1.6; letter-spacing: .1em; }

  /* intro */
  .stage-shade { background: linear-gradient(180deg, rgba(14, 8, 28, .6) 0%, transparent 38%), linear-gradient(0deg, rgba(14, 8, 28, .7) 0%, transparent 30%); }
  .intro-copy { left: 20px; right: 20px; top: 22vh; }
  .gt-logo.big { width: min(330px, 82vw); }
  .intro-foot { left: 20px; right: 20px; bottom: calc(24px + var(--sa-b)); gap: 10px; font-size: 10px; letter-spacing: .1em; }
  body.is-riding .letterbox i { height: 6vh; }

  /* HUD */
  .hud-obj { left: 12px; top: calc(12px + var(--sa-t)); width: calc(100% - 150px); max-width: 300px; padding: 10px 12px 11px; }
  .obj-title { gap: 7px; font-size: 15px; }
  .obj-title svg { width: 14px; height: 14px; }
  .hud-obj p { font-size: 14px; }
  .hud-tr { right: 12px; top: calc(10px + var(--sa-t)); }
  .hud-clock, .hud-money { font-size: 20px; }
  .star { width: 15px; height: 15px; }
  .hud-bl { left: 12px; bottom: calc(14px + var(--sa-b)); }
  .hud-radar { gap: 12px; }
  .minimap { width: 112px; height: 112px; border-width: 3px; }
  .mini-north { left: -6px; width: 18px; height: 18px; font-size: 9px; }
  .hud-place { max-width: 150px; padding-bottom: 4px; }
  .hud-area { font-size: 18px; }
  .hud-sub { font-size: 10px; }
  .bars { width: 120px; margin-top: 8px; }
  .map-hint { font-size: 9px; }
  .cheatbar { min-height: 24px; margin-bottom: 8px; font-size: 18px; }
  .hud-br { right: 12px; bottom: calc(14px + var(--sa-b)); }
  .hud-buttons { flex-direction: column; gap: 8px; }
  .hud-btn { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .hud-btn span { display: none; }
  .hud-btn svg { width: 22px; height: 22px; }
  .speedo { width: 90px; height: 90px; }
  .speedo-num b { font-size: 30px; }
  .speedo-num span { font-size: 8px; }

  /* final frame */
  .hot-ring { left: -26px; top: -26px; width: 52px; height: 52px; }
  .hot-label { padding: 6px 10px 7px; }
  .hot-label b { font-size: 15px; }
  .hot-label span { font-size: 9px; }
  .swipe-hint {
    display: block; position: absolute; left: 50%; bottom: calc(158px + var(--sa-b)); transform: translateX(-50%);
    padding: 8px 14px; white-space: nowrap; font-size: 10px; letter-spacing: .16em;
    background: rgba(10, 6, 20, .75); border: 1px solid var(--line);
    opacity: 0; pointer-events: none; transition: opacity .5s;
  }
  body.is-explore.can-pan .swipe-hint { opacity: 1; animation: blink 2s ease-in-out infinite; }
  body.has-panned .swipe-hint, body.is-shop .swipe-hint { opacity: 0 !important; animation: none; }
  .shop { left: 10px; right: 10px; top: auto; bottom: calc(10px + var(--sa-b)); width: auto; max-height: 52vh; overflow: auto; transform: translateY(16px); }
  .shop.is-open { transform: none; }
  .shop-head { padding: 12px 16px 10px; }
  .shop-title { font-size: 26px; }
  .shop-list li { padding: 9px 16px; }
  .shop-list b { font-size: 16px; }
  .shop-list small { font-size: 12px; }
  .shop-leave { padding: 11px; }
  body.is-shop .hud-bl, body.is-shop .hud-br { opacity: 0; visibility: hidden; }
  .hud-bl, .hud-br { transition: opacity .3s, visibility .3s; }
  .speech { max-width: 240px; font-size: 16px; }

  /* map */
  .map-top { height: auto; flex-wrap: wrap; gap: 8px 10px; padding: calc(10px + var(--sa-t)) 12px 12px; }
  .map-top .gt-logo { display: none; }
  .map-back { padding: 8px 10px; font-size: 11px; }
  .map-back span { display: none; }
  .tabs { flex: 1; gap: 2px; }
  .tab { flex: 1; padding: 8px 4px 7px; font-size: 13px; letter-spacing: .12em; }
  .legend {
    left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: calc(56px + var(--sa-b));
    padding: 0 16px calc(14px + var(--sa-b)); gap: 16px; overflow: hidden; border-width: 1px 0 0;
    transition: max-height .45s var(--ease-out);
  }
  .legend.is-open { max-height: 64vh; overflow: auto; }
  .legend-toggle {
    position: sticky; top: 0; z-index: 1; flex: none; display: flex; align-items: center; justify-content: space-between;
    height: 56px; margin: 0 -16px; padding: 0 16px; font-size: 12px; letter-spacing: .2em; color: var(--ink);
    background: rgba(14, 11, 24, .96);
  }
  .legend-toggle i { font-style: normal; color: var(--pink); transition: transform .3s; }
  .legend.is-open .legend-toggle i { transform: rotate(180deg); }
  .stats-panel { left: 12px; right: 12px; top: calc(100px + var(--sa-t)); width: auto; }
  body.is-mapmode .hud-tr { opacity: 0; visibility: hidden; }
  body.is-mapmode .hud-br { bottom: calc(72px + var(--sa-b)); }
  body.legend-open .hud-br { opacity: 0; visibility: hidden; }
  .hud-tr { transition: opacity .3s, visibility .3s; }
  .tooltip { left: 12px !important; right: 12px; top: auto !important; bottom: calc(68px + var(--sa-b)); width: auto; }
  .tt-media { height: 110px; }
  .tt-title { font-size: 24px; }
  .blip.mission .blip-label { left: 30px; font-size: 13px; }

  /* mission: photo + short card at the bottom; the long text opens in a pop-up */
  .ms-media { inset: 0; }
  #msMedia img, #msMedia video { object-position: var(--focus, 50% 50%); }
  .ms-shade { background: linear-gradient(180deg, rgba(10, 6, 20, .55) 0%, transparent 22%, transparent 42%, rgba(10, 6, 20, .94) 78%); }
  .ms-back, .ms-next { top: calc(12px + var(--sa-t)); padding: 8px 12px; font-size: 12px; letter-spacing: .14em; background: rgba(10, 6, 20, .6); }
  .ms-back { left: 12px; }
  .ms-back .mono { display: none; }
  .ms-next { left: auto; right: 12px; }
  .ms-main { left: 20px; right: 20px; top: auto; bottom: calc(26px + var(--sa-b)); max-width: none; }
  .ms-tag { font-size: 11px; }
  .ms-title { margin-top: 12px; font-size: clamp(42px, 12vw, 64px); }
  .ms-place { margin-top: 10px; font-size: 16px; letter-spacing: .14em; }
  .ms-meta { font-size: 10px; line-height: 1.5; }
  .ms-objective { margin-top: 14px; font-size: 16px; }
  .ms-mini, .ms-info { display: none; }
  .ms-more {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 11px 16px 10px;
    font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--night); background: var(--c, var(--pink));
    box-shadow: 4px 4px 0 rgba(0, 0, 0, .45);
  }
  .ms-more i { font-style: normal; font-size: 16px; line-height: 1; }
  .ms-sheet { display: block; }

  /* overlays */
  .radio-wheel { width: 340px; height: 340px; }
  .radio-seg { width: 100px; height: 100px; margin: -50px 0 0 -50px; padding: 6px; font-size: 12px; letter-spacing: .06em; }
  .radio-seg small { font-size: 9px; margin-top: 4px; }
  .radio-center { max-width: 100px; }
  #radioNow { font-size: 15px; line-height: 1.05; }
  .phone { left: 50%; right: auto; margin-left: -150px; bottom: calc(12px + var(--sa-b)); height: min(560px, calc(100% - 90px)); }
  .contacts { max-height: calc(100% - 130px); overflow: auto; }
  .toast { top: calc(12px + var(--sa-t)); width: calc(100% - 24px); min-width: 0; padding: 10px 14px 11px; }
  .toast-title { font-size: 18px; }
  .station { top: calc(96px + var(--sa-t)); width: 92%; }
  .station-name { font-size: 28px; }
  .passed-title { font-size: clamp(40px, 12vw, 72px); }
  .passed-sub { font-size: 14px; letter-spacing: .22em; }
  .passed-reward { font-size: 11px; }
  .fx .bm { width: 84px; height: 42px; }
  .fx-lane { bottom: 15vh; height: 18vh; }
  .bubble, .fx-lane .bubble { top: -30px; padding: 5px 10px; font-size: 15px; }
}

/* the speedometer never shows over the map or a mission */
body.is-mapmode .speedo, body.is-locked .speedo { opacity: 0 !important; }
@media (max-width: 820px), (max-height: 520px) {
  body.is-locked .hud-br { opacity: 0; visibility: hidden; }
}
/* phones in landscape: very little height */
@media (max-height: 520px) {
  .loader-logo .gt-logo { width: 160px; }
  .loader-tip { bottom: calc(84px + var(--sa-b)); max-width: 420px; }
  .loader-tip p { font-size: 16px; min-height: 0; }
  .loader-status, .press-start { bottom: calc(40px + var(--sa-b)); }
  .gt-logo.big { width: 230px; }
  .intro-copy { top: 16vh; }
  .minimap { width: 96px; height: 96px; }
  .hud-obj p { display: none; }
  .swipe-hint { bottom: calc(120px + var(--sa-b)); }
}

/* mission details pop-up (phones only) */
.ms-more, .ms-sheet { display: none; }
.ms-sheet {
  position: fixed; inset: 0; z-index: 5; background: rgba(5, 3, 12, .55);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.ms-sheet.is-open { opacity: 1; visibility: visible; }
.ms-sheet-in {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 78vh; overflow: auto;
  padding: 18px 18px calc(24px + var(--sa-b)); border-top: 3px solid var(--c, var(--pink));
  background: rgba(14, 10, 26, .97); border-radius: 18px 18px 0 0;
  transform: translateY(100%); transition: transform .45s var(--ease-out);
}
.ms-sheet.is-open .ms-sheet-in { transform: none; }
.ms-sheet-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; letter-spacing: .16em; color: var(--c, var(--pink)); }
.ms-sheet-close { width: 36px; height: 36px; margin-right: -6px; font-size: 16px; color: var(--dim); }
.ms-sheet-title { margin: 4px 0 14px; font: 400 30px/1 "GTA Russian", var(--f-display); }
.ms-sheet-body { display: grid; gap: 10px; }
.ms-card { padding: 14px 16px 15px; background: rgba(255, 255, 255, .05); border-left: 3px solid var(--c, var(--pink)); }
.ms-card h4 { font: 700 12px var(--f-cond); letter-spacing: .22em; color: var(--c, var(--pink)); margin-bottom: 6px; }
.ms-card p { font: 500 16px/1.4 var(--f-cond); color: rgba(246, 240, 251, .9); }
@media (max-width: 820px), (max-height: 520px) {
  .ms-more { display: inline-flex; }
  .ms-sheet { display: block; }
}
/* zoomed out on a phone: night around the picture, not the placeholder gradient */
body.can-pan #fEnd.has-media .ph { background: var(--night-2); }

/* ================================================================
   LOADER ON A PORTRAIT PHONE — a comic page: three slanted panels appear one after another
   ================================================================ */
@media (max-width: 820px) and (orientation: portrait) {
  #loader { --cut: 18px; --top: calc(150px + var(--sa-t)); --bot: calc(160px + var(--sa-b)); }
  .loader-shade { display: none; }
  .loader-logo { left: 20px; top: calc(18px + var(--sa-t)); }
  .loader-logo .gt-logo { width: 170px; }
  .loader-slides.is-panels { top: var(--top); bottom: var(--bot); display: flex; flex-direction: column; transition: opacity .35s; }
  .loader-slides.is-panels.is-out { opacity: 0; }
  .loader-slides.is-panels .media {
    position: relative; inset: auto; flex: 1; opacity: 1;
    transition: clip-path .6s var(--ease-out), filter .5s;
  }
  /* panels overlap by the slant so the gap between them is an even 6px diagonal */
  .loader-slides.is-panels .media + .media { margin-top: calc(6px - var(--cut)); }
  .loader-slides.is-panels .media:nth-child(1) { clip-path: polygon(0 0, 0 0, 0 calc(100% - var(--cut)), 0 100%); }
  .loader-slides.is-panels .media:nth-child(2) { clip-path: polygon(100% var(--cut), 100% 0, 100% calc(100% - var(--cut)), 100% 100%); }
  .loader-slides.is-panels .media:nth-child(3) { clip-path: polygon(0 var(--cut), 0 0, 0 100%, 0 100%); }
  .loader-slides.is-panels .media:nth-child(1).is-shown { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
  .loader-slides.is-panels .media:nth-child(2).is-shown { clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
  .loader-slides.is-panels .media:nth-child(3).is-shown { clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); }
  .loader-slides.is-panels .media.is-shown:not(.is-on) { filter: brightness(.5) saturate(.75); }
  .loader-slides.is-panels.no-tr, .loader-slides.is-panels.no-tr .media { transition: none !important; }
  .loader-slides.is-panels .ph::after { display: none; }
  .loader-tip { left: 20px; right: 20px; bottom: calc(84px + var(--sa-b)); }
  .tip-label { margin-bottom: 6px; }
  .loader-tip p { font-size: 16px; line-height: 1.3; min-height: 42px; }
  .loader-status, .press-start { bottom: calc(44px + var(--sa-b)); }
  .loader-legal { bottom: calc(12px + var(--sa-b)); }
}
@media (max-width: 820px) and (orientation: portrait) {
  .loader-slides.is-panels .media:nth-child(1) img { object-position: 60% 22%; }
}
/* third panel: show her whole face — crop from the top, zoom anchored to the top */
@media (max-width: 820px) and (orientation: portrait) {
  .loader-slides.is-panels .media:nth-child(3) img { object-position: 50% 0%; }
  .loader-slides.is-panels .media:nth-child(3) .kb { transform-origin: 50% 0; }
}

/* ============ MAP FILTERS + REAL PLACES ============ */
.map-filters {
  position: absolute; left: 40px; right: 340px; top: 84px; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none;
}
.chip {
  pointer-events: auto; display: flex; align-items: center; gap: 7px; padding: 6px 12px 5px 8px;
  font: 700 13px var(--f-cond); letter-spacing: .14em; color: var(--dim); white-space: nowrap;
  background: rgba(10, 6, 20, .62); border: 1px solid var(--line); border-radius: 20px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: color .2s, border-color .2s, background .2s;
}
.chip[data-cat="all"] { padding-left: 12px; }
.chip i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--c); color: var(--c); }
.chip i svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chip:hover { color: #fff; }
.chip.is-on { color: #fff; border-color: var(--c); background: rgba(10, 6, 20, .82); box-shadow: inset 0 0 0 1px var(--c), 0 0 14px -6px var(--c); }
.blip.is-off { display: none; }
.blip.poi .blip-dot { width: 24px; height: 24px; margin: -12px 0 0 -12px; border-width: 1.5px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .35), 0 0 10px -3px var(--c); }
.blip.poi .blip-dot svg { width: 13px; height: 13px; }
.blip.poi .blip-label { left: 17px; top: -9px; font-size: 13px; text-transform: uppercase; }
.blip.poi.cafe .blip-dot { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.blip.poi.cafe .blip-dot svg { width: 10px; height: 10px; }
.blip.poi.cafe { opacity: 0; pointer-events: none; transition: opacity .35s; }
#map.is-near .blip.poi.cafe, #map.show-cafes .blip.poi.cafe { opacity: 1; pointer-events: auto; }
.stats-panel { top: 132px; }
.legend li .chk { min-width: 14px; text-align: right; }
@media (max-width: 820px), (max-height: 520px) {
  .map-filters {
    left: 0; right: 0; top: calc(56px + var(--sa-t)); padding: 0 12px 4px; flex-wrap: nowrap; overflow-x: auto;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .map-filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; padding: 6px 11px 5px 7px; font-size: 12px; letter-spacing: .1em; }
  .stats-panel { top: calc(100px + var(--sa-t)); }
}

/* ============ COPYRIGHT + LEGAL ============ */
.loader-legal a, .intro-foot a, .legend-foot a, .hud-copy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.loader-legal a:hover, .intro-foot a:hover, .legend-foot a:hover, .hud-copy a:hover { color: #fff; }
.legal-link { font: inherit; letter-spacing: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.legal-link:hover { color: #fff; }
.loader-legal { z-index: 2; line-height: 1.9; }
.hud-copy {
  position: fixed; left: 50%; bottom: 12px; z-index: 71; transform: translateX(-50%); white-space: nowrap;
  font-size: 10px; letter-spacing: .14em; color: var(--faint); opacity: 0; transition: opacity .5s;
}
body.is-explore .hud-copy, body.is-mapmode .hud-copy { opacity: 1; }
body.is-mapmode .hud-copy { left: calc(50% - 170px); }
.legal {
  position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 20px;
  background: rgba(5, 3, 12, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.legal.is-open { opacity: 1; visibility: visible; }
.legal-in {
  width: min(560px, 100%); max-height: 86vh; overflow: auto; padding: 20px 24px 22px;
  background: rgba(14, 10, 26, .97); border: 1px solid var(--line); border-top: 3px solid var(--pink);
}
.legal-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .2em; color: var(--pink); }
.legal-close { width: 34px; height: 34px; margin-right: -8px; color: var(--dim); font-size: 15px; }
.legal h3 { margin: 6px 0 12px; font: 400 30px/1 var(--f-display); letter-spacing: .02em; }
.legal p { margin-bottom: 12px; font: 500 16px/1.45 var(--f-cond); color: rgba(246, 240, 251, .86); }
.legal-tg { display: inline-block; margin-top: 4px; padding: 10px 14px 9px; font: 700 14px var(--f-cond); letter-spacing: .1em; color: var(--night); background: var(--pink); }
@media (max-width: 820px), (max-height: 520px) {
  .hud-copy { display: none; }
  .intro-copy-line { display: none; }
}

/* ============ SHOP SCENES ============ */
.anchor { position: absolute; width: 0; height: 0; pointer-events: none; }
/* speech: centred above her hat, the tail points down at her */
.speech { transform: translateY(8px); text-align: center; }
.speech.is-on { transform: none; }
.speech::after { left: var(--ax, 20px); margin-left: -8px; }
/* desktop menu sits higher, clear of the radar */
.shop { top: 118px; transform: translateX(-30px); max-height: calc(100vh - 360px); min-height: 0; overflow: auto; }
.shop.is-open { transform: none; }
.shop.is-busy .shop-list li { pointer-events: none; opacity: .55; }
.shop-list li { padding: 11px 22px; transition: background .2s, opacity .2s; }
.serve { position: fixed; z-index: 89; width: 190px; height: 190px; margin: -95px 0 0 -95px; pointer-events: none; }
.serve-art { position: absolute; inset: 0; display: grid; place-items: center; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .55)); }
.serve-art svg, .serve-art img { width: 100%; height: 100%; object-fit: contain; }
.serve-rays {
  position: absolute; inset: -55%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 196, 120, .28) 0 7deg, transparent 7deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 66%); mask: radial-gradient(circle, #000 18%, transparent 66%);
  animation: spin 9s linear infinite;
}
.serve-card {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 6px; white-space: nowrap; text-align: center;
  padding: 8px 16px 9px; background: rgba(10, 6, 20, .86); border-left: 3px solid #E25CF0; border-right: 3px solid #E25CF0;
}
.serve-card b { display: block; font: 400 26px/1 var(--f-display); letter-spacing: .03em; color: #fff; text-shadow: 2px 2px 0 var(--purple); }
.serve-card span { display: block; margin-top: 5px; font: 600 13px var(--f-mono); letter-spacing: .12em; color: #7CF2B0; }
.serve-note .serve-card span { color: #FFC24B; }
.serve-fx { position: absolute; inset: 0; pointer-events: none; }
/* bánh bao: steam */
.fx-steam i {
  position: absolute; bottom: 62%; width: 22px; height: 60px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .75), transparent); filter: blur(4px);
  animation: steam 1.6s ease-out infinite; opacity: 0;
}
.fx-steam i:nth-child(1) { left: 34%; } .fx-steam i:nth-child(2) { left: 48%; animation-delay: .5s; } .fx-steam i:nth-child(3) { left: 60%; animation-delay: 1s; }
@keyframes steam { 0% { transform: translateY(10px) scaleX(.7); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-70px) scaleX(1.4) rotate(12deg); opacity: 0; } }
/* cà phê: drops falling from the phin */
.fx-drip b { position: absolute; top: 36%; width: 6px; height: 9px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #5a2e16; animation: drip 1s ease-in infinite; opacity: 0; }
.fx-drip b:nth-child(1) { left: 46%; } .fx-drip b:nth-child(2) { left: 50%; animation-delay: .33s; } .fx-drip b:nth-child(3) { left: 54%; animation-delay: .66s; }
@keyframes drip { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(46px); opacity: 0; } }
/* trà đá: ice clinks + a refill sticker */
.serve-art.is-clink .art-ice, .serve-art.is-clink img { animation: clink .32s ease-in-out 4; transform-origin: 50% 50%; transform-box: fill-box; }
@keyframes clink { 25% { transform: translate(-2px, 1px) rotate(-3deg); } 75% { transform: translate(2px, -1px) rotate(3deg); } }
.fx-ice em {
  position: absolute; right: -14px; top: 4px; padding: 4px 9px 3px; font: 700 15px var(--f-cond); font-style: normal; letter-spacing: .1em;
  color: var(--night); background: #FFC24B; transform: rotate(10deg); animation: pop .45s var(--ease-out) .35s both;
}
@keyframes pop { from { transform: rotate(10deg) scale(0); } to { transform: rotate(10deg) scale(1); } }
.serve.is-dep { width: 120px; height: 140px; margin: -70px 0 0 -60px; z-index: 91; }
.serve-dep .serve-art, .serve-banhbao:not(:has(.serve-card)) .serve-art { filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .6)); }
.float-txt {
  position: fixed; z-index: 92; transform: translateX(-50%); pointer-events: none; white-space: nowrap;
  font: 700 22px var(--f-mono); text-shadow: 0 2px 8px rgba(0, 0, 0, .8), 2px 2px 0 rgba(0, 0, 0, .6);
}
.float-txt.is-hp { color: #7CF2B0; } .float-txt.is-minus { color: #FF5C75; } .float-txt.is-plus { color: #7CF2B0; }
.bop {
  position: fixed; z-index: 93; transform: translate(-50%, -50%); pointer-events: none;
  font: 400 64px/1 var(--f-display); color: #FFC24B; -webkit-text-stroke: 3px #120a1f; paint-order: stroke fill;
  text-shadow: 5px 5px 0 #FF5C75;
}
.minimap.is-ping { animation: radarPing .9s var(--ease-out); }
@keyframes radarPing { 0% { box-shadow: 0 0 0 0 rgba(255, 194, 75, .9), 0 0 24px -4px rgba(226, 92, 240, .7); } 100% { box-shadow: 0 0 0 26px rgba(255, 194, 75, 0), 0 0 24px -4px rgba(226, 92, 240, .7); } }
@media (max-width: 820px), (max-height: 520px) {
  .shop { top: auto; max-height: 52vh; transform: translateY(16px); }
  .shop.is-open { transform: none; }
  .shop-list li { padding: 9px 16px; }
  .serve { width: 140px; height: 140px; margin: -70px 0 0 -70px; }
  .shop.is-open.is-busy { transform: translateY(calc(100% + 30px)); }
  .shop.is-busy .shop-list li { opacity: 1; }
  .serve-card b { font-size: 21px; }
  .bop { font-size: 48px; }
}

/* real item pictures: effects placed on their shapes */
.serve.has-png .serve-art { filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .6)) drop-shadow(0 0 18px rgba(255, 200, 140, .25)); }
.serve-caphe.has-png .fx-drip b { top: 23%; }
.serve-caphe.has-png .fx-drip b:nth-child(1) { left: 47%; } .serve-caphe.has-png .fx-drip b:nth-child(2) { left: 50%; } .serve-caphe.has-png .fx-drip b:nth-child(3) { left: 53%; }
.serve-banhbao .fx-steam i { bottom: 70%; }
.serve-trada.has-png .fx-ice em { right: 14px; }
