.card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
}
.glass { backdrop-filter: blur(14px); }
.eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.accent { color: var(--color-secondary); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; }
h1 { font-size: var(--text-lg); }
h2 { font-size: var(--text-2xl); max-width: 12ch; }
h3 { font-size: var(--text-lg); }
.hero-text, #missionDescription, .mentor-card { color: var(--color-text-muted); max-width: 60ch; }
.hero-actions, .section-head, .diagnostics-grid, .stats-grid, .parts-grid, .dash-meters, .gauge-row { display: grid; gap: var(--space-3); }
.hero-actions { grid-auto-flow: column; justify-content: start; margin-top: var(--space-5); }
.primary-btn, .ghost-btn, .theme-toggle, .part-card button, .mission-pill {
  min-height: 44px;
  border-radius: 999px;
  padding: .85rem 1.2rem;
  transition: transform .18s ease, background .18s ease;
}
.primary-btn { background: var(--color-primary); color: #02131a; font-weight: 800; }
.ghost-btn, .theme-toggle, .part-card button, .mission-pill {
  background: var(--color-surface-2);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.primary-btn:hover, .ghost-btn:hover, .theme-toggle:hover, .part-card button:hover, .mission-pill:hover { transform: translateY(-1px); }
.section-head {
  grid-template-columns: 1fr auto;
  align-items: start;
  margin-bottom: var(--space-4);
}
.status-pill, .small-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: .45rem .75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
}
.stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.stat-chip {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: .8rem 1rem;
}
.parts-grid { grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); }
.part-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: grid;
  gap: .8rem;
  position: relative;
  overflow: hidden;
}
.part-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(97,218,251,.08), transparent 40%, rgba(140,255,183,.08));
  pointer-events: none;
}
.part-card.installed {
  border-color: rgba(140,255,183,.45);
  box-shadow: inset 0 0 0 1px rgba(140,255,183,.22);
}
.part-card h4 { font-size: var(--text-sm); }
.part-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
  gap: .75rem;
}
.part-card button { width: 100%; font-weight: 700; }
.bar {
  width: 100%;
  height: .8rem;
  background: var(--color-surface-3);
  border-radius: 999px;
  overflow: hidden;
  margin: .45rem 0;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  width: 0;
  transition: width .3s ease;
}
.dash-meters { grid-template-columns: repeat(2, minmax(0,1fr)); }
.meter {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: .9rem 1rem;
}
.meter label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-text-muted);
}
.meter strong { display: block; margin-top: .25rem; }
.telemetry { margin-top: var(--space-4); display: grid; gap: .75rem; }
.telemetry-line, .fault-list li {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: .85rem 1rem;
}
.diagnostics-grid { grid-template-columns: 1fr 1fr; }
.fault-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.mentor-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  min-height: 100%;
}
.hero-machine {
  position: relative;
  min-height: 300px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(97,218,251,.08), rgba(255,255,255,.01));
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.machine-frame {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 30%;
  height: 90px;
  border: 3px solid rgba(97,218,251,.85);
  border-radius: 32px 60px 22px 20px;
}
.machine-wheel {
  position: absolute;
  bottom: 20%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 8px solid rgba(233,240,255,.8);
  box-shadow: inset 0 0 0 8px rgba(97,218,251,.2);
  animation: spin 5s linear infinite;
}
.wheel-left { left: 20%; }
.wheel-right { right: 20%; }
.signal {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  animation: pulse 2.2s ease-in-out infinite;
}
.signal-power {
  left: 18%;
  top: 22%;
  width: 48%;
  height: 10px;
  background: linear-gradient(90deg, transparent, rgba(140,255,183,.9), transparent);
}
.signal-cooling {
  right: 14%;
  top: 54%;
  width: 36%;
  height: 10px;
  background: linear-gradient(90deg, transparent, rgba(97,218,251,.95), transparent);
  animation-delay: .6s;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: .25; transform: scaleX(.9); } 50% { opacity: 1; transform: scaleX(1.03); } }
