:root {
  color-scheme: light;
  --sky-top: #a66a89;
  --sky-bottom: #ffaa66;
  --panel-dark: rgba(10, 16, 21, 0.68);
  --panel-soft: rgba(248, 244, 236, 0.84);
  --line: rgba(255, 255, 255, 0.12);
  --ink: #edf2f5;
  --ink-dark: #15202b;
  --accent: #ffb343;
  --shadow: rgba(5, 10, 14, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow: hidden;
  font-family: "DIN Alternate", "Avenir Next Condensed", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #000;
  color: var(--ink);
}

.page {
  min-height: 100vh;
  display: block;
  padding: 0;
}

.shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  background: #090d11;
}

#game {
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(180deg, #dad4ca, #b89d81);
}

.boot-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 225, 176, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(4, 8, 14, 0.96), rgba(9, 14, 20, 0.93));
  transition: opacity 220ms ease, visibility 220ms ease;
}

.boot-overlay.is-complete {
  opacity: 0;
  visibility: hidden;
}

.boot-card {
  width: min(92vw, 520px);
  padding: 28px 28px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01)),
    rgba(9, 14, 20, 0.86);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.boot-brand {
  margin: 0 0 16px;
  display: flex;
  justify-content: center;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  user-select: none;
}

.brand-lockup-compact {
  gap: 10px;
}

/* ── Premium Badge (replaces old roundel) ── */
.brand-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 22px 12px;
  border-radius: 8px;
  background:
    linear-gradient(168deg, #1a1d22 0%, #0e1014 60%, #181c22 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 8px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f0e6d0;
  line-height: 1;
  gap: 0;
}

.brand-badge::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 5px;
  border: 1px solid rgba(212, 175, 55, 0.12);
  pointer-events: none;
}

.brand-badge-top,
.brand-badge-bottom {
  font-family: Impact, "Arial Black", "Avenir Next Condensed", sans-serif;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-badge-top {
  font-size: 28px;
  color: #f5edd8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.brand-badge-divider {
  display: block;
  width: 80%;
  height: 1.5px;
  margin: 5px auto 4px;
  background: linear-gradient(90deg, transparent, #d4af37 20%, #f5d76e 50%, #d4af37 80%, transparent);
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.3);
}

.brand-badge-bottom {
  font-size: 28px;
  color: #d4af37;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
}

/* ── Title Stack (WRC + SPORTS) ── */
.brand-title-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.brand-wrc {
  font-family: Impact, "Arial Black", "Avenir Next Condensed", sans-serif;
  font-size: 132px;
  font-weight: 900;
  font-style: italic;
  line-height: 0.82;
  letter-spacing: -0.06em;
  transform: skewX(-12deg) scaleY(1.02);
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.08),
    0 12px 36px rgba(0, 0, 0, 0.5);
}

.brand-subtitle {
  font-family: Impact, "Arial Black", "Avenir Next Condensed", sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.9);
  margin-top: 2px;
  padding-left: 4px;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

/* ── Compact variant (boot overlay) ── */
.brand-lockup-compact .brand-badge {
  padding: 8px 14px 7px;
  border-radius: 6px;
}

.brand-lockup-compact .brand-badge-top,
.brand-lockup-compact .brand-badge-bottom {
  font-size: 14px;
  letter-spacing: 0.16em;
}

.brand-lockup-compact .brand-badge-divider {
  margin: 3px auto;
  height: 1px;
}

.brand-lockup-compact .brand-wrc {
  font-size: 52px;
  text-shadow: none;
}

.brand-lockup-compact .brand-subtitle {
  font-size: 10px;
  letter-spacing: 0.36em;
  margin-top: 1px;
}

/* ── Menu variant ── */
.brand-lockup-menu {
  gap: 14px;
}

.brand-lockup-menu .brand-badge {
  padding: clamp(10px, 1.2vw, 14px) clamp(16px, 2vw, 22px) clamp(9px, 1.1vw, 12px);
}

.brand-lockup-menu .brand-badge-top,
.brand-lockup-menu .brand-badge-bottom {
  font-size: clamp(18px, 2vw, 26px);
}

