:root {
  --bg-obsidian: #04070d;
  --bg-panel: rgba(9, 15, 26, 0.72);
  --bg-panel-hover: rgba(14, 24, 42, 0.85);
  --neon-blue: #00f0ff;
  --neon-blue-dim: rgba(0, 240, 255, 0.22);
  --toxic-green: #39ff14;
  --toxic-green-dim: rgba(57, 255, 20, 0.22);
  --text-primary: #f2f7ff;
  --text-muted: #7e93b5;
  --border-glass: rgba(0, 240, 255, 0.24);
  --font-display: 'Orbitron', sans-serif;
  --font-wide: 'Syncopate', sans-serif;
  --font-ui: 'Rajdhani', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-ui);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- CYBERNETIC BACKDROP & LIGHTING --- */
.cyber-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 48%, #0c192e 0%, #050811 58%, #020307 100%);
}

.radial-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.42;
}

.glow-blue {
  width: 56vw;
  height: 56vw;
  top: -18vw;
  left: 22vw;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.32), transparent 70%);
}

.glow-green {
  width: 44vw;
  height: 44vw;
  bottom: -16vw;
  right: 18vw;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.22), transparent 70%);
}

.cyber-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 240, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 50%, black 35%, transparent 90%);
}

.scanline-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.22) 3px
  );
  opacity: 0.45;
}

.vignette-overlay {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.92);
}

/* --- FIGMA 8K MOCKUP SPEC OVERLAY --- */
.figma-spec-layer {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.figma-spec-hidden .figma-spec-layer {
  opacity: 0;
}

.figma-ruler-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  background: rgba(4, 9, 18, 0.88);
  border-bottom: 1px solid rgba(0, 240, 255, 0.22);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(0, 240, 255, 0.65);
  letter-spacing: 0.08em;
}

.figma-frame-badge {
  position: absolute;
  top: 22px;
  left: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.08em;
}

.figma-guide-line {
  position: absolute;
  background: rgba(0, 240, 255, 0.11);
}

.guide-v-left {
  top: 0;
  bottom: 0;
  left: 348px;
  width: 1px;
}

.guide-v-right {
  top: 0;
  bottom: 0;
  right: 348px;
  width: 1px;
}

.guide-h-center {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
}

/* --- COCKPIT SHELL LAYOUT --- */
.cockpit-shell {
  position: relative;
  z-index: 5;
  width: 100vw;
  height: 100vh;
  padding: 44px 22px 16px;
  display: grid;
  grid-template-rows: 64px 1fr 42px;
  gap: 14px;
}

/* --- GLASSMORPHIC PANEL BASE --- */
.glass-panel {
  position: relative;
  background: var(--bg-panel);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border-glass);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hud-corner-tick {
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: var(--neon-blue);
  pointer-events: none;
}

.hud-corner-tick.tl {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--neon-blue);
  border-left: 2px solid var(--neon-blue);
}
.hud-corner-tick.tr {
  top: -1px;
  right: -1px;
  border-top: 2px solid var(--toxic-green);
  border-right: 2px solid var(--toxic-green);
}
.hud-corner-tick.bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid var(--toxic-green);
  border-left: 2px solid var(--toxic-green);
}
.hud-corner-tick.br {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--neon-blue);
  border-right: 2px solid var(--neon-blue);
}

.accent-blue {
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.55);
}

.accent-green {
  color: var(--toxic-green);
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.55);
}

/* --- TOP GAMING HUD BAR --- */
.hud-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  gap: 20px;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-emblem {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--neon-blue);
  display: grid;
  place-items: center;
  transform: skewX(-12deg);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}

.emblem-core {
  width: 14px;
  height: 14px;
  background: var(--toxic-green);
  box-shadow: 0 0 12px var(--toxic-green);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.14em;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.awwwards-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid rgba(57, 255, 20, 0.4);
  background: rgba(57, 255, 20, 0.08);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--toxic-green);
  letter-spacing: 0.08em;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.pulse-dot.toxic {
  background: var(--toxic-green);
  box-shadow: 0 0 8px var(--toxic-green);
}
.pulse-dot.blue {
  background: var(--neon-blue);
  box-shadow: 0 0 8px var(--neon-blue);
}

