/* ============================================================
 * Turbo Hills — Retro 16-Bit / Pixel-Art Arcade UI Theme
 * Chunky pixel-style borders, arcade cabinet framing,
 * punchy push-button depth, and authentic retro typography.
 * ============================================================ */

:root {
  --font-pixel: "Press Start 2P", monospace;
  --font-arcade: "Pixelify Sans", "Press Start 2P", sans-serif;
  --font-num: "Barlow Condensed", sans-serif;

  /* 16-Bit Arcade Palette */
  --ink: #000000;
  --arcade-bg: #141622;
  --arcade-panel: #1b1e2e;
  --arcade-panel-light: #252b42;
  --arcade-gold: #ffcc00;
  --arcade-gold-dark: #b37400;
  --arcade-orange: #ff7700;
  --arcade-red: #ff2a4b;
  --arcade-red-dark: #99001a;
  --arcade-green: #00e676;
  --arcade-green-dark: #008f3a;
  --arcade-cyan: #00e5ff;
  --arcade-cyan-dark: #008899;
  --arcade-purple: #b042ff;
  --arcade-blue: #2979ff;
  
  --text-main: #ffffff;
  --text-dim: #9aa4bf;
  --text-gold: #ffe066;

  --pixel-border: 3px solid var(--ink);
  --pixel-shadow: 0 5px 0 var(--ink);
  --pixel-shadow-lg: 0 8px 0 var(--ink);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #090a10;
  font-family: var(--font-arcade);
  color: var(--text-main);
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

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

#app canvas {
  display: block;
}

.hidden {
  display: none !important;
}

/* ---------------- HUD (16-BIT RETRO ARCADE GAUGES) ---------------- */

#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.hud-top {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.hud-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.hud-group.right {
  justify-content: flex-end;
}

/* ============================================================
 * Professional Game Telemetry & Modern Cockpit HUD
 * ============================================================ */

/* Top HUD Container */
.hud-top {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.hud-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  pointer-events: auto;
}

.hud-group.right {
  justify-content: flex-end;
}

