/* ==========================================================================
   AuraSound — styles.css
   Apple-inspired automotive UI. Pure black for OLED + night driving.
   Compatibility: avoids flex `gap`, `inset`, `aspect-ratio`, `:has()` so it
   renders on older automotive Chromium builds.
   GPU notes: animated properties are limited to transform + opacity.
   ========================================================================== */

:root {
  --bg: #000;
  --fg: #f5f5f7;
  --fg-2: rgba(235, 235, 245, 0.64);
  --fg-3: rgba(235, 235, 245, 0.34);
  --fg-4: rgba(235, 235, 245, 0.14);
  --surface-1: #0c0c0e;
  --surface-2: #1c1c1e;
  --surface-3: #2c2c2e;
  --surface-4: #3a3a3c;
  --hairline: rgba(255, 255, 255, 0.09);

  --green: #30d158;
  --amber: #ff9f0a;
  --red: #ff453a;
  --blue: #64d2ff;
  --indigo: #7d7aff;
  --purple: #bf5af2;
  --pink: #ff375f;

  --tap: 64px;
  --radius-m: 20px;
  --radius-l: 28px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --gauge: 62vmin;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  touch-action: manipulation;
}
button:focus { outline: none; }
button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

h1, h2, p { margin: 0; }
[hidden] { display: none !important; }

/* ==========================================================================
   App shell
   ========================================================================== */
.app {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

/* ---------- Status header ---------- */
.status-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px 0;
}
.status-group { display: flex; align-items: center; }
.status-group > * + * { margin-left: 12px; }

.brand {
  position: absolute;
  left: 50%;
  top: 20px;
  height: var(--tap);
  display: flex;
  align-items: center;
  transform: translateX(-50%);
  pointer-events: none;
}
.brand h1 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding-left: 0.42em;
}

.chip {
  position: relative;
  min-width: var(--tap);
  height: var(--tap);
  padding: 0 20px;
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--fg-2);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}
button.chip:active { transform: scale(0.95); background: rgba(255, 255, 255, 0.1); }
.chip[aria-pressed="true"] { color: var(--fg); background: rgba(100, 210, 255, 0.14); border-color: rgba(100, 210, 255, 0.35); }

/* GPS status */
.gps { cursor: default; padding: 0 22px 0 20px; }
.gps-dot {
  width: 10px;
  height: 10px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 69, 58, 0.18);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.gps-label { min-width: 84px; text-align: left; text-transform: uppercase; font-size: 13px; letter-spacing: 0.1em; }
