:root {
  --bg: #05070c;
  --panel: rgba(9, 12, 19, 0.94);
  --panel-solid: #0a0d15;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text: #f4f6fa;
  --muted: #8d97a9;
  --dim: #5d6678;
  --accent: #ff5a1f;
  --accent-2: #33e0ff;
  --lime: #b9ff3d;
  --radius: 16px;
  --panel-w: 424px;
  --bar-h: 58px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  overscroll-behavior: none;
}

body {
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button, input, a { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }

#app { position: fixed; inset: 0; }

#stageWrap {
  position: absolute;
  left: 0; right: 0; top: 0;
  bottom: 44%;
  overflow: hidden;
  background: #05070c;
}
body.city #stageWrap { bottom: 0; left: 0; right: 0; }
body.starting #stageWrap { left: 0; right: 0; top: 0; bottom: 0; }
body.starting .panel, body.starting .topbar { visibility: hidden; }

#stage { display: block; width: 100%; height: 100%; touch-action: none; }

.stage-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 42%, rgba(0,0,0,0) 42%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(3,5,9,0.55) 0%, rgba(3,5,9,0) 24%);
}
body.city .stage-tint {
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.45) 100%),
    linear-gradient(180deg, rgba(3,5,9,0.5) 0%, rgba(3,5,9,0) 22%);
}

/* ---------- top bar ---------- */

.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--bar-h);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #05070c;
  background: var(--accent);
  padding: 4px 6px;
  border-radius: 4px;
  flex: none;
}
.brand-name {
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: rgba(244,246,250,0.72);
  white-space: nowrap;
}
.brand-name b { color: var(--text); }
.top-actions { display: flex; gap: 8px; pointer-events: auto; }
.ghost-btn {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(8, 11, 17, 0.55);
  backdrop-filter: blur(8px);
  transition: color .18s, border-color .18s;
}
.ghost-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.22); }
.ghost-btn.off { color: var(--dim); }

/* ---------- panel ---------- */

.panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 56%;
  z-index: 20;
  background: var(--panel);
  backdrop-filter: blur(20px) saturate(1.1);
  border-top: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -30px 80px rgba(0,0,0,0.55);
}
.panel-view { display: flex; flex-direction: column; height: 100%; min-height: 0; }

.panel-head { padding: 18px 16px 10px; }
.eyebrow {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.panel-title {
  margin: 6px 0 4px;
  font-size: 32px;
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 900;
  text-transform: uppercase;
}
.panel-title span { color: var(--accent); }
.panel-title.small { font-size: 26px; margin: 2px 0 0; }
.panel-copy { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; max-width: 34ch; }

/* section rail */
.section-rail {
  display: flex;
  gap: 8px;
  padding: 6px 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: none;
}
.section-rail::-webkit-scrollbar { display: none; }
.sec-btn {
  flex: none;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--dim);
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .18s;
}
.sec-btn .lock { font-size: 8px; opacity: .65; }
.sec-btn.active {
  color: #0a0b0f;
  background: var(--text);
  border-color: var(--text);
}
.sec-btn.pending { border-style: dashed; }
.sec-btn.pending:hover { color: var(--muted); }

