/* Self-hosted fonts (SIL Open Font License 1.1, see public/fonts/OFL-*.txt) — zero third-party network calls */
@font-face { font-family: 'Bungee'; font-weight: 400; font-display: swap; src: url(/fonts/bungee-vietnamese-400.woff2) format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Bungee'; font-weight: 400; font-display: swap; src: url(/fonts/bungee-latin-ext-400.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Bungee'; font-weight: 400; font-display: swap; src: url(/fonts/bungee-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Rubik'; font-weight: 400; font-display: swap; src: url(/fonts/rubik-latin-ext-400.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Rubik'; font-weight: 400; font-display: swap; src: url(/fonts/rubik-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Rubik'; font-weight: 600; font-display: swap; src: url(/fonts/rubik-latin-ext-600.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Rubik'; font-weight: 600; font-display: swap; src: url(/fonts/rubik-latin-600.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Rubik'; font-weight: 800; font-display: swap; src: url(/fonts/rubik-latin-ext-800.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Rubik'; font-weight: 800; font-display: swap; src: url(/fonts/rubik-latin-800.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --zs-bg-deep: #070d24;
  --zs-glass: rgba(12, 24, 58, 0.72);
  --zs-glass-strong: rgba(9, 18, 44, 0.88);
  --zs-border: rgba(0, 229, 255, 0.42);
  --zs-cyan: #00f0ff;
  --zs-blue: #1a75ff;
  --zs-gold: #ffc400;
  --zs-orange: #ff6a00;
  --zs-crimson: #ff2a6d;
  --zs-emerald: #00f59b;
  --zs-snow: #f5f9ff;
  --zs-muted: #9db6de;
  --font-display: 'Rubik', system-ui, -apple-system, sans-serif;
  --font-title: 'Bungee', 'Rubik', system-ui, sans-serif;
  --font-body: 'Rubik', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--zs-bg-deep);
  color: var(--zs-snow);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

#game-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  display: block;
}

.hidden {
  display: none !important;
}

/* Radial Speed Lines Overlay during N2O / CWW Boost (Soft, non-dazzling) */
.speed-lines {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 62%,
    rgba(0, 180, 220, 0.07) 84%,
    rgba(200, 40, 90, 0.12) 100%
  );
}

/* ========================================================================= */
/* TOP NAVIGATION HEADER                                                     */
/* ========================================================================= */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: linear-gradient(180deg, rgba(6, 14, 36, 0.9) 0%, rgba(6, 14, 36, 0.15) 100%);
  border-bottom: 1px solid rgba(0, 240, 255, 0.22);
  backdrop-filter: blur(8px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-emblem {
  width: 42px;
  height: 36px;
  background: linear-gradient(135deg, var(--zs-gold), var(--zs-orange), var(--zs-crimson));
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0% 100%);
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-size: 18px;
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 196, 0, 0.55);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.accent-cyan {
  color: var(--zs-cyan);
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.75);
}

.brand-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--zs-gold);
  letter-spacing: 0.1em;
}

.top-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pilot-tag {
  display: flex;
  align-items: center;
  background: rgba(10, 22, 54, 0.82);
  border: 1px solid var(--zs-border);
  border-radius: 6px;
  padding: 5px 12px;
  gap: 8px;
}

.pilot-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--zs-cyan);
}

.pilot-tag input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  width: 124px;
}

.zs-btn {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 12px;
  color: #fff;
  padding: 8px 15px;
  transition: all 0.15s ease;
}

.zs-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.14);
}

.btn-crystal {
  background: linear-gradient(135deg, rgba(20, 46, 108, 0.85), rgba(0, 140, 255, 0.45));
  border-color: var(--zs-cyan);
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.2);
}

.btn-gold {
  background: linear-gradient(135deg, #ffb800, #ff6a00);
  color: #091024;
  border-color: #ffe57f;
  box-shadow: 0 4px 16px rgba(255, 184, 0, 0.45);
}

.btn-crimson {
  background: linear-gradient(135deg, #ff2a6d, #b81448);
  border-color: #ff85ab;
}

.net-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: rgba(8, 20, 48, 0.82);
  border: 1px solid rgba(0, 245, 155, 0.45);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.net-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zs-emerald);
  box-shadow: 0 0 10px var(--zs-emerald);
}

