/* =========================================================
   GY25 STREET & STRIP - MODERN DARK RACING THEME
   Strictly modular, high-contrast, responsive and under 1000 lines
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --bg-main: #0a0e17;
  --bg-card: #111827;
  --bg-elevated: #1e293b;
  --border-color: #2e3d63;
  --accent-blue: #0284c7;
  --accent-cyan: #38bdf8;
  --accent-yellow: #f59e0b;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

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

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ================= HEADER & NAV ================= */
.top-header {
  background: #0f172a;
  border-bottom: 2px solid var(--border-color);
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-block { display: flex; align-items: center; gap: 12px; }
.gy25-badge {
  background: #dc2626; color: white;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900; font-size: 13px;
  padding: 4px 8px; border-radius: 4px;
  letter-spacing: 1px;
}
.game-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px; font-weight: 900;
  letter-spacing: 1.5px;
  background: linear-gradient(90deg, #f8fafc, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sub-title { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; }

.player-stats-bar { display: flex; gap: 10px; align-items: center; }
.stat-pill {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.stat-pill .label { color: var(--text-muted); font-size: 11px; font-weight: 700; }
.stat-pill .val { font-family: 'Orbitron', sans-serif; font-weight: 700; }
.money-pill .val { color: #34d399; font-size: 15px; }
.rep-pill .val { color: #38bdf8; }
.car-pill .val { color: #f59e0b; }

.nav-tabs { display: flex; gap: 8px; }
.nav-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: var(--text-muted);
  font-family: 'Orbitron', sans-serif;
  font-size: 12px; font-weight: 700;
  padding: 8px 14px; border-radius: 6px;
  cursor: pointer; transition: all 0.2s;
}
.nav-btn:hover { color: white; border-color: #475569; }
.nav-btn.active { background: #2563eb; color: white; border-color: #38bdf8; }
.race-nav-btn { border-color: #eab308; }
.online-nav-btn { border-color: #06b6d4; }
.bonus-nav-btn { border-color: #10b981; }

.main-content { padding: 16px 24px; flex: 1; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.hidden { display: none !important; }

/* ================= GARAGE STAGE ================= */
.garage-stage {
  position: relative;
  height: 480px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  background: url('assets/backgrounds/garage_bg.jpg') center/cover no-repeat;
  overflow: hidden;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.8), 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.garage-bg-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.1) 0%, rgba(15,23,42,0.65) 100%);
  pointer-events: none;
}

/* Stage Header Bar: Selector & Rev Sound */
.stage-top-bar {
  position: relative;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 0 18px;
}

.garage-car-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.car-switch-btn {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 8px 16px; border-radius: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px; font-weight: 700;
  cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  backdrop-filter: blur(6px); transition: all 0.15s;
}
.car-switch-btn:hover { border-color: #38bdf8; color: white; transform: translateY(-1px); }
.car-switch-btn.active { background: #2563eb; border-color: #38bdf8; color: white; box-shadow: 0 0 16px rgba(56, 189, 248, 0.5); }

.rev-engine-btn {
  background: #dc2626; border: 2px solid #f87171; color: white;
  font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 12px;
  padding: 8px 16px; border-radius: 6px; cursor: pointer;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.6); transition: transform 0.1s;
  white-space: nowrap;
}
.rev-engine-btn:active { transform: scale(0.95); background: #b91c1c; }

/* Car Viewport (Centered, Unobstructed, Grounded on Floor) */
.car-viewport {
  position: absolute;
  top: 52%; left: 50%;
  transform: translate(-50%, -46%);
  width: 720px; height: 405px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transition: left 0.25s ease-out, transform 0.25s ease-out;
}
.garage-stage.stance-mode .car-viewport {
  left: 37%;
  transform: translate(-50%, -46%) scale(0.96);
}
.car-assembly { position: relative; width: 100%; height: 100%; }

/* Stance & Suspension Layers */
.wheel-container {
  position: absolute;
  border-radius: 50%;
  z-index: 4; /* Behind car chassis body */
  transform-origin: center center;
  transition: transform 0.08s ease-out;
  pointer-events: none;
}
.wheel-container img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.inner-wells-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2; /* Sits BEHIND wheels (z-index: 4) */
  pointer-events: none;
  transition: transform 0.08s ease-out;
}
.inner-wheel-well {
  position: absolute;
  background: radial-gradient(ellipse at 50% 60%, #030712 0%, #0a0f1d 75%);
  border-radius: 50% 50% 0 0;
  pointer-events: none;
  overflow: hidden;
}

.chassis-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 10; /* Body sits IN FRONT OF wheels so fender covers top of wheels when lowered! */
  transition: transform 0.08s ease-out;
}

.part-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.body-layer { z-index: 10; filter: drop-shadow(0 15px 25px rgba(0,0,0,0.7)); }
.spoiler-layer { position: absolute; top: 40%; left: 78%; width: 14%; height: 14%; object-fit: contain; z-index: 12; display: none; pointer-events: none; }
.rust-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 11;
  background: url('assets/cars/car_rust_overlay.png') center/contain no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  opacity: 1;
  display: none;
  transition: opacity 0.25s ease;
}
.rust-arch {
  position: absolute;
  pointer-events: none;
  z-index: 11;
  border-radius: 50% 50% 0 0;
  background: url('assets/cars/rust_texture.jpg') center/cover;
  -webkit-mask-image: radial-gradient(ellipse at 50% 100%, transparent 72%, rgba(0,0,0,0.7) 78%, black 88%, rgba(0,0,0,0.6) 94%, transparent 100%);
  mask-image: radial-gradient(ellipse at 50% 100%, transparent 72%, rgba(0,0,0,0.7) 78%, black 88%, rgba(0,0,0,0.6) 94%, transparent 100%);
  filter: contrast(1.25) brightness(0.92);
  opacity: 0.95;
  display: none;
}
.car-ground-shadow {
  position: absolute; bottom: 35px; width: 620px; height: 24px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 70%);
  z-index: 1;
}

/* Scrap, Welded, Filler, Primer & Gloss Car Visual Filters */
.body-layer.scrap-patina {
  filter: saturate(0.9) contrast(1.02) brightness(0.96) drop-shadow(0 15px 25px rgba(0,0,0,0.7)) !important;
}
.body-layer.welded-metal {
  filter: grayscale(0.55) contrast(1.15) brightness(0.82) drop-shadow(0 15px 25px rgba(0,0,0,0.7)) !important;
}
.body-layer.filler-finish {
  filter: grayscale(0.8) sepia(0.2) contrast(1.08) brightness(0.86) drop-shadow(0 15px 25px rgba(0,0,0,0.7)) !important;
}
.body-layer.primer-finish {
  filter: grayscale(1) contrast(1.05) brightness(0.82) drop-shadow(0 15px 25px rgba(0,0,0,0.7)) !important;
}
.body-layer.gloss-paint {
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.7));
}

/* Dyno Stats Bar (Docked at Bottom of Stage) */
.dyno-hud {
  position: relative; z-index: 20;
  display: flex; justify-content: center; gap: 16px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  padding: 8px 20px; border-radius: 8px;
  margin: 0 14px 12px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  align-self: center;
}
.dyno-card { display: flex; flex-direction: column; min-width: 90px; text-align: center; }
.dyno-title { font-size: 11px; color: var(--text-muted); font-weight: 700; letter-spacing: 0.5px; }
.dyno-val { font-family: 'Orbitron', sans-serif; font-size: 17px; font-weight: 700; color: #38bdf8; }
.dyno-val .unit { font-size: 12px; color: #94a3b8; }
.dyno-val.highlight { color: #f59e0b; font-size: 13px; }

/* ================= RESTORATION & SERVICE BAR ================= */
.restoration-service-bar {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px;
  background: #111827;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 20px;
  margin-top: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.resto-status-box { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.resto-status-label { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--text-muted); }
.resto-status-label strong { color: #38bdf8; font-family: 'Orbitron', sans-serif; }
.resto-progress-track { width: 100%; height: 8px; background: #1e293b; border-radius: 4px; overflow: hidden; border: 1px solid #334155; }
.resto-progress-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #10b981); transition: width 0.4s ease; }
.resto-stage-badge { font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 900; color: #f59e0b; }

.daily-race-box { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.daily-race-title { font-size: 11px; color: var(--text-muted); font-weight: 700; }
.race-tokens { display: flex; gap: 6px; }
.token {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; background: #1e293b;
  border: 1px solid #334155; border-radius: 6px; font-size: 14px;
}
.token.available { background: rgba(16, 185, 129, 0.2); border-color: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
.token.used { opacity: 0.25; filter: grayscale(1); border-color: #475569; }
.service-status-text { font-size: 11px; color: #34d399; font-weight: 700; }
.service-status-text.warning { color: #f87171; animation: blink 0.8s infinite alternate; }

/* ================= WORKSHOP PANEL ================= */
.workshop-panel {
  margin-top: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
}
.workshop-nav {
  display: flex; gap: 8px; flex-wrap: wrap;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px; margin-bottom: 16px;
}
.sub-tab-btn {
  background: #1e293b; border: 1px solid #334155; color: #cbd5e1;
  font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 700;
  padding: 8px 16px; border-radius: 6px; cursor: pointer;
}
.sub-tab-btn.active { background: #0284c7; border-color: #38bdf8; color: white; }
.subtab-content { display: none; }
.subtab-content.active { display: block; }

/* Parts Grid & Cards */
.parts-grid, .dealership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.part-card {
  background: #1a233a; border: 1px solid #2e3d63; border-radius: 8px;
  padding: 14px; display: flex; flex-direction: column; justify-content: space-between;
}
.part-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.part-name { font-weight: 700; font-size: 15px; color: #f8fafc; }
.part-gain { font-size: 12px; color: #34d399; font-weight: 700; font-family: 'Orbitron', sans-serif; }
.part-desc { font-size: 12px; color: var(--text-muted); line-height: 1.35; margin-bottom: 12px; }
.part-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #2e3d63; padding-top: 10px; }
.part-price { font-family: 'Orbitron', sans-serif; font-weight: 700; color: #f59e0b; }
.buy-btn {
  background: #2563eb; border: none; color: white;
  font-weight: 700; font-size: 12px; padding: 6px 14px; border-radius: 4px;
  cursor: pointer; transition: background 0.15s;
}
.buy-btn:hover { background: #1d4ed8; }
.buy-btn.installed { background: #059669; cursor: default; }

/* Service Dashboard */
.service-dashboard-card { background: #1a233a; border: 1px solid #2e3d63; border-radius: 8px; padding: 20px; }
.service-header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid #2e3d63; padding-bottom: 14px; margin-bottom: 16px; }
.service-header h3 { font-family: 'Orbitron', sans-serif; font-size: 18px; color: #f8fafc; }
.service-badge { font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 900; padding: 6px 14px; border-radius: 6px; background: rgba(16, 185, 129, 0.2); border: 1px solid #10b981; color: #34d399; }
.service-badge.danger { background: rgba(239, 68, 68, 0.2); border-color: #ef4444; color: #f87171; }
.service-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.service-stat-item { background: #0f172a; border: 1px solid #334155; border-radius: 6px; padding: 12px 16px; }
.service-stat-item .stat-label { font-size: 12px; color: var(--text-muted); font-weight: 700; }
.service-stat-item .stat-val { font-family: 'Orbitron', sans-serif; font-size: 16px; font-weight: 700; color: #38bdf8; margin-top: 4px; }
.service-action-box { background: #0f172a; border: 1px dashed #475569; border-radius: 8px; padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.service-action-desc { font-size: 13px; color: #cbd5e1; line-height: 1.4; }
.service-execute-btn {
  background: #059669; border: 1px solid #10b981; color: white;
  font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 13px;
  padding: 12px 20px; border-radius: 6px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
}
.service-execute-btn:hover { background: #047857; }
.section-intro { background: #1a233a; border-left: 4px solid #f59e0b; padding: 12px 18px; border-radius: 0 6px 6px 0; margin-bottom: 14px; }
.section-intro h3 { font-family: 'Orbitron', sans-serif; font-size: 16px; margin-bottom: 4px; color: #f8fafc; }
.section-intro p { color: #94a3b8; font-size: 13px; line-height: 1.4; }

/* Stance Live HUD on Stage */
.stage-stance-panel {
  position: absolute;
  top: 54px; right: 18px;
  width: 325px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 10px;
  padding: 14px 16px;
  z-index: 25;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), inset 0 0 20px rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.stage-stance-panel.collapsed {
  opacity: 0;
  pointer-events: none;
  transform: translateX(40px);
}
.stance-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 8px; margin-bottom: 4px;
}
.stance-panel-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px; font-weight: 700;
  color: #38bdf8; letter-spacing: 0.5px;
}
.btn-hud-close {
  background: transparent; border: none;
  color: #94a3b8; font-size: 14px; font-weight: 700;
  cursor: pointer; padding: 2px 6px; border-radius: 4px;
}
.btn-hud-close:hover { color: white; background: rgba(255, 255, 255, 0.15); }
.stance-hud-btn {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #0284c7; color: #38bdf8;
  font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 11px;
  padding: 8px 14px; border-radius: 6px;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.stance-hud-btn:hover { background: #0284c7; color: white; box-shadow: 0 0 12px rgba(56, 189, 248, 0.5); }
.stance-hud-btn.active { background: #0284c7; color: white; box-shadow: 0 0 14px rgba(56, 189, 248, 0.6); }
.stance-subtab-hint-card {
  background: #1a233a; border: 1px solid #2e3d63; border-radius: 8px;
  padding: 14px 18px; margin-bottom: 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.slider-hint-row {
  display: flex; justify-content: space-between;
  font-size: 10px; color: #94a3b8; margin-top: 2px;
}
.control-row { margin-top: 10px; }
.control-row label { display: flex; justify-content: space-between; font-weight: 700; font-size: 12px; margin-bottom: 4px; }
.badge-val { color: #38bdf8; font-family: 'Orbitron', sans-serif; }
.badge-val.locked { color: #f87171; }
input[type="range"] { width: 100%; accent-color: #38bdf8; height: 6px; border-radius: 3px; cursor: pointer; }
input[type="range"]:disabled { opacity: 0.3; cursor: not-allowed; accent-color: #64748b; }
.chassis-lock-msg { font-size: 11px; font-weight: 700; margin-top: 3px; font-family: 'Rajdhani', sans-serif; }
.chassis-lock-msg.locked { color: #f87171; }
.chassis-lock-msg.unlocked { color: #34d399; }
.color-palette { display: flex; gap: 12px; margin-top: 10px; }
.color-dot { width: 36px; height: 36px; border-radius: 50%; border: 2px solid white; cursor: pointer; box-shadow: 0 0 10px rgba(0,0,0,0.5); transition: transform 0.15s; }
.color-dot:hover { transform: scale(1.15); }

/* ================= RACE ARENA ================= */
body:has(#race-tab.active:not(:has(#race-arena.hidden))) {
  overflow: hidden;
}
body:has(#race-tab.active:not(:has(#race-arena.hidden))) .main-content {
  padding: 6px 16px 0 16px;
  overflow: hidden;
}

#race-tab.tab-panel.active:has(#race-arena:not(.hidden)) {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 130px);
  max-height: calc(100vh - 130px);
  overflow: hidden;
  padding: 4px 8px;
}

.race-arena {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  background: #0b1120;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  overflow: hidden;
}

.track-container {
  position: relative;
  flex: 1 1 auto;
  min-height: 160px;
  height: auto;
  background: #0b1120;
  overflow: hidden;
  border-bottom: 2px solid #334155;
}

.race-3d-viewport {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background: #6082b6;
}
.race-3d-viewport canvas { width: 100% !important; height: 100% !important; display: block; }
.tree-pod { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); background: #0f172a; border: 2px solid #475569; border-radius: 10px; padding: 8px 6px; display: flex; flex-direction: column; gap: 6px; z-index: 50; box-shadow: 0 4px 20px rgba(0,0,0,0.85); pointer-events: none; transition: opacity 0.4s ease; }
.tree-pod.faded { opacity: 0; }
.tree-light { width: 18px; height: 18px; border-radius: 50%; background: #1e293b; border: 1px solid #334155; }
.tree-light.active.pre-stage, .tree-light.active.stage { background: #fef08a; box-shadow: 0 0 10px #fef08a; }
.tree-light.active.yellow-1, .tree-light.active.yellow-2, .tree-light.active.yellow-3 { background: #f59e0b; box-shadow: 0 0 14px #f59e0b; }
.tree-light.active.green { background: #10b981; box-shadow: 0 0 20px #10b981; }
.tree-light.active.red { background: #ef4444; box-shadow: 0 0 20px #ef4444; }
.race-lanes-hud { position: absolute; top: 14px; left: 18px; right: 18px; display: flex; justify-content: space-between; pointer-events: none; z-index: 40; }
.lane-hud-pill { font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 6px; background: rgba(15, 23, 42, 0.88); border: 1px solid rgba(255, 255, 255, 0.15); backdrop-filter: blur(4px); box-shadow: 0 4px 12px rgba(0,0,0,0.5); letter-spacing: 0.5px; }
.lane-player-hud { color: #38bdf8; border-color: rgba(56, 189, 248, 0.5); }
.lane-opp-hud { color: #f59e0b; border-color: rgba(245, 158, 11, 0.5); }
.finish-line { display: none; }
.race-lane { display: none; }
.racer-car { display: none; }
.race-flame { display: none; }
.race-smoke { display: none; }

/* Cockpit Dash */
.cockpit-dash {
  flex: 0 0 auto;
  background: #0f172a;
  padding: 8px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid #334155;
  gap: 12px;
  z-index: 10;
}
.tacho-card { display: flex; align-items: center; gap: 12px; }
.shift-light { background: #1e293b; color: #475569; font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 900; padding: 6px 10px; border-radius: 6px; letter-spacing: 1px; transition: background 0.1s, color 0.1s; }
.shift-light.ready { background: #22c55e !important; color: #ffffff !important; box-shadow: 0 0 18px #22c55e !important; animation: pulseShift 0.16s infinite alternate !important; }
.shift-light.flash { background: #ef4444 !important; color: white !important; box-shadow: 0 0 20px #ef4444 !important; animation: blink 0.08s infinite alternate !important; }
@keyframes pulseShift { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.08); opacity: 1; } }
@keyframes blink { from { opacity: 1; } to { opacity: 0.3; } }
.dial-container { width: 110px; position: relative; text-align: center; }
.gauge-svg { width: 100%; }
.rpm-number { font-family: 'Orbitron', sans-serif; font-size: 13px; font-weight: 700; color: #38bdf8; margin-top: -12px; }
.gear-info-box { display: flex; flex-direction: column; align-items: flex-start; min-width: 95px; }
.gear-display { font-family: 'Orbitron', sans-serif; font-size: 13px; }
.gear-badge { font-size: 24px; color: #f59e0b; font-weight: 900; margin-left: 4px; }
.shift-feedback { font-family: 'Orbitron', sans-serif; font-size: 10px; font-weight: 800; min-height: 14px; margin-top: 2px; letter-spacing: 0.5px; }
.shift-feedback.perfect { color: #22c55e; text-shadow: 0 0 8px rgba(34, 197, 94, 0.7); }
.shift-feedback.early { color: #f59e0b; }
.shift-feedback.late { color: #ef4444; }
.speed-card { text-align: center; }
.big-speed { font-family: 'Orbitron', sans-serif; font-size: 36px; font-weight: 900; color: #f8fafc; line-height: 1; }
.dist-meter { color: var(--text-muted); font-size: 12px; font-weight: 600; }
.reaction-badge { display: inline-block; margin-top: 2px; background: #1e293b; border: 1px solid #334155; padding: 2px 8px; border-radius: 10px; font-family: 'Orbitron', sans-serif; font-size: 10px; color: #38bdf8; }
.race-buttons { display: flex; gap: 10px; flex-wrap: nowrap; }
.action-btn { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 12px; padding: 10px 16px; border-radius: 8px; cursor: pointer; border: none; transition: transform 0.05s; white-space: nowrap; line-height: 1.25; }
.action-btn small { font-size: 9px; opacity: 0.85; }
.action-btn:active { transform: scale(0.95); }
.gas-btn { background: #10b981; color: white; box-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }
.shift-btn { background: #3b82f6; color: white; box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
.nitro-btn { background: #8b5cf6; color: white; box-shadow: 0 0 15px rgba(139, 92, 246, 0.4); }

@media (max-height: 780px) {
  .cockpit-dash { padding: 6px 12px; gap: 8px; }
  .dial-container { width: 90px; }
  .big-speed { font-size: 28px; }
  .action-btn { font-size: 11px; padding: 8px 12px; }
}

/* Opponents Grid */
.race-select-screen h2 { font-family: 'Orbitron', sans-serif; font-size: 24px; margin-bottom: 4px; }
.opponents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.opponent-card { background: #1a233a; border: 1px solid #2e3d63; border-radius: 10px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.opp-name { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 16px; color: #f8fafc; }
.opp-car { font-size: 13px; color: #94a3b8; margin-top: 2px; }
.opp-stats { font-size: 13px; line-height: 1.5; margin-top: 8px; border-top: 1px solid #2e3d63; padding-top: 8px; }
.race-start-btn { width: 100%; margin-top: 14px; background: #eab308; color: black; font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 14px; padding: 12px; border: none; border-radius: 6px; cursor: pointer; }
.race-start-btn:hover { background: #ca8a04; }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 100; }
.results-card { background: #0f172a; border: 2px solid var(--border-color); border-radius: 14px; width: 440px; padding: 24px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.8); }
.results-card h2 { font-family: 'Orbitron', sans-serif; font-size: 26px; margin-bottom: 16px; }
.results-data-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 14px; }
.results-data-table td { padding: 8px 12px; border-bottom: 1px solid #1e293b; }
.results-data-table td strong { font-family: 'Orbitron', sans-serif; color: #38bdf8; }
.return-btn { background: #2563eb; color: white; font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 14px; padding: 12px 24px; border: none; border-radius: 8px; cursor: pointer; }

/* Online Multiplayer */
.online-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 16px; }
.online-card { background: #111827; border: 1px solid var(--border-color); border-radius: 10px; padding: 20px; }
.online-card h3 { font-family: 'Orbitron', sans-serif; font-size: 16px; margin-bottom: 8px; color: #f8fafc; }
.input-group { display: flex; gap: 8px; margin-top: 12px; }
.text-input { flex: 1; background: #1e293b; border: 1px solid #334155; color: white; font-family: 'Orbitron', sans-serif; font-size: 14px; padding: 10px 14px; border-radius: 6px; }
.btn-primary { background: #2563eb; border: none; color: white; font-family: 'Orbitron', sans-serif; font-weight: 700; padding: 10px 18px; border-radius: 6px; cursor: pointer; }
.btn-success { background: #059669; border: none; color: white; font-family: 'Orbitron', sans-serif; font-weight: 700; padding: 12px 20px; border-radius: 6px; cursor: pointer; width: 100%; margin-top: 10px; }
.lobbies-list { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow-y: auto; margin-top: 12px; }
.lobby-item { background: #1e293b; border: 1px solid #334155; border-radius: 6px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; }
.lobby-info { display: flex; align-items: center; gap: 10px; }
.lobby-code-badge { font-family: 'Orbitron', sans-serif; font-size: 11px; background: #0f172a; border: 1px solid #475569; padding: 3px 8px; border-radius: 4px; color: #38bdf8; font-weight: 700; }
.lobby-host-name { font-weight: 700; color: #f8fafc; font-size: 14px; }
.lobby-car-info { font-size: 12px; color: var(--text-muted); }
.challenge-btn { background: #eab308; color: black; border: none; font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 11px; padding: 6px 12px; border-radius: 4px; cursor: pointer; }
.room-screen { background: #0f172a; border: 2px solid var(--border-color); border-radius: 12px; padding: 24px; margin-top: 16px; }
.room-versus-box { display: flex; justify-content: space-around; align-items: center; margin: 24px 0; }
.pilot-box { background: #1e293b; border: 1px solid #334155; border-radius: 10px; padding: 20px; width: 40%; text-align: center; }
.pilot-label { font-size: 12px; color: var(--text-muted); font-weight: 700; }
.pilot-name { font-family: 'Orbitron', sans-serif; font-size: 20px; font-weight: 700; color: #f8fafc; margin-top: 4px; }
.pilot-car { font-size: 14px; color: #38bdf8; margin: 8px 0; }
.ready-status-pill { display: inline-block; padding: 4px 14px; border-radius: 12px; font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 700; background: #334155; color: #94a3b8; }
.ready-status-pill.ready { background: #059669; color: white; box-shadow: 0 0 10px rgba(5, 150, 105, 0.5); }
.vs-badge { font-family: 'Orbitron', sans-serif; font-size: 32px; font-weight: 900; color: #f59e0b; }
.countdown-banner { font-family: 'Orbitron', sans-serif; font-size: 28px; font-weight: 900; color: #10b981; text-align: center; margin-top: 16px; animation: blink 0.3s infinite alternate; }

/* Leaderboard */
.leaderboard-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.leaderboard-table th { background: #1e293b; color: var(--text-muted); font-size: 11px; text-transform: uppercase; padding: 10px 12px; text-align: left; }
.leaderboard-table td { padding: 10px 12px; border-bottom: 1px solid #1e293b; font-size: 13px; }
.gold-time { color: #f59e0b; font-weight: 900; font-family: 'Orbitron', sans-serif; }
.silver-time { color: #94a3b8; font-weight: 900; font-family: 'Orbitron', sans-serif; }
.bronze-time { color: #d97706; font-weight: 900; font-family: 'Orbitron', sans-serif; }

/* Bonus codes & 2-Player */
.bonus-card { background: #111827; border: 1px solid var(--border-color); border-radius: 10px; padding: 24px; max-width: 600px; margin: 0 auto; }
.feedback-msg { margin-top: 12px; font-weight: 700; font-size: 14px; }
.feedback-msg.success { color: #34d399; }
.feedback-msg.error { color: #f87171; }
.redeemed-list { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-muted); }
.duell-box { background: #111827; border: 1px solid var(--border-color); border-radius: 10px; padding: 24px; max-width: 650px; margin: 0 auto; }
.duell-controls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.ctrl-card { background: #1e293b; border: 1px solid #334155; border-radius: 8px; padding: 16px; }

/* ================= 3D PROVING GROUND / GT HUD ================= */
/* ================= 3D PROVING GROUND / GT HUD ================= */
.drive-nav-btn { border-color: #38bdf8 !important; color: #38bdf8; }

#drive-tab.tab-panel.active {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 130px);
  max-height: calc(100vh - 130px);
  overflow: hidden;
  padding: 6px 12px;
}
body:has(#drive-tab.active) {
  overflow: hidden;
}
body:has(#drive-tab.active) .main-content {
  padding: 8px 16px 0 16px;
  overflow: hidden;
}

.drive3d-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 8px;
  overflow: hidden;
}
.drive3d-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  flex-shrink: 0;
}
.drive-title-block { display: flex; flex-direction: column; }
.drive-tag { font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 700; color: #f59e0b; letter-spacing: 1px; }
.drive3d-header h2 { font-family: 'Orbitron', sans-serif; font-size: 18px; font-weight: 900; }
.drive-quick-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.drive-car-picker {
  display: flex; align-items: center; gap: 6px;
  background: #1e293b; border: 1px solid #334155;
  border-radius: 6px; padding: 4px 10px;
}
.drive-car-label {
  font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 700; color: #94a3b8;
}
.hud-car-select {
  background: #0f172a; border: 1px solid #38bdf8; color: #f8fafc;
  font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 700;
  padding: 4px 8px; border-radius: 4px; cursor: pointer; outline: none;
}
.hud-car-select:focus { border-color: #f59e0b; }

.hud-action-btn {
  background: #1e293b; border: 1px solid #334155; color: #f8fafc;
  font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 700;
  padding: 8px 14px; border-radius: 6px; cursor: pointer; transition: all 0.15s;
}
.hud-action-btn:hover { border-color: #38bdf8; background: #2563eb; }

.drive-stage-card {
  position: relative; width: 100%; flex: 1 1 0; min-height: 0; height: auto;
  background: #000; border-radius: 12px; border: 2px solid var(--border-color);
  overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.drive-viewport { width: 100%; height: 100%; }

/* Gran Turismo Retro HUD Cluster */
.gt-hud-cluster {
  position: absolute; bottom: 12px; right: 14px;
  display: flex; align-items: flex-end; gap: 12px;
  pointer-events: none; z-index: 20;
}
.gt-telemetry-box {
  background: rgba(15, 23, 42, 0.85); border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 10px 16px; border-radius: 8px; backdrop-filter: blur(6px); text-align: right;
}
.gt-lap-box { border-color: rgba(245, 158, 11, 0.4); }
.telemetry-sub { font-family: 'Orbitron', sans-serif; font-size: 10px; font-weight: 700; color: #38bdf8; margin-top: 3px; }
.telemetry-label { font-size: 11px; color: #94a3b8; font-family: 'Orbitron', sans-serif; font-weight: 700; }
.telemetry-value { font-family: 'Orbitron', sans-serif; font-size: 20px; font-weight: 900; color: #f59e0b; margin-top: 2px; }
.gt-drift-badge {
  font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 900;
  color: #ef4444; text-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  opacity: 0; transition: opacity 0.1s; margin-top: 4px;
}

.gt-gauge-cluster { display: flex; align-items: center; gap: 14px; }
.tacho-dial {
  position: relative; width: 125px; height: 125px;
  background: radial-gradient(circle, #0f172a 60%, #1e293b 100%);
  border: 3px solid #38bdf8; border-radius: 50%;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}
.tacho-numbers {
  position: absolute; top: 12px; left: 0; right: 0;
  display: flex; justify-content: space-around;
  font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 700; color: #94a3b8;
}
.tacho-numbers .redline { color: #ef4444; font-weight: 900; }
.tacho-needle-pivot { position: absolute; top: 50%; left: 50%; width: 0; height: 0; }
.tacho-needle {
  position: absolute; bottom: 0; left: -2px; width: 4px; height: 48px;
  background: #ef4444; border-radius: 2px;
  transform-origin: 50% 100%; transform: rotate(-120deg);
  box-shadow: 0 0 8px #ef4444; transition: transform 0.04s linear;
}
.shift-light { position: absolute; top: 8px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.shift-light.active { background: #ef4444; box-shadow: 0 0 14px #ef4444; animation: blink 0.1s infinite alternate; }
.tacho-center-cap {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: #0284c7; border: 2px solid white;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gear-num { font-family: 'Orbitron', sans-serif; font-size: 20px; font-weight: 900; color: white; line-height: 1; }
.gear-label { font-size: 8px; font-weight: 700; color: #e0f2fe; }

.gt-digital-speedo {
  background: rgba(15, 23, 42, 0.88); border: 2px solid #38bdf8;
  border-radius: 8px; padding: 10px 18px; text-align: center;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.35); backdrop-filter: blur(6px);
}
.speed-num { font-family: 'Orbitron', sans-serif; font-size: 42px; font-weight: 900; color: #38bdf8; line-height: 1; }
.speed-unit { font-family: 'Orbitron', sans-serif; font-size: 12px; font-weight: 700; color: #94a3b8; letter-spacing: 1px; }

.gt-controls-hint {
  position: absolute; bottom: 20px; left: 24px;
  display: flex; gap: 14px; background: rgba(15, 23, 42, 0.82);
  border: 1px solid #334155; border-radius: 6px; padding: 8px 14px;
  font-size: 12px; color: #cbd5e1; backdrop-filter: blur(4px); pointer-events: none;
}

/* ================= RIM SIZE STATION (13" - 24") ================= */
.rim-station-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 2px solid #38bdf8;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(56, 189, 248, 0.08);
}
.rim-station-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.rim-station-tag {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #f59e0b;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.rim-station-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 0.5px;
}
.rim-station-desc {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
  line-height: 1.35;
}
.rim-station-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px 14px;
  min-width: 170px;
  text-align: right;
}
.rim-badge-sub {
  font-size: 10px;
  color: #94a3b8;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
}
.rim-badge-main {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: #38bdf8;
  margin-top: 2px;
}
.rim-slider-wrap {
  margin-bottom: 16px;
}
.rim-slider-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 6px;
}
.rim-slider-desc-pill {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 4px 12px;
  border-radius: 12px;
}
.rim-pills-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.rim-pills-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
}
@media (max-width: 900px) {
  .rim-pills-row {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (max-width: 540px) {
  .rim-pills-row {
    grid-template-columns: repeat(4, 1fr);
  }
}
.rim-pill-btn {
  background: #0f172a;
  border: 1px solid #334155;
  color: #cbd5e1;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 4px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}
.rim-pill-btn:hover {
  border-color: #38bdf8;
  color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}
.rim-pill-btn.active {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
  transform: translateY(-2px);
}
.rim-pill-btn.larvigt {
  border-color: #a855f7;
  color: #d8b4fe;
}
.rim-pill-btn.larvigt:hover {
  border-color: #c084fc;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(192, 132, 252, 0.4);
}
.rim-pill-btn.larvigt.active {
  background: linear-gradient(135deg, #9333ea, #ec4899);
  border-color: #f472b6;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.75);
  animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 14px rgba(236, 72, 153, 0.6); }
  100% { box-shadow: 0 0 24px rgba(168, 85, 247, 0.9); }
}

/* ================= LEVEL SYSTEM & LOCKED CONTENT ================= */
.part-card.car-locked {
  background: #141b2d;
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.car-badge {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.car-badge.owned {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #34d399;
}
.car-badge.unlocked {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid #38bdf8;
  color: #38bdf8;
}
.car-badge.locked {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid #f59e0b;
  color: #fbbf24;
}

.buy-btn.locked {
  background: #334155;
  border: 1px solid #475569;
  color: #94a3b8;
  cursor: not-allowed;
}
.buy-btn.locked:hover {
  background: #334155;
  border-color: #f59e0b;
  color: #fbbf24;
}

.price-locked {
  color: #94a3b8 !important;
  opacity: 0.8;
}

/* Opponent Level Locking */
.opponent-card.opp-locked {
  background: #141b2d;
  border-color: rgba(245, 158, 11, 0.3);
  opacity: 0.85;
}
.opp-level-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}
.opp-level-badge.unlocked {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid #38bdf8;
  color: #38bdf8;
}
.opp-level-badge.locked {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid #f59e0b;
  color: #fbbf24;
}
.race-start-btn.locked {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
}
.race-start-btn.locked:hover {
  background: #334155 !important;
  border-color: #f59e0b !important;
  color: #fbbf24 !important;
}

/* Level Up Toast */
.level-up-toast {
  position: fixed;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  border: 2px solid #eab308;
  border-radius: 12px;
  padding: 16px 26px;
  z-index: 10000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(234, 179, 8, 0.45);
  transition: bottom 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}
.level-up-toast.show {
  bottom: 40px;
}
.level-up-content {
  display: flex;
  align-items: center;
  gap: 16px;
}
.level-up-icon {
  font-size: 38px;
  filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.8));
}
.level-up-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 900;
  color: #facc15;
  letter-spacing: 1.5px;
}
.level-up-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.6);
  margin: 2px 0;
}
.level-up-desc {
  font-size: 13px;
  color: #38bdf8;
  font-weight: 700;
}

/* Security Tamper Toast */
.security-tamper-toast {
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #450a0a, #0f172a);
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 16px 26px;
  z-index: 10001;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85), 0 0 30px rgba(239, 68, 68, 0.5);
  transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}
.security-tamper-toast.show {
  top: 30px;
}
.tamper-content {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tamper-icon {
  font-size: 36px;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.9));
}
.tamper-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 900;
  color: #ef4444;
  letter-spacing: 1.5px;
}
.tamper-msg {
  font-size: 13px;
  color: #fca5a5;
  font-weight: 700;
  margin-top: 2px;
}

