:root {
  --hud-bg: rgba(12, 15, 22, 0.72);
  --hud-bg-strong: rgba(14, 18, 28, 0.88);
  --hud-border: rgba(255, 255, 255, 0.14);
  --hud-text: #f6f7fb;
  --hud-muted: rgba(235, 240, 250, 0.68);
  --gta-gold: #f5b942;
  --gta-coral: #ff6b4a;
  --gta-teal: #2dd4bf;
  --apple-green: #30d158;
  --apple-blue: #0a84ff;
  --danger: #ff453a;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b0e16;
  color: var(--hud-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#gl-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

/* ==================== TITLE SPLASH OVERLAY ==================== */
#splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 36px;
  background: linear-gradient(
    135deg,
    rgba(10, 12, 22, 0.78) 0%,
    rgba(22, 16, 30, 0.42) 52%,
    rgba(10, 12, 22, 0.84) 100%
  );
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

#splash-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.splash-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 20, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--hud-muted);
}

.splash-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--apple-green);
  box-shadow: 0 0 8px var(--apple-green);
}

.splash-center {
  max-width: 660px;
  margin: auto 0;
}

.gta-brand-kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gta-gold);
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.gta-title {
  font-size: clamp(38px, 6.2vw, 72px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 4px 0 #141824,
    0 8px 28px rgba(0, 0, 0, 0.65);
}

.gta-title .accent {
  display: block;
  color: var(--gta-gold);
  font-style: italic;
  text-shadow:
    0 4px 0 #1a120a,
    0 10px 30px rgba(245, 185, 66, 0.35);
}

.gta-subtitle {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(245, 247, 255, 0.86);
  max-width: 540px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.splash-car-picker {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
}

.splash-car-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(14, 18, 28, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  text-align: left;
}

.splash-car-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
}

.splash-car-btn.active {
  background: rgba(245, 185, 66, 0.22);
  border-color: var(--gta-gold);
}

.splash-car-swatch {
  width: 24px;
  height: 7px;
  border-radius: 99px;
  margin-bottom: 2px;
}

.splash-car-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.splash-car-meta {
  font-size: 11px;
  color: var(--hud-muted);
}

.splash-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn-play-gta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  background: var(--gta-gold);
  color: #14120c;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(245, 185, 66, 0.36);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-play-gta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.splash-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--hud-muted);
}

.source-chip {
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(14, 18, 28, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

/* ==================== GAMEPLAY HUD ==================== */
#hud-root {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

#hud-root.hidden {
  display: none;
}

.hud-top-bar {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: calc(14px + env(safe-area-inset-left, 0px));
  right: calc(14px + env(safe-area-inset-right, 0px));
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.toolbar-group {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--hud-bg);
  border: 1px solid var(--hud-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--hud-text);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease;
}

.tb-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.tb-btn.active {
  background: rgba(245, 185, 66, 0.24);
  color: var(--gta-gold);
}

.tb-key {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--hud-muted);
}

.hud-status-right {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.gta-stats-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 14px;
  border-radius: 12px;
  background: var(--hud-bg);
  border: 1px solid var(--hud-border);
  backdrop-filter: blur(14px);
  font-variant-numeric: tabular-nums;
}

.stat-clock {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.stat-elev {
  font-size: 12px;
  color: var(--gta-teal);
  font-weight: 600;
}

.stat-radio {
  font-size: 12px;
  color: var(--gta-gold);
  font-weight: 600;
  cursor: pointer;
}

.wanted-stars {
  display: flex;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 18, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.wanted-stars.visible {
  opacity: 1;
  transform: translateY(0);
}

.wanted-star {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.22);
}

.wanted-star.lit {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
  animation: pulseStar 0.9s infinite alternate;
}

@keyframes pulseStar {
  from { color: #fbbf24; }
  to { color: #60a5fa; }
}

/* ==================== DISTRICT BANNER ==================== */
#district-banner {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  text-align: center;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

#district-banner.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.district-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-style: italic;
  color: var(--gta-gold);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.85), 0 6px 20px rgba(0, 0, 0, 0.75);
}

.district-sub {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* ==================== MINIMAP (BOTTOM-LEFT) ==================== */
.minimap-wrap {
  position: absolute;
  left: 16px;
  bottom: 16px;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.minimap-frame {
  position: relative;
  width: 196px;
  height: 146px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(10, 14, 22, 0.86);
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

#minimap-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.minimap-gps {
  position: absolute;
  left: 8px;
  bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(10, 14, 22, 0.78);
  color: rgba(255, 255, 255, 0.86);
}

.minimap-north {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 10px;
  font-weight: 800;
  color: var(--gta-gold);
  background: rgba(10, 14, 22, 0.72);
  padding: 1px 5px;
  border-radius: 4px;
}

.health-armor-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.hud-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.hud-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.2s ease;
}

.bar-health { background: var(--apple-green); }
.bar-car { background: var(--gta-teal); }

/* ==================== SPEEDOMETER & VEHICLE (BOTTOM-RIGHT) ==================== */
.speedo-wrap {
  position: absolute;
  right: 16px;
  bottom: 16px;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.street-readout {
  text-align: right;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.street-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.district-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gta-gold);
  letter-spacing: 0.04em;
}

.speedo-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--hud-bg);
  border: 1px solid var(--hud-border);
  backdrop-filter: blur(14px);
}

.speed-num {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: #fff;
  min-width: 58px;
  text-align: right;
}