/* ========================================================================= */
/* UI SCREENS                                                                */
/* ========================================================================= */
.ui-screen {
  position: fixed;
  inset: 58px 0 0 0;
  z-index: 10;
  pointer-events: none;
  display: none;
}

.ui-screen.active {
  display: block;
}

.ui-screen aside,
.ui-screen button,
.ui-screen input,
.ui-screen .room-header-bar,
.ui-screen .room-slot-card,
.ui-screen .room-bottom-console,
.ui-screen .minimap-card,
.ui-screen .results-card {
  pointer-events: auto;
}

/* ========================================================================= */
/* SCREEN 1: HOME LOBBY & VISUAL 3D KART SHOWCASE                            */
/* ========================================================================= */
.home-kart-showcase {
  position: absolute;
  top: 20px;
  left: 24px;
  width: 340px;
  background: var(--zs-glass);
  border: 1px solid var(--zs-border);
  border-left: 4px solid var(--zs-gold);
  border-radius: 12px;
  padding: 18px;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.kart-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.tier-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffd700, #ff6a00);
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-style: italic;
  font-size: 24px;
  color: #081024;
  box-shadow: 0 0 20px rgba(255, 196, 0, 0.7);
  flex-shrink: 0;
}

.kart-title-group h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
}

.kart-title-group p {
  font-size: 11px;
  color: var(--zs-muted);
  line-height: 1.35;
}

.stat-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-bottom: 16px;
  background: rgba(6, 13, 34, 0.55);
  padding: 10px 12px;
  border-radius: 8px;
}

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #cfe0ff;
}

.bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--zs-blue), var(--zs-cyan), var(--zs-gold));
  box-shadow: 0 0 8px var(--zs-cyan);
  transition: width 0.25s ease;
}

.section-caption {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--zs-gold);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.visual-kart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.kart-tile {
  position: relative;
  background: linear-gradient(160deg, rgba(18, 36, 84, 0.82), rgba(8, 16, 40, 0.92));
  border: 1.5px solid rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  padding: 6px 8px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.16s ease;
}

.kart-tile:hover {
  border-color: var(--zs-cyan);
  transform: translateY(-2px);
}

.kart-tile.active {
  border-color: var(--zs-gold);
  background: linear-gradient(160deg, rgba(255, 196, 0, 0.28), rgba(0, 240, 255, 0.18));
  box-shadow: 0 0 18px rgba(255, 196, 0, 0.45);
}

.kart-tile-thumb {
  width: 100%;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.65));
}

.kart-tile-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}

.kart-tile-tier {
  background: var(--zs-gold);
  color: #071022;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
}

.kart-tile-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  color: #fff;
}

.showroom-drag-pill {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(7, 15, 38, 0.76);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 999px;
  padding: 7px 20px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--zs-cyan);
  backdrop-filter: blur(8px);
}