/* ---------------- 2D ARCADE TELEMETRY PLATES WITH CORNERS ---------------- */
.hud-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 4px 14px 4px 6px;
  background: #131724;
  border: 2px solid #282f45;
  border-radius: 7px;
  box-shadow: 0 4px 0 #0a0d15, inset 0 1px 0 rgba(255, 255, 255, 0.14);
  position: relative;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.hud-chip:hover {
  border-color: #3b4564;
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #0a0d15, inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hud-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.hud-label {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.hud-reading {
  display: flex;
  align-items: baseline;
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.hud-unit {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 2px;
  text-transform: lowercase;
}

/* 2D Geometric Icon Badges With Corners */
.hud-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  font-size: 15px;
  line-height: 1;
  background: #1c2233;
  border: 1.5px solid #333c57;
  box-shadow: 0 2px 0 #0a0d15, inset 0 1px 0 rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

/* Distance Chip */
.distance-chip .hud-icon {
  background: #112238;
  border-color: #2196f3;
  box-shadow: 0 2px 0 #091320, inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Coins Chip */
.hud-chip:nth-child(2) .hud-icon {
  background: #2b2108;
  border-color: #ffb300;
  box-shadow: 0 2px 0 #151004, inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.hud-chip:nth-child(2) .hud-reading {
  color: #ffd54f;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Score Chip */
.hud-chip.score .hud-icon {
  background: #2b1708;
  border-color: #ff9100;
  box-shadow: 0 2px 0 #150b04, inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #ffb74d;
}
.hud-chip.score .hud-reading {
  color: #ffb74d;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Best Record Chip */
.hud-chip.best .hud-icon {
  background: #25122e;
  border-color: #ba68c8;
  box-shadow: 0 2px 0 #130917, inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.hud-chip.best .hud-reading {
  color: #ea80fc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Biome Stage Plate with Corners */
.hud-chip.biome-chip {
  height: 44px;
  padding: 0 16px;
  background: #0d1e16;
  border: 2px solid #00c853;
  border-radius: 7px;
  color: #69f0ae;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  box-shadow: 0 4px 0 #06100b, inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  align-self: center;
}

/* Speedometer Chip */
.hud-chip.speed-chip {
  min-width: 110px;
  padding: 4px 14px 4px 14px;
  border-color: #00acc1;
  box-shadow: 0 4px 0 #0a0d15, inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.hud-chip.speed-chip .hud-reading {
  color: #00e5ff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.hud-chip.speed-chip .hud-unit {
  color: rgba(0, 229, 255, 0.7);
}
.speed-track {
  display: block;
  width: 76px;
  height: 6px;
  margin-top: 3px;
  background: #0c0e17;
  border: 1px solid #282f45;
  border-radius: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.speed-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #00e5ff 0%, #00e676 55%, #ffd600 82%, #ff1744 100%);
  box-shadow: 0 0 4px rgba(0, 229, 255, 0.4);
  transition: width 0.1s linear;
}

/* Pop bounce on score/coin update */
.hud-chip.pop {
  animation: hud-bounce 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes hud-bounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.08) translateY(-2px); }
  100% { transform: scale(1); }
}

/* ---------------- HUD BOTTOM: AUTOMOTIVE FUEL & TELEMETRY ---------------- */

.hud-bottom {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

/* Automotive 2D Cockpit Fuel Gauge With Corners */
.fuel-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 6px 18px 6px 8px;
  background: #131724;
  border: 2px solid #282f45;
  border-radius: 8px;
  box-shadow: 0 4px 0 #0a0d15, inset 0 1px 0 rgba(255, 255, 255, 0.14);
  pointer-events: auto;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.fuel-label {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 5px;
  font-size: 16px;
  background: #2e1014;
  border: 1.5px solid #ff3b30;
  box-shadow: 0 2px 0 #150608, inset 0 1px 0 rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.fuel-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 160px;
}

.fuel-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
}
.fuel-heading span:last-child {
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
}

/* 2D Recessed Fuel Bar With Corners */
.fuel-bar {
  width: 100%;
  height: 8px;
  background: #0c0e17;
  border: 1px solid #282f45;
  border-radius: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.fuel-fill {
  height: 100%;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #00e676, #76ff03);
  box-shadow: 0 0 6px rgba(0, 230, 118, 0.4);
  transition: width 0.15s linear, background 0.3s ease;
}

.fuel-fill.low {
  background: linear-gradient(90deg, #ff9100, #ff1744);
  box-shadow: 0 0 8px rgba(255, 23, 68, 0.6);
  animation: fuel-pulse 0.7s infinite alternate ease-in-out;
}

@keyframes fuel-pulse {
  0% { filter: brightness(0.9); }
  100% { filter: brightness(1.3); }
}

.fuel-wrap.danger {
  border-color: #ff1744;
  box-shadow: 0 4px 0 #0a0d15, 0 0 16px rgba(255, 23, 68, 0.4);
}

/* Control Hints: Sleek Translucent Badges */
.hints {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  pointer-events: auto;
}

.hints span {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(14, 18, 30, 0.65);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 5px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: color 0.15s ease, border-color 0.15s ease;
}

/* 2D Stunt Toast Banner With Corners */
.toast {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 8px;
  background: #131724;
  color: #ffffff;
  border: 2px solid #ffd600;
  box-shadow: 0 6px 0 #0a0d15, 0 16px 36px rgba(0, 0, 0, 0.7);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  z-index: 100;
}

.toast.pop {
  animation: pro-toast-pop 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes pro-toast-pop {
  0% { opacity: 0; transform: translateX(-50%) translateY(14px) scale(0.85); }
  18% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.06); }
  30% { transform: translateX(-50%) scale(1); }
  75% { opacity: 1; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(0.95); }
}

/* ---------------- 16-BIT ARCADE PANELS & CABINET FRAMING ---------------- */

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 14, 0.82);
  z-index: 30;
  animation: overlay-fade 0.2s steps(4) ease-out;
}

@keyframes overlay-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Arcade Cabinet Bevel Frame */
.panel {
  position: relative;
  background: var(--arcade-panel);
  border: 4px solid var(--ink);
  border-radius: 8px;
  padding: 34px 40px;
  text-align: center;
  max-width: min(92vw, 540px);
  box-shadow: 
    0 0 0 3px var(--arcade-gold),
    0 10px 0 var(--ink),
    0 24px 50px rgba(0, 0, 0, 0.8),
    inset 0 3px 0 rgba(255, 255, 255, 0.18);
  animation: panel-drop 0.25s steps(4) ease-out;
}

.panel.small {
  padding: 28px 36px;
  min-width: min(88vw, 360px);
}

@keyframes panel-drop {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Marquee Header */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: #111420;
  color: var(--arcade-cyan);
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 2px;
  margin-bottom: 14px;
  box-shadow: 0 2px 0 var(--ink);
}

.eyebrow span {
  width: 14px;
  height: 2px;
  background: var(--arcade-cyan);
}

/* Big 16-Bit Arcade Title */
.title {
  font-family: var(--font-pixel);
  font-size: clamp(32px, 7vw, 48px);
  line-height: 1.1;
  letter-spacing: 2px;
  color: var(--arcade-gold);
  text-shadow: 
    3px 3px 0 var(--ink),
    -2px -2px 0 var(--ink),
    2px -2px 0 var(--ink),
    -2px 2px 0 var(--ink),
    6px 6px 0 var(--arcade-orange),
    8px 8px 0 var(--ink);
  margin-bottom: 12px;
}

.title span {
  display: block;
  font-size: 0.75em;
  color: var(--arcade-red);
  letter-spacing: 6px;
  text-shadow: 
    3px 3px 0 var(--ink),
    6px 6px 0 var(--arcade-red-dark),
    8px 8px 0 var(--ink);
}

.tagline {
  font-family: var(--font-arcade);
  font-size: 14px;
  color: var(--text-dim);
  margin: 10px 0 20px;
  letter-spacing: 0.5px;
}

.panel h2 {
  font-family: var(--font-pixel);
  font-size: 24px;
  color: var(--arcade-gold);
  text-shadow: 2px 2px 0 var(--ink), 4px 4px 0 var(--arcade-orange);
  margin-bottom: 16px;
}

/* Arcade High Score Strip */
.record-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 3px solid var(--ink);
  border-left: 6px solid var(--arcade-gold);
  border-radius: 4px;
  background: #11131c;
  box-shadow: 0 3px 0 var(--ink);
}

.record-strip > span {
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.record-strip strong {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--arcade-gold);
  text-shadow: 1px 1px 0 var(--ink);
}

.record-strip small {
  font-size: 8px;
  color: var(--text-dim);
}

/* ---------------- CHUNKY 16-BIT PUSH BUTTONS ---------------- */

.btn {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 14px 22px;
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 3px solid var(--ink);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.08s steps(2), box-shadow 0.08s steps(2);
}

/* Primary Button: Juicy Arcade Gold */
.btn.primary {
  background: linear-gradient(180deg, #ffea75 0%, #ffbb00 45%, #e68500 100%);
  color: #1a0f00;
  text-shadow: 1px 1px 0 #fff2a3;
}

.btn.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.btn.primary:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--ink), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Ghost Button: Chunky Slate Arcade Button */
.btn.ghost {
  background: linear-gradient(180deg, #37415e 0%, #20273d 100%);
  color: #ffffff;
  text-shadow: 1px 1px 0 var(--ink);
  box-shadow: 0 6px 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.btn.ghost:hover {
  background: linear-gradient(180deg, #445175 0%, #29324e 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--ink);
}

.btn.ghost:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--ink);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  filter: grayscale(0.5);
  background: #252a3a !important;
  color: #8b95ad !important;
  border-color: #000000 !important;
  text-shadow: none !important;
  transform: none !important;
  box-shadow: 0 4px 0 var(--ink) !important;
}

/* Arcade Controls Panel Instructions */
.controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 18px 0 14px;
  text-align: left;
}

.controls-grid > div {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: #11131c;
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 0 2px 0 var(--ink);
  font-family: var(--font-arcade);
  font-size: 13px;
  color: var(--text-dim);
}

.controls-grid span {
  margin-left: auto;
  font-size: 12px;
}

kbd {
  display: inline-block;
  min-width: 20px;
  padding: 3px 5px;
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #ffffff;
  background: #232a3d;
  border: 2px solid var(--ink);
  border-radius: 3px;
  box-shadow: 0 2px 0 var(--ink);
}

.fine-print {
  font-family: var(--font-arcade);
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
}

/* ---------------- 16-BIT GARAGE & WORKSHOP (MODAL ON BIG SCREENS, FULL ON MOBILE) ---------------- */

/* Garage Modal Backdrop Overlay (Big screens / Laptop) */
.garage-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vh, 32px) clamp(16px, 3vw, 40px);
  background: rgba(6, 8, 14, 0.84);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow: hidden;
  animation: overlay-fade 0.2s steps(4) ease-out;
  cursor: pointer; /* Indicates clicking backdrop will close */
}

