/* ============================================================
   CRAZY TAXI GENÈVE — brick-built city rush
   ============================================================ */
@font-face { font-family: 'Lilita One'; src: url('./assets/LilitaOne-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('./assets/NunitoSans-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('./assets/NunitoSans-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('./assets/NunitoSans-900.ttf') format('truetype'); font-weight: 900; font-display: swap; }

:root {
  --ink: #102436;
  --ink-deep: #081521;
  --ink-soft: #1b3a50;
  --paper: #fff9e9;
  --cream: #f4e8cc;
  --yellow: #ffd21f;
  --yellow-deep: #e7a800;
  --red: #e13a30;
  --red-deep: #a81f22;
  --teal: #19b8a6;
  --blue: #1589b6;
  --sky: #89c9e8;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(2, 10, 18, 0.38);
  --display: 'Lilita One', 'Arial Black', sans-serif;
  --body: 'Nunito Sans', 'Trebuchet MS', sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #0b1c2c; }
body {
  font-family: var(--body);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,.24);
  border-bottom: 2px solid rgba(0,0,0,.4);
  background: rgba(255,255,255,.12);
  font-family: var(--body); font-size: 10px; font-weight: 900; line-height: 1; letter-spacing: .04em;
  color: #fff;
}

#app { position: relative; width: 100%; height: 100%; isolation: isolate; user-select: none; -webkit-user-select: none; }
#game { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none;  }
.world-vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    radial-gradient(ellipse at 50% 44%, transparent 45%, rgba(4,15,24,.18) 100%),
    linear-gradient(180deg, rgba(5,20,30,.22), transparent 16%, transparent 78%, rgba(5,17,27,.32));
  mix-blend-mode: multiply;
}
#speed-vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0;
  background:
    radial-gradient(ellipse at center, transparent 38%, rgba(6,20,30,.45) 100%),
    linear-gradient(90deg, rgba(12,170,160,.16), transparent 16%, transparent 84%, rgba(255,210,31,.12));
  transition: opacity .25s ease;
}
.speed-vignette-on #speed-vignette { opacity: 1; }

.is-hidden { display: none !important; }

/* ------------------------------- loader ------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background:
    radial-gradient(circle at 50% 38%, #1d4157 0, #0b1c2c 60%);
  transition: opacity .7s ease, visibility .7s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader p { font-family: var(--display); font-size: 23px; margin: 14px 0 0; letter-spacing: .08em; color: var(--paper); }
.loader span { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,249,233,.48); }
.loader-brick { position: relative; width: 90px; height: 61px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 13px 11px 9px; border-radius: 6px; background: var(--red); box-shadow: 0 10px 0 var(--red-deep), 0 24px 35px rgba(0,0,0,.35); animation: loaderBob 1.1s ease-in-out infinite; }
.loader-brick i { border-radius: 50%; background: #ff6b5f; box-shadow: inset 0 -3px 0 rgba(0,0,0,.13); }
.loader-brick::before { content: ''; position: absolute; width: 12px; height: 7px; border-radius: 7px 7px 0 0; background: var(--red); top: -7px; left: 18px; box-shadow: 26px 0 0 var(--red), 52px 0 0 var(--red); }
@keyframes loaderBob { 50% { transform: translateY(-7px) rotate(-2deg); } }

/* ------------------------------- shared overlay ------------------------------- */
.overlay { position: absolute; inset: 0; z-index: 20; }
.modal-screen {
  display: flex; align-items: center; justify-content: center; padding: 28px;
  background: radial-gradient(ellipse at 50% 35%, rgba(8,29,43,.72), rgba(4,14,23,.9));
  backdrop-filter: blur(7px) saturate(.8);
  animation: overlayIn .32s ease both;
}
@keyframes overlayIn { from { opacity: 0; } }
.modal-card {
  width: min(620px, 100%);
  border-radius: 22px;
  padding: 38px 42px 34px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,0) 35%),
    #132d40;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 0 #081722, 0 34px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.13);
  animation: cardPop .45s cubic-bezier(.2,1.35,.4,1) both;
}
@keyframes cardPop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.modal-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--yellow); font-size: 11px; font-weight: 900; letter-spacing: .2em; }
.modal-kicker::before { content: ''; width: 22px; height: 7px; border-radius: 2px; background: var(--yellow); box-shadow: 0 3px 0 var(--yellow-deep); }
.modal-card h2 { font-family: var(--display); font-size: clamp(38px, 5vw, 58px); line-height: .95; letter-spacing: -.015em; margin: 15px 0 13px; color: var(--paper); text-wrap: balance; }
.modal-card p { font-size: 15px; color: rgba(255,249,233,.66); line-height: 1.55; margin: 0 0 24px; max-width: 470px; }
.big-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 17px 24px; border-radius: 12px; background: var(--yellow); color: var(--ink);
  font-family: var(--display); font-size: 20px; letter-spacing: .045em;
  box-shadow: 0 6px 0 var(--yellow-deep), 0 12px 24px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.55);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.big-btn span { font-size: 24px; margin-left: auto; }
