/* ============ Road Trip Drive ============ */
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/chakra-400.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/chakra-500.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap; src: url(../assets/fonts/chakra-600.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 700; font-display: swap; src: url(../assets/fonts/chakra-700.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../assets/fonts/inter-var.woff2) format('woff2'); }

:root {
  --dashH: clamp(196px, 32vh, 286px);
  --ctrlH: 0px;
  --accent: #57c8ff;
  --accent-2: #d9f4ff;
  --accent-soft: rgba(87, 200, 255, .16);
  --ink: #04060b;
  --ink2: #090d15;
  --ink3: #111823;
  --txt: #e9f2ff;
  --dim: #8195b1;
  --line: rgba(150, 180, 220, .13);
  --green: #1ed760;
  --metal: linear-gradient(180deg, #3a4454 0%, #1b222d 42%, #0c1017 100%);
  --leather: linear-gradient(180deg, #12161f 0%, #0a0d14 46%, #05070c 100%);
  --tick: rgba(160, 190, 225, .28);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%; overflow: hidden; background: #03050a; color: var(--txt);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none; -webkit-user-select: none;
  touch-action: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
h1, h2 { margin: 0; font-weight: 400; }
em { font-style: normal; }

#app { position: fixed; inset: 0; overflow: hidden; background: #06070d; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- windshield / lens ---------- */
#worldfx { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.windsheen {
  position: absolute; inset: 0 0 34% 0;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(120, 160, 210, .10), transparent 55%),
    linear-gradient(180deg, rgba(10, 18, 30, .34) 0%, rgba(10, 18, 30, 0) 26%);
  mix-blend-mode: screen;
  opacity: .75;
}
.sunglare {
  position: absolute; right: 8%; top: 4%; width: 62%; height: 62%;
  background: radial-gradient(circle at 66% 34%, rgba(255, 214, 160, .34), rgba(255, 160, 90, .10) 26%, transparent 58%);
  mix-blend-mode: screen; opacity: .8; filter: blur(2px);
}
.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 50% 44%, transparent 42%, rgba(0, 0, 0, .38) 100%);
}
.grain {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='.55'/></svg>");
}
#lookzone { position: absolute; inset: 0 0 34% 0; z-index: 4; cursor: grab; }
#lookzone:active { cursor: grabbing; }