.brand-lockup-menu .brand-wrc {
  font-size: clamp(72px, 7.4vw, 118px);
  text-shadow:
    0 0 14px rgba(255, 255, 255, 0.06),
    0 8px 20px rgba(0, 0, 0, 0.3);
}

.brand-lockup-menu .brand-subtitle {
  font-size: clamp(12px, 1.2vw, 17px);
}

.boot-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: #f7f8fa;
}

.boot-status {
  margin: 14px 0 18px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(241, 227, 205, 0.88);
}

.boot-progress-track {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.boot-progress-fill {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0.06);
  border-radius: inherit;
  background:
    linear-gradient(90deg, #ffd36b, #ff9f2e 46%, #ff6a24 100%);
  box-shadow:
    0 0 24px rgba(255, 172, 63, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.boot-meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.boot-progress-value {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.boot-progress-hint {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 240, 214, 0.62);
}

.boot-overlay.is-error .boot-progress-fill {
  background: linear-gradient(90deg, #ffb36f, #ff6b4d);
}

.screen-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.screen-rain::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.12), transparent 20%),
    radial-gradient(circle at 78% 18%, rgba(198, 220, 255, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(200, 218, 236, 0.08), rgba(255, 255, 255, 0));
  opacity: var(--screen-rain-opacity, 0);
  transition: opacity 180ms ease;
}

.screen-rain-drop {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--drop-width, 24px);
  height: var(--drop-height, 40px);
  border-radius: 58% 58% 52% 52% / 38% 38% 70% 70%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.52), rgba(220, 236, 255, 0.24) 34%, rgba(92, 124, 154, 0.14) 60%, rgba(255, 255, 255, 0) 100%);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.32),
    0 0 18px rgba(180, 210, 255, 0.12);
  filter: blur(var(--drop-blur, 1px));
  opacity: 0;
  transform: translate3d(var(--drop-x, 0%), var(--drop-y, 0%), 0) rotate(var(--drop-rot, 0deg)) scale(var(--drop-scale, 1));
  transition: opacity 180ms ease;
  animation: screen-rain-drift var(--drop-duration, 8s) linear infinite;
  animation-delay: var(--drop-delay, 0s);
}

.screen-rain-drop::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 60%;
  width: 28%;
  height: var(--trail-length, 26px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(224, 238, 255, var(--trail-opacity, 0.2)), rgba(255, 255, 255, 0));
  transform: translateX(-50%);
}

@keyframes screen-rain-drift {
  0% {
    transform: translate3d(var(--drop-x, 0%), calc(var(--drop-y, 0%) - 10px), 0) rotate(var(--drop-rot, 0deg)) scale(var(--drop-scale, 1));
  }

  100% {
    transform: translate3d(var(--drop-x, 0%), calc(var(--drop-y, 0%) + 24px), 0) rotate(calc(var(--drop-rot, 0deg) + 3deg)) scale(var(--drop-scale, 1));
  }
}

.cinematic-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 26px 24px 32px;
  pointer-events: none;
  z-index: 5;
}

.cinematic-overlay.is-splash {
  place-items: center;
  padding: 0;
  background: #000;
}

.cinematic-brand {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  text-align: center;
}

.cinematic-overlay.is-splash .cinematic-brand {
  display: flex;
}

.brand-lockup-hero {
  gap: clamp(18px, 2.7vw, 42px);
  transform: none;
}

.brand-lockup-hero .brand-badge {
  padding: clamp(16px, 2vw, 28px) clamp(28px, 3.5vw, 50px) clamp(14px, 1.8vw, 24px);
  border-radius: 10px;
  border-width: 2px;
}

.brand-lockup-hero .brand-badge::before {
  inset: 5px;
  border-radius: 7px;
}

.brand-lockup-hero .brand-badge-top,
.brand-lockup-hero .brand-badge-bottom {
  font-size: clamp(32px, 3.4vw, 56px);
  letter-spacing: 0.22em;
}