.mission-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin: .5rem 0 1rem; }
.mission-pill {
  padding: .55rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text);
  font-size: var(--text-xs);
}
.mission-pill.active { background: var(--color-primary); color: #04131b; font-weight: 800; }
.track-panel { grid-column: 1 / -1; }
.track-stage {
  position: relative;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #0f1c33 55%, #0b1628 55%);
  border: 1px solid var(--color-border);
}
.track-sky {
  position: absolute;
  inset: 0;
  bottom: 45%;
  background:
    radial-gradient(circle at 80% 20%, rgba(97,218,251,.25), transparent 40%),
    linear-gradient(180deg, #0b1628, #0f1c33);
}
.track-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 40px, transparent 40px 80px),
    linear-gradient(180deg, #0b1628, #091224);
}
.car-body {
  position: absolute;
  inset: 0;
  border-radius: 18px 34px 14px 10px;
  background: linear-gradient(180deg, rgba(97,218,251,.25), rgba(97,218,251,.12));
  border: 2px solid rgba(97,218,251,.9);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.08);
}
.car-wheel {
  position: absolute;
  bottom: -10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(233,240,255,.85);
  background: rgba(0,0,0,.35);
  box-shadow: inset 0 0 0 6px rgba(97,218,251,.25);
  animation: spin 1s linear infinite;
  animation-play-state: paused;
}
.wheel-front { right: 14px; }
.wheel-rear { left: 14px; }
.track-car.running .car-wheel { animation-play-state: running; }
.track-car.stalled { transform: translateY(6px); opacity: .6; }
.car-exhaust {
  position: absolute;
  right: -8px;
  bottom: 8px;
  width: 10px;
  height: 6px;
  border-radius: 4px;
  background: rgba(140,255,183,.6);
  opacity: 0;
  transition: opacity .2s;
}
.track-car.running .car-exhaust { opacity: .8; animation: puff .9s ease-in-out infinite; }
@keyframes puff { 0%,100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.4); opacity: .2; } }
.track-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  pointer-events: none;
}
.gauge-row { display: flex; gap: 10px; justify-content: flex-end; }
.gauge {
  background: rgba(10,22,40,.65);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  min-width: 90px;
}
.gauge label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-text-muted);
}
.gauge-fill {
  width: 100%;
  height: 6px;
  background: var(--color-surface-3);
  border-radius: 999px;
  overflow: hidden;
  margin: 4px 0;
}
.gauge-fill span {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: 0%;
  transition: width .3s ease;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}
.gauge strong { font-size: var(--text-sm); }
.track-note {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  background: rgba(10,22,40,.55);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  display: inline-block;
  align-self: flex-start;
}
@media (max-width: 960px) {
  .hero-actions { grid-auto-flow: row; }
  .stats-grid, .dash-meters, .diagnostics-grid, .gauge-row { grid-template-columns: 1fr; }
}

/* Realistic car replica */
.car-replica-panel {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, #121a2e, #0e1628);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  min-height: 340px;
}
.car-replica-panel .section-head {
  position: relative;
  z-index: 2;
}
.car-replica-stage {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  height: 280px;
}
.car-replica-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.car-replica-svg .car-part {
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
  opacity: 0;
}
.car-replica-svg .car-part.visible {
  opacity: 1;
  transform: scale(1);
}
.car-shadow {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.5), transparent 70%);
  border-radius: 50%;
  z-index: 0;
  filter: blur(3px);
}
.part-labels {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.part-label {
  position: absolute;
  font-size: var(--text-xs);
  color: var(--color-secondary);
  background: rgba(10, 22, 40, 0.85);
  border: 1px solid rgba(140, 255, 183, 0.3);
  padding: 3px 8px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(6px);
  white-space: nowrap;
}
.part-label.show {
  opacity: 1;
  transform: translateY(0);
}
@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(97, 218, 251, 0.4)); }
  50% { filter: drop-shadow(0 0 8px rgba(97, 218, 251, 0.8)); }
}
.car-part.glowing {
  animation: pulse-glow 2s ease-in-out infinite;
}
@media (max-width: 960px) {
  .car-replica-stage { height: 220px; }
  .car-shadow { width: 360px; }
}