/* Right Home Matchmaking Panel */
.home-match-panel {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 365px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-mode-btn {
  position: relative;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.hero-mode-btn:hover {
  transform: translateY(-3px);
}

.mode-create {
  background: linear-gradient(135deg, #ff2a6d 0%, #ff7b00 100%);
  box-shadow: 0 10px 26px rgba(255, 42, 109, 0.45);
}

.mode-quick {
  background: linear-gradient(135deg, #0066ff 0%, #00e5ff 100%);
  box-shadow: 0 10px 26px rgba(0, 229, 255, 0.4);
}

.mode-badge {
  align-self: flex-start;
  background: rgba(0, 0, 0, 0.32);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 4px;
}

.hero-mode-btn strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 16px;
}

.hero-mode-btn small {
  font-size: 10px;
  opacity: 0.9;
}

.room-browser-box {
  background: var(--zs-glass);
  border: 1px solid var(--zs-border);
  border-radius: 12px;
  padding: 14px;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.join-code-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.join-code-bar input {
  flex: 1;
  background: rgba(6, 13, 34, 0.85);
  border: 1px solid var(--zs-border);
  border-radius: 6px;
  padding: 9px 12px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  outline: none;
}

.rooms-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--zs-muted);
  margin-bottom: 8px;
}

.count-pill {
  background: rgba(0, 240, 255, 0.18);
  color: var(--zs-cyan);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10px;
}

.rooms-list {
  max-height: 195px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.empty-rooms {
  font-size: 12px;
  line-height: 1.45;
  color: var(--zs-muted);
  padding: 14px;
  text-align: center;
  border: 1px dashed rgba(0, 240, 255, 0.28);
  border-radius: 8px;
}

.room-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(12, 25, 60, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
}

.room-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.room-row-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
}

.room-row-meta {
  font-size: 10px;
  color: var(--zs-muted);
}

/* ========================================================================= */
/* SCREEN 2: 4-PLAYER ROOM LOBBY & LIVE 3D MAP SELECTOR                      */
/* ========================================================================= */
.room-header-bar {
  position: absolute;
  top: 14px;
  left: 24px;
  right: 24px;
  background: var(--zs-glass);
  border: 1px solid var(--zs-border);
  border-radius: 10px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
}

.room-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.room-code-pill {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.22), rgba(26, 117, 255, 0.22));
  border: 1px solid var(--zs-cyan);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--zs-cyan);
}

.room-meta h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
}

.slot-counter {
  background: rgba(255, 196, 0, 0.2);
  color: var(--zs-gold);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 99px;
}

.room-actions-right {
  display: flex;
  gap: 8px;
}

/* 4 Floating Player Banners above the 4 3D Pedestals */
.room-slots-grid {
  position: absolute;
  top: 74px;
  left: 24px;
  right: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  pointer-events: none;
}

.room-slot-card {
  background: linear-gradient(180deg, rgba(10, 22, 56, 0.82) 0%, rgba(10, 22, 56, 0.45) 100%);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-top: 3px solid var(--zs-cyan);
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  backdrop-filter: blur(8px);
}

.room-slot-card.is-self {
  border-top-color: var(--zs-gold);
  box-shadow: 0 8px 24px rgba(255, 196, 0, 0.25);
}

.room-slot-card.empty-slot {
  opacity: 0.58;
  border-style: dashed;
}

.slot-top-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
}

.slot-role {
  color: var(--zs-gold);
  font-family: var(--font-display);
}

.slot-ready {
  color: var(--zs-emerald);
  font-family: var(--font-display);
}

.slot-player-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}

.slot-kart-tag {
  font-size: 11px;
  color: var(--zs-cyan);
  font-weight: 600;
}

/* Bottom Console in Room Lobby */
.room-bottom-console {
  position: absolute;
  bottom: 14px;
  left: 24px;
  right: 24px;
  display: grid;
  grid-template-columns: 270px 1fr 240px;
  gap: 14px;
  align-items: stretch;
}