/* Garage Modal Cabinet Container (Big screens / Laptop) */
.garage-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 860px;
  max-height: min(90vh, 800px);
  height: auto;
  position: relative;
  background: radial-gradient(ellipse at 50% 15%, #20273f 0%, #131726 65%, #0b0d17 100%);
  border: 4px solid var(--ink);
  border-radius: 10px;
  box-shadow: 
    0 0 0 3px var(--arcade-gold),
    0 12px 0 var(--ink),
    0 24px 60px rgba(0, 0, 0, 0.85),
    inset 0 2px 0 rgba(255, 255, 255, 0.18);
  animation: panel-drop 0.25s steps(4) ease-out;
  overflow-y: auto;
  overflow-x: hidden;
  cursor: default; /* Inside modal cursor is default */
  scrollbar-width: thin;
  scrollbar-color: var(--arcade-gold) #11131c;
  padding-bottom: 20px;
}

.garage-container::-webkit-scrollbar {
  width: 8px;
}
.garage-container::-webkit-scrollbar-track {
  background: #0d0f17;
  border-radius: 4px;
}
.garage-container::-webkit-scrollbar-thumb {
  background: #37415e;
  border: 1px solid var(--ink);
  border-radius: 4px;
}
.garage-container::-webkit-scrollbar-thumb:hover {
  background: var(--arcade-gold);
}