.progress-badges {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: .75rem;
}

.track-stage {
  position: relative;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #0f1c33 55%, #0b1628 55%);
  border: 1px solid var(--color-border);
}

.track-boundary {
  position: absolute;
  left: 86%;
  top: 0;
  bottom: 0;
  width: 14%;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
  border-left: 2px solid rgba(255,255,255,.18);
  box-shadow: inset 10px 0 30px rgba(0,0,0,.2);
  z-index: 1;
}

.track-boundary::before {
  content: 'CHECKPOINT';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(10,22,40,.65);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  letter-spacing: .08em;
}


.track-ground {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 42px, transparent 42px 84px),
    linear-gradient(180deg, #0b1628, #091224);
}

.track-car.running {
  animation: bob .75s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.car-body {
  position: absolute;
  inset: 0;
  border-radius: 30px 58px 20px 16px;
  background: linear-gradient(180deg, rgba(255,205,87,.97), rgba(255,87,147,.82));
  border: 3px solid rgba(255,255,255,.28);
  box-shadow: inset 0 0 0 2px rgba(97,218,251,.16), 0 12px 32px rgba(0,0,0,.22);
  overflow: hidden;
}

.car-body::before {
  content: '';
  position: absolute;
  inset: 10px 18px 12px 18px;
  border-radius: 22px 38px 14px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.05));
}

.car-window {
  position: absolute;
  left: 28px;
  top: 13px;
  width: 54px;
  height: 23px;
  border-radius: 12px 20px 9px 9px;
  background: linear-gradient(180deg, rgba(182,245,255,.98), rgba(97,218,251,.28));
  box-shadow: 0 0 14px rgba(97,218,251,.36), inset 0 0 0 1px rgba(255,255,255,.25);
  animation: windowGlow 2.8s ease-in-out infinite;
}

.car-window.rear {
  left: 86px;
  width: 31px;
  opacity: .9;
  animation-delay: .4s;
}

.car-window::after {
  content: '';
  position: absolute;
  inset: 5px 8px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,.35), transparent 50%, rgba(255,255,255,.12));
  opacity: .7;
  animation: windowShine 3.6s linear infinite;
}

@keyframes windowGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.28); }
}

@keyframes windowShine {
  0% { transform: translateX(-10px); }
  100% { transform: translateX(18px); }
}

.car-door {
  position: absolute;
  left: 80px;
  top: 11px;
  bottom: 13px;
  width: 2px;
  background: rgba(255,255,255,.25);
}

.seat-icon {
  position: absolute;
  bottom: 16px;
  width: 15px;
  height: 17px;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 4px 4px 3px 3px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.05);
}

.seat-icon::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -5px;
  height: 6px;
  border: 2px solid rgba(255,255,255,.72);
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

.seat-left { left: 40px; }
.seat-right { left: 98px; }

.ac-glow {
  position: absolute;
  right: 14px;
  top: 24px;
  width: 20px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(97,218,251,.96), transparent);
  filter: blur(1px);
  animation: acBlink 1.4s ease-in-out infinite;
}

@keyframes acBlink {
  0%, 100% { opacity: .35; transform: scaleX(.9); }
  50% { opacity: 1; transform: scaleX(1.15); }
}

.dash-sparkle {
  position: absolute;
  right: 28px;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  box-shadow: 0 0 12px rgba(255,255,255,.95), 0 0 24px rgba(97,218,251,.42);
  animation: spark 1.1s ease-in-out infinite;
}

@keyframes spark {
  0%, 100% { transform: scale(.7); opacity: .5; }
  50% { transform: scale(1.2); opacity: 1; }
}

.car-smile {
  position: absolute;
  left: 120px;
  bottom: 18px;
  width: 18px;
  height: 9px;
  border-bottom: 3px solid rgba(255,255,255,.78);
  border-radius: 0 0 18px 18px;
  transform: rotate(-8deg);
}

.car-light {
  position: absolute;
  top: 24px;
  width: 17px;
  height: 8px;
  border-radius: 6px;
  background: rgba(255,255,210,.92);
  box-shadow: 0 0 14px rgba(255,255,180,.95);
}