/* ---------- cockpit frame ---------- */
#cockpit { position: absolute; inset: 0; z-index: 5; pointer-events: none; transition: opacity .8s ease; }
body:not(.driving) #cockpit, body:not(.driving) #hud { opacity: 0; pointer-events: none; }
body:not(.driving) #touch { display: none !important; }
.roof {
  position: absolute; left: 0; right: 0; top: 0; height: 5.4vh;
  background: linear-gradient(180deg, #05070c 0%, #090d14 58%, rgba(9, 13, 20, 0) 100%);
  box-shadow: 0 1px 0 rgba(120, 150, 190, .07);
}
.roof::after {
  content: ''; position: absolute; left: 12%; right: 12%; bottom: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 180, 220, .18), transparent);
}
.pillar {
  position: absolute; top: 0; height: 72%; width: 15%;
  background: linear-gradient(90deg, #070a10 0%, #0c1119 42%, #161d28 100%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .8);
}
.pillar.pl { left: 0; clip-path: polygon(0 0, 94% 0, 22% 100%, 0 100%); }
.pillar.pr { right: 0; clip-path: polygon(6% 0, 100% 0, 100% 100%, 78% 100%); background: linear-gradient(270deg, #070a10 0%, #0c1119 42%, #161d28 100%); }
.pillar::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(120, 160, 210, .10), transparent 30%);
}
.mirror {
  position: absolute; left: 50%; top: 2.2vh; transform: translateX(-50%);
  width: min(22vw, 260px);
  border-radius: 10px;
  background: transparent;
  border: 4px solid #161e2a;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(150, 180, 220, .14);
}
.mirror::before {
  content: ''; position: absolute; left: 50%; top: -2.2vh; width: 1px; height: 2.2vh;
  background: linear-gradient(rgba(30, 38, 50, 0), #232b38);
}
.mirror-glass { position: relative; border-radius: 5px; overflow: hidden; background: transparent; aspect-ratio: 8 / 3; }
.mirror-glass canvas { width: 100%; height: 100%; display: block; opacity: .82; filter: saturate(.8) contrast(1.05); }
.mirror-hint {
  position: absolute; right: 6px; bottom: 4px; font-family: 'Chakra Petch', sans-serif;
  font-size: 7px; letter-spacing: .12em; color: rgba(150, 210, 255, .55);
}

/* ---------- dashboard ---------- */
.dash {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--dashH);
  background: linear-gradient(180deg, #3d4a66 0%, #29364d 7%, #1a2433 24%, #111826 58%, #0b0f18 100%);
  box-shadow: 0 -30px 60px rgba(0, 0, 0, .45);
}
.dash-top {
  position: absolute; left: -3%; right: -3%; top: -20px; height: 46px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(180deg, #1d2531 0%, #131a24 30%, #0a0e15 100%);
  box-shadow: inset 0 1px 0 rgba(190, 215, 245, .14);
}
.dash-top::after {
  content: ''; position: absolute; left: 3%; right: 3%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210, 232, 255, .38), transparent);
  filter: drop-shadow(0 0 6px rgba(130, 190, 255, .35));
}
.dash-wash {
  position: absolute; left: 8%; right: 8%; top: -18px; height: 90px;
  background: radial-gradient(58% 100% at 46% 100%, rgba(130, 195, 255, .26), transparent 76%);
  pointer-events: none;
}
.dash-face { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(140,180,235,.10) 0%, rgba(255,255,255,.02) 16%, rgba(0,0,0,.28) 100%); }
.dash-face::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(65deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 4px),
    radial-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: auto, auto, 3px 3px;
  opacity: .8;
}
.dash-ambient {
  position: absolute; left: 0; right: 0; top: 6px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--mode, var(--accent)), transparent);
  box-shadow: 0 0 14px 1px var(--mode-soft, var(--accent-soft));
  opacity: .9;
  transition: background .4s, box-shadow .4s;
}
.dash-trim {
  position: absolute; left: 0; right: 0; top: 16px; height: 9px;
  background: linear-gradient(180deg, rgba(190,215,245,.20), rgba(90,110,140,.10) 45%, rgba(0,0,0,.5));
  box-shadow: 0 1px 0 rgba(255,255,255,.05);
  opacity: .8;
}
.dash-trim::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140,180,225,.18) 30%, rgba(140,180,225,.18) 70%, transparent);
}
.dash-stitch {
  position: absolute; left: 0; right: 0; top: 30px; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(196, 176, 150, .22) 0 9px, transparent 9px 20px);
  opacity: .55;
}
.dash-vent {
  position: absolute; top: 34px; width: 82px; height: 20px; border-radius: 9px;
  background: repeating-linear-gradient(180deg, #05070b 0 2px, #2b3442 2px 4px);
  border: 1px solid rgba(140, 175, 215, .16);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .05);
  opacity: .95;
}
.dash-seam {
  position: absolute; left: 3%; width: 44%; top: 84px; height: 54px;
  border-bottom: 1px solid rgba(180, 205, 235, .10);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .4);
  pointer-events: none;
}
.dash-vent.left { left: 3%; }
.dash-vent.right { right: 3%; }
.console {
  position: absolute; left: 40%; width: 17%; bottom: 0; height: 27%;
  background: linear-gradient(180deg, #1a212d 0%, #0d121a 22%, #070a10 70%, #05070c 100%);
  border-radius: 14px 14px 0 0;
  box-shadow: inset 0 1px 0 rgba(180, 210, 240, .12), 0 -6px 20px rgba(0, 0, 0, .5);
  border-top: 1px solid rgba(150, 180, 220, .10);
  padding: 10px 12px 0;
  pointer-events: auto;
}
.console-lip {
  position: absolute; left: 6%; right: 6%; top: 7px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(150, 200, 245, .28), transparent);
}
.gear-select { display: flex; gap: 5px; margin-top: 10px; }
.gear-select button {
  flex: 1; height: 30px; border-radius: 6px;
  font-family: 'Chakra Petch', sans-serif; font-size: 11px; font-weight: 600;
  color: rgba(190, 215, 245, .55);
  background: linear-gradient(180deg, #1b2330, #0a0e15);
  box-shadow: inset 0 0 0 1px rgba(140, 175, 215, .12), 0 2px 3px rgba(0, 0, 0, .5);
  transition: color .15s, box-shadow .15s;
}
.gear-select button:hover { color: #fff; }
.gear-select button.on {
  color: #04121c; background: linear-gradient(180deg, #a9f0ff, var(--accent));
  box-shadow: 0 0 14px var(--accent-soft), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.console-pad {
  margin-top: 12px; height: 44px; border-radius: 8px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(120, 170, 225, .10), rgba(0, 0, 0, .25));
  box-shadow: inset 0 0 0 1px rgba(140, 175, 215, .08);
}
.door-panel {
  position: absolute; left: 0; bottom: 0; width: 13%; height: 30%;
  background: linear-gradient(100deg, #10151f 0%, #171d28 42%, #0a0e15 100%);
  border-top: 1px solid rgba(160, 190, 225, .10);
  border-radius: 0 12px 0 0;
  box-shadow: inset -8px 0 24px rgba(0, 0, 0, .55);
}
.door-sill {
  position: absolute; left: 8%; right: 10%; top: 16%; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(180, 205, 235, .28), rgba(90, 105, 130, .12));
}
.door-switch {
  position: absolute; left: 16%; top: 26%; width: 34px; height: 18px; border-radius: 7px;
  background: linear-gradient(180deg, #232b38, #0b0f16);
  box-shadow: inset 0 0 0 1px rgba(150, 180, 220, .16), 0 2px 4px rgba(0, 0, 0, .6);
}
.door-switch::after {
  content: ''; position: absolute; left: 5px; top: 4px; width: 22px; height: 4px; border-radius: 3px;
  background: rgba(190, 215, 245, .22);
}
.dash-badge {
  position: absolute; left: 15%; bottom: 11px;
  font-family: 'Chakra Petch', sans-serif; font-size: 10px; letter-spacing: .34em;
  color: rgba(180, 205, 235, .32);
}

/* ---------- cluster ---------- */
.cluster-hood {
  position: absolute; left: 28%; transform: translateX(-50%);
  bottom: calc(var(--dashH) * 0.94 - 6px);
  width: min(25vw, 340px); height: calc(var(--dashH) * 0.46 + 12px);
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(180deg, #2a3342 0%, #141a24 26%, #090d14 100%);
  box-shadow: 0 14px 26px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(210, 232, 255, .18);
  border-top: 1px solid rgba(150, 190, 230, .12);
  pointer-events: none;
}
body.touch .cluster-hood { bottom: calc(var(--dashH) * 0.94 + var(--ctrlH) * .45 - 6px); }
.cluster {
  position: absolute; left: 28%; transform: translateX(-50%);
  bottom: calc(var(--dashH) * 0.94);
  width: min(25vw, 340px); height: calc(var(--dashH) * 0.46);
  border-radius: 10px / 16px;
  background: linear-gradient(180deg, #0a121c 0%, #060b12 100%);
  border: 1px solid rgba(120, 170, 220, .14);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .55), inset 0 0 22px rgba(60, 120, 190, .10);
  padding: 7px 10px 6px;
  font-family: 'Chakra Petch', sans-serif;
  overflow: hidden;
  transition: top .3s ease;
}
body.touch .cluster { bottom: calc(var(--dashH) * 0.94 + var(--ctrlH) * .45); }
.cl-glow {
  position: absolute; left: 50%; top: -40%; width: 130%; height: 90%; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%, var(--accent-soft), transparent 70%);
  opacity: .8; pointer-events: none;
}
.cl-row { position: relative; display: flex; align-items: center; justify-content: space-between; }
.cl-row.top { font-size: 8.5px; letter-spacing: .16em; color: var(--dim); }
.cl-mode { color: var(--accent); font-weight: 600; }
.cl-hold { color: rgba(255, 255, 255, .22); font-size: 7px; }
.cl-time { font-size: 9px; color: rgba(220, 235, 250, .7); }
.cl-mid { position: relative; display: flex; align-items: flex-end; justify-content: space-between; margin-top: 1px; }
.cl-speed { display: flex; align-items: baseline; gap: 4px; }
.cl-speed span {
  font-size: calc(var(--dashH) * 0.155); line-height: .9; font-weight: 600;
  letter-spacing: -.02em; color: #fff;
  text-shadow: 0 0 18px rgba(150, 220, 255, .38);
  font-variant-numeric: tabular-nums;
}
.cl-speed em { font-size: 8px; letter-spacing: .1em; color: var(--dim); }
.cl-side { text-align: right; line-height: 1.15; }
.cl-batt span { font-size: calc(var(--dashH) * 0.075); font-weight: 600; color: var(--accent-2); }
.cl-batt em { font-size: 8px; color: var(--dim); margin-left: 1px; }
.cl-range { font-size: 8px; color: var(--dim); letter-spacing: .04em; }
.cl-bar {
  position: relative; height: 4px; margin-top: 4px; border-radius: 3px;
  background: rgba(120, 160, 210, .12); overflow: hidden;
}
.cl-bar-fill {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, var(--accent), #9ef0ff);
  box-shadow: 0 0 10px var(--accent);
  transition: width .08s linear;
}
.cl-bar-pin { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: rgba(255, 255, 255, .3); }
.cl-row.bot { margin-top: 5px; font-size: 8px; color: var(--dim); }
.cl-gear {
  width: 17px; height: 17px; display: grid; place-items: center; border-radius: 3px;
  background: var(--accent-soft); color: var(--accent-2); font-weight: 700; font-size: 10px;
  border: 1px solid rgba(120, 200, 255, .22);
}
.cl-odo { letter-spacing: .06em; }
.cl-lights .lamp {
  display: block; width: 12px; height: 8px; border-radius: 50% 50% 20% 20%;
  background: #2a3a4c; border: 1px solid #3d5064;
}
.cl-lights .lamp.on { background: #7fe6b8; box-shadow: 0 0 10px #4ee39c; border-color: #4ee39c; }

/* ---------- steering wheel ---------- */
.steering {
  position: absolute; left: 28%; transform: translateX(-50%);
  bottom: calc(var(--dashH) * -0.22);
  width: calc(var(--dashH) * 1.28); max-width: 42vh; aspect-ratio: 1;
  pointer-events: auto; z-index: 3;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6));
}
body.touch .steering { bottom: calc(var(--dashH) * -0.22 + var(--ctrlH) * .45); }
.wheel-rotor { position: absolute; inset: 0; transform-origin: 50% 50%; transition: transform .06s linear; }
.wheel-svg { width: 100%; height: 100%; display: block; }
.wheel-brand {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: calc(var(--dashH) * 0.052);
  letter-spacing: .04em; color: rgba(210, 228, 248, .62); pointer-events: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .8);
}
.wpods { position: absolute; inset: 0; }
.wpod {
  position: absolute; top: 41%; width: 27%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.wpod.left { left: 5%; }
.wpod.right { right: 5%; }
.wbtn {
  aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #2b3442, #121722 62%, #070a10);
  border: 1px solid rgba(160, 190, 225, .14);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .10);
  color: #a8bed6; display: grid; place-items: center;
  transition: transform .08s ease, color .12s, box-shadow .12s;
}
.wbtn svg { width: 56%; height: 56%; }
.wbtn:hover { color: #eaf6ff; box-shadow: 0 2px 8px rgba(0, 0, 0, .6), 0 0 0 1px rgba(120, 200, 255, .28); }
.wbtn:active, .wbtn.flash {
  transform: scale(.9); color: var(--accent-2);
  box-shadow: 0 0 14px var(--accent-soft), inset 0 1px 4px rgba(0, 0, 0, .6);
}
.horn {
  position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  display: grid; place-items: center;
}
.horn:active { background: radial-gradient(circle, rgba(120, 200, 255, .16), transparent 70%); }
.wheel-hint {
  position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%);
  font-family: 'Chakra Petch', sans-serif; font-size: 8px; letter-spacing: .22em;
  color: rgba(160, 190, 225, .35); white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .3s;
}
body.touch .wheel-hint { opacity: 1; }

/* ---------- centre screen ---------- */
.screen {
  position: absolute; left: 57%; width: min(39vw, 560px);
  bottom: calc(var(--dashH) * 0.24);
  height: calc(var(--dashH) * 1.02);
  pointer-events: auto; z-index: 4;
}
body.touch .screen { bottom: calc(var(--dashH) * 0.24 + var(--ctrlH) * .8); }
body.touch .hvac { display: none; }
.screen-bezel {
  position: absolute; inset: 0; padding: 5px; border-radius: 12px;
  background: linear-gradient(180deg, #222a36, #080b11 40%, #04060a);
  border: 1px solid rgba(150, 180, 220, .18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(255, 255, 255, .10);
}
.screen-glass {
  position: absolute; inset: 5px; border-radius: 8px; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #0c1522 0%, #060a11 55%, #04070c 100%);
  display: flex; flex-direction: column;
  border: 1px solid rgba(0, 0, 0, .8);
}
.screen-glass::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(180, 210, 255, .055) 0%, transparent 38%, transparent 70%, rgba(180, 210, 255, .035) 100%);
}
.scr-head {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px 5px;
  border-bottom: 1px solid var(--line); flex: none;
}
.scr-title {
  font-family: 'Chakra Petch', sans-serif; font-size: 9px; letter-spacing: .26em;
  color: var(--dim); min-width: 46px;
}
.scr-tabs { display: flex; gap: 2px; flex: 1; }
.scr-tabs button {
  width: 26px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  color: rgba(150, 175, 205, .55);
}
.scr-tabs button svg { width: 15px; height: 15px; }
.scr-tabs button:hover { color: #dcefff; background: rgba(120, 180, 235, .08); }
.scr-tabs button.on { color: var(--accent-2); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(120, 200, 255, .22); }
.scr-clock { font-family: 'Chakra Petch', sans-serif; font-size: 10px; color: rgba(220, 235, 250, .6); letter-spacing: .06em; }
.scr-body { position: relative; flex: 1; min-height: 0; }
.view { position: absolute; inset: 0; padding: 8px 10px 4px; display: none; }
.view.on { display: flex; }
.call-chip {
  display: none; align-items: center; gap: 5px; padding: 2px 5px 2px 6px; border-radius: 10px;
  background: linear-gradient(120deg, rgba(18, 44, 32, .95), rgba(8, 20, 14, .95));
  border: 1px solid rgba(60, 230, 150, .45); color: #c8ffe4;
  font-family: 'Chakra Petch', sans-serif; font-size: 7.5px; letter-spacing: .04em;
  box-shadow: 0 0 14px rgba(30, 215, 96, .22);
}
.call-chip.on { display: flex; }
.call-chip i {
  width: 5px; height: 5px; border-radius: 50%; background: #35e08a;
  box-shadow: 0 0 7px #35e08a; animation: callpulse 1.2s infinite;
}
@keyframes callpulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.call-x {
  display: grid; place-items: center; width: 12px; height: 12px; border-radius: 50%;
  background: #d8324a; color: #fff; font-size: 7px; font-weight: 700; line-height: 1;
}
.scr-foot {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 3px 10px 5px; font-family: 'Chakra Petch', sans-serif;
  font-size: 7px; letter-spacing: .18em; color: rgba(140, 170, 205, .5);
  border-top: 1px solid rgba(150, 180, 220, .07);
}
.scr-vol { display: flex; align-items: center; gap: 4px; width: 90px; }
.scr-vol svg { width: 12px; height: 12px; }
.scr-vol i { flex: 1; height: 3px; border-radius: 2px; background: rgba(140, 175, 215, .16); position: relative; overflow: hidden; }
.scr-vol i::after { content: ''; position: absolute; inset: 0; width: var(--vol, 70%); background: var(--accent); }

.screen-glow {
  position: absolute; left: 55%; width: 44%; bottom: calc(var(--dashH) * 0.02);
  height: 26%; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, var(--accent-soft), transparent 72%);
  opacity: .5; filter: blur(6px);
}
/* ---------- media / radio ---------- */
.view[data-view="media"] { flex-direction: column; padding-top: 6px; }
.media-tabs { display: flex; align-items: center; gap: 6px; flex: none; margin-bottom: 4px; }
.mtab {
  font-family: 'Chakra Petch', sans-serif; font-size: 8px; letter-spacing: .18em;
  color: rgba(150, 175, 205, .6); padding: 3px 8px; border-radius: 5px;
  display: flex; align-items: center; gap: 4px;
}
.mtab.on { color: #eaf6ff; background: rgba(140, 190, 240, .10); box-shadow: inset 0 0 0 1px rgba(140, 190, 240, .16); }
.sp-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 6px rgba(30, 215, 96, .8);
}
.media-badge {
  margin-left: auto; font-family: 'Chakra Petch', sans-serif; font-size: 7px;
  letter-spacing: .16em; color: var(--am); opacity: .8;
}
.radio-pane, .spotify-pane { flex: 1; min-height: 0; display: none; flex-direction: column; position: relative; }
.retro-sun {
  position: absolute; left: 1%; bottom: -34%; width: 42%; aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff0c4 0%, #ffb257 30%, #ff5f8f 62%, #7b4bd8 100%);
  opacity: .3;
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 2px, transparent 2px 5px);
  mask-image: repeating-linear-gradient(180deg, #000 0 2px, transparent 2px 5px);
  pointer-events: none;
}
.radio-pane::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px);
  opacity: .3;
}
.radio-top, .dial, .radio-foot { position: relative; z-index: 1; }
.radio-pane.on, .spotify-pane.on { display: flex; }
.radio-top { display: flex; align-items: flex-start; gap: 10px; flex: none; }
.freq-block { display: flex; align-items: baseline; gap: 3px; }
.freq {
  font-family: 'Chakra Petch', sans-serif; font-size: calc(var(--dashH) * 0.115);
  font-weight: 700; line-height: 1; letter-spacing: -.02em;
  background: linear-gradient(180deg, #ffffff 0%, #d8f2ff 42%, #7fd8ff 58%, #2e86b8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px rgba(110, 205, 255, .55));
  font-variant-numeric: tabular-nums; min-width: 3.6em;
}
.unit { font-family: 'Chakra Petch', sans-serif; font-size: 9px; color: var(--dim); letter-spacing: .08em; }
.rds { flex: 1; min-width: 0; padding-top: 2px; }
.rds-name {
  font-family: 'Chakra Petch', sans-serif; font-size: 11px; letter-spacing: .12em;
  color: var(--accent-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rds-tag {
  font-size: 8px; color: var(--dim); letter-spacing: .02em; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.signal { display: flex; align-items: flex-end; gap: 2px; height: 16px; padding-top: 4px; }
.signal i { width: 3px; border-radius: 1px; background: rgba(140, 175, 215, .22); }
.signal i:nth-child(1) { height: 20%; } .signal i:nth-child(2) { height: 38%; }
.signal i:nth-child(3) { height: 56%; } .signal i:nth-child(4) { height: 78%; }
.signal i:nth-child(5) { height: 100%; }
.signal i.on { background: var(--accent); box-shadow: 0 0 6px var(--accent-soft); }
.dial { flex: none; margin-top: 6px; }
.dial-track {
  position: relative; height: 26px; border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(120, 180, 235, .05), rgba(0, 0, 0, .35)),
    linear-gradient(180deg, rgba(160, 195, 235, .34) 0 1px, transparent 1px);
  background-size: 100% 100%, calc(100% / 96) 7px;
  background-repeat: no-repeat, repeat-x;
  background-position: 0 0, 0 100%;
  box-shadow: inset 0 0 0 1px rgba(140, 175, 215, .10);
  cursor: pointer; touch-action: none;
}
.dial-stations { position: absolute; inset: 0; }
.dial-stations i {
  position: absolute; bottom: 3px; width: 6px; height: 6px; border-radius: 1px;
  background: rgba(170, 200, 235, .5); transform: translateX(-50%) rotate(45deg);
}
.dial-stations i.on { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.dial-needle {
  position: absolute; top: -4px; bottom: -4px; width: 2px; left: 4%;
  background: linear-gradient(180deg, #fff, var(--accent));
  box-shadow: 0 0 12px var(--accent), 0 0 3px #fff; transform: translateX(-50%);
  pointer-events: none;
}
.dial-needle span {
  position: absolute; left: 50%; top: -8px; transform: translateX(-50%);
  width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-top: 8px solid #fff; filter: drop-shadow(0 0 6px var(--accent));
}
.dial-scale {
  display: flex; justify-content: space-between; font-family: 'Chakra Petch', sans-serif;
  font-size: 7px; color: rgba(140, 170, 205, .45); margin-top: 2px; letter-spacing: .08em;
}
.radio-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 5px; }
.presets { display: flex; gap: 3px; flex: 1; }
.presets button {
  flex: 1; height: 22px; border-radius: 3px; font-family: 'Chakra Petch', sans-serif;
  font-size: 9px; color: rgba(200, 220, 245, .72);
  background: linear-gradient(180deg, rgba(70, 92, 120, .35), rgba(12, 18, 28, .6));
  box-shadow: inset 0 0 0 1px rgba(150, 190, 230, .16), 0 1px 0 rgba(255, 255, 255, .06);
  transition: background .15s, color .15s;
}
.presets button:hover { color: #fff; background: rgba(120, 200, 255, .14); }
.presets button.on { color: var(--accent-2); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(120, 200, 255, .3); }
.tune-btns { display: flex; gap: 3px; }
.mini {
  height: 22px; min-width: 24px; padding: 0 6px; border-radius: 4px;
  display: grid; place-items: center;
  color: rgba(190, 215, 245, .7); background: rgba(120, 160, 210, .07);
  box-shadow: inset 0 0 0 1px rgba(140, 175, 215, .10);
}
.mini svg { width: 12px; height: 12px; }
.mini:hover { color: #fff; background: rgba(120, 200, 255, .14); }
.band-btn { font-family: 'Chakra Petch', sans-serif; font-size: 9px; letter-spacing: .1em; color: var(--am); min-width: 30px; }
.mini.wide { width: 100%; margin-top: 4px; font-family: 'Chakra Petch', sans-serif; font-size: 8px; letter-spacing: .16em; }

/* ---------- spotify ---------- */
.spotify-pane { gap: 4px; }
.sp-now { display: flex; gap: 9px; flex: none; }
.cover {
  position: relative; width: calc(var(--dashH) * 0.27); aspect-ratio: 1; border-radius: 4px;
  background: linear-gradient(135deg, hsl(var(--hue, 292), 70%, 42%), hsl(calc(var(--hue, 292) + 40), 80%, 20%));
  box-shadow: 0 6px 16px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .12);
  overflow: hidden; flex: none;
}
.cover-ring {
  position: absolute; inset: 16%; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .16) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}
.cover-letter {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: 'Chakra Petch', sans-serif; font-size: calc(var(--dashH) * 0.12);
  font-weight: 700; color: rgba(255, 255, 255, .9); text-shadow: 0 4px 12px rgba(0, 0, 0, .5);
}
.sp-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.sp-pill { display: flex; align-items: center; gap: 4px; font-family: 'Chakra Petch', sans-serif; font-size: 7px; letter-spacing: .14em; color: rgba(200, 220, 240, .6); }
.sp-pill b { font-weight: 500; color: #0a1a0e; background: var(--green); padding: 1px 4px; border-radius: 2px; font-size: 6px; letter-spacing: .1em; }
.sp-logo { display: flex; align-items: flex-end; gap: 1px; height: 8px; }
.sp-logo i { width: 1.6px; background: var(--green); border-radius: 1px; }
.sp-logo i:nth-child(1) { height: 5px; } .sp-logo i:nth-child(2) { height: 8px; } .sp-logo i:nth-child(3) { height: 6px; }
.sp-track { font-family: 'Chakra Petch', sans-serif; font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-artist { font-size: 9px; color: rgba(210, 228, 245, .8); }
.sp-album { font-size: 7px; color: var(--dim); }
.sp-progress { display: flex; align-items: center; gap: 6px; font-family: 'Chakra Petch', sans-serif; font-size: 7px; color: var(--dim); flex: none; }
.sp-progress span { width: 24px; }
.sp-progress span:last-child { text-align: right; }
.sp-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(140, 175, 215, .16); overflow: hidden; }
.sp-fill { height: 100%; width: 0%; background: var(--green); box-shadow: 0 0 8px rgba(30, 215, 96, .5); }
.sp-controls { display: flex; align-items: center; justify-content: center; gap: 10px; flex: none; }
.sp-btn { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: rgba(200, 225, 250, .7); }
.sp-btn svg { width: 13px; height: 13px; }
.sp-btn:hover { color: #fff; }
.sp-btn.play { width: 32px; height: 32px; background: #fff; color: #05100a; box-shadow: 0 0 18px rgba(255, 255, 255, .18); }
.sp-btn.play svg { width: 14px; height: 14px; }
.sp-btn.like { font-size: 13px; color: rgba(200, 225, 250, .4); }
.sp-btn.like.on { color: var(--green); }
.sp-btn.eq { display: flex; align-items: flex-end; gap: 1.5px; height: 12px; width: 14px; }
.sp-btn.eq i { width: 2px; background: var(--green); border-radius: 1px; height: 30%; animation: eq 1.1s infinite ease-in-out; }
.sp-btn.eq i:nth-child(2) { animation-delay: .2s; } .sp-btn.eq i:nth-child(3) { animation-delay: .45s; } .sp-btn.eq i:nth-child(4) { animation-delay: .1s; }
.sp-btn.eq.paused i { animation-play-state: paused; height: 25%; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.sp-list { flex: 1; min-height: 0; overflow-y: auto; margin-top: 2px; scrollbar-width: none; }
.sp-list::-webkit-scrollbar { display: none; }
.sp-row {
  display: flex; align-items: center; gap: 6px; padding: 2px 4px; border-radius: 3px;
  font-size: 8px; color: rgba(205, 222, 240, .72); width: 100%; text-align: left;
}
.sp-row:hover { background: rgba(120, 170, 230, .08); }
.sp-row.on { background: rgba(30, 215, 96, .10); color: #eafff2; }
.sp-row .n { width: 10px; color: rgba(150, 175, 205, .45); font-family: 'Chakra Petch', sans-serif; }
.sp-row .a { margin-left: auto; color: rgba(150, 175, 205, .5); font-size: 7px; }

/* ---------- climate ---------- */
.view[data-view="climate"] { gap: 10px; }
.clim-left { width: 38%; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.clim-label { font-family: 'Chakra Petch', sans-serif; font-size: 7px; letter-spacing: .22em; color: rgba(150, 175, 205, .55); }
.clim-temp { display: flex; align-items: center; gap: 6px; }
.clim-num { display: flex; align-items: baseline; }
.clim-num span {
  font-family: 'Chakra Petch', sans-serif; font-size: calc(var(--dashH) * 0.16); font-weight: 600;
  color: #fff; line-height: 1; letter-spacing: -.02em;
  text-shadow: 0 0 24px rgba(120, 200, 255, .35);
}
.clim-num em { font-size: 10px; color: var(--dim); margin-left: 2px; }
.round {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 16px; color: rgba(210, 232, 250, .85); line-height: 1;
  background: radial-gradient(circle at 35% 30%, #232c3a, #0d121a);
  box-shadow: inset 0 0 0 1px rgba(150, 180, 220, .16), 0 3px 8px rgba(0, 0, 0, .5);
}
.round:active { transform: translateY(1px); color: var(--accent-2); }
.clim-mode { font-family: 'Chakra Petch', sans-serif; font-size: 8px; color: var(--accent); letter-spacing: .12em; }
.clim-right { flex: 1; }
.clim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; height: 100%; }
.tile {
  border-radius: 5px; background: rgba(120, 160, 210, .06); padding: 4px 6px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  box-shadow: inset 0 0 0 1px rgba(140, 175, 215, .10);
  transition: background .15s;
}
.tile:hover { background: rgba(120, 190, 255, .1); }
.tile.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(120, 200, 255, .32); }
.tile .tl { font-family: 'Chakra Petch', sans-serif; font-size: 6.5px; letter-spacing: .1em; color: rgba(160, 185, 215, .7); }
.tile .tv { font-family: 'Chakra Petch', sans-serif; font-size: 12px; font-weight: 600; color: rgba(220, 238, 255, .85); }
.tile.on .tv { color: var(--accent-2); }
.clim-air { position: relative; height: 26px; margin-top: 4px; pointer-events: none; opacity: .55; width: 92%; }
.air-stream { display: flex; align-items: flex-end; gap: 5px; height: 100%; }
.air-stream i {
  flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, transparent, var(--accent));
  opacity: .35; height: var(--h, 20%); animation: air 2.4s infinite ease-in-out;
}
.air-stream i:nth-child(2) { animation-delay: .3s; } .air-stream i:nth-child(3) { animation-delay: .6s; }
.air-stream i:nth-child(4) { animation-delay: .9s; } .air-stream i:nth-child(5) { animation-delay: 1.2s; }
.air-stream i:nth-child(6) { animation-delay: 1.5s; }
@keyframes air { 0%, 100% { height: 14%; opacity: .15; } 50% { height: 92%; opacity: .6; } }
.clim-air .air-caption { position: absolute; right: 0; bottom: -2px; font-family: 'Chakra Petch', sans-serif; font-size: 6px; letter-spacing: .16em; color: rgba(150, 175, 205, .4); }

/* ---------- vehicle ---------- */
.view[data-view="vehicle"] { gap: 10px; }
.veh-left { width: 55%; display: flex; flex-direction: column; gap: 4px; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; flex: 1; }
.mode-card {
  border-radius: 5px; padding: 4px 6px; text-align: left;
  background: rgba(120, 160, 210, .06); box-shadow: inset 0 0 0 1px rgba(140, 175, 215, .10);
  display: flex; flex-direction: column; justify-content: center;
}
.mode-card b { font-family: 'Chakra Petch', sans-serif; font-size: 9px; letter-spacing: .08em; color: rgba(220, 238, 255, .85); }
.mode-card span { font-size: 6.5px; color: var(--dim); line-height: 1.2; }
.mode-card.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(120, 200, 255, .34); }
.mode-card.on b { color: var(--accent-2); }
.veh-note { font-size: 7px; color: var(--dim); }
.veh-right { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.row-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 3px 6px; border-radius: 4px; background: rgba(120, 160, 210, .05);
  font-size: 7.5px; color: rgba(210, 228, 246, .8); text-align: left;
}
.row-toggle i {
  width: 20px; height: 11px; border-radius: 6px; background: rgba(140, 175, 215, .22);
  position: relative; flex: none; transition: background .18s;
}
.row-toggle i::after {
  content: ''; position: absolute; left: 1.5px; top: 1.5px; width: 8px; height: 8px;
  border-radius: 50%; background: #a9bdd4; transition: transform .18s, background .18s;
}
.row-toggle i.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(120, 200, 255, .4); }
.row-toggle i.on::after { transform: translateX(9px); background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.veh-specs {
  margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px;
  font-family: 'Chakra Petch', sans-serif; font-size: 6.5px; color: rgba(150, 175, 205, .6);
}
.veh-specs b { color: rgba(210, 232, 250, .85); font-weight: 500; }

/* ---------- nav ---------- */
.view[data-view="nav"] { gap: 8px; }
.nav-map { position: relative; flex: 1; border-radius: 5px; overflow: hidden; background: #070c13; box-shadow: inset 0 0 0 1px rgba(140, 175, 215, .12); }
.nav-map canvas { width: 100%; height: 100%; display: block; }
.nav-compass {
  position: absolute; right: 5px; top: 4px; font-family: 'Chakra Petch', sans-serif;
  font-size: 7px; color: rgba(150, 200, 240, .6); letter-spacing: .1em;
}
.nav-side { width: 34%; display: flex; flex-direction: column; gap: 2px; }
.nav-dest { font-family: 'Chakra Petch', sans-serif; font-size: 9px; letter-spacing: .1em; color: var(--accent-2); }
.nav-sub { font-size: 7px; color: var(--dim); }
.nav-eta { display: flex; align-items: baseline; gap: 3px; margin-top: 4px; }
.nav-eta span { font-family: 'Chakra Petch', sans-serif; font-size: calc(var(--dashH) * 0.13); font-weight: 600; color: #fff; line-height: 1; }
.nav-eta em { font-size: 8px; color: var(--dim); }
.nav-time { font-family: 'Chakra Petch', sans-serif; font-size: 7px; color: var(--accent); letter-spacing: .1em; }
.nav-next { display: flex; gap: 4px; align-items: flex-start; font-size: 7px; color: rgba(200, 220, 240, .7); margin-top: 4px; }
.nav-next i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 2px; flex: none; box-shadow: 0 0 6px var(--accent); }

/* ---------- phone ---------- */
.view[data-view="phone"] { gap: 10px; }
.ph-left { flex: 1.15; display: flex; flex-direction: column; gap: 6px; }
.ph-status { display: flex; align-items: center; gap: 5px; font-size: 7.5px; color: var(--dim); }
.bt-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.ph-contact { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: calc(var(--dashH) * 0.16); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; font-family: 'Chakra Petch', sans-serif; font-size: 16px;
  background: linear-gradient(135deg, #2a3a4c, #0d1622); color: var(--accent-2);
  box-shadow: inset 0 0 0 1px rgba(150, 180, 220, .2);
}
.ph-name { font-family: 'Chakra Petch', sans-serif; font-size: 12px; color: #fff; }
.ph-num { font-size: 8px; color: var(--dim); }
.ph-actions { display: flex; gap: 8px; align-items: center; }
.sp-btn.call { width: 34px; height: 34px; background: var(--green); color: #04120a; box-shadow: 0 0 18px rgba(30, 215, 96, .3); }
.sp-btn.call svg { width: 16px; height: 16px; }
.sp-btn.mute { width: auto; padding: 0 8px; height: 24px; border-radius: 4px; font-size: 7px; letter-spacing: .1em; background: rgba(120, 160, 210, .1); }
.ph-note { font-size: 7px; color: rgba(150, 175, 205, .55); line-height: 1.3; }
.ph-right { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ph-row {
  display: flex; justify-content: space-between; gap: 6px; font-size: 8px;
  padding: 4px 5px; border-radius: 4px; background: rgba(120, 160, 210, .05);
  color: rgba(210, 228, 246, .8); text-align: left;
}
.ph-row b { font-weight: 500; font-family: 'Chakra Petch', sans-serif; }
.ph-row span { color: var(--dim); font-size: 7px; }

/* ---------- hvac strip ---------- */
.hvac {
  position: absolute; left: 57%; right: auto; width: min(39vw, 560px); bottom: calc(var(--dashH) * 0.03);
  height: 28px; display: flex; align-items: center; gap: 4px;
  padding: 0 6px; border-radius: 6px;
  background: linear-gradient(180deg, #0d1219, #070a0f);
  box-shadow: inset 0 0 0 1px rgba(140, 175, 215, .12), 0 6px 14px rgba(0, 0, 0, .5);
  pointer-events: auto;
  font-family: 'Chakra Petch', sans-serif;
  z-index: 5;
}
body.touch .hvac { bottom: calc(var(--dashH) * 0.03 + var(--ctrlH) * .8); }
.hvac-temp { display: flex; align-items: baseline; gap: 1px; min-width: 46px; justify-content: center; }
.hvac-temp span { font-size: 14px; font-weight: 600; color: #fff; }
.hvac-temp em { font-size: 7px; color: var(--dim); }
.hvac-btn {
  width: 22px; height: 22px; border-radius: 4px; display: grid; place-items: center;
  color: rgba(200, 225, 250, .8); font-size: 13px;
  background: rgba(120, 160, 210, .07);
  box-shadow: inset 0 0 0 1px rgba(140, 175, 215, .10);
}
.hvac-btn:hover { background: rgba(120, 190, 255, .14); color: #fff; }
.hvac-btn.small { font-size: 7px; letter-spacing: .06em; display: flex; gap: 2px; align-items: center; }
.hvac-btn.small svg { width: 12px; height: 12px; }
.hvac-btn.small b { font-size: 7px; font-weight: 500; }
.hvac-btn.on { background: var(--accent-soft); color: var(--accent-2); box-shadow: inset 0 0 0 1px rgba(120, 200, 255, .3); }
.hvac-div { flex: 1; height: 1px; background: rgba(140, 175, 215, .10); margin: 0 2px; }
.horn-mini { color: rgba(255, 190, 150, .8); }

/* ---------- hud ---------- */
#hud {
  position: absolute; left: 0; right: 0; top: 0; z-index: 8;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
  padding: 8px 10px; pointer-events: none;
}
.hud-left, .hud-right, .hud-mid { display: flex; gap: 6px; align-items: center; pointer-events: auto; }
.hud-mid { flex: none; }
.live-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 7px var(--accent); flex: none;
}
.hud-mid .chip b { font-family: 'Chakra Petch', sans-serif; font-size: 11px; font-weight: 600; }
.hud-mid .chip .chip-k { font-size: 7px; }
.ac-chip { padding: 3px 4px; gap: 3px; }
.ac-chip .ac-open { display: flex; align-items: center; gap: 5px; padding: 0 2px; }
.ac-step {
  width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center;
  font-size: 12px; line-height: 1; color: rgba(210, 232, 250, .85);
  background: rgba(120, 160, 210, .12); box-shadow: inset 0 0 0 1px rgba(140, 175, 215, .14);
}
.ac-step:active { background: var(--accent-soft); color: var(--accent-2); }
.chip {
  display: flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 20px;
  background: rgba(8, 12, 19, .66); border: 1px solid rgba(140, 180, 225, .14);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  backdrop-filter: blur(6px);
  font-size: 9px; color: rgba(220, 236, 252, .86);
}
.chip-k { font-family: 'Chakra Petch', sans-serif; font-size: 7px; letter-spacing: .18em; color: var(--accent); }
.chip b { font-weight: 500; }
.chip-d { font-family: 'Chakra Petch', sans-serif; font-size: 9px; color: rgba(160, 190, 220, .8); padding-left: 6px; border-left: 1px solid rgba(140, 175, 215, .18); }
.hud-btn {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(8, 12, 19, .66); border: 1px solid rgba(140, 180, 225, .14);
  color: rgba(220, 236, 252, .8); backdrop-filter: blur(6px);
}
.hud-btn svg { width: 14px; height: 14px; }
.hud-btn:hover { color: #fff; border-color: rgba(140, 200, 255, .35); }
.hud-btn.off { color: rgba(150, 170, 195, .35); }

/* ---------- touch controls ---------- */
#touch { position: absolute; inset: auto 0 0 0; height: var(--ctrlH); z-index: 9; display: none; }
body.touch { --ctrlH: clamp(56px, 8.6vh, 76px); }
body.touch .dash-badge { display: none; }
body.touch #touch { display: block; }
#touch .tsteer { position: absolute; left: 2%; bottom: 6px; display: flex; gap: 8px; }
#touch .tpedals { position: absolute; right: 2%; bottom: 6px; display: flex; gap: 8px; }
.tbtn {
  width: clamp(52px, 7.4vh, 76px); height: clamp(52px, 7.4vh, 76px); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(40, 52, 68, .9), rgba(8, 12, 19, .92));
  border: 1px solid rgba(150, 190, 235, .22);
  color: rgba(220, 240, 255, .85); display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
  font-family: 'Chakra Petch', sans-serif; font-size: 8px; letter-spacing: .1em;
}
.tbtn:active, .tbtn.held { background: radial-gradient(circle at 35% 30%, rgba(70, 120, 160, .9), rgba(10, 18, 28, .95)); box-shadow: 0 0 18px var(--accent-soft); }
.tbtn .arw { width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.tbtn .arw.l { border-right: 13px solid rgba(220, 240, 255, .85); }
.tbtn .arw.r { border-left: 13px solid rgba(220, 240, 255, .85); }
.tbtn.gas { border-color: rgba(120, 255, 210, .3); }
.tbtn.brake { border-color: rgba(255, 140, 120, .3); }

/* ---------- start screen ---------- */
#start {
  position: absolute; inset: 0; z-index: 20; display: none; touch-action: pan-y;
  align-items: flex-start; justify-content: center;
  padding: 3.2vh 3.5vw;
  background:
    linear-gradient(90deg, rgba(3, 6, 11, .95) 0%, rgba(3, 6, 11, .86) 30%, rgba(3, 6, 11, .44) 52%, rgba(3, 6, 11, .30) 100%),
    linear-gradient(180deg, rgba(3, 6, 11, .55) 0%, rgba(3, 6, 11, .1) 42%, rgba(3, 6, 11, .75) 100%);
  overflow: auto;
}
#start.on { display: flex; }
#start { transition: opacity .55s ease; }
#start.off { opacity: 0; pointer-events: none; }
.start-wrap { width: min(1180px, 96vw); position: relative; display: flex; flex-direction: column; min-height: 0; margin: auto 0; }
.start-head { display: flex; align-items: center; gap: 16px; margin-bottom: 2.4vh; }
.st-mark {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .02em;
  color: #04121c; background: linear-gradient(140deg, #9fe8ff, var(--accent) 40%, #2a7fa8);
  box-shadow: 0 0 26px var(--accent-soft), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.start-head h1 {
  font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: clamp(26px, 4.2vw, 52px);
  letter-spacing: .06em; line-height: 1; color: #fff;
  text-shadow: 0 4px 30px rgba(80, 180, 255, .35);
}
.start-head h1 i { color: var(--accent); font-style: normal; }
.start-head p { margin: 4px 0 0; font-size: 11px; color: var(--dim); letter-spacing: .04em; }
.start-body { display: flex; flex-direction: column; gap: 10px; max-width: 552px; }
.pick { width: 100%; }
.pick-label { font-family: 'Chakra Petch', sans-serif; font-size: 8px; letter-spacing: .26em; color: rgba(150, 180, 215, .6); margin: 10px 0 6px; }
.cars { display: flex; gap: 10px; }
.car-card {
  flex: 1; text-align: left; padding: 11px 12px 9px; border-radius: 10px;
  background: linear-gradient(160deg, rgba(24, 32, 44, .78), rgba(8, 12, 19, .86));
  border: 1px solid rgba(140, 175, 215, .14);
  color: var(--txt); position: relative; overflow: hidden;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.car-card:hover { transform: translateY(-2px); border-color: rgba(130, 200, 255, .35); }
.car-card.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 30px rgba(0, 0, 0, .5); }
.car-badge { font-family: 'Chakra Petch', sans-serif; font-size: 7px; letter-spacing: .22em; color: var(--accent); }
.car-name { display: block; font-family: 'Chakra Petch', sans-serif; font-size: 18px; font-weight: 600; color: #fff; margin-top: 1px; }
.car-spec { display: block; font-size: 8px; color: var(--dim); margin-top: 2px; }
.car-sil { display: block; width: 100%; height: auto; margin: 6px 0 2px; }
.car-sil path { fill: rgba(210, 232, 250, .16); stroke: rgba(190, 225, 255, .55); stroke-width: 1.2; }
.car-sil .win { fill: rgba(10, 16, 24, .8); stroke: rgba(190, 225, 255, .18); }
.car-sil circle { fill: rgba(8, 12, 18, .9); stroke: rgba(190, 225, 255, .35); }
.car-card.on .car-sil path { fill: var(--accent-soft); stroke: var(--accent); }
.dests { display: flex; gap: 6px; }
.dest-btn {
  flex: 1; padding: 7px 9px; border-radius: 8px; text-align: left; font-size: 10px;
  background: rgba(10, 15, 23, .8); border: 1px solid rgba(140, 175, 215, .13); color: var(--txt);
}
.dest-btn b { display: block; font-family: 'Chakra Petch', sans-serif; font-size: 8px; color: var(--dim); margin-top: 2px; }
.dest-btn.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.start-cta { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.start-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 18px; border-radius: 10px;
  background: linear-gradient(120deg, #9fe8ff, var(--accent) 46%, #2f8dbb);
  color: #04121c; font-family: 'Chakra Petch', sans-serif; font-weight: 700;
  font-size: 15px; letter-spacing: .1em;
  box-shadow: 0 10px 34px rgba(60, 170, 230, .28), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .12s, box-shadow .2s;
}
.start-btn small { font-size: 8px; letter-spacing: .18em; opacity: .6; }
.start-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 40px rgba(60, 170, 230, .4); }
.start-btn:active { transform: translateY(1px); }
.start-keys { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 8px; color: var(--dim); }
.start-keys b { color: rgba(210, 235, 255, .85); font-family: 'Chakra Petch', sans-serif; font-weight: 500; }
.start-note { font-size: 8px; color: rgba(150, 175, 205, .5); }

/* ---------- overlays ---------- */
#pause, #help { position: absolute; inset: 0; z-index: 22; display: none; align-items: center; justify-content: center; background: rgba(3, 6, 11, .72); backdrop-filter: blur(4px); }
#pause.on, #help.on { display: flex; }
.pause-card, .help-card {
  width: min(380px, 92vw); padding: 20px; border-radius: 14px;
  background: linear-gradient(160deg, #121a26, #070b11 70%);
  border: 1px solid rgba(140, 180, 225, .18);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
  position: relative;
}
.pause-card h2 { font-family: 'Chakra Petch', sans-serif; font-size: 22px; margin: 2px 0 12px; color: #fff; }
.pause-stats { display: flex; gap: 12px; margin-bottom: 14px; }
.pause-stats div { flex: 1; }
.pause-stats b { display: block; font-family: 'Chakra Petch', sans-serif; font-size: 20px; color: var(--accent-2); }
.pause-stats span { font-size: 8px; color: var(--dim); }
.pause-card .start-btn { width: 100%; margin-bottom: 6px; }
.ghost-btn {
  width: 100%; padding: 9px; border-radius: 8px; font-family: 'Chakra Petch', sans-serif;
  font-size: 10px; letter-spacing: .16em; color: rgba(200, 225, 250, .7);
  border: 1px solid rgba(140, 175, 215, .16); margin-top: 5px;
}
.ghost-btn:hover { color: #fff; border-color: rgba(140, 200, 255, .35); }
.help-x { position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; display: grid; place-items: center; color: var(--dim); }
.help-x svg { width: 14px; height: 14px; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 12px; margin: 8px 0 10px; }
.help-grid div { display: flex; align-items: center; gap: 6px; font-size: 9px; color: rgba(210, 228, 246, .8); }
.help-grid b {
  font-family: 'Chakra Petch', sans-serif; font-weight: 500; font-size: 8px; min-width: 38px;
  padding: 2px 4px; border-radius: 3px; background: rgba(120, 160, 210, .1);
  border: 1px solid rgba(140, 175, 215, .16); text-align: center; color: var(--accent-2);
}
.help-tip { font-size: 8.5px; color: var(--dim); line-height: 1.5; border-top: 1px solid var(--line); padding-top: 8px; }
.help-credits { font-size: 7px; color: rgba(130, 155, 185, .55); line-height: 1.45; margin-top: 6px; }

#toast {
  position: absolute; left: 12px; top: 50px; transform: translateY(-6px);
  z-index: 15; padding: 7px 14px; border-radius: 20px;
  background: rgba(6, 10, 16, .88); border: 1px solid rgba(140, 190, 240, .22);
  font-family: 'Chakra Petch', sans-serif; font-size: 9px; letter-spacing: .1em;
  color: rgba(225, 240, 255, .9); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; white-space: nowrap;
}
#toast.on { opacity: 1; transform: translateY(0); }

#loader {
  position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(circle at 50% 40%, #0b1220, #03050a 70%);
  transition: opacity .6s;
}
#loader.done { opacity: 0; pointer-events: none; }
.load-mark {
  font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 26px; letter-spacing: .1em;
  color: var(--accent); text-shadow: 0 0 30px var(--accent-soft);
}
.load-bar { width: 160px; height: 2px; border-radius: 2px; background: rgba(140, 180, 225, .15); overflow: hidden; }
.load-bar i { display: block; height: 100%; width: 40%; background: var(--accent); animation: load 1.1s infinite ease-in-out; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
.load-txt { font-size: 9px; color: var(--dim); letter-spacing: .1em; }

/* ---------- responsive ---------- */
@media (max-height: 640px) {
  :root { --dashH: 40vh; }
  .roof { height: 4vh; }
  .mirror { width: min(20vw, 200px); }
  .cluster { width: min(26vw, 300px); }
}
@media (max-height: 460px) {
  :root { --dashH: 36vh; }
  .start-body { max-width: 440px; }
  .start-head { margin-bottom: 6px; gap: 10px; }
  .start-head h1 { font-size: 24px; }
  .start-head p { font-size: 9px; margin-top: 1px; }
  .st-mark { width: 34px; height: 34px; font-size: 11px; border-radius: 8px; }
  .pick-label { margin: 6px 0 4px; font-size: 7px; }
  .car-sil { display: none; }
  .car-card { padding: 7px 9px 6px; }
  .car-name { font-size: 14px; }
  .car-spec { font-size: 7px; margin-top: 1px; }
  .start-btn { padding: 9px 14px; font-size: 12px; }
  .dest-btn { padding: 5px 8px; font-size: 9px; }
  .start-keys { font-size: 7px; }
  .start-note { display: none; }
  .dash-stitch { display: none; }
  .roof { height: 3.2vh; }
  .mirror { width: min(18vw, 150px); top: 1.6vh; padding: 3px; }
  .scr-head { padding: 4px 8px 3px; }
  .callcard {
  position: absolute; left: 8px; right: 8px; bottom: 26px; z-index: 6;
  display: none; align-items: center; gap: 8px; padding: 6px 8px;
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(18, 34, 28, .96), rgba(8, 16, 14, .96));
  border: 1px solid rgba(60, 230, 150, .35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .6), 0 0 22px rgba(30, 215, 96, .18);
  transform: translateY(10px); opacity: 0; transition: opacity .25s, transform .25s;
}
.callcard.on { display: flex; opacity: 1; transform: translateY(0); }
.call-avatar {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #2a5a44, #0d1a14); color: #b8ffd9;
  font-family: 'Chakra Petch', sans-serif; font-size: 11px; flex: none;
}
.call-meta { flex: 1; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.call-name { font-family: 'Chakra Petch', sans-serif; font-size: 10px; color: #eafff4; }
.call-state { font-size: 7px; color: rgba(180, 230, 205, .75); }
.call-end {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #d8324a; color: #fff; flex: none; box-shadow: 0 0 12px rgba(216, 50, 74, .45);
}
.call-end svg { width: 11px; height: 11px; }
.scr-foot { display: none; }
  .screen { height: calc(var(--dashH) * 1.02); width: min(35vw, 330px); }
  .media-tabs { margin-bottom: 2px; }
  .dial { margin-top: 3px; }
  .dial-track { height: 18px; }
  .freq { font-size: 4.8vh; }
  .rds-tag { font-size: 7px; }
  .radio-foot { padding-top: 2px; }
  .presets button, .mini { height: 19px; }
  .veh-specs { display: none; }
  .callcard {
  position: absolute; left: 8px; right: 8px; bottom: 26px; z-index: 6;
  display: none; align-items: center; gap: 8px; padding: 6px 8px;
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(18, 34, 28, .96), rgba(8, 16, 14, .96));
  border: 1px solid rgba(60, 230, 150, .35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .6), 0 0 22px rgba(30, 215, 96, .18);
  transform: translateY(10px); opacity: 0; transition: opacity .25s, transform .25s;
}
.callcard.on { display: flex; opacity: 1; transform: translateY(0); }
.call-avatar {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #2a5a44, #0d1a14); color: #b8ffd9;
  font-family: 'Chakra Petch', sans-serif; font-size: 11px; flex: none;
}
.call-meta { flex: 1; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.call-name { font-family: 'Chakra Petch', sans-serif; font-size: 10px; color: #eafff4; }
.call-state { font-size: 7px; color: rgba(180, 230, 205, .75); }
.call-end {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #d8324a; color: #fff; flex: none; box-shadow: 0 0 12px rgba(216, 50, 74, .45);
}
.call-end svg { width: 11px; height: 11px; }
.scr-foot { font-size: 6px; padding: 2px 8px 3px; }
  .start-head h1 { font-size: 24px; }
  .start-body { gap: 14px; }
  .start-wrap { width: 96vw; }
  .st-mark { width: 40px; height: 40px; font-size: 12px; }
}
@media (orientation: portrait) and (max-width: 820px) {
  :root { --dashH: 40vh; }
  .roof { height: 2.4vh; }
  .mirror { width: 44vw; top: 1.2vh; border-width: 3px; }
  .pillar { width: 9%; height: 64%; }
  .door-panel { display: none; }
  .console { display: none; }
  .cluster-hood { display: none; }

  /* cluster strip above the screen */
  .cluster {
    left: 3%; right: 3%; transform: none; width: auto;
    top: 35.5vh; bottom: auto;
    height: 8.4vh; padding: 5px 10px 4px;
  }
  body.touch .cluster { top: 35.5vh; bottom: auto; }
  .cl-speed span { font-size: 5vh; }
  .cl-batt span { font-size: 2.4vh; }

  /* centre screen, then the wheel under it */
  .screen {
    left: 3%; right: 3%; width: auto;
    height: 21.5vh; bottom: 25.5vh;
  }
  body.touch .screen { bottom: 25.5vh; }

  .steering {
    display: block; left: 50%; transform: translateX(-50%);
    width: 50vw; max-width: 230px; bottom: 2.6vh;
  }
  body.touch .steering { bottom: 2.6vh; }
  body.touch .wheel-hint { opacity: 1; bottom: 0; }

  .hvac { left: 3%; width: 94%; right: auto; bottom: 1.2%; height: 24px; }
  body.touch .hvac { display: none; }
  .freq { font-size: 4.8vh; }
  .cover { width: 11vh; }
  .ph-note { font-size: 6.5px; }
  .clim-num span { font-size: 5.4vh; }
  .nav-eta span { font-size: 4.6vh; }
  .scr-tabs button { width: 24px; }
  .start-body { max-width: none; }
  .car-sil { display: none; }
  .start-head h1 { font-size: 32px; }
  .cars { gap: 8px; }
  .start-wrap { min-height: 0; padding-bottom: 2vh; }

  /* compact screen content for the shorter panel */
  .media-tabs { margin-bottom: 2px; }
  .dial { margin-top: 2px; }
  .dial-track { height: 18px; }
  .rds-tag { display: none; }
  .radio-foot { padding-top: 2px; }
  .presets button, .mini { height: 18px; }
  .veh-specs { display: none; }
  .scr-foot { display: none; }
}
@media (max-width: 620px) {
  .chip { font-size: 8px; padding: 4px 7px; gap: 4px; }
  .dest-chip .chip-d { display: none; }
  .hud-mid .chip b { font-size: 10px; }
}
@media (max-width: 520px) {
  .start-head p { display: none; }
  .car-card { padding: 7px; }
  .car-name { font-size: 14px; }
  .car-spec { display: none; }
  .start-keys { display: none; }
  .chip { font-size: 8px; padding: 4px 7px; }
}