.console-kart-card,
.console-map-card,
.console-start-card {
  background: var(--zs-glass);
  border: 1px solid var(--zs-border);
  border-radius: 12px;
  padding: 12px 14px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.console-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  color: var(--zs-gold);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.room-kart-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.kart-mini-btn {
  background: rgba(12, 24, 58, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  padding: 5px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.kart-mini-btn img {
  width: 38px;
  height: 26px;
  object-fit: contain;
}

.kart-mini-btn.active {
  border-color: var(--zs-gold);
  background: rgba(255, 196, 0, 0.22);
  color: var(--zs-gold);
}

.console-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.console-header-row .console-label {
  margin-bottom: 0;
}

.laps-selector {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--zs-muted);
}

.lap-pill {
  background: rgba(14, 28, 66, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 5px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  cursor: pointer;
}

.lap-pill.active {
  background: var(--zs-cyan);
  color: #051026;
}

.map-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.map-card {
  position: relative;
  height: 112px;
  border-radius: 10px;
  border: 2px solid rgba(0, 240, 255, 0.3);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  background-size: cover;
  background-position: center;
}

.map-card:hover {
  transform: translateY(-3px);
  border-color: var(--zs-cyan);
}

.map-card.active {
  border-color: var(--zs-gold);
  box-shadow: 0 0 22px rgba(255, 196, 0, 0.65);
}

.map-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 22, 0.12) 0%, rgba(4, 8, 22, 0.9) 100%);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.map-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-stars {
  background: rgba(5, 10, 25, 0.82);
  color: var(--zs-gold);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
}

.map-selected-badge {
  background: var(--zs-gold);
  color: #090e1d;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
}

.map-card-bottom h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.map-card-bottom p {
  font-size: 10px;
  color: #d6e4ff;
}

.console-start-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.active-map-badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.map-eyebrow {
  font-size: 10px;
  color: var(--zs-muted);
  font-weight: 700;
}

.active-map-badge strong {
  font-family: var(--font-display);
  font-size: 16px;
  color: #fff;
}

.stars-gold {
  color: var(--zs-gold);
  font-size: 13px;
}

.btn-mega-start {
  width: 100%;
  height: 56px;
  border: 2px solid #ffe57f;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff2a6d 0%, #ff7b00 55%, #ffc400 100%);
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(255, 42, 109, 0.65);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-mega-start:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* ========================================================================= */
/* SCREEN 3: IN-RACE AERO DRIFT 3D HUD                                       */
/* ========================================================================= */
.hud-top-left {
  position: absolute;
  top: 14px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hud-telemetry-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--zs-glass);
  border: 1px solid var(--zs-border);
  border-left: 4px solid var(--zs-gold);
  border-radius: 10px;
  padding: 8px 16px;
  backdrop-filter: blur(10px);
}

.telemetry-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.18);
}

.hud-label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  color: var(--zs-cyan);
  letter-spacing: 0.06em;
}

.telemetry-cell strong {
  font-family: var(--font-mono);
  font-size: 18px;
  color: #fff;
}

.hud-standings {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 225px;
}

.standing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: rgba(8, 18, 44, 0.76);
  border-left: 3px solid var(--zs-cyan);
  border-radius: 6px;
  font-size: 12px;
  backdrop-filter: blur(6px);
}

.standing-item.self {
  border-left-color: var(--zs-gold);
  background: linear-gradient(90deg, rgba(255, 196, 0, 0.28), rgba(8, 18, 44, 0.82));
}

.standing-rank {
  font-family: var(--font-title);
  font-size: 13px;
  color: var(--zs-gold);
  width: 26px;
}

.standing-name {
  flex: 1;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.standing-gap {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--zs-cyan);
}

/* Top-Center Circular Arc Speedometer */
.hud-top-center {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.speedo-arc-widget {
  position: relative;
  width: 220px;
  height: 125px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.speedo-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
}

.speedo-center-readout {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 6px;
}

.boost-badge {
  background: rgba(0, 240, 255, 0.2);
  color: var(--zs-cyan);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  padding: 1px 8px;
  border-radius: 99px;
  margin-bottom: 2px;
}

.speed-number-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

#hud-speed-number {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 42px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.8);
}

.speed-number-row small {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  color: var(--zs-gold);
}

/* Top-Right Radar Minimap */
.hud-top-right {
  position: absolute;
  top: 14px;
  right: 20px;
}

.minimap-card {
  background: var(--zs-glass);
  border: 1px solid var(--zs-border);
  border-radius: 12px;
  padding: 8px 10px;
  backdrop-filter: blur(10px);
}

.minimap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--zs-cyan);
  margin-bottom: 6px;
}

.mini-exit-btn {
  background: rgba(255, 42, 109, 0.28);
  border: 1px solid rgba(255, 42, 109, 0.65);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  cursor: pointer;
}

#minimap-canvas {
  display: block;
  background: rgba(4, 10, 26, 0.72);
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.22);
}