.gps[data-state="locked"] .gps-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.2), 0 0 12px rgba(48, 209, 88, 0.6); }
.gps[data-state="coasting"] .gps-dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 159, 10, 0.2); }
.gps[data-state="searching"] .gps-dot,
.gps[data-state="idle"] .gps-dot { animation: pulse 1.4s ease-in-out infinite; }
.gps[data-state="sim"] .gps-dot { background: var(--blue); box-shadow: 0 0 0 4px rgba(100, 210, 255, 0.2); }
.gps[data-state="idle"] .gps-dot { background: var(--fg-3); box-shadow: none; animation: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* Mode badge */
.badge { flex-direction: column; line-height: 1.05; min-width: 84px; }
.badge-main { font-size: 17px; letter-spacing: 0.12em; color: var(--fg); }
.badge-sub { margin-top: 4px; font-size: 10px; letter-spacing: 0.18em; color: var(--fg-3); }
.badge[data-mode="eco"] .badge-main { color: var(--green); }
.badge[data-mode="pro"] .badge-main {
  color: var(--blue);
  background: linear-gradient(90deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Overdrive switch */
.switch { padding: 0 16px 0 20px; }
.switch-label { font-variant-numeric: tabular-nums; min-width: 40px; text-align: left; color: var(--fg); }
.switch-label small { font-size: 11px; margin-left: 2px; color: var(--fg-3); letter-spacing: 0.08em; }
.switch-track {
  position: relative;
  width: 46px;
  height: 28px;
  margin-left: 12px;
  border-radius: 14px;
  background: var(--surface-4);
  transition: background-color 0.3s ease;
}
.switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s var(--ease);
}
.switch[aria-checked="true"] { border-color: rgba(255, 55, 95, 0.4); }
.switch[aria-checked="true"] .switch-track { background: linear-gradient(90deg, var(--amber), var(--pink)); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(18px); }

/* Mute */
.icon-chip { padding: 0; width: var(--tap); }
.icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon path:first-child { fill: currentColor; stroke: none; }
.icon-muted { display: none; }
#mute-toggle[aria-pressed="true"] { color: var(--red); background: rgba(255, 69, 58, 0.12); border-color: rgba(255, 69, 58, 0.35); }
#mute-toggle[aria-pressed="true"] .icon-sound { display: none; }
#mute-toggle[aria-pressed="true"] .icon-muted { display: block; }

/* ==========================================================================
   Instrument cluster
   ========================================================================== */
.cluster {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gauge {
  position: relative;
  width: var(--gauge);
  height: var(--gauge);
  max-width: 640px;
  max-height: 640px;
}

.gauge-glow {
  position: absolute;
  left: -14%;
  top: -14%;
  width: 128%;
  height: 128%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(125, 122, 255, 0.4), rgba(100, 210, 255, 0.12) 58%, rgba(0, 0, 0, 0) 100%);
  opacity: 0.12;
  pointer-events: none;
  will-change: opacity;
}
.gauge-glow--hot {
  background: radial-gradient(closest-side, rgba(255, 55, 95, 0.5), rgba(255, 69, 58, 0.14) 60%, rgba(0, 0, 0, 0) 100%);
  opacity: 0;
}

.tach {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.tach-track,
.tach-value,
.tach-redzone {
  fill: none;
  stroke-width: 12;
}
.tach-track { stroke: rgba(255, 255, 255, 0.07); stroke-linecap: round; }
.tach-redzone { stroke: rgba(255, 69, 58, 0.35); stroke-width: 4; }
.tach-value { stroke: url(#tachGrad); stroke-linecap: round; }
.rich .tach-value { filter: drop-shadow(0 0 8px rgba(125, 122, 255, 0.7)); }

.tach-tick { stroke: rgba(255, 255, 255, 0.22); stroke-width: 2; stroke-linecap: round; }
.tach-tick--major { stroke: rgba(255, 255, 255, 0.55); stroke-width: 3; }
.tach-tick--red { stroke: var(--red); }
.tach-label {
  fill: var(--fg-3);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  text-anchor: middle;
  dominant-baseline: central;
}
.tach-label--red { fill: rgba(255, 69, 58, 0.8); }

/* Readout */
.readout {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  contain: layout style;
}
.speed {
  font-size: calc(var(--gauge) * 0.3);
  font-weight: 200;
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  margin-top: 4%;
  transition: color 0.4s ease;
}
.unit {
  height: var(--tap);
  min-width: 96px;
  padding: 0 16px;
  border-radius: var(--radius-m);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  transition: color 0.25s ease, transform 0.25s var(--ease);
}
.unit:active { transform: scale(0.94); color: var(--fg-2); }

.drive-meta { display: flex; align-items: center; margin-top: 2px; }
.gear {
  width: var(--tap);
  height: var(--tap);
  border-radius: 18px;
  border: 1.5px solid var(--hairline);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.gear.is-shift { animation: gearFlash 0.5s var(--ease); }
@keyframes gearFlash {
  0% { transform: scale(1.2); border-color: rgba(255, 255, 255, 0.6); }
  100% { transform: scale(1); border-color: var(--hairline); }
}
.rpm-readout {
  margin-left: 16px;
  min-width: 112px;
  font-size: 22px;
  font-weight: 500;
  color: var(--fg-2);
  font-variant-numeric: tabular-nums;
}
.rpm-readout small { margin-left: 6px; font-size: 11px; letter-spacing: 0.16em; color: var(--fg-3); }

.app.is-redline .speed { color: #ffd6dc; }

/* ==========================================================================
   Engine selector
   ========================================================================== */
.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px 28px;
}
.segmented {
  --seg: 136px;
  position: relative;
  display: flex;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
}
.segment {
  position: relative;
  z-index: 1;
  width: var(--seg);
  height: var(--tap);
  border-radius: 999px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--fg-3);
  transition: color 0.3s ease;
}
.segment[aria-checked="true"] { color: var(--fg); }
.seg-thumb {
  position: absolute;
  top: 6px;
  left: 6px;
  width: var(--seg);
  height: var(--tap);
  border-radius: 999px;
  background: linear-gradient(180deg, #3d3d40, #2a2a2d);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.engine-caption { margin-top: 14px; text-align: center; min-height: 46px; }
.engine-name { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.engine-tag { margin-top: 4px; font-size: 14px; color: var(--fg-3); letter-spacing: 0.04em; }
.engine-caption.is-swap { animation: captionIn 0.45s var(--ease); }
@keyframes captionIn {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Simulator panel
   ========================================================================== */
.sim-panel {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  width: 320px;
  padding: 20px;
  border-radius: var(--radius-l);
  background: rgba(28, 28, 30, 0.96);
  border: 1px solid var(--hairline);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: panelIn 0.45s var(--ease);
}
.rich .sim-panel {
  background: rgba(28, 28, 30, 0.72);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}
@keyframes panelIn {
  0% { opacity: 0; transform: translateY(12px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.sim-head { display: flex; align-items: baseline; justify-content: space-between; }
.sim-head h2 { font-size: 15px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); }
.sim-hint { font-size: 12px; color: var(--fg-3); }

.sim-slider { display: block; margin-top: 14px; }
.sim-slider-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--fg-3); }
.sim-slider-top output { color: var(--fg); font-variant-numeric: tabular-nums; font-weight: 600; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 48px;
  margin: 4px 0 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--indigo) 60%, var(--pink));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 32px;
  height: 32px;
  margin-top: -13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--indigo) 60%, var(--pink)); }
input[type="range"]::-moz-range-thumb { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fff; }

.sim-pedals { display: flex; margin-top: 10px; }
.pedal {
  flex: 1;
  height: var(--tap);
  border-radius: var(--radius-m);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--hairline);
  transition: transform 0.2s var(--ease), background-color 0.2s ease;
}
.pedal + .pedal { margin-left: 12px; }
.pedal--brake { background: rgba(255, 69, 58, 0.12); color: #ff8a80; }
.pedal--gas { background: rgba(48, 209, 88, 0.12); color: #7ee2a0; }
.pedal.is-active { transform: scale(0.96); }
.pedal--brake.is-active { background: rgba(255, 69, 58, 0.32); }
.pedal--gas.is-active { background: rgba(48, 209, 88, 0.32); }

/* ==========================================================================
   Unlock overlay
   ========================================================================== */
.overlay {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 42%, #0d0d14 0%, #000 62%);
  transition: opacity 0.6s var(--ease), visibility 0s linear 0s;
}
.overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}
.overlay-inner { max-width: 560px; padding: 24px; text-align: center; }
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding-left: 0.46em;
}
.overlay h2 {
  margin: 14px 0 48px;
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #fff 30%, #8e8e93);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ignition {
  position: relative;
  width: 184px;
  height: 184px;
  border-radius: 50%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, #2e2e33 0%, #121214 62%, #0a0a0b 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.025), 0 30px 70px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.35s var(--ease);
}
.ignition:active { transform: scale(0.95); }
.ignition-ring {
  position: absolute;
  left: -2px;
  top: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid rgba(125, 122, 255, 0.6);
  animation: ripple 2.6s var(--ease) infinite;
  pointer-events: none;
}
.ignition-ring--late { animation-delay: 1.3s; border-color: rgba(100, 210, 255, 0.5); }
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.65); opacity: 0; }
}
.ignition-icon {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.2;
  stroke-linecap: round;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 6px rgba(100, 210, 255, 0.7));
}
.ignition-label { font-size: 14px; font-weight: 700; letter-spacing: 0.24em; line-height: 1.5; text-transform: uppercase; padding-left: 0.24em; }
.overlay-note { margin-top: 48px; font-size: 15px; line-height: 1.55; color: var(--fg-3); }