/* RPM Strip */
.rpm-telemetry-strip {
  flex: 1;
  max-width: 410px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rpm-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.rpm-led-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.3);
  overflow: hidden;
  position: relative;
}

.rpm-led-fill {
  height: 100%;
  width: 78%;
  background: linear-gradient(90deg, var(--neon-blue) 0%, var(--toxic-green) 75%, #ff2a54 100%);
  box-shadow: 0 0 14px var(--neon-blue);
  transition: width 0.12s linear;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sys-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 6px;
}

.mono-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.hud-btn {
  background: rgba(12, 22, 38, 0.85);
  color: var(--text-primary);
  border: 1px solid rgba(0, 240, 255, 0.35);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.hud-btn:hover,
.hud-btn.active {
  border-color: var(--neon-blue);
  background: rgba(0, 240, 255, 0.14);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.28);
}

.hud-btn.cta-btn {
  border-color: var(--toxic-green);
  background: rgba(57, 255, 20, 0.14);
  color: var(--toxic-green);
}

.hud-btn.cta-btn:hover {
  background: var(--toxic-green);
  color: #03060a;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.6);
}

.btn-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5c708f;
}
.btn-status-dot.online {
  background: var(--toxic-green);
  box-shadow: 0 0 8px var(--toxic-green);
}

/* --- MAIN 3-COLUMN COCKPIT GRID --- */
.cockpit-grid {
  display: grid;
  grid-template-columns: 325px 1fr 325px;
  gap: 16px;
  min-height: 0;
}

.hud-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.hud-card {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  justify-content: space-between;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.panel-index {
  color: var(--text-primary);
  font-weight: 700;
}

/* --- LEFT PANEL: FLEET SELECTOR --- */
.project-selector-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-selector-btn {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 9px 11px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.project-selector-btn:hover {
  border-color: rgba(0, 240, 255, 0.45);
  background: rgba(0, 240, 255, 0.06);
}

.project-selector-btn.active {
  border-color: var(--neon-blue);
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.16), rgba(57, 255, 20, 0.05));
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.2);
}

.proj-btn-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.project-selector-btn.active .proj-code {
  color: var(--neon-blue);
}

.proj-badge {
  color: var(--toxic-green);
}

.proj-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.proj-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.proj-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-blue), var(--toxic-green));
}

/* Sliders & G-Force */
.slider-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slider-label-line {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.cyber-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
}

.cyber-slider.blue::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--neon-blue);
  box-shadow: 0 0 10px var(--neon-blue);
  cursor: pointer;
}

.cyber-slider.green::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--toxic-green);
  box-shadow: 0 0 10px var(--toxic-green);
  cursor: pointer;
}

.gforce-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#gforce-radar-canvas {
  background: rgba(3, 8, 16, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 50%;
  flex-shrink: 0;
}

.gforce-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gforce-big {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--toxic-green);
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.45);
}

.gforce-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
}

.drs-pill {
  margin-top: 4px;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 3px 7px;
  border: 1px solid rgba(57, 255, 20, 0.35);
  background: rgba(57, 255, 20, 0.08);
}

/* --- CENTER HERO VIEWPORT --- */
.center-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  cursor: grab;
}

.center-stage:active {
  cursor: grabbing;
}

.hero-typography-backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}

.bg-outline-text {
  font-family: var(--font-wide);
  font-size: clamp(36px, 4.6vw, 76px);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 240, 255, 0.18);
  text-transform: uppercase;
  white-space: nowrap;
}

.bg-solid-text {
  font-family: var(--font-display);
  font-size: clamp(58px, 7.8vw, 128px);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.035);
  text-shadow: 0 0 60px rgba(0, 240, 255, 0.14);
  white-space: nowrap;
  margin-top: -12px;
}

.center-reticle-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 2;
}

.reticle-svg {
  width: min(56vh, 470px);
  height: min(56vh, 470px);
  opacity: 0.55;
}

.reticle-ring-dashed {
  fill: none;
  stroke: rgba(0, 240, 255, 0.35);
  stroke-width: 1;
  stroke-dasharray: 8 12;
}

.reticle-ring-thin {
  fill: none;
  stroke: rgba(57, 255, 20, 0.22);
  stroke-width: 1;
}

.reticle-ticks {
  stroke: var(--neon-blue);
  stroke-width: 2;
}