/* ---- Garage Top Bar ---- */
.garage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: #171b2b;
  border-bottom: 4px solid var(--ink);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
  border-radius: 6px 6px 0 0;
}

.garage-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.garage-badge {
  font-family: var(--font-pixel);
  font-size: 7px;
  letter-spacing: 1.5px;
  color: var(--arcade-cyan);
  text-shadow: 1px 1px 0 var(--ink);
}

.garage-topbar h2 {
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--arcade-gold);
  text-shadow: 2px 2px 0 var(--ink), 4px 4px 0 var(--arcade-orange);
  margin: 0;
  letter-spacing: 1px;
}

.garage-top-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wallet-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #11131c;
  border: 3px solid var(--ink);
  border-left: 5px solid var(--arcade-gold);
  border-radius: 4px;
  box-shadow: 0 3px 0 var(--ink);
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-dim);
}

.wallet-badge .wallet-icon {
  font-size: 18px;
  animation: retro-coin-bob 1.5s steps(4) infinite;
}

.wallet-badge strong {
  font-size: 16px;
  color: var(--arcade-gold);
  text-shadow: 1px 1px 0 var(--ink);
}

.wallet-badge small {
  font-size: 7px;
  letter-spacing: 1px;
}

.garage-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.garage-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 13px;
  color: #cdd6f4;
  background: linear-gradient(180deg, #37415e 0%, #20273d 100%);
  border: 3px solid var(--ink);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ink), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.08s steps(2), box-shadow 0.08s steps(2), background 0.1s, color 0.1s;
  flex-shrink: 0;
}

.garage-close-btn:hover {
  background: linear-gradient(180deg, #e63946 0%, #a01a24 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink);
}

.garage-close-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}

.btn-sm {
  padding: 10px 16px !important;
  font-size: 10px !important;
  width: auto !important;
  margin: 0 !important;
  min-width: 90px;
}