/* ==========================================================================
   Toast + debug
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  top: 104px;
  z-index: 60;
  max-width: 80vw;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(44, 44, 46, 0.96);
  border: 1px solid var(--hairline);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.debug {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 70;
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(20, 20, 22, 0.9);
  color: var(--fg-2);
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  pointer-events: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .sim-panel { left: 16px; right: 16px; bottom: 176px; width: auto; }
}
@media (max-width: 900px) {
  .brand { display: none; }
  .status-bar { padding: 14px 14px 0; }
  .status-group > * + * { margin-left: 8px; }
  .chip { padding: 0 14px; }
  .gps-label { min-width: 0; }
}
@media (max-width: 640px) {
  :root { --gauge: 84vmin; }
  .segmented { --seg: calc((100vw - 60px) / 4); }
  .segment { font-size: 19px; }
  .gps-label { display: none; }
  .gps-dot { margin-right: 0; }
  .switch-track { display: none; }
}
@media (max-height: 560px) {
  :root { --gauge: 56vmin; }
  .engine-caption { display: none; }
  .controls { padding-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ==========================================================================
   Theme toggle + Light theme
   ========================================================================== */
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

html.theme-anim body,
html.theme-anim .chip,
html.theme-anim .segmented,
html.theme-anim .gear,
html.theme-anim .sim-panel {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f2f7;
  --fg: #1d1d1f;
  --fg-2: rgba(60, 60, 67, 0.78);
  --fg-3: rgba(60, 60, 67, 0.5);
  --fg-4: rgba(60, 60, 67, 0.18);
  --surface-1: #fff;
  --surface-2: #e5e5ea;
  --surface-3: #d1d1d6;
  --surface-4: #c7c7cc;
  --hairline: rgba(0, 0, 0, 0.08);
  --green: #248a3d;
  --amber: #c93400;
  --red: #d70015;
  --blue: #0071e3;
}