.lock-note {
  margin: 0 16px 10px;
  padding: 9px 12px;
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  display: flex;
  gap: 8px;
  align-items: center;
}
.lock-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* model grid */
.model-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 18px;
  overflow-y: auto;
  min-height: 0;
}
.model-card {
  position: relative;
  text-align: left;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0f17;
  transition: border-color .18s, transform .18s;
}
.model-card:active { transform: scale(0.985); }
.model-card:hover { border-color: rgba(255,255,255,0.26); }
.model-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: radial-gradient(120% 100% at 50% 40%, #151b27 0%, #070a10 75%);
}
.model-card .mc-body { padding: 9px 10px 11px; }
.mc-name { font-size: 13px; font-weight: 900; letter-spacing: -0.01em; text-transform: uppercase; }
.mc-tag { margin-top: 3px; font-size: 8px; letter-spacing: 0.16em; font-weight: 800; color: var(--dim); }
.mc-badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 8px; font-weight: 800; letter-spacing: 0.14em;
  padding: 4px 6px; border-radius: 4px;
  background: rgba(5,7,12,0.72);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--muted);
  backdrop-filter: blur(6px);
}
.mc-badge.hot { color: #0a0b0f; background: var(--lime); border-color: var(--lime); }

.garage-strip-wrap { flex: none; padding: 0 16px 18px; }
.row-head {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 9px; font-weight: 800; letter-spacing: 0.16em; color: var(--muted);
  margin-bottom: 8px;
}
.row-head .count { color: var(--dim); font-size: 8px; letter-spacing: 0.13em; }
.garage-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.garage-strip::-webkit-scrollbar { display: none; }
.garage-chip {
  flex: none; display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 10px 7px 8px; background: rgba(255,255,255,0.03);
  font-size: 9px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
}
.garage-chip i { width: 10px; height: 10px; border-radius: 50%; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,0.2) inset; }
.garage-chip span { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* build view */
.build-head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line-soft);
  flex: none;
}
.back-btn {
  font-size: 9px; font-weight: 800; letter-spacing: 0.16em;
  color: var(--muted); margin-bottom: 10px; padding: 4px 0;
}
.back-btn:hover { color: var(--text); }
.build-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.stat-row { display: flex; gap: 12px; }
.stat { text-align: right; }
.stat b { display: block; font-size: 13px; font-weight: 900; letter-spacing: -0.01em; }
.stat span { font-size: 7px; letter-spacing: 0.14em; color: var(--dim); font-weight: 800; }

.scroller {
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 auto;
  padding: 4px 16px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.14) transparent;
}
.scroller::-webkit-scrollbar { width: 4px; }
.scroller::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 4px; }

.spec { padding: 14px 0 16px; border-bottom: 1px solid var(--line-soft); }
.spec:last-child { border-bottom: 0; }

.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.14) inset;
  transition: transform .15s;
}
.swatch:active { transform: scale(0.92); }
.swatch.active {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
.swatch.custom {
  background: conic-gradient(from 0deg, #ff5a1f, #ffd23f, #b9ff3d, #33e0ff, #7b5cff, #ff3da0, #ff5a1f);
  overflow: hidden;
}
.swatch.custom input {
  position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px);
  opacity: 0; cursor: pointer; border: 0; padding: 0; background: none;
}

.finish-head { margin-top: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 9px; font-weight: 800; letter-spacing: 0.11em;
  padding: 8px 11px; border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255,255,255,0.02);
  transition: all .15s;
}
.chip:hover { color: var(--text); }
.chip.active { color: #08090d; background: var(--text); border-color: var(--text); }
.chip.livery-chip {
  flex: none; width: 96px; height: 46px; padding: 0;
  border-radius: 8px; overflow: hidden; position: relative;
  background-size: cover; background-position: center;
  border: 1px solid var(--line);
}
.chip.livery-chip span {
  position: absolute; left: 4px; bottom: 4px;
  font-size: 7px; letter-spacing: 0.1em; font-weight: 800;
  color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.85);
  background: rgba(0,0,0,0.3); padding: 2px 4px; border-radius: 3px;
}
.chip.livery-chip.active { border-color: var(--text); box-shadow: 0 0 0 2px rgba(255,255,255,0.4); }
.chip.livery-chip.none { background: repeating-linear-gradient(135deg, #151a23 0 8px, #0d1118 8px 16px); }
.livery-row { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding-bottom: 3px; }
.livery-row::-webkit-scrollbar { display: none; }

.rim-row { display: flex; gap: 8px; flex-wrap: wrap; }
.rim-swatch {
  width: 26px; height: 26px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.16) inset;
  position: relative;
}
.rim-swatch.active::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--text); }

.sliders { display: grid; gap: 13px; }
.slider-row { display: grid; gap: 6px; }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; }
.slider-top label { font-size: 9px; font-weight: 800; letter-spacing: 0.12em; color: var(--muted); }
.slider-top output { font-size: 11px; font-weight: 900; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  background: transparent;
  margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0.34), rgba(255,255,255,0.12));
}
input[type="range"]::-moz-range-track {
  height: 3px; border-radius: 3px; background: rgba(255,255,255,0.2);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--text);
  border: 3px solid #0b0f17;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.5);
  margin-top: -6px;
}
input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--text); border: 3px solid #0b0f17;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.5);
}