.brand-lockup-hero .brand-badge-divider {
  height: 2px;
  margin: clamp(5px, 0.6vw, 10px) auto;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.brand-lockup-hero .brand-wrc {
  font-size: clamp(108px, 11vw, 220px);
}

.brand-lockup-hero .brand-subtitle {
  font-size: clamp(18px, 1.8vw, 34px);
  letter-spacing: 0.48em;
  margin-top: 4px;
}

.cinematic-overlay.is-splash .cinematic-skip {
  display: none;
}

.cinematic-skip {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255, 241, 212, 0.6);
  text-transform: uppercase;
  white-space: nowrap;
  animation: skipBlink 2.4s ease-in-out infinite;
}

@keyframes skipBlink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.9; }
}

/* ═══════════════════════════════════════════════════
   HUD — F1/WEC-inspired transparent motorsport overlay
   ═══════════════════════════════════════════════════ */

.hud {
  --rev-ratio: 0;
  --speed-ratio: 0;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 18px;
  pointer-events: none;
  z-index: 4;
  font-family: "Barlow Condensed", "DIN Condensed", "Arial Narrow", Impact, sans-serif;
}

/* ── Top strip ── */
.hud-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hud-timer-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 0;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(90deg, rgba(8, 12, 16, 0.72), rgba(8, 12, 16, 0.48) 80%, transparent);
}

.hud-timer-accent {
  width: 3px;
  height: 32px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #ff655b, #ffbf4d);
  box-shadow: 0 0 8px rgba(255, 101, 91, 0.4);
}

.hud-timer-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f4f8fa;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hud-timer-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(220, 230, 240, 0.7);
}

.hud-timer-sep {
  opacity: 0.4;
}

/* ── Pacenote (top-right) ── */
.hud-pacenote {
  text-align: right;
  padding: 5px 10px 5px 14px;
  border-right: 3px solid rgba(255, 191, 77, 0.6);
}

