:root {
  color-scheme: dark;
  --cream: #fff8df;
  --gold: #ffcb47;
  --muted: #d5e3d7;
  --marina: #123d3b;
  --deep: #092c2b;
  --hud: rgba(15, 57, 53, .94);
  --border: rgba(252, 247, 217, .24);
  --shadow: 0 5px 14px #0825234d;
  --body-font: Nunito, 'Trebuchet MS', Arial, sans-serif;
  --display-font: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  --edge: clamp(12px, 2.15vw, 32px);
  --top: max(var(--edge), env(safe-area-inset-top));
  --left: max(var(--edge), env(safe-area-inset-left));
  --right: max(var(--edge), env(safe-area-inset-right));
  --bottom: max(var(--edge), env(safe-area-inset-bottom));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  font-family: var(--body-font);
  color: var(--cream);
  background: var(--deep);
}

button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid var(--cream); outline-offset: 4px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.game-shell {
  position: relative;
  width: 100%;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(165deg, #9ed3d3 0 26%, #5a9d95 58%, #245957 100%);
}

.game-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.game-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
}
.game-shell.is-playing, .game-shell.is-playing * { cursor: none; }
.game-shell.is-playing .game-hud * { pointer-events:none; }

.game-shell:has(.start-screen:not([hidden])) .game-hud { visibility: hidden; }

.mission-card, .scoreboard, .icon-button, .speedometer, .keyboard-guide, .minimap-frame {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--hud);
}

.mission-card {
  position: absolute;
  top: var(--top);
  left: var(--left);
  width: min(328px, calc(100% - 2 * var(--edge)));
  padding: 12px 15px 13px;
  border-radius: 16px;
}

.mission-heading { display: flex; align-items: center; gap: 10px; }

.mission-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 10px;
  color: var(--deep);
  background: var(--gold);
  font-size: 17px;
  font-weight: 900;
}

.hud-label, .stat-label, .map-label, .speed-unit {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .095em;
  line-height: 1.1;
  text-transform: uppercase;
}

.hud-label { margin: 0 0 3px; }