.big-btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 8px 0 var(--yellow-deep), 0 17px 28px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.55); }
.big-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--yellow-deep), 0 5px 12px rgba(0,0,0,.28); }
.ghost-btn { padding: 15px 24px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); font-weight: 900; font-size: 12px; letter-spacing: .12em; color: rgba(255,249,233,.72); transition: .18s; }
.ghost-btn:hover { background: rgba(255,255,255,.11); color: #fff; }
.pause-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 12px; margin-top: 15px; font-size: 8px; font-weight: 800; letter-spacing: .07em; color: rgba(255,249,233,.4); }
.pause-controls span { display: flex; align-items: center; gap: 4px; }
.pause-controls kbd { height: 18px; min-width: 18px; font-size: 7px; }
.modal-small { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 11px; font-weight: 700; color: rgba(255,249,233,.4); }
.text-btn { color: rgba(255,249,233,.7); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.text-btn:hover { color: var(--yellow); }

/* ------------------------------- intro ------------------------------- */
.intro-screen {
  overflow: hidden; display: flex; flex-direction: column; padding: clamp(22px, 3vw, 42px) clamp(24px, 5vw, 74px) 22px;
  background:
    linear-gradient(90deg, rgba(5,19,30,.95) 0%, rgba(6,22,34,.72) 33%, rgba(7,24,37,.14) 62%, rgba(7,22,34,.04) 100%),
    linear-gradient(180deg, rgba(4,16,26,.5), transparent 24%, transparent 70%, rgba(4,14,23,.75));
  transition: opacity .6s ease, visibility .6s;
}
.intro-screen.leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-screen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}
.intro-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.intro-lockup { display: flex; align-items: center; gap: 12px; }
.intro-lockup strong { display: block; font-size: 10px; font-weight: 900; letter-spacing: .17em; color: rgba(255,249,233,.84); }
.intro-lockup small { display: block; font-size: 8px; font-weight: 800; letter-spacing: .18em; color: rgba(255,249,233,.36); margin-top: 3px; }
.swiss-badge, .swiss-mini { position: relative; flex: 0 0 auto; display: block; background: var(--red); border-radius: 4px; box-shadow: 0 3px 0 rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.32); }
.swiss-badge { width: 34px; height: 34px; }
.swiss-badge span { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: white; border-radius: 1px; }
.swiss-badge span:first-child { width: 18px; height: 6px; }
.swiss-badge span:last-child { width: 6px; height: 18px; }
.swiss-mini { width: 27px; height: 27px; border-radius: 3px; }
.swiss-mini span { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: #fff; }
.swiss-mini span:first-child { width: 14px; height: 4px; }
.swiss-mini span:last-child { width: 4px; height: 14px; }
.intro-weather { display: flex; align-items: center; gap: 10px; font-size: 9px; font-weight: 900; letter-spacing: .13em; color: rgba(255,249,233,.55); }
.sun-dot { color: var(--yellow); font-size: 14px; }
.divider { width: 1px; height: 13px; background: rgba(255,255,255,.19); }

.intro-hero { position: relative; z-index: 1; margin: auto 0; padding: 30px 0 10px; max-width: 690px; }
.eyebrow { display: flex; align-items: center; gap: 11px; font-size: 10px; font-weight: 900; letter-spacing: .24em; color: var(--yellow); text-transform: uppercase; }
.eyebrow span { display: block; width: 27px; height: 3px; background: var(--yellow); }
.game-title { margin: 12px 0 0; font-family: var(--display); line-height: .76; letter-spacing: -.026em; font-size: clamp(94px, 12.6vw, 190px); color: var(--paper); filter: drop-shadow(0 8px 0 rgba(3,10,17,.36)) drop-shadow(0 20px 40px rgba(0,0,0,.3)); }
.game-title span { display: block; }
.title-crazy { color: var(--paper); -webkit-text-stroke: 1px rgba(255,255,255,.05); transform: rotate(-1.2deg); transform-origin: left bottom; }
.title-taxi { color: var(--yellow); margin-left: .53em; margin-top: .07em; -webkit-text-stroke: 1px rgba(255,243,184,.18); text-shadow: 0 5px 0 var(--yellow-deep), 0 10px 0 rgba(0,0,0,.18); transform: rotate(-1.2deg); transform-origin: left bottom; }
.place-lockup { display: flex; align-items: center; gap: 13px; margin: 18px 0 0 8px; }
.place-name { font-family: var(--display); font-size: 26px; letter-spacing: .12em; color: var(--paper); }
.place-rule { width: 62px; height: 2px; background: repeating-linear-gradient(90deg, var(--yellow) 0 7px, transparent 7px 11px); }
.place-edition { font-size: 9px; font-weight: 900; letter-spacing: .2em; color: var(--ink); background: var(--yellow); border-radius: 3px; padding: 5px 8px 4px; transform: rotate(-2deg); box-shadow: 0 3px 0 var(--yellow-deep); }
.tagline { font-size: clamp(14px, 1.4vw, 17px); line-height: 1.55; color: rgba(255,249,233,.68); max-width: 490px; margin: 23px 0 27px 7px; }
.tagline br { display: none; }
.intro-actions { display: flex; align-items: center; gap: 20px; margin-left: 7px; }
.start-btn {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 17px 22px 17px 19px;
  border-radius: 10px; background: var(--red); color: #fff; font-family: var(--display); font-size: 20px; letter-spacing: .055em;
  box-shadow: 0 7px 0 #981a20, 0 15px 30px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.34);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.start-btn::after { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(255,255,255,.13); border-radius: 7px; pointer-events: none; }
.start-brick { width: 25px; height: 19px; border-radius: 3px; background: var(--yellow); box-shadow: 0 3px 0 var(--yellow-deep); position: relative; }
.start-brick::before { content: ''; position: absolute; left: 5px; top: -4px; width: 6px; height: 4px; border-radius: 3px 3px 0 0; background: var(--yellow); box-shadow: 9px 0 0 var(--yellow); }
.start-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-left: 8px; transition: transform .2s; }
.start-btn:hover { transform: translateY(-3px); background: #ee463c; box-shadow: 0 10px 0 #981a20, 0 21px 30px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.34); }
.start-btn:hover svg { transform: translateX(3px); }
.start-btn:active { transform: translateY(4px); box-shadow: 0 3px 0 #981a20, 0 8px 15px rgba(0,0,0,.3); }
.start-meta { display: flex; flex-direction: column; gap: 4px; font-size: 8px; font-weight: 900; letter-spacing: .14em; color: rgba(255,249,233,.44); }
.start-meta .dot { display: none; }
.intro-controls { display: flex; gap: 23px; margin: 30px 0 0 7px; flex-wrap: wrap; }
.control-card { display: flex; align-items: center; gap: 10px; font-size: 9px; letter-spacing: .04em; color: rgba(255,249,233,.45); }
.control-card .keys { display: flex; gap: 3px; }
.control-card kbd { min-width: 23px; height: 24px; font-size: 9px; color: var(--cream); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); }
.control-card strong { color: rgba(255,249,233,.8); font-size: 9px; letter-spacing: .12em; }

.intro-side { position: absolute; z-index: 2; right: clamp(26px, 5vw, 80px); top: 92px; display: flex; align-items: flex-start; gap: 18px; }
.tour-card { width: 244px; padding: 17px 18px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(7,23,35,.63); backdrop-filter: blur(13px) saturate(1.1); box-shadow: 0 20px 40px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.12); }
.tour-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 11px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 8px; font-weight: 900; letter-spacing: .18em; color: rgba(255,249,233,.5); }
.tour-count { color: var(--yellow); }
.tour-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 13px 0; }
.tour-list span { display: flex; align-items: center; gap: 5px; font-size: 8px; font-weight: 700; color: rgba(255,249,233,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour-list i { font-style: normal; font-size: 10px; filter: saturate(.75); }
.tour-note { border-top: 1px solid rgba(255,255,255,.12); padding-top: 10px; font-size: 8px; font-weight: 700; line-height: 1.5; color: rgba(255,249,233,.36); letter-spacing: .03em; }
.intro-stamp { width: 60px; height: 78px; border: 2px solid rgba(255,210,31,.56); border-radius: 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--display); font-size: 18px; color: rgba(255,210,31,.8); transform: rotate(7deg); line-height: .82; text-align: center; letter-spacing: .06em; box-shadow: inset 0 0 0 4px rgba(255,210,31,.08); }
.intro-stamp small { font-size: 10px; letter-spacing: .1em; margin-top: 4px; }
.intro-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; font-size: 8px; font-weight: 900; letter-spacing: .17em; color: rgba(255,249,233,.32); }
.foot-sep { color: var(--yellow); font-size: 9px; }
.intro-high-score { margin-left: auto; color: rgba(255,210,31,.6); }