.hud-pn-call {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f4f8fa;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.hud-pn-detail {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(220, 230, 240, 0.65);
  max-width: 200px;
  margin-left: auto;
}

/* ── Bottom strip ── */
.hud-bottom {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

/* ── Speedometer (bottom-left, large) ── */
.hud-speedo {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 4px 10px 6px 8px;
  border-radius: 6px;
  background: rgba(8, 12, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hud-gear {
  font-size: 52px;
  font-weight: 800;
  line-height: 0.82;
  color: #ffcf74;
  text-shadow: 0 0 18px rgba(255, 191, 77, 0.25);
  min-width: 38px;
  text-align: center;
}

.hud-speed-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 2px;
}

.hud-speed-num {
  font-size: 40px;
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: #f4f8fa;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hud-speed-unit {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

/* ── Tach strip (bottom-center, horizontal bar) ── */
.hud-tach-strip {
  flex: 1;
  min-width: 0;
  padding: 5px 10px 6px;
  border-radius: 6px;
  background: rgba(8, 12, 16, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hud-shiftlights {
  display: flex;
  gap: 3px;
}

.shift-light {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 100ms ease, box-shadow 100ms ease;
}

.shift-light:nth-child(-n + 4) {
  --shift-color: #7df26c;
}

.shift-light:nth-child(5),
.shift-light:nth-child(6) {
  --shift-color: #ffd84c;
}

.shift-light:nth-child(n + 7) {
  --shift-color: #ff655b;
}

.shift-light.is-on {
  background: var(--shift-color);
  box-shadow: 0 0 8px var(--shift-color);
}

.shift-light.is-redline {
  animation: shiftPulse 160ms linear infinite alternate;
}

@keyframes shiftPulse {
  from { opacity: 1; }
  to { opacity: 0.4; }
}

.hud-tach-bar {
  position: relative;
  margin-top: 4px;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.hud-tach-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #72f16a 0%, #c7ff5f 38%, #ffbf4d 68%, #ff6158 100%);
  transform-origin: left center;
  transform: scaleX(var(--rev-ratio));
  border-radius: 3px;
}

.hud-tach-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.hud-rpm-val {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(244, 248, 250, 0.85);
  font-variant-numeric: tabular-nums;
}

.hud-rpm-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

.hud-state-val {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: rgba(255, 207, 116, 0.85);
  text-transform: uppercase;
}

.hud-status-line {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(220, 230, 240, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Minimap (bottom-right) ── */
.hud-minimap-wrap {
  position: relative;
  width: 150px;
  min-width: 150px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(8, 12, 16, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hud-minimap-wrap canvas {
  display: block;
}

.hud-map-label {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

/* ── Legacy selectors still referenced by JS ── */
.dashboard-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(6, 10, 14, 0.36), rgba(6, 10, 14, 0.54)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 28%);
}

.card {
  width: min(92%, 880px);
  padding: 34px 42px 38px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(13, 18, 23, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  text-align: center;
}

.garage-card {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}

/* ══════════════════════════════════════════════════════
   UNIFIED STAGE OVERLAY — Garage & Finish share one system
   Design: F1 broadcast graphics — minimal, gold accents,
   generous white-space, Barlow Condensed headlines
   ══════════════════════════════════════════════════════ */

.stage-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 12%, rgba(212, 175, 95, 0.07), transparent),
    linear-gradient(180deg, rgba(6, 10, 16, 0.80), rgba(6, 10, 16, 0.88));
  backdrop-filter: blur(10px);
  overflow-y: auto;
  color: #eef1f3;
}

.stage-overlay-inner {
  width: min(94%, 640px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 28px;
}

/* Thin gold rule at the very top */
.stage-top-rule {
  width: 48px;
  height: 2px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 95, 0.7), transparent);
  border-radius: 2px;
}

/* ── Header ── */
.stage-head {
  text-align: center;
  margin-bottom: 24px;
}

.stage-eyebrow {
  display: block;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: rgba(212, 175, 95, 0.65);
  margin-bottom: 6px;
}

.stage-headline {
  margin: 0;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #f4f6f7;
}

.stage-headline--finish {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f7f8f8;
  text-shadow: 0 0 24px rgba(212, 175, 95, 0.12);
}

.stage-sub {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(220, 228, 234, 0.55);
}

/* ── Content area ── */
.stage-content {
  width: 100%;
  padding: 0 4px;
}

/* ── Footer ── */
.stage-foot {
  width: 100%;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Primary action button — minimal rectangle, gold border */
.stage-btn {
  min-width: 160px;
  padding: 11px 36px;
  border: 1px solid rgba(212, 175, 95, 0.35);
  border-radius: 4px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 237, 216, 0.90);
  background: rgba(212, 175, 95, 0.08);
  cursor: pointer;
  transition: all 140ms ease;
}
.stage-btn:hover {
  background: rgba(212, 175, 95, 0.16);
  border-color: rgba(212, 175, 95, 0.55);
  color: #fff;
}
.stage-btn:active {
  background: rgba(212, 175, 95, 0.22);
  transform: scale(0.97);
}

.stage-hint {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.28);
}
.stage-hint kbd {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  color: rgba(212, 175, 95, 0.6);
}

/* ══ GARAGE-SPECIFIC ══ */

#garage {
  overflow-y: auto;
}

.garage-grid {
  margin-bottom: 18px;
}

/* Car card — subtle, compact */
.garage-option {
  width: 100%;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: #eef1f3;
  text-align: center;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}
.garage-option:hover {
  border-color: rgba(212, 175, 95, 0.30);
}
.garage-option-static { cursor: default; }
.garage-option-static:hover { border-color: rgba(212, 175, 95, 0.50); }
.garage-option.is-selected {
  border-color: rgba(212, 175, 95, 0.55);
  background: rgba(212, 175, 95, 0.06);
}
.garage-option.is-focused {
  box-shadow: 0 0 0 2px rgba(212, 175, 95, 0.30);
}
.garage-option-index {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212, 175, 95, 0.60);
}
.garage-option-title {
  margin-top: 6px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.garage-option-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(220, 228, 234, 0.55);
}
.garage-option-meta {
  margin-top: 8px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}
.garage-option.is-selected .garage-option-meta {
  background: rgba(212, 175, 95, 0.12);
  color: rgba(245, 237, 216, 0.80);
}

/* Settings group — two-column layout */
.garage-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gc-group {
  padding: 16px 18px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  transition: border-color 160ms ease;
}
.gc-group.is-focused {
  border-color: rgba(212, 175, 95, 0.40);
}
.gc-group-label {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(212, 175, 95, 0.55);
  margin-bottom: 12px;
}

.garage-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Toggle chip — clean pill with thin border */
.garage-chip {
  width: 100%;
  padding: 14px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  color: #dce2e6;
  text-align: center;
  cursor: pointer;
  transition: all 140ms ease;
}
.garage-chip:hover {
  border-color: rgba(212, 175, 95, 0.30);
  background: rgba(212, 175, 95, 0.04);
}
.garage-chip.is-active {
  border-color: rgba(212, 175, 95, 0.65);
  background: rgba(212, 175, 95, 0.08);
}
.garage-chip.is-focused {
  box-shadow: 0 0 0 2px rgba(212, 175, 95, 0.28);
}
.garage-chip-title {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}
.garage-chip-subtitle {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(220, 228, 234, 0.50);
}
.garage-chip-hint {
  margin-top: 6px;
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(212, 175, 95, 0.45);
}

/* Key hints row */
.garage-keyhint {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
}
.keyhint-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(220, 228, 234, 0.45);
}

/* ══ FINISH-SPECIFIC ══ */

.result-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.finish-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.finish-stat-label {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(212, 175, 95, 0.50);
}
.finish-stat-value {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f4f6f7;
}
.finish-stat.is-best .finish-stat-value {
  color: rgba(212, 175, 95, 0.95);
}

/* ══ LEGACY COMPAT — keep class names JS references ══ */
.garage-button { /* alias for stage-btn — keep for JS disabled toggling */
  min-width: 160px;
  padding: 11px 36px;
  border: 1px solid rgba(212, 175, 95, 0.35);
  border-radius: 4px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 237, 216, 0.90);
  background: rgba(212, 175, 95, 0.08);
  cursor: pointer;
  transition: all 140ms ease;
}
.garage-button:hover {
  background: rgba(212, 175, 95, 0.16);
  border-color: rgba(212, 175, 95, 0.55);
  color: #fff;
}
.garage-button:active {
  background: rgba(212, 175, 95, 0.22);
  transform: scale(0.97);
}

.finish-header {
  flex-shrink: 0;
  padding: 36px 24px 0;
}

.finish-title {
  margin: 0;
  font-family: Impact, "Arial Black", "Avenir Next Condensed", sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  font-style: italic;
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f7f8f8;
  text-shadow:
    0 0 32px rgba(255, 188, 101, 0.18),
    0 6px 20px rgba(0, 0, 0, 0.3);
  transform: skewX(-4deg);
}

.finish-summary {
  margin: 12px 0 0;
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(236, 241, 245, 0.7);
}

.finish-body {
  flex: 1;
  width: min(96%, 480px);
  padding: 20px 0 8px;
}

.finish-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.finish-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.finish-stat-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 230, 186, 0.6);
}