.car-light.head { right: -5px; }
.car-light.tail {
  left: -5px;
  top: 27px;
  background: rgba(255,107,138,.96);
  box-shadow: 0 0 12px rgba(255,107,138,.85);
}

.car-wheel {
  position: absolute;
  bottom: -10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid rgba(233,240,255,.9);
  background: rgba(10,22,40,.85);
  box-shadow: inset 0 0 0 6px rgba(97,218,251,.18);
}

.wheel-front { right: 18px; }
.wheel-rear { left: 18px; }

.track-car.running .car-wheel {
  animation: spin .85s linear infinite;
}

.car-exhaust {
  position: absolute;
  right: -8px;
  bottom: 10px;
  width: 10px;
  height: 6px;
  border-radius: 4px;
  background: rgba(140,255,183,.7);
  opacity: 0;
  transition: opacity .2s;
}

.track-car.running .car-exhaust {
  opacity: .9;
  animation: puff .8s ease-in-out infinite;
}

@keyframes puff {
  0%, 100% { transform: scale(1); opacity: .55; }
  50% { transform: scale(1.5); opacity: .2; }
}

.track-note {
  position: absolute;
  left: 10px;
  bottom: 10px;
}

.track-car.level-1 .car-body {
  background: linear-gradient(180deg, rgba(255,205,87,.97), rgba(255,87,147,.82));
}

.track-car.level-2 .car-body {
  background: linear-gradient(180deg, rgba(97,218,251,.97), rgba(140,255,183,.78));
}

.track-car.level-3 .car-body {
  background: linear-gradient(180deg, rgba(255,132,80,.98), rgba(140,110,255,.85));
}
.roof-rail,
.rear-camera-lens,
.sensor-dot,
.ac-strip,
.family-badge {
  opacity: 0;
  transition: opacity .28s ease, transform .28s ease, box-shadow .28s ease;
}

.roof-rail.show,
.rear-camera-lens.show,
.sensor-dot.show,
.ac-strip.show,
.family-badge.show {
  opacity: 1;
}

.roof-rail {
  position: absolute;
  top: 6px;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 0 8px rgba(255,255,255,.22);
  transform: translateY(-4px);
}

.roof-rail.show {
  transform: translateY(0);
}

.rail-front { left: 42px; }
.rail-rear { left: 86px; }

.rear-camera-lens {
  position: absolute;
  left: 6px;
  top: 34px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #dff7ff, #58d8ff 45%, #0d2032 75%);
  box-shadow: 0 0 8px rgba(88,216,255,.45);
  transform: scale(.7);
}

.rear-camera-lens.show {
  transform: scale(1);
}

.sensor-dot {
  position: absolute;
  bottom: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,245,180,.92);
  box-shadow: 0 0 8px rgba(255,245,180,.55);
  transform: scale(.6);
}

.sensor-dot.show {
  transform: scale(1);
}

.sensor-1 { left: 18px; }
.sensor-2 { left: 32px; }
.sensor-3 { right: 32px; }
.sensor-4 { right: 18px; }

.ac-strip {
  position: absolute;
  right: 16px;
  top: 18px;
  width: 26px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(97,218,251,.95), transparent);
  filter: blur(.4px);
  animation: acFlow 1.1s ease-in-out infinite;
}

@keyframes acFlow {
  0%, 100% { opacity: .35; transform: scaleX(.85); }
  50% { opacity: 1; transform: scaleX(1.18); }
}

.family-badge {
  position: absolute;
  right: 42px;
  bottom: 14px;
  font-size: 14px;
  color: #fff2a8;
  text-shadow: 0 0 10px rgba(255,242,168,.55);
  transform: scale(.7) rotate(-8deg);
}

.family-badge.show {
  transform: scale(1) rotate(-8deg);
}

.track-car.level-2 .car-body {
  background: linear-gradient(180deg, rgba(97,218,251,.97), rgba(140,255,183,.78));
}

.track-car.level-2 .car-light.head {
  box-shadow: 0 0 18px rgba(255,255,180,.98);
}