.speed-unit {
  font-size: 10px;
  font-weight: 700;
  color: var(--hud-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.car-badge-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding-left: 12px;
}

.car-badge-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.car-badge-plate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--hud-muted);
}

.plate-tag {
  padding: 1px 5px;
  border-radius: 3px;
  background: #f4f4f6;
  color: #111;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: 1px solid #333;
}

.car-quick-strip {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--hud-bg);
  border: 1px solid var(--hud-border);
  backdrop-filter: blur(12px);
}

.car-pill {
  height: 28px;
  padding: 0 9px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--hud-muted);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.car-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.car-pill.active {
  background: var(--gta-gold);
  color: #15120b;
}

/* ==================== CONTROLS HINT & TOAST ==================== */
#toast-bar {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(14, 18, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
}

#toast-bar.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==================== DRAWERS (DATA / STREET VIEW / FULL MAP) ==================== */
.drawer-panel {
  position: fixed;
  top: 62px;
  right: 16px;
  width: min(390px, calc(100vw - 32px));
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  z-index: 45;
  border-radius: 16px;
  background: var(--hud-bg-strong);
  border: 1px solid var(--hud-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65);
  padding: 16px;
  pointer-events: auto;
  display: none;
}

.drawer-panel.open {
  display: block;
}

.drawer-panel.wide {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(860px, calc(100vw - 32px));
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.drawer-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.section-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hud-muted);
  margin: 14px 0 8px;
}

.section-kicker:first-of-type {
  margin-top: 2px;
}

.settings-group {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-info {
  min-width: 0;
}

.setting-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.setting-desc {
  font-size: 11px;
  color: var(--hud-muted);
  margin-top: 2px;
}

/* Apple-style Switch */
.apple-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 99px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.18s ease;
}

.apple-switch[aria-checked="true"] {
  background: var(--apple-green);
}

.apple-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease;
}

.apple-switch[aria-checked="true"]::after {
  transform: translateX(18px);
}

/* Apple-style Segmented Control */
.segmented {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.seg-btn {
  flex: 1;
  height: 30px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--hud-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.seg-btn.active {
  background: rgba(255, 255, 255, 0.92);
  color: #111;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.ui-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.ui-btn.primary {
  background: var(--gta-gold);
  border-color: transparent;
  color: #15120b;
  font-weight: 700;
}

.inline-status {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--gta-teal);
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.22);
}

/* Street View Card */
.sv-coords-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.sv-metric {
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sv-metric-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hud-muted);
}

.sv-metric-val {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.sv-iframe-box {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0d121d;
  margin-top: 10px;
  display: none;
}

.sv-iframe-box.active {
  display: block;
}

.sv-input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 12px;
}

/* Full Map Drawer */
.fullmap-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 14px;
}

#fullmap-canvas {
  width: 100%;
  height: 440px;
  border-radius: 12px;
  background: #0b111b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: crosshair;
}

.teleport-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 440px;
  overflow-y: auto;
}

.tp-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.tp-btn:hover {
  background: rgba(245, 185, 66, 0.2);
  border-color: var(--gta-gold);
}

.tp-name {
  font-size: 12.5px;
  font-weight: 700;
}

.tp-sub {
  font-size: 10.5px;
  color: var(--hud-muted);
}

/* ==================== MOBILE TOUCH CONTROLS ==================== */
#touch-controls {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  padding: 0 14px;
  z-index: 30;
  pointer-events: none;
  justify-content: space-between;
  align-items: flex-end;
}

.touch-cluster {
  pointer-events: auto;
  display: flex;
  gap: 8px;
}

.touch-btn {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(14, 18, 28, 0.72);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.touch-btn.gas {
  background: rgba(48, 209, 88, 0.34);
  border-color: var(--apple-green);
}

.touch-btn.brake {
  background: rgba(255, 69, 58, 0.3);
  border-color: var(--danger);
}

@media (max-width: 820px) {
  #splash-overlay { padding: 14px 16px; overflow-y: auto; }
  .splash-top { flex-wrap: wrap; gap: 6px; }
  .splash-badge { font-size: 10.5px; padding: 4px 9px; }
  .gta-subtitle { font-size: 13px; margin-top: 8px; }
  .splash-car-picker { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
  .splash-actions { margin-top: 14px; }
  .splash-sources { gap: 5px; margin-top: 12px; }
  .source-chip { font-size: 10.5px; padding: 4px 8px; }
  .hud-top-bar { flex-direction: column; align-items: stretch; gap: 6px; top: 10px; left: 10px; right: 10px; }
  .toolbar-group { overflow-x: auto; max-width: 100%; }
  .hud-status-right { align-items: flex-start; }
  .gta-stats-pill { padding: 5px 10px; gap: 10px; font-size: 11px; }
  #district-banner { top: 104px; }
  .district-title { font-size: 20px; }
  .tb-key { display: none; }
  .tb-btn { padding: 0 9px; font-size: 11.5px; height: 32px; }
  .minimap-frame { width: 126px; height: 92px; }
  .minimap-wrap { bottom: 84px; left: 10px; }
  .speedo-wrap { bottom: 84px; right: 10px; }
  .speedo-card { padding: 7px 11px; gap: 10px; }
  .speed-num { font-size: 26px; min-width: 44px; }
  .car-quick-strip { display: none; }
  #toast-bar { bottom: 196px; max-width: calc(100vw - 24px); white-space: normal; text-align: center; font-size: 11.5px; }
  .fullmap-layout { grid-template-columns: 1fr; }
  #fullmap-canvas { height: 280px; }
  #touch-controls { display: flex; }
}
