:root {
  --bg: rgba(12, 16, 24, 0.72);
  --border: rgba(255, 255, 255, 0.14);
  --accent: #22d3ee;
  --wp: #d946ef;
  --gold: #f6c453;
  --text: #f3f5f8;
  --muted: #9aa4b4;
}
* { box-sizing: border-box; user-select: none; -webkit-user-select: none; }
html, body {
  margin: 0; padding: 0; width: 100%; height: 100dvh; height: 100vh; height: 100dvh; overflow: hidden;
  background: #0a0e14; color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  touch-action: none; overscroll-behavior: none; -webkit-tap-highlight-color: transparent;
}
#gl { display: block; width: 100%; height: 100%; touch-action: none; }
/* Suppress floating collaboration drawer chrome outside main game UI */
#netlify-drawer {
  display: none !important; visibility: hidden !important; pointer-events: none !important; opacity: 0 !important;
  width: 0 !important; height: 0 !important;
}
.hidden { display: none !important; }
.glass {
  background: var(--bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(0,0,0,0.45);
}

/* Loading */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, #162234, #090d14 75%);
}
.load-card {
  width: min(480px, 90vw); padding: 34px 32px; border-radius: 18px;
  background: rgba(14, 19, 28, 0.88); border: 1px solid rgba(255,255,255,0.12);
  text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,0.65);
}
.uz-bar { display: flex; height: 5px; border-radius: 99px; overflow: hidden; margin-bottom: 18px; gap: 2px; }
.uz-bar span:nth-child(1) { flex: 1; background: #1eb4e8; }
.uz-bar span:nth-child(2) { flex: 1; background: #ffffff; }
.uz-bar span:nth-child(3) { flex: 1; background: #1eb53a; }
.load-card h1 { margin: 0 0 6px; letter-spacing: 0.14em; font-size: 28px; font-weight: 800; }
.subtitle { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.progress-wrap { height: 7px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #1eb4e8, #22d3ee, #1eb53a); transition: width 0.18s ease; }
.load-msg { margin-top: 12px; font-size: 12px; color: var(--muted); }

/* Garage */
.garage {
  position: fixed; inset: 0; z-index: 20; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(180deg, rgba(8,11,18,0.65) 0%, rgba(8,11,18,0) 24%, rgba(8,11,18,0) 64%, rgba(8,11,18,0.84) 100%);
}
.garage-top { display: flex; justify-content: space-between; align-items: flex-start; pointer-events: auto; }
.garage-actions-top { display: flex; align-items: center; gap: 10px; pointer-events: auto; }
.garage-tabs { display: flex; gap: 6px; }
.car-panel { display: flex; flex-direction: column; gap: 10px; }
.char-panel {
  width: min(560px, 100%); padding: 12px 16px; border-radius: 14px;
  display: flex; flex-direction: column; gap: 8px; pointer-events: auto;
}
.char-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.char-row > span { width: 76px; font-size: 9px; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; }
.char-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-uz { font-size: 11px; letter-spacing: 0.16em; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.garage-top h2 { margin: 0; font-size: 32px; font-weight: 800; text-shadow: 0 4px 18px rgba(0,0,0,0.6); }
.car-tag { margin: 4px 0 0; color: var(--gold); font-size: 13px; font-weight: 600; }

.btn-primary {
  pointer-events: auto; cursor: pointer;
  border: none; border-radius: 12px; padding: 13px 30px;
  background: linear-gradient(135deg, #06b6d4, #22d3ee); color: #05131c;
  font-size: 15px; font-weight: 800; letter-spacing: 0.10em;
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.35);
  transition: transform 0.14s ease, filter 0.14s ease;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-primary:active { transform: scale(0.97); }

.garage-bottom { display: flex; flex-direction: column; gap: 10px; pointer-events: auto; }
.garage-specs { width: min(460px, 100%); padding: 12px 16px; border-radius: 14px; }
.car-blurb { margin: 0 0 8px; font-size: 12px; color: #dbe2ec; line-height: 1.35; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: center; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat span { font-size: 9px; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.stat b { font-size: 12px; }
.bar { height: 5px; border-radius: 99px; background: rgba(255,255,255,0.1); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #22d3ee, #38bdf8); border-radius: 99px; transition: width 0.25s ease; }

.swatch-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.swatch-row > span { font-size: 9px; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; }
.swatches { display: flex; gap: 8px; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255,255,255,0.3); transition: transform 0.15s ease, border-color 0.15s ease;
}
.swatch.active { transform: scale(1.18); border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }

.car-list {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.car-card {
  flex: 0 0 auto; min-width: 152px; padding: 10px 13px; border-radius: 12px;
  background: rgba(14, 19, 28, 0.8); border: 1px solid rgba(255,255,255,0.12);
  color: var(--text); text-align: left; cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.car-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.34); }
.car-card.active { background: rgba(34, 211, 238, 0.16); border-color: var(--accent); }
.car-card .cc-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.car-card .cc-sub { font-size: 11px; color: var(--muted); }

/* HUD */
.hud { position: fixed; inset: 0; z-index: 15; pointer-events: none; }
.hud-tl { position: fixed; top: 16px; left: 16px; display: flex; flex-direction: column; gap: 8px; pointer-events: auto; }
.street-pill { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 12px; width: fit-content; }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 10px #22d3ee; }
.street-name { font-size: 14px; font-weight: 700; }
.sub-info { font-size: 11px; color: var(--muted); }

.wp-pill {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; width: fit-content;
  font-size: 12px; border-color: rgba(217, 70, 239, 0.5);
}
.dot-wp { width: 8px; height: 8px; border-radius: 50%; background: var(--wp); box-shadow: 0 0 10px var(--wp); }
.wp-x {
  background: rgba(255,255,255,0.12); border: none; color: #fff; border-radius: 6px;
  cursor: pointer; padding: 2px 6px; font-size: 11px;
}

.quick-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.chip, .chip-sel {
  appearance: none; -webkit-appearance: none;
  background: var(--bg); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 11px; font-weight: 600; padding: 6px 10px;
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.chip:hover, .chip-sel:hover { border-color: var(--accent); }
.chip.on { background: rgba(34, 211, 238, 0.2); border-color: var(--accent); color: #fff; }
kbd {
  display: inline-block; padding: 1px 5px; margin-left: 3px;
  border-radius: 4px; background: rgba(255,255,255,0.12); font-size: 10px; font-family: inherit;
}

.race-panel {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  padding: 10px 22px; border-radius: 14px; text-align: center;
}
.race-title { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.race-meta { display: flex; gap: 18px; align-items: baseline; justify-content: center; margin-top: 3px; font-size: 13px; }
.race-timer { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }

.banner {
  position: fixed; top: 96px; left: 50%; transform: translateX(-50%);
  padding: 12px 26px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.92), rgba(6, 182, 212, 0.92));
  color: #031317; font-size: 18px; font-weight: 900; letter-spacing: 0.08em;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.minimap-wrap {
  position: fixed; bottom: 16px; left: 16px; padding: 8px; border-radius: 16px; pointer-events: auto;
  cursor: pointer; transition: transform 0.14s ease, border-color 0.14s ease;
}
.minimap-wrap:hover { transform: scale(1.02); border-color: var(--accent); }
#minimap { display: block; border-radius: 12px; }
.minimap-tag {
  position: absolute; top: 14px; right: 14px; font-size: 9px; font-weight: 800; letter-spacing: 0.08em;
  background: rgba(12,16,24,0.75); padding: 2px 6px; border-radius: 6px; color: var(--accent);
  border: 1px solid rgba(34,211,238,0.35);
}
.minimap-foot {
  display: flex; justify-content: space-between; font-size: 10px; color: var(--muted);
  margin-top: 5px; padding: 0 4px; font-variant-numeric: tabular-nums;
}

.cluster {
  position: fixed; bottom: 68px; right: 16px; width: 244px; height: 174px;
  border-radius: 18px; padding: 10px;
}
#tach { position: absolute; top: 4px; left: 6px; }
.gear-badge {
  position: absolute; right: 20px; top: 14px; width: 32px; height: 32px; border-radius: 9px;
  background: rgba(34, 211, 238, 0.18); border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
}
.dmg-badge {
  position: absolute; right: 60px; top: 18px; font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
  padding: 4px 7px; border-radius: 7px; background: rgba(16, 185, 129, 0.2); border: 1px solid rgba(16, 185, 129, 0.45); color: #6ee7b7;
}
.dmg-badge.warn { background: rgba(245, 158, 11, 0.24); border-color: rgba(245, 158, 11, 0.55); color: #fde68a; }
.dmg-badge.crit { background: rgba(239, 68, 68, 0.28); border-color: rgba(239, 68, 68, 0.65); color: #fecaca; }
.interact-pill {
  position: fixed; bottom: 72px; left: 50%; transform: translateX(-50%);
  padding: 9px 18px; border-radius: 99px; border-color: var(--accent); color: #fff;
  font-size: 13px; font-weight: 800; letter-spacing: 0.04em; cursor: pointer; pointer-events: auto;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}
.speed-readout { position: absolute; right: 18px; bottom: 44px; text-align: right; }
.speed-num { font-size: 42px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.speed-unit { font-size: 10px; letter-spacing: 0.16em; color: var(--muted); font-weight: 700; margin-top: 2px; }
.nitro-wrap { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.nitro-wrap span { font-size: 9px; letter-spacing: 0.14em; color: var(--muted); font-weight: 700; display: flex; justify-content: space-between; }
.nitro-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.1); overflow: hidden; }
.nitro-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #0ea5e9, #22d3ee, #a5f3fc); transition: width 0.08s linear; }

.hints {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 14px; font-size: 11px; color: rgba(255,255,255,0.72);
  background: rgba(10,14,22,0.55); padding: 6px 14px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.08); white-space: nowrap;
}

/* Full-screen GTA 5 Style Interactive Map */
.big-map {
  position: fixed; inset: 0; z-index: 40;
  background: #0a0f17; display: flex; flex-direction: column;
}
.big-map-bar {
  position: relative; z-index: 2; padding: 12px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.bm-title { display: flex; flex-direction: column; gap: 2px; }
.bm-title strong { font-size: 15px; letter-spacing: 0.12em; color: var(--accent); }
.bm-title span { font-size: 11px; color: var(--muted); }
.bm-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.btn-close-map {
  background: rgba(239, 68, 68, 0.22); border: 1px solid rgba(239, 68, 68, 0.55);
  color: #fff; border-radius: 8px; padding: 6px 12px; font-size: 11px; font-weight: 700; cursor: pointer;
}
#bigMapCanvas { flex: 1; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.big-map-foot {
  position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%);
  padding: 7px 18px; border-radius: 99px; font-size: 12px; color: #e2e8f0; pointer-events: none;
}
.gkey-box {
  position: fixed; top: 68px; right: 18px; z-index: 5;
  padding: 12px 14px; border-radius: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 480px; font-size: 11px; color: var(--muted);
}
.gkey-box input {
  flex: 1; min-width: 180px; background: rgba(0,0,0,0.45); border: 1px solid var(--border);
  border-radius: 6px; color: #fff; padding: 6px 8px; font-size: 12px;
}

.touch-controls {
  position: fixed;
  inset: auto max(16px, env(safe-area-inset-right)) max(68px, calc(env(safe-area-inset-bottom) + 60px)) max(16px, env(safe-area-inset-left));
  display: flex; justify-content: space-between; align-items: flex-end;
  pointer-events: none; z-index: 18;
}
.touch-left-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none; }
.touch-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.touch-pad { display: flex; gap: 12px; pointer-events: auto; align-items: flex-end; }
.touch-pad button {
  width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.34);
  background: rgba(12,18,28,0.82); color: #fff; font-size: 16px; font-weight: 800;
  touch-action: none; box-shadow: 0 8px 22px rgba(0,0,0,0.48);
  transition: transform 0.08s ease, filter 0.08s ease;
}
.touch-aux button { width: 52px; height: 42px; border-radius: 14px; font-size: 12px; }
.touch-pad .t-exit, .touch-pad .t-wenter { background: rgba(245, 158, 11, 0.78); border-color: rgba(253, 230, 138, 0.58); color: #1a1102; width: 66px; border-radius: 18px; }
.touch-pad .t-wpunch { background: rgba(239, 68, 68, 0.74); border-color: rgba(252, 165, 165, 0.52); }
.touch-pad .t-wjump { background: rgba(16, 185, 129, 0.72); border-color: rgba(110, 231, 183, 0.55); }
.touch-pad .t-wcam { background: rgba(59, 130, 246, 0.68); }
.touch-pad .t-wsprint { background: rgba(34, 211, 238, 0.68); }
.touch-pad .t-wsprint.pressed, .touch-pad .t-wsprint.on { filter: brightness(1.25); box-shadow: 0 0 14px rgba(34,211,238,0.6); }
.walk-stick {
  position: relative; width: 112px; height: 112px; border-radius: 50%;
  background: rgba(12,18,28,0.58); border: 1.5px solid rgba(255,255,255,0.28);
  pointer-events: auto; touch-action: none; display: flex; align-items: center; justify-content: center;
}
.walk-stick-ring { width: 76px; height: 76px; border-radius: 50%; border: 1px dashed rgba(255,255,255,0.22); pointer-events: none; }
.walk-knob {
  position: absolute; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(34, 211, 238, 0.85); border: 2px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.45); pointer-events: none;
}
.touch-pad .t-gas { width: 70px; height: 74px; border-radius: 22px; background: rgba(16, 185, 129, 0.72); border-color: rgba(110, 231, 183, 0.55); }
.touch-pad .t-brk { width: 64px; height: 64px; border-radius: 20px; background: rgba(239, 68, 68, 0.72); border-color: rgba(252, 165, 165, 0.5); }
.touch-pad button:active, .touch-pad button.pressed { transform: scale(0.92); filter: brightness(1.3); }
.touch-pad .t-drift { background: rgba(217, 70, 239, 0.62); }
.touch-pad .t-nitro { background: rgba(34, 211, 238, 0.68); }

@media (max-width: 900px) {
  .hints { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .minimap-wrap { bottom: calc(206px + env(safe-area-inset-bottom)); }
  .cluster { bottom: calc(206px + env(safe-area-inset-bottom)); }
}

@media (max-width: 720px) {
  .garage { padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
  .garage-top { flex-wrap: wrap; gap: 8px; }
  .garage-top h2 { font-size: 22px; }
  .car-tag { font-size: 11px; }
  .btn-primary { padding: 10px 18px; font-size: 13px; border-radius: 10px; }
  .garage-specs { padding: 9px 12px; }
  .car-blurb { font-size: 11px; margin-bottom: 6px; }
  .car-card { min-width: 136px; padding: 8px 10px; }
  .char-panel { padding: 9px 12px; gap: 6px; max-height: 44vh; overflow-y: auto; }
  .char-row > span { width: 58px; font-size: 8.5px; }

  .hud-tl { top: max(8px, env(safe-area-inset-top)); left: 8px; right: 8px; gap: 5px; }
  .street-pill { padding: 6px 10px; }
  .street-name { font-size: 12px; }
  .sub-info { font-size: 10px; }
  .quick-bar { flex-wrap: wrap; gap: 4px; max-width: 100%; }
  .quick-bar kbd, .nitro-wrap kbd { display: none; }
  .chip, .chip-sel { padding: 4px 7px; font-size: 9.5px; }

  .minimap-wrap { left: max(10px, env(safe-area-inset-left)); bottom: calc(200px + env(safe-area-inset-bottom)); width: 116px; padding: 5px; border-radius: 13px; }
  #minimap { width: 106px; height: 106px; border-radius: 9px; }
  .minimap-tag { top: 8px; right: 8px; font-size: 8px; padding: 1px 4px; }
  .minimap-foot { font-size: 7px; margin-top: 3px; padding: 0 2px; white-space: nowrap; gap: 4px; }

  .cluster { right: max(10px, env(safe-area-inset-right)); bottom: calc(200px + env(safe-area-inset-bottom)); width: 162px; height: 108px; padding: 7px; border-radius: 14px; }
  #tach { transform: scale(0.70); transform-origin: top left; top: 3px; left: 4px; }
  .gear-badge { right: 10px; top: 8px; width: 24px; height: 24px; font-size: 12px; border-radius: 7px; }
  .dmg-badge { right: 38px; top: 9px; font-size: 8px; padding: 2px 4px; }
  .interact-pill { bottom: calc(356px + env(safe-area-inset-bottom)); font-size: 12px; padding: 7px 14px; }
  .speed-readout { right: 10px; bottom: 26px; }
  .speed-num { font-size: 28px; }
  .speed-unit { font-size: 8px; }
  .nitro-wrap { left: 10px; right: 10px; bottom: 7px; }
  .nitro-wrap span { font-size: 8px; }

  .touch-controls { inset: auto max(12px, env(safe-area-inset-right)) max(68px, calc(env(safe-area-inset-bottom) + 60px)) max(12px, env(safe-area-inset-left)); }
  .touch-left-col { gap: 8px; }
  .touch-right { gap: 8px; }
  .touch-pad { gap: 10px; }
  .touch-pad button { width: 64px; height: 64px; font-size: 15px; }
  .touch-aux button { width: 52px; height: 40px; font-size: 11px; }
  .touch-pad .t-exit { width: 58px; }
  .touch-pad .t-wenter { width: 60px; height: 62px; font-size: 13px; }
  .touch-pad .t-wpunch, .touch-pad .t-wjump { width: 58px; height: 58px; font-size: 13px; }
  .walk-stick { width: 104px; height: 104px; }
  .walk-knob { width: 42px; height: 42px; }
  .touch-pad .t-gas { width: 68px; height: 70px; font-size: 14px; }
  .touch-pad .t-brk { width: 62px; height: 62px; font-size: 14px; }

  .big-map-bar { padding: 8px 10px; gap: 6px; }
  .bm-title span { display: none; }
  .bm-actions { flex-wrap: wrap; gap: 4px; max-width: 100%; }
  .big-map-foot { bottom: max(12px, env(safe-area-inset-bottom)); padding: 5px 12px; font-size: 10px; max-width: 92vw; text-align: center; }
}

@media (max-height: 520px) {
  .hints { display: none; }
  .hud-tl { top: max(6px, env(safe-area-inset-top)); left: 8px; right: 8px; gap: 4px; }
  .street-pill { padding: 4px 10px; }
  .quick-bar { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; touch-action: pan-x; scrollbar-width: none; }
  .quick-bar::-webkit-scrollbar { display: none; }
  .quick-bar kbd, .nitro-wrap kbd { display: none; }
  .chip, .chip-sel { flex: 0 0 auto; padding: 4px 8px; font-size: 10px; }

  .minimap-wrap { left: max(10px, env(safe-area-inset-left)); bottom: calc(168px + env(safe-area-inset-bottom)); width: 96px; padding: 4px; }
  #minimap { width: 88px; height: 88px; }
  .minimap-foot { font-size: 7.5px; margin-top: 2px; }

  .cluster { right: max(10px, env(safe-area-inset-right)); bottom: calc(168px + env(safe-area-inset-bottom)); width: 152px; height: 96px; }
  #tach { transform: scale(0.64); transform-origin: top left; top: 3px; left: 4px; }
  .gear-badge { top: 6px; right: 8px; width: 22px; height: 22px; font-size: 11px; }
  .dmg-badge { display: none; }
  .interact-pill { bottom: 162px; font-size: 11px; padding: 6px 12px; }
  .speed-readout { bottom: 20px; right: 8px; }
  .speed-num { font-size: 24px; }
  .nitro-wrap { left: 10px; right: 10px; bottom: 5px; }

  .touch-controls { inset: auto max(14px, env(safe-area-inset-right)) max(68px, calc(env(safe-area-inset-bottom) + 60px)) max(14px, env(safe-area-inset-left)); }
  .touch-left-col { gap: 6px; }
  .touch-right { gap: 6px; }
  .touch-pad { gap: 8px; }
  .touch-pad button { width: 52px; height: 52px; font-size: 13px; }
  .touch-aux button { width: 44px; height: 32px; font-size: 10px; }
  .touch-pad .t-exit { width: 48px; }
  .touch-pad .t-wenter, .touch-pad .t-wpunch, .touch-pad .t-wjump { width: 50px; height: 50px; font-size: 11px; }
  .walk-stick { width: 88px; height: 88px; }
  .walk-knob { width: 36px; height: 36px; }
  .touch-pad .t-gas { width: 58px; height: 54px; }
  .touch-pad .t-brk { width: 52px; height: 52px; }

  .garage { padding: 8px 14px; }
  .garage-top h2 { font-size: 20px; }
  .car-blurb { display: none; }
  .car-card { padding: 6px 10px; min-width: 132px; }
}

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