/* ---- Showcase Stage (Turntable) ---- */
.garage-showcase {
  flex-shrink: 0;
  padding: 20px;
}

.showcase-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 0;
  min-height: 200px;
}

.stage-lighting {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 80% at 50% 40%,
    rgba(255, 204, 0, 0.06) 0%,
    rgba(255, 204, 0, 0.02) 40%,
    transparent 70%
  );
  animation: stage-glow 3s ease-in-out infinite alternate;
}

@keyframes stage-glow {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.stage-nav-btn {
  position: relative;
  z-index: 3;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: linear-gradient(180deg, #37415e 0%, #1e2436 100%);
  color: var(--arcade-gold);
  font-family: var(--font-pixel);
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.1s steps(2), box-shadow 0.1s steps(2);
}

.stage-nav-btn:hover {
  background: linear-gradient(180deg, #445175 0%, #29324e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.25);
}

.stage-nav-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}

.stage-turntable {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#garage-car-canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
}

.turntable-pedestal {
  width: 320px;
  max-width: 80vw;
  height: 12px;
  background: linear-gradient(180deg, #37415e, #1e2436);
  border: 3px solid var(--ink);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 0 var(--ink), 0 16px 32px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.pedestal-hazard {
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--arcade-gold) 0px,
    var(--arcade-gold) 12px,
    var(--ink) 12px,
    var(--ink) 24px
  );
  opacity: 0.3;
}

/* ---- Showcase Info Banner ---- */
.showcase-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--arcade-panel);
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: 0 4px 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.12);
}

.showcase-info {
  flex: 1;
  min-width: 0;
}

.showcase-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.showcase-header h3 {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: #ffffff;
  text-shadow: 1px 1px 0 var(--ink);
  margin: 0;
}

.vehicle-class-badge {
  font-family: var(--font-pixel);
  font-size: 7px;
  letter-spacing: 1px;
  padding: 4px 10px;
  background: #111420;
  color: var(--arcade-cyan);
  border: 2px solid var(--ink);
  border-radius: 3px;
  box-shadow: 0 2px 0 var(--ink);
}

.showcase-desc {
  font-family: var(--font-arcade);
  font-size: 13px;
  color: var(--text-dim);
  margin: 6px 0 0;
}

.showcase-action {
  flex-shrink: 0;
}

.showcase-main-btn {
  width: auto !important;
  min-width: 140px;
  margin: 0 !important;
  padding: 12px 18px !important;
  font-size: 11px !important;
}

.showcase-main-btn.selected-btn {
  background: #0f2e1b !important;
  color: var(--arcade-green) !important;
  border-color: var(--arcade-green) !important;
  box-shadow: 0 4px 0 var(--ink) !important;
  cursor: default;
}

/* ---- Garage Navigation Tabs ---- */
.garage-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  background: #111420;
  padding: 6px;
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: 0 3px 0 var(--ink);
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-pixel);
  font-size: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.1s steps(2);
}

.tab-btn.active {
  background: var(--arcade-gold);
  color: #1a0f00;
  border-color: var(--ink);
  box-shadow: 0 3px 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

/* ---- Garage Content Area ---- */
.garage-tabs,
.vehicle-list,
.upgrade-list {
  margin-left: 20px;
  margin-right: 20px;
}

.vehicle-list,
.upgrade-list {
  padding-bottom: 24px;
}

/* Inspected vehicle highlight */
.vehicle-card.inspected-vehicle {
  border-color: var(--arcade-cyan);
  background: #151e30;
  box-shadow: 0 4px 0 var(--ink), 0 0 0 2px var(--arcade-cyan);
}

/* Vehicle Cards: 16-Bit Select Screen */
.vehicle-list {
  display: grid;
  gap: 12px;
  margin: 12px 0 16px;
  text-align: left;
}

.vehicle-card {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: #141724;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.1s steps(2), border-color 0.1s;
}

.vehicle-card.active-vehicle {
  border-color: var(--arcade-gold);
  background: #1b2033;
  box-shadow: 0 4px 0 var(--ink), inset 0 0 0 2px var(--arcade-gold);
}

.vehicle-preview-wrap {
  width: 58px;
  height: 58px;
  border-radius: 4px;
  background: #0d0f17;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.1);
}

.vehicle-info h3 {
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.5px;
  margin: 0;
  color: #ffffff;
}

.vehicle-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vehicle-cost-badge {
  font-family: var(--font-pixel);
  font-size: 8px;
  padding: 3px 8px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--arcade-gold);
  color: #1a0f00;
  box-shadow: 0 2px 0 var(--ink);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vehicle-cost-badge.free {
  background: var(--arcade-green);
  color: #00260e;
}

.vehicle-info p {
  font-family: var(--font-arcade);
  font-size: 13px;
  color: var(--text-dim);
  margin: 3px 0 6px;
}

/* Segmented 16-Bit Stat Bars */
.stat-bars {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-bar-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-dim);
}