.chips.three .chip { flex: 1; text-align: center; }
.extras-row { display: flex; gap: 10px; align-items: stretch; margin-top: 10px; flex-wrap: wrap; }
.toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.11em;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 12px; color: var(--muted);
}
.toggle .dot { width: 8px; height: 8px; border-radius: 50%; background: #333a46; transition: background .15s, box-shadow .15s; }
.toggle[aria-pressed="true"] { color: var(--text); border-color: rgba(51,224,255,0.45); }
.toggle[aria-pressed="true"] .dot { background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.name-field {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 0 10px; flex: 1 1 150px; min-width: 0;
}
.name-field span { font-size: 7px; letter-spacing: 0.13em; font-weight: 800; color: var(--dim); flex: none; }
.name-field input {
  width: 100%; min-width: 0;
  background: none; border: 0; outline: 0;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 0;
}
.name-field input::placeholder { color: #3d4452; }

.panel-foot {
  flex: none;
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(9,12,19,0.7) 0%, rgba(9,12,19,0.98) 35%);
}
.foot-note { font-size: 9px; color: var(--dim); letter-spacing: 0.03em; margin-bottom: 8px; line-height: 1.4; }
.primary-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent);
  color: #0a0b0e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  padding: 15px 16px;
  border-radius: 10px;
  transition: transform .15s, filter .15s;
  box-shadow: 0 12px 34px rgba(255, 90, 31, 0.24);
}
.primary-btn:hover { filter: brightness(1.08); }
.primary-btn:active { transform: scale(0.99); }
.primary-btn span { font-size: 14px; }

/* ---------- city hud ---------- */

.city-hud { position: absolute; inset: 0; z-index: 25; pointer-events: none; }
.city-chip {
  position: absolute; top: calc(var(--bar-h) + 12px); left: 16px;
  display: flex; align-items: center; gap: 8px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.14em;
  color: var(--text);
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6,9,14,0.62);
  backdrop-filter: blur(10px);
}
.city-chip b { color: var(--accent-2); font-size: 10px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #ff3b4e; box-shadow: 0 0 9px #ff3b4e; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.city-panel {
  position: absolute;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "watch garage" "cams garage";
  gap: 10px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7,10,16,0.86);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.watch-block { grid-area: watch; min-width: 0; }