/* Center Countdown + QTE + Callouts */
.hud-center-stage {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.countdown-banner {
  font-family: var(--font-title);
  font-size: 92px;
  color: var(--zs-gold);
  text-shadow: 0 0 36px rgba(255, 196, 0, 0.95), 0 6px 0 #ff2a6d;
  font-style: italic;
}

.qte-widget {
  background: rgba(8, 16, 40, 0.9);
  border: 1.5px solid var(--zs-gold);
  border-radius: 10px;
  padding: 10px 18px;
  width: 390px;
  text-align: center;
}

.qte-label {
  font-size: 11px;
  margin-bottom: 6px;
  color: #fff;
}

.qte-bar-outer {
  position: relative;
  height: 14px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  overflow: hidden;
}

.qte-sweet-spot {
  position: absolute;
  left: 68%;
  width: 18%;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--zs-gold), #ff5500);
  box-shadow: 0 0 12px var(--zs-gold);
}

.qte-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--zs-cyan);
  box-shadow: 0 0 10px #fff;
}

.combo-callout {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 28px;
  padding: 7px 26px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(255, 42, 109, 0.92), rgba(255, 184, 0, 0.92));
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  box-shadow: 0 0 28px rgba(255, 42, 109, 0.75);
}

/* Bottom-Left Steering & Key Hint Pill */
.hud-bottom-left {
  position: absolute;
  bottom: 18px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.controls-hint-pill {
  background: var(--zs-glass);
  border: 1px solid var(--zs-border);
  border-radius: 99px;
  padding: 7px 16px;
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #d8e6ff;
  backdrop-filter: blur(8px);
}

kbd {
  display: inline-block;
  background: rgba(0, 240, 255, 0.2);
  border: 1px solid rgba(0, 240, 255, 0.5);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--zs-cyan);
}

.touch-steer-row {
  display: flex;
  gap: 10px;
}

.round-arcade-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(10, 24, 58, 0.84);
  border: 2px solid var(--zs-cyan);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.round-arcade-btn:active {
  background: var(--zs-cyan);
  color: #051026;
}

/* Bottom-Right Skill Orbs (N2O Bottles, Tiểu Phun, Drift) */
.hud-bottom-right {
  position: absolute;
  bottom: 18px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.zs-skill-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.orb-btn {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(28, 56, 120, 0.92), rgba(8, 16, 40, 0.95));
  border: 2.5px solid rgba(0, 240, 255, 0.45);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.orb-btn.empty {
  opacity: 0.42;
  filter: grayscale(0.4);
}

.orb-n2o.ready {
  background: radial-gradient(circle at 30% 30%, #ff5e8e, #ff1e56 60%, #99002c 100%);
  border-color: #ffe57f;
  box-shadow: 0 0 26px rgba(255, 42, 109, 0.95);
  animation: orbPulse 0.7s infinite alternate;
}

.orb-mini.ready {
  background: radial-gradient(circle at 30% 30%, #ffe066, #ff8800 65%, #cc3300 100%);
  border-color: #fff;
  box-shadow: 0 0 28px rgba(255, 184, 0, 0.95);
  animation: orbPulse 0.45s infinite alternate;
}

.orb-drift {
  border-color: var(--zs-cyan);
}

@keyframes orbPulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

.orb-icon {
  font-size: 20px;
  line-height: 1;
}

.orb-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
}

.orb-key {
  font-size: 8px;
  padding: 0 4px;
}

.n2o-charge-dock {
  width: 348px;
  background: var(--zs-glass);
  border: 1px solid var(--zs-border);
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(10px);
}

.charge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: var(--zs-cyan);
}

.charge-row > span {
  width: 110px;
}

.charge-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
}

.charge-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.08s linear;
}

.drift-fill {
  width: 0%;
  background: linear-gradient(90deg, var(--zs-cyan), var(--zs-gold), var(--zs-crimson));
}

.n2o-fill {
  width: 35%;
  background: linear-gradient(90deg, #0072ff, #00f0ff, #ff2a6d);
  box-shadow: 0 0 10px var(--zs-cyan);
}

/* Results Modal */
.results-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(4, 9, 24, 0.8);
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
}