.finish-stat-value {
  font-family: Impact, "Arial Black", "Avenir Next Condensed", sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #f7f8f8;
}

.finish-stat.is-best .finish-stat-value {
  color: rgba(255, 188, 101, 0.95);
}

.finish-footer {
  flex-shrink: 0;
  width: 100%;
  padding: 14px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: linear-gradient(to top, rgba(4, 8, 14, 0.6), transparent);
}

.finish-hint {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
}

.finish-hint kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 230, 186, 0.7);
}

/* ── Full-screen garage ── */
.garage-fullscreen {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 188, 101, 0.06), transparent 50%),
    linear-gradient(180deg, rgba(4, 8, 14, 0.72), rgba(4, 8, 14, 0.82));
  backdrop-filter: blur(6px);
  overflow-y: auto;
  color: #f4f7f8;
  text-align: center;
}

.garage-header {
  flex-shrink: 0;
  padding: 28px 24px 0;
}

.garage-title {
  margin: 8px 0 0;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #f7f8f8;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.garage-body {
  flex: 1;
  width: min(96%, 560px);
  padding: 16px 0 8px;
}

.garage-footer {
  flex-shrink: 0;
  width: 100%;
  padding: 14px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: linear-gradient(to top, rgba(4, 8, 14, 0.6), transparent);
}