.bar-track {
  width: 48px;
  height: 8px;
  background: #090a10;
  border: 2px solid var(--ink);
  border-radius: 2px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--arcade-gold) 0px,
    var(--arcade-gold) 5px,
    var(--ink) 5px,
    var(--ink) 7px
  );
}

/* Monster Truck Pixel Swatches */
.monster-skins-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.skins-label {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-dim);
}

.skins-swatches {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.skin-swatch {
  width: 20px;
  height: 20px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--ink);
  transition: transform 0.08s steps(2);
  position: relative;
  outline: none;
}

.skin-swatch:hover {
  transform: scale(1.15) translateY(-2px);
}

.skin-swatch.active {
  border-color: #ffffff;
  outline: 2px solid var(--arcade-gold);
  transform: scale(1.2);
}

.skin-swatch.locked {
  opacity: 0.4;
  filter: grayscale(0.8);
}

.skin-swatch.locked::after {
  content: '🔒';
  font-size: 8px;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

/* Action Buttons inside Cards */
.vehicle-action-btn {
  width: auto;
  min-width: 125px;
  margin: 0;
  padding: 10px 12px;
  font-size: 9px;
  letter-spacing: 0.5px;
}

.vehicle-action-btn.selected-btn {
  background: #0f2e1b;
  color: var(--arcade-green);
  border: 2px solid var(--arcade-green);
  box-shadow: 0 3px 0 var(--ink);
  cursor: default;
  pointer-events: none;
}

/* 16-Bit Upgrades Workbench */
.upgrade-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
  text-align: left;
}

.upgrade-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: #141724;
  box-shadow: 0 4px 0 var(--ink);
}

.upgrade-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: #0e1018;
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.15);
}

.upgrade-copy h3 {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: #ffffff;
}

.upgrade-copy p {
  font-family: var(--font-arcade);
  font-size: 13px;
  color: var(--text-dim);
  margin: 2px 0 4px;
}

.upgrade-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.upgrade-level {
  font-family: var(--font-pixel);
  font-size: 7px;
  letter-spacing: 0.5px;
  line-height: 1.2;
  color: var(--arcade-gold);
  white-space: nowrap;
}

/* 16-Bit Level Pip Blocks [■][■][■] */
.upgrade-pips {
  display: flex;
  gap: 4px;
}

.upgrade-pips i {
  width: 14px;
  height: 6px;
  background: #24293d;
  border: 1px solid var(--ink);
  border-radius: 1px;
}

.upgrade-pips i.on {
  background: var(--arcade-gold);
  box-shadow: 0 0 6px rgba(255, 204, 0, 0.6);
}

.btn.upgrade-buy {
  width: auto;
  min-width: 128px;
  margin: 0;
  padding: 10px 12px;
  font-size: 9px;
}

/* ---------------- GAME OVER & PAUSE (2D RACING OVERLAYS WITH CORNERS) ---------------- */

#screen-over .panel,
#screen-pause .panel {
  background: #141724;
  border: 2.5px solid #282f45;
  border-radius: 10px;
  padding: 32px 34px;
  min-width: min(90vw, 380px);
  max-width: min(92vw, 440px);
  box-shadow: 
    0 8px 0 #0a0d15,
    0 24px 60px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: modal-enter 0.25s steps(4) ease-out;
}