.results-card {
  width: 540px;
  background: var(--zs-glass-strong);
  border: 1.5px solid var(--zs-gold);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.results-header {
  text-align: center;
  margin-bottom: 18px;
}

.trophy-tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  color: var(--zs-cyan);
}

.results-header h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--zs-gold);
  margin-top: 4px;
}

.results-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(15, 28, 66, 0.85);
  border-left: 4px solid var(--zs-cyan);
  border-radius: 8px;
}

.result-row.rank-1 {
  border-left-color: var(--zs-gold);
  background: linear-gradient(90deg, rgba(255, 196, 0, 0.28), rgba(15, 28, 66, 0.85));
}

.result-rank {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--zs-gold);
  width: 44px;
}

.result-driver {
  flex: 1;
  font-weight: 700;
  font-size: 14px;
}

.result-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--zs-cyan);
}

.results-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.res-stat {
  background: rgba(8, 16, 38, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.res-stat span {
  font-size: 10px;
  color: var(--zs-muted);
}

.res-stat strong {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--zs-gold);
}

.results-actions {
  display: flex;
  justify-content: center;
}

/* Toast Banner */
.toast-banner {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: linear-gradient(90deg, var(--zs-crimson), var(--zs-orange));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  padding: 10px 24px;
  border-radius: 99px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

/* Interactive WASD + Arrow Key Cluster */
.wasd-pad-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.wasd-row-top,
.wasd-row-bottom {
  display: flex;
  gap: 6px;
}

.wasd-key-btn {
  width: 52px;
  height: 46px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 240, 255, 0.38);
  background: linear-gradient(180deg, rgba(14, 28, 64, 0.88), rgba(6, 14, 34, 0.92));
  color: #e8f4ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.08s ease, background 0.08s ease, border-color 0.08s ease, box-shadow 0.08s ease;
}

.wasd-key-btn strong {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.05;
  color: #fff;
}

.wasd-key-btn small {
  font-size: 9px;
  color: var(--zs-cyan);
  line-height: 1;
}

.wasd-key-btn:active,
.wasd-key-btn.pressed {
  transform: translateY(2px) scale(0.96);
  border-color: var(--zs-gold);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.42), rgba(255, 184, 0, 0.35));
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.55);
}

/* ========================================================================= */
/* SCREEN 0: LANDING PAGE & LEGAL MODAL                                      */
/* ========================================================================= */
.landing-screen {
  pointer-events: auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 68px;
  padding-bottom: 48px;
  background: radial-gradient(circle at 68% 28%, rgba(6, 18, 46, 0.28) 0%, rgba(4, 10, 28, 0.86) 72%);
}

.landing-scroll-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 20px 28px 48px;
  display: flex;
  flex-direction: column;
  gap: 54px;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - 150px);
}

.hero-left-content {
  background: rgba(7, 15, 38, 0.78);
  border: 1px solid rgba(0, 240, 255, 0.32);
  border-radius: 22px;
  padding: 32px 34px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--zs-cyan);
  margin-bottom: 16px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zs-emerald);
  box-shadow: 0 0 10px var(--zs-emerald);
}

.hero-headline {
  font-family: var(--font-title);
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  color: #fff;
}

.text-gradient-cyan {
  background: linear-gradient(90deg, #00f0ff, #ffc400);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 15px;
  line-height: 1.65;
  color: #cfe0ff;
  margin-bottom: 24px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-primary-cta {
  width: auto !important;
  min-width: 255px;
  padding: 15px 28px !important;
  font-size: 16px !important;
}

.hero-secondary-cta {
  padding: 14px 22px !important;
  font-size: 14px !important;
}

.hero-quick-join-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(12, 26, 62, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--zs-muted);
}

.hero-quick-join-strip input {
  background: rgba(4, 10, 26, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 800;
  text-transform: uppercase;
  width: 170px;
}

.hero-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.metric-item strong {
  font-size: 14px;
  color: var(--zs-gold);
}

.metric-item span {
  font-size: 11px;
  color: var(--zs-muted);
}

.hero-right-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.live-3d-badge {
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(6, 16, 40, 0.85);
  border: 1px solid rgba(255, 196, 0, 0.45);
  color: var(--zs-gold);
  font-size: 11px;
  font-weight: 800;
}

.hero-feature-glass {
  background: rgba(8, 18, 46, 0.78);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 18px;
  padding: 24px 26px;
  backdrop-filter: blur(12px);
}

.hero-feature-glass h3 {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--zs-cyan);
  margin-bottom: 14px;
}

.hero-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #dce9ff;
}