[data-theme="light"] .chip { background: rgba(255, 255, 255, 0.85); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
[data-theme="light"] button.chip:active { background: #fff; }
[data-theme="light"] .chip[aria-pressed="true"] { background: rgba(0, 113, 227, 0.1); border-color: rgba(0, 113, 227, 0.35); }
[data-theme="light"] #mute-toggle[aria-pressed="true"] { background: rgba(215, 0, 21, 0.08); border-color: rgba(215, 0, 21, 0.3); }
[data-theme="light"] .badge[data-mode="pro"] .badge-main { background: linear-gradient(90deg, #0071e3, #8944ab); -webkit-background-clip: text; background-clip: text; }

[data-theme="light"] .gauge-glow { background: radial-gradient(closest-side, rgba(125, 122, 255, 0.28), rgba(100, 210, 255, 0.1) 58%, rgba(242, 242, 247, 0) 100%); }
[data-theme="light"] .gauge-glow--hot { background: radial-gradient(closest-side, rgba(255, 55, 95, 0.32), rgba(255, 69, 58, 0.1) 60%, rgba(242, 242, 247, 0) 100%); }
[data-theme="light"] .tach-track { stroke: rgba(0, 0, 0, 0.07); }
[data-theme="light"] .tach-tick { stroke: rgba(0, 0, 0, 0.2); }
[data-theme="light"] .tach-tick--major { stroke: rgba(0, 0, 0, 0.5); }
[data-theme="light"] .tach-tick--red { stroke: var(--red); }
[data-theme="light"] .tach-redzone { stroke: rgba(215, 0, 21, 0.3); }
[data-theme="light"] .tach-label--red { fill: rgba(215, 0, 21, 0.8); }
[data-theme="light"].rich .tach-value,
[data-theme="light"] .rich .tach-value { filter: drop-shadow(0 0 6px rgba(125, 122, 255, 0.45)); }
[data-theme="light"] .app.is-redline .speed { color: #c4002b; }
[data-theme="light"] .gear { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }

[data-theme="light"] .seg-thumb { background: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14), 0 0 0 0.5px rgba(0, 0, 0, 0.04); }

[data-theme="light"] .sim-panel { background: rgba(255, 255, 255, 0.97); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14); }
[data-theme="light"] .rich .sim-panel { background: rgba(255, 255, 255, 0.75); }
[data-theme="light"] input[type="range"]::-webkit-slider-thumb { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
[data-theme="light"] .pedal--brake { background: rgba(215, 0, 21, 0.08); color: #c4001a; }
[data-theme="light"] .pedal--gas { background: rgba(36, 138, 61, 0.1); color: #1e7a35; }
[data-theme="light"] .pedal--brake.is-active { background: rgba(215, 0, 21, 0.2); }
[data-theme="light"] .pedal--gas.is-active { background: rgba(36, 138, 61, 0.24); }

[data-theme="light"] .overlay { background: radial-gradient(ellipse at 50% 42%, #ffffff 0%, #f2f2f7 62%); }
[data-theme="light"] .overlay h2 { background: linear-gradient(180deg, #1d1d1f 30%, #6e6e73); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] .ignition {
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, #f5f5f7 62%, #e8e8ed 100%);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.025), 0 24px 50px rgba(0, 0, 0, 0.14), inset 0 1px 0 #fff;
}
[data-theme="light"] .ignition-icon { filter: none; }

[data-theme="light"] .toast { background: rgba(255, 255, 255, 0.97); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
[data-theme="light"] .debug { background: rgba(255, 255, 255, 0.92); }