.track-car.level-2 .dash-sparkle {
  box-shadow: 0 0 14px rgba(255,255,255,.98), 0 0 28px rgba(97,218,251,.5);
}
.track-stage {
  position: relative;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background:
    linear-gradient(180deg, #10213c 0 56%, #0b1628 56% 100%);
}

.track-sky {
  position: absolute;
  inset: 0 0 44% 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.08), transparent 18%),
    radial-gradient(circle at 75% 20%, rgba(97,218,251,.10), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  z-index: 0;
}

.track-road {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 44%;
  width: 5000px;
  z-index: 0;
  will-change: transform;
}

.track-ground {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04) 0 8%, transparent 8% 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.07) 0 38px,
      transparent 38px 76px
    ),
    linear-gradient(180deg, #101a2d 0%, #091220 100%);
}

.track-ground::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,210,.9) 0 24px,
    transparent 24px 52px
  );
  opacity: .9;
}

.track-ground::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 2px;
  background: rgba(255,255,255,.08);
}

.track-boundary {
  position: absolute;
  left: 86%;
  top: 0;
  bottom: 0;
  width: 14%;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border-left: 2px solid rgba(255,255,255,.18);
  box-shadow: inset 10px 0 30px rgba(0,0,0,.22);
}

.track-boundary::before {
  content: 'CHECKPOINT';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(10,22,40,.7);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  letter-spacing: .08em;
}

.track-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.track-car {
  position: absolute;
  left: 10%;
  bottom: 14%;
  width: 178px;
  height: 74px;
  z-index: 2;
  transition: left .12s linear, transform .2s ease;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.35));
}

.track-car.running {
  animation: bob .75s ease-in-out infinite;
}

.car-body::before {
  content: '';
  position: absolute;
  left: 26px;
  right: 16px;
  top: -10px;
  height: 38px;
  border-radius: 26px 34px 10px 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
}

.car-body::before {
  content: '';
  position: absolute;
  inset: 10px 18px 12px 18px;
  border-radius: 22px 38px 14px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.04));
}

.car-window {
  position: absolute;
  left: 42px;
  top: 10px;
  width: 44px;
  height: 20px;
  border-radius: 10px 14px 8px 8px;
  background: linear-gradient(180deg, #d9fbff, #8de9ff);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 0 10px rgba(180,245,255,.35);
  animation: windowGlow 2.8s ease-in-out infinite;
}

.car-window.rear {
  left: 92px;
  width: 24px;
  opacity: .96;
}

.car-door {
  position: absolute;
  left: 88px;
  top: 14px;
  bottom: 11px;
  width: 2px;
  background: rgba(255,255,255,.45);
}

.seat-icon {
  position: absolute;
  bottom: 16px;
  width: 15px;
  height: 17px;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 4px 4px 3px 3px;
}

.seat-icon::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -5px;
  height: 6px;
  border: 2px solid rgba(255,255,255,.85);
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

.seat-left { left: 40px; }
.seat-right { left: 98px; }

.ac-glow {
  position: absolute;
  right: 14px;
  top: 24px;
  width: 20px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #6df2ff, transparent);
  filter: blur(1px);
  animation: acBlink 1.4s ease-in-out infinite;
}

.dash-sparkle {
  position: absolute;
  right: 28px;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255,255,255,.9), 0 0 20px rgba(109,242,255,.45);
  animation: spark 1.1s ease-in-out infinite;
}

.car-smile {
  position: absolute;
  right: 16px;
  bottom: 15px;
  width: 14px;
  height: 7px;
  border-bottom: 3px solid rgba(255,255,255,.9);
  border-radius: 0 0 18px 18px;
  transform: rotate(-8deg);
}

.car-light {
  position: absolute;
  top: 24px;
  width: 17px;
  height: 8px;
  border-radius: 6px;
}

.car-light.head {
  right: -5px;
  background: #fff4a8;
  box-shadow: 0 0 16px rgba(255,244,168,.95);
}

.car-light.tail {
  left: -5px;
  top: 27px;
  background: #ff6b8a;
  box-shadow: 0 0 12px rgba(255,107,138,.9);
}