.hero-checklist li::before {
  content: '✦ ';
  color: var(--zs-gold);
  font-weight: 800;
}

.landing-section {
  background: rgba(7, 15, 38, 0.82);
  border: 1px solid rgba(0, 240, 255, 0.24);
  border-radius: 22px;
  padding: 32px;
  backdrop-filter: blur(14px);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--zs-cyan);
  background: rgba(0, 240, 255, 0.12);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 8px;
}

.section-head h2 {
  font-family: var(--font-title);
  font-size: 26px;
  color: #fff;
  margin-bottom: 8px;
}

.section-head p {
  font-size: 14px;
  color: var(--zs-muted);
  line-height: 1.5;
}

.landing-karts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.landing-kart-card {
  position: relative;
  background: linear-gradient(180deg, rgba(14, 28, 66, 0.85), rgba(7, 14, 34, 0.95));
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.landing-kart-card:hover {
  transform: translateY(-4px);
  border-color: var(--zs-gold);
}

.lk-tier {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
}

.tier-s {
  background: linear-gradient(135deg, #ffc400, #ff2a6d);
  color: #fff;
}

.tier-a {
  background: linear-gradient(135deg, #00f0ff, #1a75ff);
  color: #041026;
}

.landing-kart-card img {
  width: 100%;
  height: 135px;
  object-fit: contain;
  border-radius: 10px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.14), transparent 70%);
}

.landing-kart-card h3 {
  font-size: 16px;
  color: #fff;
}

.landing-kart-card p {
  font-size: 12.5px;
  color: var(--zs-muted);
  line-height: 1.45;
  flex: 1;
}

.lk-specs {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #cfe0ff;
}

.lk-specs strong {
  color: var(--zs-cyan);
}

.lk-pick-btn {
  width: 100%;
  justify-content: center;
}

.landing-maps-grid,
.landing-Wait-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.landing-map-card {
  background: rgba(11, 22, 52, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.landing-map-card img {
  width: 100%;
  height: 165px;
  object-fit: cover;
}

.lm-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lm-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.lm-len {
  color: var(--zs-cyan);
  font-weight: 800;
}

.lm-body h3 {
  font-size: 17px;
  color: #fff;
}

.lm-body p {
  font-size: 13px;
  color: var(--zs-muted);
  line-height: 1.5;
}

.guide-card {
  background: rgba(12, 25, 58, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.24);
  border-radius: 16px;
  padding: 22px;
}

.guide-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.guide-card h3 {
  font-size: 15px;
  color: var(--zs-gold);
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 13px;
  line-height: 1.6;
  color: #d6e4ff;
}

.landing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 18px;
  background: rgba(6, 12, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand-col {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand-col strong {
  color: var(--zs-cyan);
  font-size: 14px;
}

.footer-brand-col p {
  font-size: 12.5px;
  color: var(--zs-muted);
  line-height: 1.5;
}

.legal-disclaimer-line {
  font-size: 11.5px !important;
  opacity: 0.85;
}

.footer-links-col {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-card {
  max-width: 680px !important;
  text-align: left !important;
}

.legal-body-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 24px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #d8e6ff;
}

.legal-body-text h4 {
  color: var(--zs-gold);
  font-size: 14px;
  margin-top: 4px;
}

@media (max-width: 1024px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }
  .landing-karts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .landing-maps-grid,
  .landing-Wait-grid {
    grid-template-columns: 1fr;
  }
}