/* ------------------------------- HUD ------------------------------- */
.hud { position: absolute; inset: 0; z-index: 10; pointer-events: none; opacity: 1; transition: opacity .4s ease; }
.hud > * { pointer-events: none; }
.hud.is-hidden { display: none !important; }
.hud-top-left { position: absolute; top: 22px; left: 24px; display: flex; flex-direction: column; gap: 10px; width: 218px; }
.brand-mini { display: flex; align-items: center; gap: 9px; padding: 2px 0 3px; filter: drop-shadow(0 2px 5px rgba(0,0,0,.3)); }
.brand-mini strong { display: block; font-family: var(--display); font-size: 16px; letter-spacing: .06em; line-height: .9; color: var(--paper); }
.brand-mini small { display: block; font-size: 8px; font-weight: 900; letter-spacing: .24em; color: var(--yellow); margin-top: 3px; }
.stat-panel { display: flex; gap: 1px; padding: 5px; border-radius: 10px; background: rgba(8,23,35,.8); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px); box-shadow: 0 6px 18px rgba(0,0,0,.24); }
.stat-row { flex: 1; padding: 5px 8px 6px; }
.stat-row + .stat-row { border-left: 1px solid rgba(255,255,255,.1); }
.stat-label { display: block; color: rgba(255,249,233,.4); font-size: 7px; font-weight: 900; letter-spacing: .15em; }
.stat-value { display: block; color: var(--paper); font-family: var(--display); font-size: 23px; letter-spacing: .02em; line-height: 1; margin-top: 4px; font-weight: 400; }
.stat-value.cash { color: var(--yellow); font-size: 19px; margin-top: 6px; white-space: nowrap; }
.timer-panel { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 12px; border-radius: 9px; background: var(--yellow); color: var(--ink); box-shadow: 0 5px 0 var(--yellow-deep), 0 10px 20px rgba(0,0,0,.25); overflow: visible; }
.timer-panel::before { content: ''; position: absolute; left: 10px; right: 10px; top: -4px; height: 5px; background: radial-gradient(circle, var(--yellow) 0 3px, transparent 3.5px) 0 0/16px 5px repeat-x; }
.timer-label { font-size: 7px; font-weight: 900; letter-spacing: .16em; opacity: .65; }
.timer-value { margin-left: auto; font-family: var(--display); font-size: 28px; line-height: .9; letter-spacing: .03em; font-weight: 400; font-variant-numeric: tabular-nums; }
.timer-plus { position: absolute; right: 16px; top: -13px; font-family: var(--display); color: #fff; font-size: 15px; text-shadow: 0 2px 5px rgba(0,0,0,.45); opacity: 0; transform: translateY(4px); transition: .2s; }
.timer-plus.show { animation: plusFloat 1.3s ease both; }
@keyframes plusFloat { 0% { opacity: 0; transform: translateY(8px) scale(.8); } 18% { opacity: 1; transform: translateY(0) scale(1.1); } 65% { opacity: 1; transform: translateY(-15px) scale(1); } 100% { opacity: 0; transform: translateY(-26px) scale(.92); } }
.timer-panel.warning { background: var(--red); color: #fff; box-shadow: 0 5px 0 var(--red-deep), 0 0 0 3px rgba(225,58,48,.16), 0 10px 30px rgba(168,31,34,.36); animation: timerPulse 1s ease-in-out infinite; }
.timer-panel.warning::before { background: radial-gradient(circle, var(--red) 0 3px, transparent 3.5px) 0 0/16px 5px repeat-x; }
@keyframes timerPulse { 50% { transform: scale(1.025); } }

.objective-card {
  position: absolute; left: 50%; top: 19px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 8px 15px 9px 9px; min-width: 320px; max-width: min(430px, calc(100vw - 32px));
  border-radius: 12px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(8,23,35,.86); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 9px 26px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.13);
  transition: background .3s, box-shadow .3s;
}
.objective-card::after { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.16); top: 8px; right: 9px; box-shadow: 8px 0 0 rgba(255,255,255,.16); }
.objective-card[data-mode="pickup"] .objective-icon-wrap { background: var(--teal); box-shadow: 0 4px 0 #087d74; }
.objective-card[data-mode="dropoff"] .objective-icon-wrap { background: var(--yellow); box-shadow: 0 4px 0 var(--yellow-deep); }
.objective-icon-wrap { position: relative; flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 9px; background: var(--yellow); transition: background .3s; }
.objective-icon { font-size: 24px; line-height: 1; transform: translateY(1px); filter: saturate(.9); }
.objective-pulse { position: absolute; inset: -4px; border: 2px solid rgba(255,210,31,.45); border-radius: 12px; animation: objPulse 1.8s ease-out infinite; }
@keyframes objPulse { 0% { transform: scale(.9); opacity: .65; } 80%, 100% { transform: scale(1.25); opacity: 0; } }
.objective-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.objective-kicker { font-size: 8px; font-weight: 900; letter-spacing: .18em; color: var(--teal); }
.objective-card[data-mode="dropoff"] .objective-kicker { color: var(--yellow); }
.objective-name { font-family: var(--display); font-size: 22px; line-height: 1.05; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; letter-spacing: .01em; }
.objective-distance { font-size: 9px; font-weight: 800; letter-spacing: .08em; color: rgba(255,249,233,.5); }
.objective-compass { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); margin-left: 2px; }
.compass-arrow { display: block; font-size: 15px; color: var(--yellow); line-height: 1; transition: transform .08s linear; }
.objective-bar { position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.objective-bar::after { content: ''; display: block; width: var(--progress, 0%); height: 100%; background: linear-gradient(90deg, var(--teal), var(--yellow)); transition: width .2s linear; border-radius: inherit; }

.hud-top-right { position: absolute; top: 22px; right: 24px; display: flex; align-items: flex-start; gap: 9px; }
.minimap-panel { width: 188px; padding: 8px 8px 6px; border-radius: 11px; background: rgba(8,23,35,.83); border: 1px solid rgba(255,255,255,.13); backdrop-filter: blur(13px); box-shadow: 0 8px 24px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.1); }
.minimap-head, .minimap-foot { display: flex; justify-content: space-between; padding: 1px 2px; font-size: 6.5px; font-weight: 900; letter-spacing: .16em; color: rgba(255,249,233,.42); }
.minimap-head { margin-bottom: 4px; }
.minimap-head .north { color: var(--yellow); letter-spacing: .08em; }
.minimap-foot { margin-top: 4px; color: rgba(255,249,233,.28); font-size: 6px; }
#minimap { display: block; width: 172px; height: 188px; border-radius: 6px; background: #17384b; }
.icon-btn { pointer-events: auto; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 8px; background: rgba(8,23,35,.8); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(12px); box-shadow: 0 5px 16px rgba(0,0,0,.25); transition: background .15s, transform .15s; }
.icon-btn:hover { background: rgba(22,51,69,.9); transform: translateY(-1px); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: var(--cream); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn svg path:first-child { fill: var(--cream); stroke: none; }
.icon-btn.muted .sound-wave { opacity: .2; }
.icon-btn.muted::after { content: ''; position: absolute; width: 21px; height: 2px; background: var(--red); transform: rotate(-45deg); border-radius: 2px; }
.audio-btn { position: relative; }
.hud-icon-stack { display: flex; flex-direction: column; gap: 7px; }
.pause-btn svg { width: 15px; height: 15px; color: var(--cream); fill: currentColor; }
@media (max-width: 540px) { .hud-icon-stack .audio-btn { display: none; } }
@media (pointer: coarse) { .hud-icon-stack { display: flex; } }
.hud-top-right .icon-btn { flex: 0 0 35px; }

.hud-bottom-left { position: absolute; left: 24px; bottom: 22px; display: flex; align-items: flex-end; gap: 12px; }
.speedo { position: relative; width: 116px; height: 116px; border-radius: 50%; padding: 8px; background: conic-gradient(from 225deg, var(--teal) 0deg, var(--teal) var(--speed-arc, 0deg), rgba(255,255,255,.12) var(--speed-arc, 0deg), rgba(255,255,255,.12) 270deg, transparent 270deg); box-shadow: 0 10px 24px rgba(0,0,0,.32); }
.speedo::before { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: rgba(8,23,35,.94); border: 1px solid rgba(255,255,255,.1); }
.speedo-inner { position: relative; z-index: 1; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; }
.speed-value { font-family: var(--display); font-size: 41px; line-height: .8; font-weight: 400; color: var(--paper); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.speed-unit { font-size: 7px; font-weight: 900; letter-spacing: .2em; color: rgba(255,249,233,.42); margin-top: 5px; }
.gear { position: absolute; z-index: 2; right: 12px; bottom: 24px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); font-family: var(--display); font-size: 11px; line-height: 1; box-shadow: 0 2px 0 var(--yellow-deep); }
.boost-panel { width: 166px; padding: 10px 12px 11px; border-radius: 9px; background: rgba(8,23,35,.8); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px); box-shadow: 0 7px 18px rgba(0,0,0,.26); }
.boost-label { display: flex; justify-content: space-between; align-items: center; font-size: 7px; font-weight: 900; letter-spacing: .13em; color: rgba(255,249,233,.5); }
.boost-label kbd { min-width: 27px; height: 16px; font-size: 7px; }
.boost-track { position: relative; height: 10px; margin-top: 8px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.boost-fill { width: 35%; height: 100%; background: linear-gradient(90deg, #0ca899, var(--teal) 60%, #5bf6dc); border-radius: 3px; transition: width .1s linear; box-shadow: 0 0 12px rgba(25,184,166,.5); }
.boost-track .boost-shine { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 17px, rgba(8,23,35,.45) 17px 19px); pointer-events: none; }
.drift-label { margin-top: 5px; font-size: 6.5px; font-weight: 900; letter-spacing: .13em; color: rgba(255,249,233,.28); }
.drift-label.charging { color: var(--teal); }

.hud-bottom-right { position: absolute; right: 24px; bottom: 23px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.combo-chip { display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 12px; border-radius: 7px; background: var(--teal); color: var(--ink); box-shadow: 0 3px 0 #087d74, 0 7px 18px rgba(0,0,0,.22); transform: rotate(1.5deg); }
.combo-chip span { font-size: 7px; font-weight: 900; letter-spacing: .15em; opacity: .65; }
.combo-chip strong { font-family: var(--display); font-size: 20px; line-height: .9; font-weight: 400; }
.controls-hint { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px 12px; font-size: 7px; font-weight: 800; letter-spacing: .08em; color: rgba(255,249,233,.4); text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.controls-hint span { display: flex; align-items: center; gap: 4px; }
.controls-hint kbd { height: 16px; min-width: 16px; font-size: 6.5px; border-radius: 3px; background: rgba(8,23,35,.55); border-color: rgba(255,255,255,.18); }

.stamp-tray { position: absolute; left: 50%; bottom: 23px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 5px 7px; border-radius: 8px; background: rgba(8,23,35,.7); border: 1px solid rgba(255,255,255,.11); backdrop-filter: blur(9px); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.stamp-tray-label { display: flex; flex-direction: column; line-height: .92; padding: 0 6px 0 2px; margin-right: 2px; border-right: 1px solid rgba(255,255,255,.14); }
.stamp-tray-label b { font-size: 7px; letter-spacing: .14em; color: var(--yellow); }
.stamp-tray-label em { font-style: normal; font-size: 5.6px; letter-spacing: .15em; color: rgba(255,249,233,.4); margin-top: 2px; }
.stamp-tray .stamp { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 4px; background: rgba(255,255,255,.07); font-size: 10px; opacity: .38; filter: grayscale(1); transition: .3s; }
.stamp-tray .stamp.visited { opacity: 1; filter: none; background: rgba(255,210,31,.17); box-shadow: inset 0 0 0 1px rgba(255,210,31,.25); }
.zone-hint { position: absolute; left: 50%; top: 98px; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 20px; background: var(--yellow); color: var(--ink); font-size: 8px; font-weight: 900; letter-spacing: .13em; box-shadow: 0 4px 0 var(--yellow-deep), 0 8px 20px rgba(0,0,0,.2); animation: hintIn .25s ease both; }
.zone-hint-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: blink 1s infinite; }
@keyframes hintIn { from { opacity: 0; transform: translate(-50%,-5px); } }
@keyframes blink { 50% { opacity: .25; } }

/* ------------------------------- toasts / float ------------------------------- */
.toast {
  position: absolute; z-index: 30; left: 50%; bottom: 118px; transform: translate(-50%, 14px);
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 260px; max-width: min(460px, calc(100vw - 30px));
  padding: 11px 23px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(8,23,35,.92); backdrop-filter: blur(14px); box-shadow: 0 12px 32px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.12);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-kicker { font-size: 8px; font-weight: 900; letter-spacing: .18em; color: var(--teal); }
.toast-title { font-family: var(--display); font-size: 20px; line-height: 1.1; color: var(--paper); text-align: center; }
.toast-sub { font-size: 9px; font-weight: 700; color: rgba(255,249,233,.5); text-align: center; }
.toast.good .toast-kicker { color: var(--teal); }
.toast.cash .toast-kicker { color: var(--yellow); }
.toast.warn .toast-kicker { color: #ff8a7d; }
.cash-float-layer { position: absolute; inset: 0; z-index: 29; pointer-events: none; overflow: hidden; }
.cash-float { position: absolute; font-family: var(--display); font-size: 26px; color: var(--yellow); text-shadow: 0 3px 0 var(--yellow-deep), 0 8px 20px rgba(0,0,0,.4); transform: translate(-50%,-50%); animation: cashRise 1.5s cubic-bezier(.18,.8,.3,1) both; white-space: nowrap; }
@keyframes cashRise { 0% { opacity: 0; margin-top: 16px; scale: .7; } 15% { opacity: 1; scale: 1.1; } 30% { scale: 1; } 100% { opacity: 0; margin-top: -100px; scale: 1; } }

/* ------------------------------- pause ------------------------------- */
.pause-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 22px 0 25px; }
.pause-stats > div { padding: 13px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); }
.pause-stats span { display: block; font-size: 7px; font-weight: 900; letter-spacing: .16em; color: rgba(255,249,233,.4); }
.pause-stats strong { display: block; margin-top: 5px; font-family: var(--display); font-size: 22px; color: var(--paper); font-weight: 400; }

/* ------------------------------- game over ------------------------------- */
.gameover-card { width: min(680px,100%); padding-top: 30px; }
.gameover-top { display: flex; justify-content: space-between; align-items: center; }
.rank-badge { padding: 6px 10px; border-radius: 4px; background: var(--yellow); color: var(--ink); font-size: 8px; font-weight: 900; letter-spacing: .12em; transform: rotate(2deg); box-shadow: 0 3px 0 var(--yellow-deep); }
.gameover-card h2 { font-size: clamp(46px,6.4vw,70px); margin-top: 13px; margin-bottom: 8px; }
.gameover-card p { margin-bottom: 18px; }
.results-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 1px; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.08); margin-bottom: 17px; }
.results-grid > div { background: #10293b; padding: 13px 15px; }
.results-grid span { display: block; font-size: 7px; font-weight: 900; letter-spacing: .15em; color: rgba(255,249,233,.4); }
.results-grid strong { display: block; font-family: var(--display); font-size: 27px; line-height: 1; margin-top: 7px; color: var(--paper); font-weight: 400; white-space: nowrap; }
.results-grid small { display: block; margin-top: 5px; font-size: 7px; font-weight: 800; color: rgba(255,210,31,.65); }
.result-main strong { color: var(--yellow); font-size: 33px; }
.final-stamps { margin-bottom: 22px; }
.final-stamps-head { display: flex; justify-content: space-between; font-size: 7px; font-weight: 900; letter-spacing: .16em; color: rgba(255,249,233,.4); margin-bottom: 7px; }
.final-stamp-list { display: flex; flex-wrap: wrap; gap: 5px; }
.final-stamp-list .stamp { display: flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 4px; font-size: 7px; font-weight: 800; background: rgba(255,255,255,.05); color: rgba(255,249,233,.3); border: 1px solid rgba(255,255,255,.07); }
.final-stamp-list .stamp.visited { color: var(--paper); background: rgba(25,184,166,.12); border-color: rgba(25,184,166,.28); }
.final-stamp-list .stamp i { font-style: normal; font-size: 10px; filter: grayscale(1); opacity: .5; }
.final-stamp-list .stamp.visited i { filter: none; opacity: 1; }
.gameover-actions { display: grid; grid-template-columns: 1.8fr 1fr; gap: 9px; }
.gameover-actions .big-btn { font-size: 18px; }

/* ------------------------------- touch ------------------------------- */
.touch-controls { display: none; }
.unsupported { position: absolute; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #0b1c2c; padding: 30px; text-align: center; }
.unsupported strong { font-family: var(--display); font-size: 36px; color: var(--yellow); }
.unsupported p { max-width: 350px; color: rgba(255,249,233,.65); line-height: 1.5; }
.noscript { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #0b1c2c; font-family: sans-serif; color: white; }

/* ------------------------------- responsive ------------------------------- */
@media (max-width: 1080px) {
  .intro-screen { padding-left: 36px; padding-right: 36px; }
  .intro-side { right: 36px; top: 86px; }
  .tour-card { width: 218px; }
  .game-title { font-size: clamp(90px, 13.6vw, 145px); }
  .intro-hero { max-width: 600px; }
  .intro-stamp { display: none; }
  .controls-hint { display: none; }
  .stamp-tray { display: none; }
}
@media (max-width: 820px) {
  .intro-screen { padding: 18px 20px; background: linear-gradient(180deg, rgba(5,19,30,.68) 0%, rgba(5,19,30,.82) 40%, rgba(5,17,28,.94) 100%); }
  .intro-top { align-items: flex-start; }
  .intro-weather { display: none; }
  .intro-hero { margin: auto 0; padding-top: 38px; max-width: 100%; }
  .game-title { font-size: clamp(74px, 19vw, 122px); }
  .tagline { font-size: 14px; max-width: 400px; margin: 20px 0 22px 4px; }
  .eyebrow { font-size: 8px; }
  .place-lockup { margin-top: 13px; }
  .place-name { font-size: 21px; }
  .intro-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .start-btn { font-size: 18px; padding: 15px 18px; }
  .intro-controls { margin-top: 22px; gap: 12px; }
  .control-card { font-size: 8px; }
  .intro-side { display: none; }
  .intro-footer { flex-wrap: wrap; gap: 8px; font-size: 7px; }
  .intro-footer > span:nth-child(3), .foot-sep { display: none; }
  .hud-top-left { top: 13px; left: 13px; width: 178px; gap: 7px; }
  .brand-mini strong { font-size: 13px; }
  .brand-mini small { font-size: 6px; }
  .stat-value { font-size: 19px; }
  .stat-value.cash { font-size: 15px; }
  .stat-panel { padding: 4px; }
  .stat-row { padding: 3px 6px 4px; }
  .timer-panel { padding: 7px 10px; width: 178px; }
  .timer-value { font-size: 22px; }
  .objective-card { top: 124px; min-width: 0; width: calc(100% - 28px); max-width: 410px; padding: 6px 10px 7px 6px; }
  .objective-icon-wrap { width: 40px; height: 40px; flex-basis: 40px; }
  .objective-icon { font-size: 20px; }
  .objective-name { font-size: 18px; }
  .objective-compass { display: grid; width: 30px; height: 30px; margin-left: 1px; }
  .compass-arrow { font-size: 12px; }
  .hud-top-right { top: 13px; right: 13px; gap: 6px; }
  .minimap-panel { width: 130px; padding: 6px; }
  #minimap { width: 118px; height: 130px; }
  .minimap-head { font-size: 5.5px; }
  .minimap-foot { display: none; }
  .icon-btn { width: 31px; height: 31px; }
  .hud-bottom-left { left: 13px; bottom: 13px; gap: 6px; }
  .speedo { width: 84px; height: 84px; padding: 6px; }
  .speed-value { font-size: 30px; }
  .speed-unit { font-size: 5px; margin-top: 3px; }
  .gear { right: 7px; bottom: 16px; width: 14px; height: 14px; font-size: 8px; }
  .boost-panel { width: 124px; padding: 7px 8px 8px; }
  .boost-label { font-size: 5.5px; }
  .boost-label kbd { display: none; }
  .drift-label { font-size: 5.5px; }
  .hud-bottom-right { right: 13px; bottom: 13px; }
  .toast { bottom: 108px; min-width: 230px; padding: 9px 16px 10px; }
  .toast-title { font-size: 17px; }
  .toast-sub { font-size: 8px; }
  .modal-screen { padding: 14px; }
  .modal-card { padding: 26px 22px 22px; border-radius: 16px; }
  .results-grid { grid-template-columns: 1.3fr 1fr; }
  .results-grid strong { font-size: 23px; }
  .result-main strong { font-size: 27px; }
  .gameover-card h2 { font-size: 44px; }
  .gameover-actions { grid-template-columns: 1fr; }
  .pause-stats { margin: 16px 0; }
  .pause-stats strong { font-size: 18px; }
}
@media (max-width: 540px) {
  .intro-top .intro-lockup small { display: none; }
  .intro-top .swiss-badge { width: 28px; height: 28px; }
  .intro-hero { padding-top: 24px; }
  .game-title { font-size: clamp(70px, 21vw, 100px); }
  .tagline { font-size: 13px; line-height: 1.5; }
  .tagline br { display: block; }
  .intro-controls { display: none; }
  .intro-actions { width: 100%; }
  .start-btn { width: 100%; justify-content: flex-start; }
  .start-btn svg { margin-left: auto; }
  .intro-footer { margin-top: auto; padding-top: 22px; line-height: 1.5; }
  .intro-footer > span:first-child { display: none; }
  .objective-card { top: 133px; }
  .hud-top-left { width: 154px; }
  .timer-panel { width: 154px; }
  .hud-top-right .icon-btn { display: none; }
  .minimap-panel { width: 108px; }
  #minimap { width: 96px; height: 108px; }
  .speedo { width: 72px; height: 72px; }
  .speed-value { font-size: 26px; }
  .boost-panel { width: 105px; padding: 6px; }
  .boost-label { font-size: 5px; }
  .drift-label { display: none; }
  .objective-distance { font-size: 8px; }
  .objective-name { font-size: 16px; }
  .cash-float { font-size: 21px; }
}
@media (pointer: coarse) {
  .touch-controls { display: none; position: absolute; inset: 0; z-index: 15; pointer-events: none; padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); align-items: flex-end; justify-content: space-between; }
  .touch-steer, .touch-pedals { display: flex; gap: 8px; align-items: flex-end; pointer-events: auto; }
  .touch-steer { margin-right: auto; padding-bottom: 6px; }
  .touch-pedals { margin-left: auto; padding-bottom: 6px; }
  .touch-btn { pointer-events: auto; width: 58px; height: 58px; border-radius: 14px; background: rgba(8,23,35,.68); border: 1px solid rgba(255,255,255,.26); color: var(--paper); font-family: var(--display); font-size: 12px; backdrop-filter: blur(10px); box-shadow: 0 4px 0 rgba(0,0,0,.28); touch-action: none; user-select: none; -webkit-user-select: none; }
  .touch-btn:active, .touch-btn.pressed { transform: translateY(2px); background: rgba(255,210,31,.9); color: var(--ink); }
  .touch-btn.pedal.gas { background: rgba(225,58,48,.8); font-size: 17px; }
  .touch-btn.pedal.brake { font-size: 10px; }
  .touch-btn.mini-action { position: absolute; right: max(14px, env(safe-area-inset-right)); width: 55px; height: 40px; font-size: 9px; letter-spacing: .04em; }
  .touch-btn.boost { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 156px); background: rgba(25,184,166,.75); }
  .touch-btn.drift { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 106px); }
  .hud-bottom-left { bottom: 84px; }
  .hud-bottom-right { display: none; }
  .speedo { width: 62px; height: 62px; }
  .speed-value { font-size: 23px; }
  .boost-panel { width: 94px; padding: 5px 6px; }
  .boost-label { font-size: 4.6px; }
  .drift-label { display: none; }
  .stamp-tray { display: none; }
  .toast { bottom: 210px; }
  .zone-hint { top: 128px; }
  .controls-hint { display: none; }
  .intro-screen .intro-controls { display: none; }
}
@media (pointer: coarse) and (orientation: portrait) and (max-width: 700px) {
  .objective-card { top: 190px; }
  .zone-hint { top: 249px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media (max-width: 540px) {
  .hud-top-right .pause-btn { display: grid; }
  .hud-icon-stack { display: flex; }
}
@media (pointer: coarse) {
  .hud-top-right .pause-btn { display: grid; }
}

@media (pointer: coarse) {
  body.touch-playing .touch-controls { display: flex; }
}

/* Mobile-only destination strip */
.intro-mobile-stops { display: none; }
@media (max-width: 820px) {
  .intro-mobile-stops { display: block; margin: 23px 0 0 4px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); max-width: 430px; }
  .mobile-stops-head { display: flex; justify-content: space-between; font-size: 7px; font-weight: 900; letter-spacing: .18em; color: rgba(255,249,233,.4); margin-bottom: 9px; }
  .mobile-stops-head span:last-child { color: var(--yellow); }
  .mobile-stops-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .mobile-stops-grid span { display: flex; align-items: center; gap: 5px; font-size: 8px; font-weight: 700; color: rgba(255,249,233,.66); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-stops-grid i { font-style: normal; font-size: 10px; filter: saturate(.7); }
}
@media (max-width: 820px) and (orientation: landscape) {
  .intro-mobile-stops { display: none; }
}
@media (pointer: coarse) {
  .hud-top-left { top: calc(13px + env(safe-area-inset-top)); }
  .hud-top-right { top: calc(13px + env(safe-area-inset-top)); }
  .intro-screen { padding-top: calc(18px + env(safe-area-inset-top)); }
}

@media (max-width: 820px) {
  .intro-footer {
    position: absolute; left: 20px; right: 20px; bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 3; display: flex; align-items: center; gap: 8px; font-size: 7px;
  }
  .intro-footer::before { content: 'PICK UP · FLOOR IT · GET PAID'; color: var(--yellow); font-weight: 900; letter-spacing: .16em; }
  .intro-footer > span:first-child, .intro-footer .foot-sep, .intro-footer > span:nth-child(3) { display: none; }
  .intro-high-score { margin-left: auto; color: rgba(255,210,31,.7); }
}

/* ------------------------------- short / landscape screens ------------------------------- */
@media (max-height: 560px) and (orientation: landscape) {
  .intro-screen { padding: 12px 22px 10px; background: linear-gradient(90deg, rgba(5,19,30,.94) 0%, rgba(6,22,34,.72) 45%, rgba(7,24,37,.12) 100%); }
  .intro-top { align-items: flex-start; }
  .intro-lockup small { display: none; }
  .swiss-badge { width: 28px; height: 28px; }
  .intro-weather, .intro-side, .intro-footer, .intro-controls, .intro-mobile-stops { display: none !important; }
  .intro-hero { margin: auto 0; padding: 4px 0 0; max-width: 620px; }
  .eyebrow { font-size: 8px; }
  .game-title { display: flex; align-items: flex-end; gap: 14px; font-size: clamp(56px, 10.5vw, 80px); line-height: .8; margin: 7px 0 0; }
  .game-title span { display: block; }
  .game-title .title-taxi { margin: 0; }
  .place-lockup { margin: 11px 0 0 3px; }
  .place-name { font-size: 18px; }
  .place-edition { font-size: 7px; padding: 4px 6px 3px; }
  .tagline { font-size: 12px; line-height: 1.45; margin: 11px 0 13px 3px; max-width: 540px; }
  .tagline br { display: none; }
  .intro-actions { margin-left: 3px; gap: 12px; }
  .start-btn { padding: 12px 16px; font-size: 16px; }
  .start-meta { display: none; }
  .intro-stamp { display: none; }
  .hud-top-left { top: calc(9px + env(safe-area-inset-top)); left: 11px; width: 170px; gap: 5px; }
  .brand-mini strong { font-size: 12px; }
  .brand-mini small { font-size: 6px; }
  .brand-mini .swiss-mini { width: 22px; height: 22px; }
  .stat-panel { padding: 3px; }
  .stat-row { padding: 3px 6px 4px; }
  .stat-label { font-size: 6px; }
  .stat-value { font-size: 18px; margin-top: 3px; }
  .stat-value.cash { font-size: 15px; margin-top: 5px; }
  .timer-panel { padding: 6px 10px; }
  .timer-label { font-size: 6px; }
  .timer-value { font-size: 22px; }
  .hud-top-right { top: calc(9px + env(safe-area-inset-top)); right: 11px; gap: 6px; }
  .minimap-panel { width: 128px; padding: 6px 6px 4px; }
  #minimap { width: 116px; height: 126px; }
  .minimap-head { font-size: 5px; margin-bottom: 2px; }
  .minimap-foot { display: none; }
  .hud-icon-stack { flex-direction: row; gap: 6px; }
  .icon-btn { width: 30px; height: 30px; }
  .objective-card { top: calc(8px + env(safe-area-inset-top)); min-width: 250px; max-width: 330px; padding: 5px 9px 6px 6px; gap: 8px; }
  .objective-icon-wrap { width: 36px; height: 36px; flex-basis: 36px; border-radius: 7px; }
  .objective-icon { font-size: 18px; }
  .objective-kicker { font-size: 6px; }
  .objective-name { font-size: 17px; }
  .objective-distance { font-size: 7px; }
  .objective-compass { width: 27px; height: 27px; }
  .hud-bottom-left { left: 10px; bottom: calc(61px + env(safe-area-inset-bottom)); transform: scale(.7); transform-origin: bottom left; }
  .boost-panel { display: none; }
  .hud-bottom-right { display: none; }
  .stamp-tray { display: none; }
  .controls-hint { display: none; }
  .boost-label kbd { display: none; }
  .toast { bottom: 80px; min-width: 220px; padding: 8px 16px 9px; }
  .toast-title { font-size: 16px; }
  .toast-sub { font-size: 8px; }
  .zone-hint { top: 84px; }
  .touch-controls { padding: 8px 12px max(10px, env(safe-area-inset-bottom)); }
  .touch-btn { width: 48px; height: 48px; font-size: 10px; border-radius: 11px; }
  .touch-btn.pedal.gas { font-size: 15px; }
  .touch-btn.mini-action { width: 48px; height: 33px; font-size: 8px; }
  .touch-btn.boost { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 118px); }
  .touch-btn.drift { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 78px); }
  .touch-steer, .touch-pedals { gap: 6px; padding-bottom: 0; }
  .objective-bar { display: none; }
  .gear { display: none; }
}
@media (pointer: coarse) and (orientation: portrait) {
  .zone-hint { top: 258px; }
}
@media (max-height: 480px) and (max-width: 720px) and (orientation: landscape) {
  .minimap-panel, .hud-top-right .audio-btn { display: none; }
  .objective-card { max-width: 290px; min-width: 230px; }
  .hud-top-right { gap: 0; }
}

@media (min-width: 821px) and (max-width: 1000px) {
  .intro-side { display: none; }
  .objective-card { min-width: 0; width: 330px; padding-right: 12px; }
  .objective-name { font-size: 20px; }
  .minimap-panel { width: 162px; }
  #minimap { width: 146px; height: 160px; }
  .intro-mobile-stops { display: block; margin: 21px 0 0 4px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); max-width: 430px; }
  .mobile-stops-head { display: flex; justify-content: space-between; font-size: 7px; font-weight: 900; letter-spacing: .18em; color: rgba(255,249,233,.4); margin-bottom: 9px; }
  .mobile-stops-head span:last-child { color: var(--yellow); }
  .mobile-stops-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .mobile-stops-grid span { display: flex; align-items: center; gap: 5px; font-size: 8px; font-weight: 700; color: rgba(255,249,233,.66); }
  .mobile-stops-grid i { font-style: normal; font-size: 10px; filter: saturate(.7); }
}