@keyframes modal-enter {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

#screen-over h2,
#screen-pause h2 {
  font-family: var(--font-num);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: none;
}

#screen-over h2 {
  background: linear-gradient(180deg, #ffffff 0%, #ff5252 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(255, 82, 82, 0.4));
}

#screen-pause h2 {
  background: linear-gradient(180deg, #ffffff 0%, #00e5ff 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 229, 255, 0.4));
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.stat {
  background: #0d101a;
  border: 1.5px solid #252b3e;
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 3px 0 #07090f, inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.stat:hover {
  border-color: #3b4564;
}

.stat-label {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.stat-value {
  font-family: var(--font-num);
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.stat.best .stat-value {
  color: #ea80fc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.new-best {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border: 2px solid #ffd54f;
  border-radius: 6px;
  background: #2b2108;
  color: #ffd54f;
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 0 #110d03;
  margin-bottom: 18px;
  animation: pro-best-pulse 1.4s infinite alternate ease-in-out;
}

@keyframes pro-best-pulse {
  from { transform: scale(0.98); }
  to { transform: scale(1.02); }
}

#screen-over .btn,
#screen-pause .btn {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1.2px;
  margin: 10px 0;
  border: 2px solid #000000;
  box-shadow: 0 5px 0 #0a0d15;
  transition: transform 0.08s steps(2), box-shadow 0.08s steps(2);
}

#screen-over .btn.primary,
#screen-pause .btn.primary {
  background: linear-gradient(180deg, #ffea75 0%, #ffbb00 45%, #e68500 100%);
  color: #1a0f00;
  box-shadow: 0 5px 0 #0a0d15, inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

#screen-over .btn.primary:hover,
#screen-pause .btn.primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #0a0d15;
}

#screen-over .btn.primary:active,
#screen-pause .btn.primary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #0a0d15;
}

#screen-over .btn.ghost,
#screen-pause .btn.ghost {
  background: linear-gradient(180deg, #37415e 0%, #20273d 100%);
  color: #ffffff;
  box-shadow: 0 5px 0 #0a0d15, inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#screen-over .btn.ghost:hover,
#screen-pause .btn.ghost:hover {
  background: linear-gradient(180deg, #445175 0%, #29324e 100%);
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #0a0d15;
}

#screen-over .btn.ghost:active,
#screen-pause .btn.ghost:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #0a0d15;
}

/* ---------------- TOUCH CONTROLS (16-BIT ARCADE CABINET PADS) ---------------- */

#touch-controls.hidden {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  #touch-controls { display: none !important; }
}

#touch-controls {
  position: fixed;
  inset: auto 0 16px 0;
  display: flex;
  justify-content: space-between;
  padding: 0 max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  pointer-events: none;
  z-index: 20;
}

.touch-pad {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  pointer-events: auto;
}

.pause-touch {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: auto;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: #1a1e2d;
  box-shadow: 0 4px 0 var(--ink);
  font-family: var(--font-pixel);
  font-size: 16px;
  line-height: 1;
  color: var(--arcade-gold);
}

.pause-touch small {
  font-size: 6px;
  letter-spacing: 1px;
  margin-top: 3px;
}

.pause-touch:active {
  transform: translateX(-50%) translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}

.touch-btn {
  width: 68px;
  height: 68px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: linear-gradient(180deg, #37415e 0%, #1e2436 100%);
  color: #ffffff;
  font-family: var(--font-pixel);
  font-size: 18px;
  box-shadow: 0 6px 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  touch-action: none;
}

.touch-btn small {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--text-dim);
}

.touch-btn.gas {
  width: 82px;
  height: 82px;
  background: linear-gradient(180deg, #ffea75 0%, #ffbb00 45%, #e68500 100%);
  color: #1a0f00;
  box-shadow: 0 6px 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.touch-btn.gas small {
  color: #4d2e00;
}

.touch-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--ink);
}

/* ---------------- RESPONSIVE ADJUSTMENTS ---------------- */