.watch-name { font-size: 18px; font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-sub { font-size: 9px; color: var(--dim); letter-spacing: 0.06em; margin-top: 3px; }
.cam-block { grid-area: cams; }
.cam-label { font-size: 7px; letter-spacing: 0.16em; color: var(--dim); font-weight: 800; margin-bottom: 5px; }
.cam-btns { display: flex; gap: 5px; }
.cam-btn {
  font-size: 8px; font-weight: 800; letter-spacing: 0.1em;
  padding: 7px 10px; border-radius: 6px;
  border: 1px solid var(--line); color: var(--dim);
  background: rgba(255,255,255,0.02);
}
.cam-btn.active { color: #08090d; background: var(--text); border-color: var(--text); }
.small-btn { width: auto; grid-area: garage; padding: 12px 16px; font-size: 9px; letter-spacing: 0.12em; }

.tap-hint {
  position: absolute; bottom: calc(154px + env(safe-area-inset-bottom));
  left: 0; right: 0; text-align: center;
  font-size: 8px; letter-spacing: 0.18em; font-weight: 800; color: rgba(244,246,250,0.42);
  pointer-events: none;
  transition: opacity .6s;
}

.toast {
  position: absolute;
  top: calc(var(--bar-h) + 66px);
  left: 50%;
  transform: translate(-50%, -10px);
  z-index: 60;
  background: rgba(7, 10, 16, 0.92);
  border: 1px solid rgba(51, 224, 255, 0.4);
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 10px 14px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  max-width: min(88vw, 460px);
  text-align: center;
  backdrop-filter: blur(10px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- start ---------- */

.start-screen {
  position: absolute; inset: 0;
  z-index: 100;
  display: flex; align-items: flex-end;
  padding: 0 20px calc(30px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(3,4,8,0.42) 0%, rgba(3,4,8,0.05) 30%, rgba(3,4,8,0.5) 74%, rgba(3,4,8,0.95) 100%);
  transition: opacity .6s, visibility .6s;
}
.start-screen.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.start-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 60% 35%, rgba(255,90,31,0.12) 0%, rgba(255,90,31,0) 70%),
    radial-gradient(90% 70% at 20% 80%, rgba(51,224,255,0.09) 0%, rgba(51,224,255,0) 70%);
}
.start-inner { position: relative; width: 100%; max-width: 780px; }
.start-kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 8px; letter-spacing: 0.28em; font-weight: 800; color: rgba(244,246,250,0.62);
  margin-bottom: 16px;
}
.start-kicker span { width: 26px; height: 1px; background: rgba(255,255,255,0.3); }
.start-title {
  margin: 0;
  display: flex; flex-direction: column;
  font-size: clamp(58px, 19vw, 128px);
  line-height: 0.82;
  letter-spacing: -0.055em;
  font-weight: 900;
  text-transform: uppercase;
}
.start-title span { display: block; }
.start-title .line1 { color: #f4f6fa; }
.start-title .line2 { color: var(--accent); font-style: italic; letter-spacing: -0.06em; }
.start-title .line3 {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244,246,250,0.55);
  letter-spacing: 0.02em;
  font-size: 0.72em;
  line-height: 0.94;
}
.start-copy {
  margin: 22px 0 24px;
  color: rgba(244,246,250,0.66);
  font-size: 13px;
  line-height: 1.5;
  max-width: 30ch;
}
.start-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--text); color: #08090d;
  font-size: 11px; font-weight: 900; letter-spacing: 0.14em;
  padding: 16px 22px; border-radius: 8px;
  transition: transform .15s, background .15s;
}
.start-btn:hover { background: var(--accent); }
.start-btn:active { transform: scale(0.98); }
.start-btn span { font-size: 15px; }
.start-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  margin-top: 22px;
  font-size: 8px; letter-spacing: 0.16em; font-weight: 800; color: var(--dim);
}
.start-meta span { display: flex; align-items: center; gap: 7px; }
.start-meta span::before { content: ""; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
.start-side { display: none; }

.boot-error {
  position: absolute; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(4,6,10,0.96);
  text-align: center;
}
.boot-error h2 { font-size: 20px; letter-spacing: -0.02em; margin: 0 0 8px; }
.boot-error p { color: var(--muted); font-size: 12px; line-height: 1.6; max-width: 34ch; margin: 0 auto; }

/* ---------- desktop ---------- */

@media (min-width: 900px) {
  #stageWrap { left: var(--panel-w); right: 0; top: 0; bottom: 0; }
  body.city #stageWrap { left: 0; }
  .panel {
    top: 0; bottom: 0; right: auto;
    width: var(--panel-w);
    height: auto;
    border-top: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 30px 0 80px rgba(0,0,0,0.45);
  }
  .panel-head { padding: 84px 22px 12px; }
  .section-rail { padding: 4px 22px 12px; }
  .lock-note { margin: 0 22px 12px; }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 22px 22px; }
  .garage-strip-wrap { flex: none; padding: 0 22px 22px; }
  .build-head { padding: 80px 22px 12px; }
  .scroller { padding: 4px 22px 14px; }
  .panel-foot { padding: 12px 22px 20px; }
  .panel-title { font-size: 36px; }
  .panel-title.small { font-size: 30px; }
  .city-chip { left: 24px; }
  .city-panel {
    left: 24px; right: auto; bottom: 24px;
    width: 600px;
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "watch cams garage";
    padding: 14px 16px;
  }
  .tap-hint { bottom: 112px; }
  .watch-name { font-size: 20px; }
  .start-screen {
    align-items: center; padding: 0 7vw;
    background:
      linear-gradient(90deg, rgba(3,4,8,0.94) 0%, rgba(3,4,8,0.78) 34%, rgba(3,4,8,0.26) 56%, rgba(3,4,8,0.03) 78%, rgba(3,4,8,0.48) 100%),
      linear-gradient(180deg, rgba(3,4,8,0.32) 0%, rgba(3,4,8,0) 45%, rgba(3,4,8,0.52) 100%);
  }
  .start-inner { max-width: 900px; }
  .start-title { font-size: clamp(80px, 9vw, 136px); }
  .start-copy { font-size: 15px; max-width: 36ch; }
  .start-side {
    display: flex; position: absolute; right: 4vw; top: 50%;
    transform: translateY(-50%); gap: 14px; align-items: center;
  }
  .side-line { width: 1px; height: 120px; background: linear-gradient(180deg, transparent, rgba(255,255,255,0.3), transparent); }
  .side-text {
    writing-mode: vertical-rl;
    font-size: 8px; letter-spacing: 0.3em; font-weight: 800; color: var(--dim);
  }
  .toast { top: 74px; }
}