.garage-hint {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 188, 101, 0.7);
  letter-spacing: 0.04em;
}


/* Legacy overlay/card rules kept for menu section (currently empty/hidden) */

.garage-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  text-align: center;
}

.garage-settings {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  text-align: center;
}

.garage-setting-group {
  padding: 14px 16px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(15, 21, 26, 0.68);
}

.garage-setting-group.is-focused {
  border-color: rgba(255, 188, 101, 0.54);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 188, 101, 0.18);
}

.garage-setting-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.garage-setting-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 188, 101, 0.78);
}

.garage-setting-hint {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 188, 101, 0.12);
  border: 1px solid rgba(255, 188, 101, 0.16);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 225, 179, 0.92);
}

.garage-toggle-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.garage-chip {
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f4f7f8;
  text-align: center;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.garage-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 188, 101, 0.38);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(255, 188, 101, 0.12);
}

.garage-chip.is-active {
  border-color: rgba(255, 188, 101, 0.88);
  background:
    linear-gradient(180deg, rgba(255, 188, 101, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(17, 23, 28, 0.92);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 188, 101, 0.2);
}

.garage-chip.is-focused {
  box-shadow:
    0 0 0 2px rgba(255, 188, 101, 0.44),
    0 14px 28px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 188, 101, 0.2);
}

.garage-chip-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;
}

.garage-chip-subtitle {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(236, 241, 245, 0.72);
}

.garage-chip-hint {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 228, 188, 0.86);
}

.garage-option {
  width: 100%;
  padding: 16px 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(16, 22, 27, 0.76);
  color: #f4f7f8;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.garage-option:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 188, 101, 0.42);
}

.garage-option-static {
  cursor: default;
}

.garage-option-static:hover {
  transform: none;
  border-color: rgba(255, 188, 101, 0.86);
}

.garage-option.is-selected {
  border-color: rgba(255, 188, 101, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 188, 101, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(17, 23, 28, 0.86);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 188, 101, 0.22);
}

.garage-option.is-focused {
  box-shadow:
    0 0 0 2px rgba(255, 188, 101, 0.44),
    0 16px 34px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 188, 101, 0.22);
}

.garage-option-index {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 188, 101, 0.74);
}

.garage-option-title {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.02;
}

.garage-option-subtitle {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(241, 245, 248, 0.74);
}

.garage-option-meta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

.garage-option.is-selected .garage-option-meta {
  background: rgba(255, 188, 101, 0.16);
  color: #ffe0af;
}

/* garage-actions removed — button now in .garage-footer */

.garage-button {
  min-width: 180px;
  padding: 12px 32px;
  border: 1px solid rgba(255, 188, 101, 0.3);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 230, 186, 0.92);
  background: rgba(255, 179, 67, 0.10);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 150ms ease;
}

.garage-button:hover {
  background: rgba(255, 179, 67, 0.18);
  border-color: rgba(255, 188, 101, 0.5);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 179, 67, 0.15);
}

.garage-button:active {
  background: rgba(255, 179, 67, 0.25);
  transform: scale(0.97);
}

.garage-button-secondary {
  color: #eef4f6;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

/* ── Garage key hints ── */
.garage-keyhint {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}

.keyhint-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(236, 241, 245, 0.72);
}

.keyhint-item kbd,
.rk-item kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 7px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  color: #f4f7f8;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

/* ── In-race key hint overlay ── */
.race-keyhint {
  position: absolute;
  bottom: 28%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
  animation: raceHintFade 8s ease-in-out forwards;
}

.race-keyhint.is-hidden {
  display: none;
}

.race-keyhint-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  padding: 12px 22px;
  border-radius: 16px;
  background: rgba(10, 14, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.rk-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(240, 245, 248, 0.88);
  white-space: nowrap;
}