.three-stage-container {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* Projected 3D Callout Pins */
.hud-pins-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.hud-callout-pin {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease;
}

.pin-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
}

.pin-dot.blue {
  background: var(--neon-blue);
  box-shadow: 0 0 12px var(--neon-blue);
}

.pin-dot.green {
  background: var(--toxic-green);
  box-shadow: 0 0 12px var(--toxic-green);
}

.pin-tag {
  background: rgba(4, 10, 20, 0.86);
  border: 1px solid rgba(0, 240, 255, 0.45);
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
}

.pin-code {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--neon-blue);
  font-weight: 700;
}

.pin-desc {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-primary);
}

/* Center Top Header Overlay */
.center-header-hud {
  position: relative;
  z-index: 5;
  text-align: center;
  padding-top: 8px;
  pointer-events: none;
}

.center-meta-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.badge-cyber {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border: 1px solid var(--neon-blue);
  background: rgba(0, 240, 255, 0.12);
  color: var(--neon-blue);
  letter-spacing: 0.08em;
}

.badge-cyber.green {
  border-color: var(--toxic-green);
  background: rgba(57, 255, 20, 0.12);
  color: var(--toxic-green);
}

.mono-coords {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.hero-main-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.7vw, 40px);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(0, 240, 255, 0.45);
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  margin-top: 2px;
}

/* Center Bottom Camera Mode Dock */
.center-bottom-dock {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 8px;
  padding: 8px;
  margin-bottom: 4px;
}

.cam-mode-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  transition: all 0.2s ease;
}

.cam-mode-btn .mode-num {
  color: var(--text-muted);
  font-size: 10px;
}

.cam-mode-btn:hover {
  border-color: var(--neon-blue);
  background: rgba(0, 240, 255, 0.1);
}

.cam-mode-btn.active {
  border-color: var(--toxic-green);
  background: rgba(57, 255, 20, 0.16);
  color: var(--toxic-green);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.28);
}

.cam-mode-btn.active .mode-num {
  color: var(--toxic-green);
}

/* --- RIGHT PANEL: TELEMETRY MATRIX & ARCHITECTURE --- */
.metrics-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.metric-tile {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.waveform-box {
  background: rgba(3, 8, 15, 0.78);
  border: 1px solid rgba(0, 240, 255, 0.22);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.waveform-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
}

.trace-legend {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-blue,
.dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.dot-blue {
  background: var(--neon-blue);
}
.dot-green {
  background: var(--toxic-green);
}

#telemetry-wave-canvas {
  width: 100%;
  height: 64px;
  display: block;
}

/* Spec Matrix List */
.spec-matrix-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.spec-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.spec-key {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--neon-blue);
  letter-spacing: 0.07em;
}

.spec-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}

.lap-sector-box {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(57, 255, 20, 0.06));
  border: 1px solid rgba(0, 240, 255, 0.28);
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lap-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.lap-clock {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--toxic-green);
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.45);
}

.sector-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.sector-pill {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 6px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
}

.sector-pill.purple {
  border-color: #c850ff;
  color: #e49eff;
}

/* --- BOTTOM FOOTER --- */
.hud-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--neon-blue);
  font-weight: 700;
}

.footer-sep {
  color: rgba(255, 255, 255, 0.2);
}

.mono-dim {
  color: var(--text-muted);
}

.footer-action-chip {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--neon-blue);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 5px 14px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}

.footer-action-chip:hover {
  background: var(--neon-blue);
  color: #03070e;
  box-shadow: 0 0 15px var(--neon-blue);
}

/* --- DOSSIER MODAL --- */
.dossier-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(2, 5, 12, 0.82);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.dossier-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.dossier-modal {
  width: min(920px, 92vw);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  padding-bottom: 14px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin-top: 8px;
  letter-spacing: 0.1em;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.modal-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 240, 255, 0.22);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-card-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--toxic-green);
}

.modal-card h3 {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--neon-blue);
}

.modal-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 1200px) {
  html, body {
    overflow-y: auto;
  }
  .cockpit-shell {
    height: auto;
    min-height: 100vh;
    grid-template-rows: auto auto auto;
  }
  .cockpit-grid {
    grid-template-columns: 1fr;
  }
  .center-stage {
    min-height: 520px;
  }
}