.car-wheel {
  position: absolute;
  bottom: -10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.95);
  background: #102038;
  box-shadow: inset 0 0 0 6px rgba(70,120,180,.45);
}

.wheel-front { right: 18px; }
.wheel-rear { left: 18px; }

.track-car.running .car-wheel {
  animation: spin .85s linear infinite;
}

.car-exhaust {
  position: absolute;
  right: -8px;
  bottom: 10px;
  width: 10px;
  height: 6px;
  border-radius: 4px;
  background: rgba(140,255,183,.7);
  opacity: 0;
}

.track-car.running .car-exhaust {
  opacity: .9;
  animation: puff .8s ease-in-out infinite;
}

.track-car.level-1 .car-body {
  background: linear-gradient(180deg, #31c8ff 0%, #1184d8 55%, #0d5ca8 100%);
}

.track-car.level-2 .car-body {
  background: linear-gradient(180deg, #41e6b8 0%, #17b98b 55%, #0d8d6d 100%);
}

.track-car.level-3 .car-body {
  background: linear-gradient(180deg, #ffb347 0%, #ff7a59 55%, #d94b3d 100%);
}

.track-car,
.track-car * {
  box-sizing: border-box;
}

.track-car .car-body {
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
}

.track-car .car-wheel,
.track-car .car-window,
.track-car .car-light,
.track-car .seat-icon {
  opacity: 1 !important;
  visibility: visible !important;
}

.explore-footer {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.footer-note {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.explore-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem;
  align-items: start;
  text-decoration: none;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(26,40,64,.92), rgba(20,31,52,.96));
  border: 1px solid var(--color-border);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.explore-card:hover,
.explore-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(97,218,251,.4);
  box-shadow: 0 10px 24px rgba(0,0,0,.22), 0 0 0 1px rgba(97,218,251,.14) inset;
  background: linear-gradient(180deg, rgba(31,51,80,.98), rgba(20,36,58,.98));
}

.explore-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.35rem;
  background: rgba(97,218,251,.12);
  box-shadow: inset 0 0 0 1px rgba(97,218,251,.12);
}

.explore-card strong {
  display: block;
  color: var(--color-text);
  margin-bottom: .3rem;
  font-size: var(--text-base);
}

.explore-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.4;
}
.hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: flex-end;
}

.nav-pill {
  border: 1px solid var(--color-border);
  background: rgba(22,34,56,.88);
  color: var(--color-text);
  padding: .8rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.nav-pill:hover,
.nav-pill:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(97,218,251,.42);
  box-shadow: 0 8px 20px rgba(0,0,0,.18), 0 0 0 1px rgba(97,218,251,.14) inset;
}

.nav-pill.active {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  color: #08131a;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(97,218,251,.25);
}

.section-pulse {
  animation: sectionPulse 1.5s ease;
}

@keyframes sectionPulse {
  0% { box-shadow: 0 0 0 0 rgba(97,218,251,0); }
  20% { box-shadow: 0 0 0 2px rgba(97,218,251,.24), 0 0 26px rgba(97,218,251,.16); }
  100% { box-shadow: 0 0 0 0 rgba(97,218,251,0); }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.journey-panel {
  display: grid;
  gap: 1rem;
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.journey-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .85rem;
  align-items: start;
  text-align: left;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(21,33,53,.92);
  color: var(--color-text);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.journey-step:hover,
.journey-step:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(97,218,251,.42);
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
}

.journey-step span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  color: #08131a;
  font-weight: 800;
}

.journey-step strong {
  display: block;
  margin-bottom: .25rem;
}

.journey-step p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.fault-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .85rem;
}

.fault-item {
  display: grid;
  gap: .35rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(24,37,60,.92);
  border: 1px solid var(--color-border);
}

.fault-item strong {
  color: var(--color-text);
}

.fault-item span {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.fault-item em {
  color: #9ee7ff;
  font-style: normal;
  font-size: var(--text-sm);
}

.fault-item.good {
  background: rgba(140,255,183,.08);
  border-color: rgba(140,255,183,.28);
}