@keyframes raceHintFade {
  0% { opacity: 0; transform: translateX(-50%) translateY(8px); }
  6% { opacity: 1; transform: translateX(-50%) translateY(0); }
  75% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-6px); }
}

/* ── Audio toggle button ── */
.audio-toggle {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(10, 14, 18, 0.62);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  pointer-events: auto;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.audio-toggle:hover {
  background: rgba(10, 14, 18, 0.82);
  border-color: rgba(255, 188, 101, 0.48);
  transform: translateX(-50%) scale(1.08);
}

.audio-toggle:active {
  transform: translateX(-50%) scale(0.95);
}

.audio-toggle .audio-icon {
  width: 20px;
  height: 20px;
}

.audio-toggle .audio-icon.hidden {
  display: none;
}

.audio-toggle.is-muted {
  color: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.08);
}

.hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .page {
    padding: 0;
  }

  .shell {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: 0;
  }

  .hud {
    padding: 8px 10px;
  }

  .hud-top {
    gap: 10px;
  }

  .hud-timer-value {
    font-size: 20px;
  }

  .hud-timer-meta {
    font-size: 9px;
  }

  .hud-pn-call {
    font-size: 16px;
  }

  .hud-pn-detail {
    font-size: 10px;
    max-width: 140px;
  }

  .hud-bottom {
    gap: 8px;
  }

  .hud-gear {
    font-size: 36px;
    min-width: 28px;
  }

  .hud-speed-num {
    font-size: 28px;
  }

  .hud-minimap-wrap {
    width: 110px;
    min-width: 110px;
  }

  .hud-minimap-wrap canvas {
    height: 100px !important;
  }

  .boot-overlay {
    padding: 18px;
  }

  .boot-card {
    padding: 24px 20px 20px;
  }

  .boot-status {
    letter-spacing: 0.04em;
  }

  .brand-lockup-hero {
    gap: 14px;
    transform: none;
  }

  .brand-lockup-hero .brand-badge {
    padding: 10px 18px 9px;
  }

  .brand-lockup-hero .brand-badge-top,
  .brand-lockup-hero .brand-badge-bottom {
    font-size: clamp(22px, 5.5vw, 36px);
  }

  .brand-lockup-hero .brand-wrc {
    font-size: clamp(62px, 13vw, 112px);
  }

  .brand-lockup-hero .brand-subtitle {
    font-size: clamp(10px, 2.4vw, 16px);
  }

  .card {
    padding: 28px 22px 30px;
    border-radius: 22px;
  }

  .cinematic-overlay {
    padding: 18px 16px 22px;
  }

  .cinematic-skip {
    font-size: 11px;
    letter-spacing: 0.14em;
    bottom: 24px;
  }

  .stage-overlay-inner {
    width: min(96%, 560px);
    padding: 22px 16px 18px;
  }
  .stage-head { margin-bottom: 16px; }
  .stage-headline { font-size: clamp(24px, 5vw, 34px); }
  .stage-headline--finish { font-size: clamp(26px, 6vw, 40px); }
  .stage-sub { font-size: 12px; }
  .stage-top-rule { width: 36px; margin-bottom: 14px; }
  .stage-foot { margin-top: 16px; }

  .finish-stat { padding: 8px 12px; }
  .finish-stat-label { font-size: 10px; }
  .finish-stat-value { font-size: 18px; }

  .garage-settings { grid-template-columns: 1fr; }
  .garage-keyhint { gap: 5px 10px; }
  .keyhint-item { font-size: 10px; }

  .keyhint-item kbd,
  .rk-item kbd {
    min-width: 24px;
    height: 22px;
    padding: 0 5px;
    font-size: 11px;
  }

  .race-keyhint {
    bottom: 22%;
  }

  .race-keyhint-row {
    gap: 6px 10px;
    padding: 10px 16px;
  }

  .rk-item {
    font-size: 11px;
  }

  .audio-toggle {
    top: 14px;
    width: 38px;
    height: 38px;
  }

  .audio-toggle .audio-icon {
    width: 18px;
    height: 18px;
  }
}