@media (min-width: 1200px) {
  :root { --panel-w: 448px; }
  .model-grid { gap: 14px; }
}

/* short screens */
@media (max-height: 700px) and (max-width: 899px) {
  #stageWrap { bottom: 58%; }
  .panel { height: 58%; }
  .panel-head { padding: 12px 16px 6px; }
  .panel-title { font-size: 27px; }
  .panel-copy { display: none; }
  .city-panel { padding: 10px; gap: 8px 10px; }
  .watch-name { font-size: 15px; }
  .tap-hint { bottom: calc(140px + env(safe-area-inset-bottom)); }
}


@media (max-height: 560px) and (orientation: landscape) {
  #stageWrap { left: 300px; right: 0; top: 0; bottom: 0; }
  body.city #stageWrap { left: 0; }
  .panel {
    left: 0; top: 0; bottom: 0; right: auto;
    width: 300px; height: auto;
    border-radius: 0;
    border-top: 0;
    border-right: 1px solid var(--line);
    box-shadow: 24px 0 60px rgba(0,0,0,0.45);
  }
  .panel-head { padding: 58px 14px 8px; }
  .panel-title { font-size: 22px; }
  .panel-copy { display: none; }
  .section-rail { padding: 2px 14px 8px; }
  .lock-note { margin: 0 14px 8px; }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 14px 14px; }
  .model-card img { aspect-ratio: 16 / 11; }
  .mc-body { padding: 6px 8px 8px; }
  .mc-name { font-size: 11px; }
  .garage-strip-wrap { padding: 0 14px 14px; }
  .build-head { padding: 56px 14px 8px; }
  .build-title-row .stat-row { display: none; }
  .panel-title.small { font-size: 22px; }
  .scroller { padding: 0 14px 8px; }
  .panel-foot { padding: 8px 14px 10px; }
  .foot-note { display: none; }
  .primary-btn { padding: 12px; }
  .swatch { width: 24px; height: 24px; }
  .city-panel {
    left: 12px; right: 12px; bottom: 10px;
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "watch cams garage";
  }
  .tap-hint { display: none; }
  .start-screen {
    align-items: center;
    padding: 0 6vw;
    background:
      linear-gradient(90deg, rgba(3,4,8,0.94) 0%, rgba(3,4,8,0.7) 38%, rgba(3,4,8,0.1) 76%, rgba(3,4,8,0.35) 100%),
      linear-gradient(180deg, rgba(3,4,8,0.3), rgba(3,4,8,0) 45%, rgba(3,4,8,0.5));
  }
  .start-inner { max-width: 62%; }
  .start-kicker { margin-bottom: 8px; }
  .start-title { font-size: clamp(34px, 12vh, 58px); line-height: 0.84; }
  .start-copy { margin: 10px 0 12px; font-size: 11px; max-width: 26ch; }
  .start-meta { display: none; }
  .start-btn { padding: 11px 16px; font-size: 9px; }
  .start-side { display: none; }
  .toast { top: 64px; }
}