.mission-heading h2 {
  margin: 0;
  color: var(--cream);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.mission-progress {
  margin-left: auto;
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.mission-progress:empty, .nav-hint:empty { display: none; }

.mission-prompt, .nav-hint { margin: 8px 0 0; line-height: 1.28; }
.mission-prompt { color: var(--muted); font-size: 14px; }
.nav-hint { color: var(--gold); font-size: 12px; font-weight: 900; }

.top-right {
  position: absolute;
  top: var(--top);
  right: var(--right);
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.scoreboard {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 6px 4px;
  border-radius: 12px;
}

.stat { display: flex; min-width: 72px; align-items: center; gap: 7px; padding: 0 8px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-values { display: grid; gap: 3px; }
.stat-value { color: var(--cream); font-size: 16px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-icon { width: 16px; height: 16px; flex: 0 0 16px; color: var(--gold); }

.coin-icon {
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: #ffe083;
  box-shadow: inset 0 0 0 2px #a46b1a;
}

.jobs-icon { position: relative; border: 2px solid currentColor; border-radius: 3px; }
.jobs-icon::after {
  position: absolute;
  top: 2px;
  left: 3px;
  width: 5px;
  height: 8px;
  transform: rotate(43deg);
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  content: '';
}

.tool-row { display: flex; gap: 5px; }

.icon-button {
  display: grid;
  width: 44px;
  height: 46px;
  padding: 0;
  place-items: center;
  border-radius: 11px;
  font: 800 22px/1 var(--body-font);
  pointer-events: auto;
}

.icon-button:hover { border-color: var(--gold); }
.sound-button[aria-pressed='false'] { color: #b5c8bf; }
.sound-button[aria-pressed='true'] { color: var(--gold); }

.pause-icon { width: 11px; height: 13px; border: solid currentColor; border-width: 0 3px; }

.speedometer {
  position: absolute;
  bottom: var(--bottom);
  left: var(--left);
  display: grid;
  min-width: 96px;
  max-width: 115px;
  padding: 5px 10px;
  height: 71px;
  place-content: center;
  gap: 2px;
  border-radius: 15px;
  text-align: center;
}

.speed-value {
  min-width: 2ch;
  color: var(--cream);
  font: 900 32px/.9 var(--display-font);
  font-variant-numeric: tabular-nums;
}
.mode-name {
  color: var(--gold);
  font: 800 11px/1.1 var(--body-font);
}
.vehicle-action {
  position: absolute;
  bottom: calc(var(--bottom) + 49px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid #ffdf83;
  border-radius: 12px;
  background: var(--gold);
  box-shadow: var(--shadow);
  color: var(--deep);
  font-size: 14px;
  font-weight: 900;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.vehicle-action kbd { border-color: #694e19; background: var(--deep); }
.vehicle-action:hover { background: #ffdd79; }
.vehicle-action:disabled { background: var(--hud); color: var(--cream); border-color: var(--border); cursor: default; }
.game-shell:has(.vehicle-action:not([hidden])) .toast { bottom: calc(var(--bottom) + 105px); }

.keyboard-guide {
  position: absolute;
  bottom: var(--bottom);
  left: calc(var(--left) + 120px);
  right: calc(var(--right) + 190px);
  width: max-content;
  margin-inline: auto;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.keyboard-guide span { display: flex; gap: 5px; align-items: center; }

kbd {
  display: inline-block;
  padding: 2px 5px;
  border: 1px solid #fff8df52;
  border-radius: 4px;
  color: var(--cream);
  background: #ffffff15;
  font: 900 11px/1.2 var(--body-font);
}

.minimap-frame {
  position: absolute;
  right: var(--right);
  bottom: var(--bottom);
  width: 184px;
  padding: 8px;
  border-radius: 15px;
}

.map-label { display: flex; justify-content: space-between; margin-bottom: 6px; }
.map-north { color: var(--gold); }
.minimap-frame canvas { display: block; width: 100%; height: auto; border-radius: 8px; background: #285e5b; }

.radar-stack {
  position:absolute; right:var(--right); bottom:var(--bottom); width:184px;
  border:1px solid var(--border); border-radius:15px; overflow:hidden;
  background:#102b29ee; box-shadow:var(--shadow);
}
.radar-stack .minimap-frame {
  position:static; width:100%; display:block; border:0; border-radius:0;
  box-shadow:none; background:transparent;
}
.vitals { padding:0 9px 7px; }
.driver-name {
  overflow:hidden; margin:0 0 4px; color:var(--cream); font:800 12px/1.3 var(--body-font);
  text-overflow:ellipsis; white-space:nowrap; text-align:start;
}
.car-condition { border-top:1px solid var(--border); padding:4px 7px; color:#ece3c3; font:750 10px/1.3 var(--body-font); }
.car-condition.engine-fire { color:#ffd8aa; background:#59392e; }
.vital {
  display:grid; grid-template-columns:4.2ch minmax(12px,1fr) 3ch; align-items:center; gap:6px;
  font:800 10px/1.5 var(--body-font); font-variant-numeric:tabular-nums; color:#edf2e7;
}
.vital span { text-align:right; }
.vital meter { appearance:none; -webkit-appearance:none; border:0; border-radius:2px; background:#334d46; width:100%; height:6px; }
.vital meter::-webkit-meter-bar { background:#334d46; border:0; border-radius:2px; height:6px; }
.health { --fill:#6edb91; }
.low-health .health { --fill:#ff8977; }
.armor { --fill:#7ac4f8; }
.vital meter::-webkit-meter-optimum-value { background:var(--fill); border-radius:2px; }
.vital meter::-moz-meter-bar { background:var(--fill); border-radius:2px; }
#snackButton {
  width:100%; pointer-events:auto; border:0; border-top:1px solid var(--border);
  padding:5px 6px; color:var(--cream); background:#244640; font:800 12px var(--body-font);
}
#damageWash { position:absolute; inset:0; pointer-events:none; opacity:0;
  background:radial-gradient(ellipse at var(--impact-x,50%) var(--impact-y,98%),#ae303a88,transparent 49%),
    radial-gradient(ellipse at center,transparent 48%,#7a202744);
}
.recovery-screen { position:absolute; z-index:4; inset:0; display:grid; place-items:center; background:#1014194d; pointer-events:none; }
.recovery-band { width:100%; padding:clamp(14px,4vh,34px) 14px; text-align:center; background:linear-gradient(0deg,transparent,#101216dc 17%,#101216dc 82%,transparent); }
.recovery-band h2 { margin:0; color:#ff6d6d; font:900 clamp(48px,10vw,110px)/.95 var(--display-font); letter-spacing:-.045em; text-transform:uppercase; }
.recovery-screen[data-outcome="busted"] h2 { color:#9bc9f3; }
.recovery-band p { margin:8px 0 0; color:#fff6ea; font-weight:750; }
#recoveryCost { font-size:.83rem; color:#d0d8d8; }
.game-shell.in-recovery .game-canvas { filter:grayscale(.9) brightness(.61); }
.game-shell.in-recovery .game-hud { opacity:.25; }
@media (max-width:870px) { .radar-stack { width:155px; } }
@media (max-width:690px) {
  .radar-stack { width:min(29vw,145px); }
  .vital { gap:3px; font-size:9px; }
  .vitals { padding:0 6px 5px; }
}
@media (prefers-reduced-motion:reduce) { #damageWash { background:none; } }

.arcade-controls {
  position:absolute; left:var(--left); bottom:calc(var(--bottom) + 82px);
  display:flex; flex-wrap:wrap; gap:5px; pointer-events:auto;
}
.arcade-controls button, #routeGo {
  padding:8px 12px; min-height:36px; border:1px solid var(--border); border-radius:8px;
  color:var(--cream); background:var(--hud); font:800 12px var(--body-font);
}
.arcade-controls #fireButton { border-color:var(--gold); color:var(--gold); }
.arcade-controls #zoomButton.is-held { background:var(--cream); color:var(--deep); }
#cruiserControls { display:flex; gap:5px; }
#cruiserControls button { white-space:nowrap; }
#cruiserControls button[aria-pressed]::after {
  content:'OFF'; display:block; margin-top:2px; color:var(--muted); font-size:9px; line-height:1; letter-spacing:.07em;
}
#cruiserControls button[aria-pressed]::before {
  content:''; display:inline-block; width:6px; height:6px; margin-right:3px;
  border-radius:50%; border:1px solid currentColor; vertical-align:middle;
}
#cruiserControls button[aria-pressed="true"] { color:#b6ecff; border-color:#8dd8ee; background:#194452; }
#cruiserControls button[aria-pressed="true"]::before { background:currentColor; }
#cruiserControls button[aria-pressed="true"]::after { content:'ON'; color:inherit; }
#fireButton, #zoomButton { display:none; }
#serviceDuty { border-color:#cbb36f; color:var(--gold); }
#wantedHud {
  position:absolute; right:0; top:calc(100% + 6px); white-space:nowrap;
  background:var(--hud); color:var(--cream); border:1px solid var(--border);
  border-radius:9px; padding:5px 10px; font:800 11px var(--body-font);
}
#wantedStars { color:var(--gold); letter-spacing:2px; font-size:16px; }
#wantedUnits { display:block; text-align:right; font-size:10px; line-height:1.3; font-weight:700; color:#cee1e4; }
#wantedHud.searching #wantedStars { opacity:.58; }
#aimMark {
  position:absolute; left:50%; top:50%; width:24px; height:24px; transform:translate(-50%,-50%);
  color:#fff; pointer-events:none; filter:drop-shadow(0 0 1px #111) drop-shadow(0 1px 1px #18201f);
}
#aimMark::before {
  content:""; position:absolute; top:50%; left:50%; width:4px; height:4px; border-radius:50%;
  transform:translate(-50%,-50%); background:currentColor;
}
#aimMark::after {
  content:""; position:absolute; inset:1px; opacity:0;
  background:linear-gradient(currentColor,currentColor) left center/5px 2px no-repeat,
    linear-gradient(currentColor,currentColor) right center/5px 2px no-repeat,
    linear-gradient(currentColor,currentColor) center top/2px 5px no-repeat,
    linear-gradient(currentColor,currentColor) center bottom/2px 5px no-repeat;
  transition:inset .09s ease,transform .08s ease,opacity .08s ease;
}
#aimMark.armed::after { opacity:.90; }
#aimMark.focused::after { inset:3px; opacity:1; }
#aimMark.hit { color:#ffe087; }
#aimMark.hit::after { opacity:1; transform:rotate(45deg); }
.destination-controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:12px; }
.destination-controls label { font-size:13px; font-weight:800; }
.destination-controls select { flex:1; min-width:110px; max-width:100%; padding:7px; border:1px solid var(--border); border-radius:6px; color:var(--cream); background:var(--deep); }
#routeGo { color:var(--deep); background:var(--gold); }
.map-source { margin:9px 0 0; color:var(--muted); font-size:12px; line-height:1.4; }
.route-map-shop-key { width:8px; height:8px; background:#f2a7c9; }

.toast {
  position: absolute;
  z-index: 2;
  bottom: calc(var(--bottom) + 61px);
  left: 50%;
  width: max-content;
  max-width: calc(100% - 2 * var(--edge));
  margin: 0;
  padding: 11px 17px;
  transform: translateX(-50%);
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: var(--shadow);
  color: var(--deep);
  background: var(--gold);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  pointer-events: none;
}

.start-screen, .modal-screen { position: absolute; z-index: 3; inset: 0; display: grid; align-items: center; overflow: auto; }

.start-screen {
  padding: 22px 16px;
  align-items: start;
  background: radial-gradient(ellipse at 50% 36%, #112d2510 8%, #0b292832 70%, #07242187),
              linear-gradient(0deg, #09272372, #122e2814 52%, #14343324);
}

.start-panel {
  align-self: safe center; justify-self: center; width:min(100%,440px);
  padding:clamp(26px,4.8vh,46px) clamp(24px,3.3vw,40px) 20px;
  border:1px solid #d4e2d75c; border-radius:22px;
  text-align:center; color:var(--cream);
  background:linear-gradient(155deg,#194a41f5,#0b302ded 53%,#0b302df5);
  backdrop-filter:blur(12px);
  box-shadow:0 20px 56px #041f1c72,inset 0 1px #f2f4cf1c;
}
.start-links { display:flex; justify-content:center; gap:24px; margin-top:14px; }
.map-setup-link { display:inline-block; padding:3px 0; color:#c4d8cd; font-weight:650; font-size:12px; text-underline-offset:3px; }
.map-setup-link:hover { color:var(--cream); }
.map-setup-link:focus-visible { outline:2px solid var(--cream); outline-offset:2px; }

.game-title {
  margin: 0;
  transform: skew(-8deg);
  transform-origin: center;
  color: var(--cream);
  font: 900 clamp(64px,10vh,96px)/.87 var(--display-font);
  letter-spacing: -.022em;
  text-shadow: 0 3px #082c29, 0 6px 16px #04262260;
  text-transform: uppercase;
}

.title-top, .title-bottom { display: block; }
.title-top { font-size:.52em; letter-spacing:.018em; }
.title-bottom { margin-top:.045em; color:var(--gold); letter-spacing:.015em; }
.game-intro { max-width:39ch; margin:15px auto 21px; color:var(--muted); font-size:14px; line-height:1.45; }

.primary-button, .secondary-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 11px 17px;
  border: 1px solid #ffe298;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.primary-button { color: var(--deep); background: var(--gold); box-shadow: 0 4px 0 #af7728, 0 7px 18px #09252255; }
.primary-button span { font-size: 23px; line-height: 1; }
.primary-button:hover { background: #ffda75; }
.primary-button:active { transform: translateY(2px); box-shadow: 0 2px 0 #af7728; }
.secondary-button { min-height: 44px; border-color: var(--border); color: var(--cream); background: #ffffff12; }
.secondary-button:hover { border-color: var(--cream); }

.start-controls { margin-top:23px; padding-top:14px; border-top:1px solid #d7e8dc37; }
.start-guides { margin-top:8px; }
.start-controls summary, .start-guides summary { width:fit-content; margin:auto; color:#e3ecdf; font-size:14px; font-weight:750; cursor:pointer; }
.start-controls summary:focus-visible, .start-guides summary:focus-visible, .start-guides a:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }
.start-guides nav { display:grid; gap:1px; margin-top:9px; padding:4px 12px; background:#0929249c; border-radius:8px; text-align:left; }
.start-guides nav a { padding:5px 3px; color:var(--cream); font-size:14px; line-height:1.3; text-underline-offset:3px; }
.start-guides nav a:hover { color:var(--gold); }
.start-hint { margin:10px 0 0; color:var(--muted); font-size:12px; font-weight:650; line-height:1.7; }
.player-form { width:100%; }
.player-form label { display:block; margin-bottom:8px; color:var(--cream); font-size:14px; font-weight:800; }
.player-form input {
  display:block; width:100%; height:46px; padding:8px 12px; border:1px solid #bad1bc89; border-radius:8px;
  color:var(--cream); background:#082724b8; font:700 16px var(--body-font); text-align:center;
}
.player-form input::placeholder { color:#bbcec3; opacity:1; }
.start-actions { display:flex; align-items:stretch; gap:9px; margin-top:11px; }
.start-actions .primary-button { flex:1; gap:8px; min-height:46px; padding:9px 14px; justify-content:center; white-space:nowrap; }
.start-actions .secondary-button { justify-content:center; padding:9px 14px; background:#31544be8; border-color:#b6cdc166; font-size:14px; }
.player-form input:focus-visible, .pc-settings :is(button,input,select):focus-visible {
  outline:2px solid var(--gold); outline-offset:3px;
}
.pc-settings {
  position:fixed; inset:0; margin:auto;
  width:min(440px,calc(100% - 32px)); max-height:calc(100dvh - 32px); padding:clamp(18px,3vw,28px);
  overflow:auto; border:1px solid #728f83; border-radius:17px;
  color:var(--cream); background:linear-gradient(145deg,#19473f,#0b302d); box-shadow:0 18px 72px #041e1bc7;
}
.pc-settings::backdrop { background:#061e1ab0; backdrop-filter:blur(4px); }
.settings-heading, .settings-actions, .setting-select { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.settings-heading { margin-bottom:18px; }
.settings-heading h2 { margin:0; color:var(--gold); font:900 40px/.95 var(--display-font); text-transform:uppercase; }
.settings-close {
  width:34px; height:34px; border:1px solid var(--border); border-radius:8px; background:#ffffff0d; font:400 24px/1 Arial,sans-serif;
}
.settings-group { min-width:0; margin:0 0 18px; padding:9px 0 0; border:0; border-top:1px solid var(--border); }
.settings-group legend { padding:0 8px 0 0; color:#a9d2bf; font:850 11px/1.2 var(--body-font); letter-spacing:.09em; text-transform:uppercase; }
.settings-group label { font-weight:750; font-size:14px; }
.setting-range { display:grid; grid-template-columns:1fr auto; align-items:center; gap:4px 10px; }
.setting-range output { color:var(--gold); font-size:13px; font-weight:800; font-variant-numeric:tabular-nums; }
.setting-range input { grid-column:1 / -1; width:100%; height:20px; margin:2px 0 0; cursor:pointer; accent-color:var(--gold); }
.setting-check { display:inline-flex; align-items:center; gap:8px; margin-top:9px; cursor:pointer; }
.setting-check input { width:16px; height:16px; margin:0; accent-color:var(--gold); }
.setting-select select { min-width:0; padding:8px; border:1px solid #779084; border-radius:6px; background:var(--deep); color:var(--cream); font:700 13px var(--body-font); }
.settings-actions { padding-top:14px; border-top:1px solid var(--border); }
.settings-defaults { padding:5px 0; border:0; color:var(--muted); background:transparent; text-decoration:underline; text-underline-offset:4px; font-size:13px; }
.settings-actions .primary-button { min-height:40px; padding:7px 21px; }

.modal-screen { place-items: center; padding: var(--top) var(--right) var(--bottom) var(--left); background: #072d29a8; }

.modal-panel {
  width: min(100%, 400px);
  padding: clamp(18px, 5vw, 32px);
  border: 1px solid var(--border);
  border-radius: 19px;
  color: var(--cream);
  background: #123d3bf5;
  box-shadow: 0 18px 60px #05222170;
}

.modal-panel h2 { margin: 0 0 12px; color: var(--gold); font: 900 clamp(38px, 7vw, 56px)/.95 var(--display-font); text-transform: uppercase; }
.modal-panel p { margin: 0 0 19px; color: var(--muted); font-size: 16px; line-height: 1.4; }
.modal-panel button { display: flex; width: 100%; }
.modal-panel button + button { margin-top: 12px; }

@media (max-width: 1050px) {
  .keyboard-guide .look-guide { display: none; }
}

@media (max-width: 870px) {
  .top-right { flex-direction: column; align-items: flex-end; gap: 5px; }
  .tool-row { gap: 5px; }
  .icon-button { width: 40px; height: 42px; }
  .minimap-frame { width: 155px; }
  .keyboard-guide { right: calc(var(--right) + 160px); gap: 9px; }
  .keyboard-guide > span:last-child { display: none; }
}

@media (max-width: 690px) {
  .keyboard-guide { display: none; }
  .speedometer { min-width: 72px; max-width: 23vw; height: 63px; padding: 3px; border-radius: 12px; }
  .mode-name { font-size: 10px; }
  .vehicle-action { bottom: var(--bottom); left: 47%; max-width: 38vw; padding: 6px 8px; font-size: 13px; }
  .arcade-controls { bottom:calc(var(--bottom) + 69px); }
  .game-shell:has(.vehicle-action:not([hidden])) .toast { bottom:calc(var(--bottom) + 51px); }
  .speed-value { font-size: 26px; }
  .minimap-frame { width: min(29vw, 145px); padding: 5px; }
  .map-label { font-size: 8px; }
  .toast { bottom:calc(var(--bottom) + 49px); max-width:56%; }
}

@media (max-width: 570px) {
  .mission-card { width: calc(100% - 2 * var(--edge) - 121px); padding: 8px 9px; border-radius: 12px; }
  .mission-heading { gap: 6px; flex-wrap: wrap; }
  .mission-heading h2 { font-size: 15px; }
  .mission-icon { width: 26px; height: 26px; flex-basis: 26px; border-radius: 7px; font-size: 13px; }
  .hud-label, .stat-label { font-size: 8px; }
  .mission-progress { padding: 3px 4px; font-size: 9px; }
  .mission-prompt { margin-top: 5px; font-size: 12px; }
  .nav-hint { margin-top: 4px; font-size: 11px; }
  .scoreboard { min-height: 36px; }
  .stat { min-width: 48px; gap: 5px; padding: 0 5px; }
  .stat-value { font-size: 14px; }
  .stat-icon { width: 13px; height: 13px; flex-basis: 13px; }
  .jobs-icon::after { left: 2px; width: 4px; height: 6px; }
  .tool-row { gap: 2px; }
  .icon-button { width: 38px; height: 38px; }
  .start-panel { padding-inline:clamp(14px,5vw,24px); }
}

@media (max-height: 450px) and (orientation: landscape) {
  .start-screen { padding-block:10px; }
  .start-panel { padding-block:18px 12px; }
  .game-title { font-size:54px; }
  .game-intro { margin:9px auto 13px; }
  .start-controls { margin-top:14px; padding-top:9px; }
  .start-links { margin-top:8px; }
  .start-hint { margin-top: 10px; }
  .primary-button { min-height: 44px; }
  .minimap-frame { width: 107px; }
  .mission-card { padding-top: 8px; padding-bottom: 8px; }
}