/* ---- Mobile: Full-Screen Garage Showroom ---- */
@media (max-width: 768px), (max-height: 520px) {
  .garage-screen {
    display: block;
    padding: 0;
    background: radial-gradient(ellipse at 50% 30%, #1e233a 0%, #0d0f18 70%, #060710 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: hidden;
    cursor: default;
  }

  .garage-container {
    width: 100%;
    height: 100vh;
    max-height: 100dvh;
    max-width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    animation: none;
    background: transparent;
    padding-bottom: 24px;
  }

  .garage-topbar {
    border-radius: 0;
    position: static;
  }
}

@media (max-width: 640px) {
  .hud-top {
    top: 8px; left: 8px; right: 8px;
    flex-direction: column; gap: 6px;
  }
  .hud-group { gap: 6px; }
  .hud-group.right { align-self: flex-end; }
  .hud-chip {
    height: 38px;
    padding: 3px 10px 3px 5px;
    gap: 7px;
    border-radius: 6px;
    box-shadow: 0 3px 0 #0a0d15, inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
  .hud-icon {
    width: 26px;
    height: 26px;
    font-size: 13px;
    border-radius: 4px;
    box-shadow: 0 1px 0 #0a0d15;
  }
  .hud-reading {
    font-size: 17px;
  }
  .hud-label {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .hud-unit {
    font-size: 9px;
  }
  .hud-chip.biome-chip {
    font-size: 11px;
    height: 38px;
    padding: 0 12px;
    letter-spacing: 1.2px;
    border-radius: 6px;
    box-shadow: 0 3px 0 #06100b;
  }
  .hud-chip.speed-chip {
    min-width: 88px;
    padding: 3px 10px;
  }
  .speed-track {
    width: 52px;
    height: 5px;
    border-radius: 2px;
  }

  .hud-bottom {
    left: 8px; right: 8px; bottom: 85px;
  }
  .fuel-wrap {
    height: 44px;
    padding: 4px 12px 4px 6px;
    gap: 8px;
    border-radius: 6px;
    box-shadow: 0 3px 0 #0a0d15;
  }
  .fuel-label {
    width: 30px;
    height: 30px;
    font-size: 13px;
    border-radius: 4px;
    box-shadow: 0 1px 0 #150608;
  }
  .fuel-copy {
    width: min(40vw, 130px);
  }
  .fuel-heading {
    font-size: 9px;
  }
  .fuel-heading span:last-child {
    font-size: 11px;
  }
  .fuel-bar {
    height: 6px;
    border-radius: 2px;
  }
  .hints { display: none; }

  .panel { padding: 22px 18px; }
  .title { font-size: 32px; }
  .controls-grid { grid-template-columns: 1fr; gap: 5px; }

  /* Garage responsive */
  .garage-topbar {
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 8px;
  }
  .garage-topbar h2 { font-size: 14px; }
  .garage-badge { font-size: 6px; }
  .wallet-badge { padding: 6px 10px; }
  .wallet-badge strong { font-size: 13px; }
  .garage-top-actions {
    width: 100%;
    justify-content: stretch;
    display: flex;
    gap: 8px;
  }
  .garage-top-actions .btn { flex: 1; }
  .garage-close-btn {
    flex: 0 0 38px;
    height: 38px;
  }
  .garage-showcase { padding: 12px; }
  .showcase-stage { padding: 16px 0; min-height: 160px; }
  .stage-nav-btn { width: 38px; height: 38px; font-size: 14px; }
  #garage-car-canvas { width: 280px !important; height: 120px !important; }
  .turntable-pedestal { width: 240px; }
  .showcase-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 14px;
  }
  .showcase-main-btn { width: 100% !important; }
  .garage-tabs,
  .vehicle-list,
  .upgrade-list { margin-left: 12px; margin-right: 12px; }
  .garage-tabs { flex-direction: column; gap: 4px; }
  .vehicle-card { grid-template-columns: 50px minmax(0, 1fr); gap: 10px; }
  .vehicle-action-btn { grid-column: 1 / -1; }

  .upgrade-card { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; }
  .btn.upgrade-buy { grid-column: 2; justify-self: start; margin-top: 4px; }
  
  .touch-btn { width: 56px; height: 56px; font-size: 16px; }
  .touch-btn.gas { width: 68px; height: 68px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
