:root {
  /* Dynamic Team Color Tokens (Default / Initial Theme: Ferrari) */
  --team-primary: #e80020;
  --team-primary-rgb: 232, 0, 32;
  --team-secondary: #ffe500;
  --team-secondary-rgb: 255, 229, 0;
  --team-tertiary: #101014;
  --team-accent-glow: rgba(232, 0, 32, 0.45);
  --team-surface: #180f12;
  --team-surface-hover: #26151a;
  --team-badge-bg: rgba(232, 0, 32, 0.18);
  --team-text-on-primary: #ffffff;
  --team-name: "SCUDERIA FERRARI";

  --bg: #090d14;
  --panel: #111722;
  --panel-2: #161f2e;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);
  --text: #f0f4f8;
  --muted: #8898ac;
  --cyan: var(--team-primary);
  --green: #3dd68c;
  --amber: #f0b429;
  --red: #f04460;
  --key: #1c2635;
  --key-hover: #263448;
  --radius: 8px;
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

/* Formula 1 Team Livery & UI Themes */
[data-team="ferrari"] {
  --team-primary: #e80020;
  --team-primary-rgb: 232, 0, 32;
  --team-secondary: #ffe500;
  --team-secondary-rgb: 255, 229, 0;
  --team-tertiary: #101014;
  --team-accent-glow: rgba(232, 0, 32, 0.45);
  --team-surface: #180f12;
  --team-surface-hover: #26151a;
  --team-badge-bg: rgba(232, 0, 32, 0.18);
  --team-text-on-primary: #ffffff;
  --team-name: "SCUDERIA FERRARI";
}

[data-team="mclaren"] {
  --team-primary: #ff8000;
  --team-primary-rgb: 255, 128, 0;
  --team-secondary: #47c7fc;
  --team-secondary-rgb: 71, 199, 252;
  --team-tertiary: #14171a;
  --team-accent-glow: rgba(255, 128, 0, 0.45);
  --team-surface: #1a140e;
  --team-surface-hover: #261d15;
  --team-badge-bg: rgba(255, 128, 0, 0.18);
  --team-text-on-primary: #000000;
  --team-name: "MCLAREN F1";
}

[data-team="red-bull"] {
  --team-primary: #2554d7;
  --team-primary-rgb: 37, 84, 215;
  --team-secondary: #f6c200;
  --team-secondary-rgb: 246, 194, 0;
  --team-tertiary: #d8102c;
  --team-accent-glow: rgba(37, 84, 215, 0.45);
  --team-surface: #0e1526;
  --team-surface-hover: #151e36;
  --team-badge-bg: rgba(37, 84, 215, 0.20);
  --team-text-on-primary: #ffffff;
  --team-name: "RED BULL RACING";
}

[data-team="mercedes"] {
  --team-primary: #00d2be;
  --team-primary-rgb: 0, 210, 190;
  --team-secondary: #e0e6ed;
  --team-secondary-rgb: 224, 230, 237;
  --team-tertiary: #0c1014;
  --team-accent-glow: rgba(0, 210, 190, 0.45);
  --team-surface: #0c1416;
  --team-surface-hover: #121f22;
  --team-badge-bg: rgba(0, 210, 190, 0.18);
  --team-text-on-primary: #000000;
  --team-name: "MERCEDES-AMG";
}

[data-team="aston-martin"] {
  --team-primary: #00594f;
  --team-primary-rgb: 0, 89, 79;
  --team-secondary: #cedc00;
  --team-secondary-rgb: 206, 220, 0;
  --team-tertiary: #0b1411;
  --team-accent-glow: rgba(206, 220, 0, 0.45);
  --team-surface: #0a1411;
  --team-surface-hover: #0f1f1a;
  --team-badge-bg: rgba(206, 220, 0, 0.18);
  --team-text-on-primary: #ffffff;
  --team-name: "ASTON MARTIN";
}

[data-team="williams"] {
  --team-primary: #005aff;
  --team-primary-rgb: 0, 90, 255;
  --team-secondary: #00a0de;
  --team-secondary-rgb: 0, 160, 222;
  --team-tertiary: #041e42;
  --team-accent-glow: rgba(0, 90, 255, 0.45);
  --team-surface: #0a1122;
  --team-surface-hover: #0f1933;
  --team-badge-bg: rgba(0, 90, 255, 0.18);
  --team-text-on-primary: #ffffff;
  --team-name: "WILLIAMS RACING";
}

[data-team="alpine"] {
  --team-primary: #0078d0;
  --team-primary-rgb: 0, 120, 208;
  --team-secondary: #fd4bc7;
  --team-secondary-rgb: 253, 75, 199;
  --team-tertiary: #0c1018;
  --team-accent-glow: rgba(253, 75, 199, 0.45);
  --team-surface: #10121a;
  --team-surface-hover: #181c28;
  --team-badge-bg: rgba(0, 120, 208, 0.18);
  --team-text-on-primary: #ffffff;
  --team-name: "ALPINE F1";
}

[data-team="sauber"],
[data-team="audi"] {
  --team-primary: #ff1801;
  --team-primary-rgb: 255, 24, 1;
  --team-secondary: #f0f2f5;
  --team-secondary-rgb: 240, 242, 245;
  --team-tertiary: #111317;
  --team-accent-glow: rgba(255, 24, 1, 0.45);
  --team-surface: #120f10;
  --team-surface-hover: #1e1416;
  --team-badge-bg: rgba(255, 24, 1, 0.18);
  --team-text-on-primary: #ffffff;
  --team-name: "AUDI F1";
}

[data-team="racing-bulls"] {
  --team-primary: #1634ca;
  --team-primary-rgb: 22, 52, 202;
  --team-secondary: #ff1801;
  --team-secondary-rgb: 255, 24, 1;
  --team-tertiary: #ffffff;
  --team-accent-glow: rgba(22, 52, 202, 0.50);
  --team-surface: #0a1125;
  --team-surface-hover: #101a37;
  --team-badge-bg: rgba(22, 52, 202, 0.20);
  --team-text-on-primary: #ffffff;
  --team-name: "RACING BULLS";
}

[data-team="haas"] {
  --team-primary: #e6002b;
  --team-primary-rgb: 230, 0, 43;
  --team-secondary: #ffffff;
  --team-secondary-rgb: 255, 255, 255;
  --team-tertiary: #161a1d;
  --team-accent-glow: rgba(230, 0, 43, 0.45);
  --team-surface: #141618;
  --team-surface-hover: #1e2024;
  --team-badge-bg: rgba(230, 0, 43, 0.18);
  --team-text-on-primary: #ffffff;
  --team-name: "HAAS F1";
}

[data-team="cadillac"] {
  --team-primary: #ffc72c;
  --team-primary-rgb: 255, 199, 44;
  --team-secondary: #2e84ff;
  --team-secondary-rgb: 46, 132, 255;
  --team-tertiary: #0c0f16;
  --team-accent-glow: rgba(255, 199, 44, 0.45);
  --team-surface: #0f131a;
  --team-surface-hover: #181e28;
  --team-badge-bg: rgba(255, 199, 44, 0.18);
  --team-text-on-primary: #000000;
  --team-name: "CADILLAC";
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  transition: background-color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
button, a, input, select, label, [role="button"],
.team-pick-btn, .constructor-card, .circuit-card, .circuit-vis-tab,
.horiz-card, .otot-col, .nav-item, .soundtrack-track-row {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button, .pill, .badge-lime, .otot-pills, .otot-pills span,
.driver-badge, .tele-status-pill, .track-3d-live-tag, .track-3d-acc-tag,
.stat-box, .mini-stat, .land-nav, #apex-loader, body:not(.landing-mode) {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
@media (pointer: coarse) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

#app {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(0.55rem, env(safe-area-inset-top)) max(1.1rem, env(safe-area-inset-right)) 0.55rem max(1.1rem, env(safe-area-inset-left));
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-shrink: 0;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-emblem-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(255, 60, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-right: 0.45rem;
  vertical-align: middle;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.brand-mark-link:hover .brand-emblem-icon {
  transform: scale(1.12) rotate(6deg);
  box-shadow: 0 0 14px var(--team-primary, #ff3b30);
}
.brand-mark-link, .brand-tag-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
}
.brand-mark-link:hover, .brand-tag-link:hover {
  opacity: 0.82;
  text-decoration: underline;
  text-decoration-color: var(--team-primary);
}
.brand-mark {
  color: var(--team-primary);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  text-shadow: 0 0 10px var(--team-accent-glow);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.brand-model { font-weight: 700; font-size: 1.1rem; letter-spacing: 0.06em; color: #fff; }
.brand-tag {
  color: var(--muted);
  font-size: 0.8rem;
  margin-left: 0.5rem;
  font-family: var(--mono);
}

/* Topbar Team Livery & UI Theme Setting */
.topbar-team-setting {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 27, 38, 0.7);
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.team-setting-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 500;
}
.team-swatch-badge {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 8px var(--team-accent-glow);
  background: linear-gradient(135deg, #e80020 0%, #e80020 55%, #ffe500 55%, #ffe500 80%, #101014 80%);
  transition: box-shadow 0.25s ease;
  flex-shrink: 0;
}
.team-setting-text {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  font-weight: 600;
}
.team-dropdown {
  background: var(--key);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.team-dropdown:hover, .team-dropdown:focus {
  border-color: var(--team-primary);
  box-shadow: 0 0 8px var(--team-accent-glow);
}
.btn-design-modal {
  background: rgba(var(--team-primary-rgb), 0.12) !important;
  color: var(--team-primary) !important;
  border-color: rgba(var(--team-primary-rgb), 0.35) !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-design-modal:hover {
  background: rgba(var(--team-primary-rgb), 0.22) !important;
  border-color: var(--team-primary) !important;
  box-shadow: 0 0 10px var(--team-accent-glow);
}
.topbar-status { display: flex; align-items: center; gap: 0.75rem; }
.pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.pill-green { background: rgba(61, 214, 140, 0.15); color: var(--green); border: 1px solid var(--green); }
.pill-amber { background: rgba(240, 180, 41, 0.15); color: var(--amber); border: 1px solid var(--amber); }
.pill-red { background: rgba(240, 68, 96, 0.15); color: var(--red); border: 1px solid var(--red); }
.muted { color: var(--muted); font-family: var(--mono); font-size: 0.82rem; }

/* Workspace layout */
.workspace {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  background: var(--bg);
}

.workspace.panels-hidden .panel-collapsible {
  display: none !important;
}

/* 3D Stage */
.stage {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 40%, #151d2a 0%, #0a0e14 100%);
  overflow: hidden;
}
.view-toolbar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(12, 16, 22, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.view-btn {
  background: var(--key);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.view-btn:hover {
  background: var(--key-hover);
  border-color: var(--team-primary);
  box-shadow: 0 0 8px var(--team-accent-glow);
}
.view-btn.active {
  background: var(--team-primary);
  color: var(--team-text-on-primary);
  font-weight: 700;
  border-color: var(--team-primary);
  box-shadow: 0 0 12px var(--team-accent-glow);
}

#btn-quick-pause {
  background: rgba(2, 132, 199, 0.25);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 700;
  margin-left: auto;
}
#btn-quick-pause:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #7dd3fc;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.5);
}

.orbit-speed-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 4px;
}
.orbit-speed-ctrl input[type="range"] { width: 65px; }
.orbit-speed-ctrl select {
  background: var(--key);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 0.75rem;
}

.cam-presets {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.cam-btn {
  background: rgba(var(--team-primary-rgb), 0.12);
  color: var(--team-primary);
  border-color: rgba(var(--team-primary-rgb), 0.35);
  transition: all 0.2s ease;
}
.cam-btn:hover {
  background: rgba(var(--team-primary-rgb), 0.25);
  border-color: var(--team-primary);
  box-shadow: 0 0 8px var(--team-accent-glow);
}

.viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.viewport canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: none;
}
.viewport-caption {
  position: absolute;
  bottom: 28px;
  left: 16px;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--mono);
}
.stage-hint {
  position: absolute;
  bottom: 8px;
  left: 16px;
  font-size: 0.72rem;
  color: #55667a;
}

/* Collapsible Panels */
.panel-collapsible {
  background: var(--panel);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 0 0 320px;
  width: 320px;
  max-width: 320px;
  min-width: 0;
  transition: flex-basis 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.panel-collapsible[data-panel="instrument"] {
  flex: 0 0 340px;
  width: 340px;
  max-width: 340px;
}
.panel-collapsible[data-panel="parts"] {
  flex: 0 0 300px;
  width: 300px;
  max-width: 300px;
}
.panel-collapsible[data-panel="lab"] {
  flex: 0 0 280px;
  width: 280px;
  max-width: 280px;
}

.panel-collapsible.collapsed {
  flex: 0 0 42px !important;
  width: 42px !important;
  max-width: 42px !important;
  min-width: 42px !important;
}
.panel-collapsible.collapsed .panel-body {
  display: none !important;
}
.panel-collapsible.collapsed .panel-head {
  padding: 0.75rem 0.35rem;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: var(--panel-2);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}
.panel-collapsible.collapsed .panel-head:hover {
  background: var(--team-surface-hover, #26151a);
}
.panel-collapsible.collapsed .panel-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}
.panel-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel-collapse-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel-collapse-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

/* Steering Display & Keypad */
.lcd {
  width: 100%;
  border-radius: 6px;
  background: #000;
  border: 1px solid #334455;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.action-row {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
}
.key {
  flex: 1;
  background: var(--key);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 4px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.key:hover { background: var(--key-hover); }
.key-power.active { background: var(--green); color: #000; box-shadow: 0 0 10px rgba(61, 214, 140, 0.4); }
.key-aero.active {
  background: var(--team-primary);
  color: var(--team-text-on-primary);
  box-shadow: 0 0 10px var(--team-accent-glow);
}
.key-pyro { background: rgba(240, 68, 96, 0.2); color: var(--red); border-color: var(--red); }
.key-pyro:hover { background: var(--red); color: #fff; }

.ctrl-group {
  margin-bottom: 0.85rem;
}
.ctrl-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.ctrl-label span:last-child {
  font-family: var(--mono);
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ctrl-group input[type="range"] {
  width: 100%;
  accent-color: var(--team-primary);
  cursor: pointer;
}

.gear-cluster {
  background: var(--panel-2);
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.cluster-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}
.gear-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.gear-btn {
  background: var(--key);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 0;
  font-family: var(--mono);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gear-btn:hover {
  border-color: var(--team-primary);
  box-shadow: 0 0 6px var(--team-accent-glow);
}
.gear-btn.active {
  background: var(--team-primary);
  color: var(--team-text-on-primary);
  border-color: var(--team-primary);
  box-shadow: 0 0 10px var(--team-accent-glow);
}

/* Part Explorer */
.part-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.part-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--key);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: all 0.18s ease;
}
.part-item:hover {
  background: var(--key-hover);
  border-color: var(--team-primary);
}
.part-item.active {
  border-color: var(--team-primary);
  background: rgba(var(--team-primary-rgb), 0.14);
  box-shadow: inset 3px 0 0 var(--team-primary), 0 0 8px var(--team-accent-glow);
}
.part-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--team-primary);
  box-shadow: 0 0 6px var(--team-accent-glow);
  flex-shrink: 0;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Compliance Spec Table */
.spec-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  background: var(--panel-2);
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
}
.spec-key { color: var(--muted); }
.spec-val {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Design Principles & Inspiration Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 9, 15, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.5rem;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.modal-backdrop[hidden] {
  display: none !important;
  opacity: 0;
}
.modal-card {
  width: 100%;
  max-width: 960px;
  max-height: 88vh;
  background: #0f1622;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75), 0 0 32px var(--team-accent-glow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  background: rgba(20, 28, 40, 0.95);
}
.modal-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.modal-badge {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--team-primary);
  font-family: var(--mono);
}
.modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.modal-close-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-close-btn:hover {
  color: var(--text);
  border-color: var(--team-primary);
  background: rgba(var(--team-primary-rgb), 0.15);
}
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.modal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.section-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--team-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  background: var(--team-primary);
  border-radius: 2px;
}
.section-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #c4d0df;
}
.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 10px;
}
.insp-card {
  background: rgba(22, 31, 46, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.insp-card:hover {
  border-color: var(--team-primary);
  transform: translateY(-1px);
}
.insp-card-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.insp-number {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--team-primary);
  font-weight: 700;
  background: rgba(var(--team-primary-rgb), 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}
.insp-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
}
.insp-summary {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}
.insp-applied {
  font-size: 0.76rem;
  line-height: 1.4;
  color: #b5c7db;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 6px;
  margin-top: 2px;
}
.insp-applied code {
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 0.72rem;
  color: var(--team-secondary);
}
.principles-list {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #c4d0df;
}
.principles-list code {
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 0.78rem;
  color: var(--team-secondary);
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.4rem;
  border-top: 1px solid var(--border);
  background: rgba(16, 22, 33, 0.95);
}
.modal-hint {
  font-size: 0.75rem;
  color: var(--muted);
}
.modal-hint kbd {
  background: var(--key);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 5px;
  font-family: var(--mono);
  font-size: 0.70rem;
}

/* Responsive Mobile & Tablet Layout — Full-Screen 3D Stage */
@media (max-width: 900px) {
  .workspace {
    flex-direction: column !important;
    overflow: hidden !important;
    height: 100vh !important;
  }
  .stage {
    flex: 1 1 100% !important;
    min-height: 100vh !important;
    height: 100vh !important;
    width: 100vw !important;
  }
  .panel-collapsible {
    display: none !important;
  }
  .workspace:not(.panels-hidden) .panel-collapsible {
    display: flex !important;
  }
  .topbar {
    display: none !important;
  }
  .view-toolbar {
    display: none !important;
  }
}

/* =========================================================================
   ON-SCREEN DISPLAYS & HUD DROPDOWN SYSTEM
   Tucks away intrusive floating boxes into an organized dropdown menu.
   ========================================================================= */
/* =========================================================================
   ON-SCREEN DISPLAYS & HUD DROPDOWN SYSTEM
   Matches Formula 1 Apex Command & Pause Menu Glassmorphic Architecture
   ========================================================================= */
.hud-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.hud-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 22, 18, 0.85);
  color: #f5f6ed;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 16px;
  min-height: 38px;
  border-radius: 999px;
  font-family: var(--font-mona, system-ui, -apple-system, sans-serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-menu-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d2ff00;
  box-shadow: 0 0 8px #d2ff00;
  flex-shrink: 0;
}

.hud-dropdown-btn:hover,
.hud-dropdown-btn.active {
  background: rgba(210, 255, 0, 0.14);
  color: #ffffff;
  border-color: rgba(210, 255, 0, 0.55);
  box-shadow: 0 0 20px rgba(210, 255, 0, 0.32);
  transform: translateY(-1px);
}

.hud-btn-icon {
  font-size: 14px;
  line-height: 1;
}

.hud-btn-arrow {
  font-size: 9px;
  transition: transform 0.2s ease;
  color: #d2ff00;
}

.hud-dropdown-btn.active .hud-btn-arrow {
  transform: rotate(180deg);
}

.hud-dropdown-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1000;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: linear-gradient(165deg, rgba(14, 22, 18, 0.94) 0%, rgba(6, 10, 16, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(210, 255, 0, 0.55);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(210, 255, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(36px) saturate(190%);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  color: #f5f6ed;
  font-family: var(--font-mona, system-ui, -apple-system, sans-serif);
  animation: pausePop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

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

.hud-popover-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-brand-crest {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(210, 255, 0, 0.14);
  border: 1px solid rgba(210, 255, 0, 0.45);
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #d2ff00;
  box-shadow: 0 0 12px rgba(210, 255, 0, 0.25);
  flex-shrink: 0;
}

.hud-brand-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-popover-title {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
}

.hud-popover-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(210, 255, 0, 0.14);
  border: 1px solid rgba(210, 255, 0, 0.4);
  color: #d2ff00;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hud-popover-pill .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d2ff00;
  box-shadow: 0 0 6px #d2ff00;
}

.hud-popover-sub {
  font-size: 9.5px;
  color: #8c9e83;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-transform: uppercase;
}

.hud-popover-close {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 14px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
  line-height: 1;
  border-radius: 50%;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.hud-popover-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.hud-popover-hint {
  font-size: 10px;
  color: #8c9e83;
  margin: 10px 0 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.hud-options-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hud-option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  min-height: 48px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.hud-option-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(210, 255, 0, 0.35);
  transform: translateY(-1px);
}

.hud-option-item:has(input[type="checkbox"]:checked) {
  background: rgba(210, 255, 0, 0.08);
  border-color: rgba(210, 255, 0, 0.45);
  box-shadow: 0 0 16px rgba(210, 255, 0, 0.12);
}

.hud-option-item input[type="checkbox"] {
  accent-color: #d2ff00;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.hud-item-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.hud-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.hud-item-info strong {
  font-size: 11.5px;
  color: #f5f6ed;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hud-item-info small {
  font-size: 10px;
  color: #8c9e83;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-popover-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.hud-footer-btn {
  font-family: var(--font-mona, system-ui, -apple-system, sans-serif);
  padding: 8px 18px;
  min-height: 38px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hud-btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: #f5f6ed;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.hud-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

.hud-btn-primary {
  background: #d2ff00;
  color: #0c0f0a;
  border: 1px solid #d2ff00;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(210, 255, 0, 0.4);
}

.hud-btn-primary:hover {
  background: #e4ff4d;
  box-shadow: 0 0 26px rgba(210, 255, 0, 0.65);
  transform: translateY(-1px);
}

/* Touch & Mobile Button Ergonomics */
@media (max-width: 900px), (pointer: coarse) {
  .view-btn {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 11.5px;
  }
  .hud-dropdown-btn {
    min-height: 42px;
    padding: 9px 18px;
    font-size: 12px;
  }
  .hud-option-item {
    min-height: 52px;
    padding: 12px 14px;
  }
  .hud-footer-btn {
    min-height: 42px;
    padding: 10px 20px;
    font-size: 11.5px;
  }
}

/* =========================================================================
   TUCKED-AWAY OVERLAYS
   By default, floating HUD panels are hidden to prevent visual clutter.
   They only render when their checkbox in the Displays & HUD menu is checked
   (which assigns .overlay-active to the element).
   ========================================================================= */
#f1-timing-tower,
#sim-telemetry-panel,
#sess-panel,
#wx-panel,
#f1-perf-overlay {
  display: none !important;
}

#f1-timing-tower.overlay-active,
#sim-telemetry-panel.overlay-active,
#sess-panel.overlay-active,
#wx-panel.overlay-active,
#f1-perf-overlay.overlay-active {
  display: block !important;
}

/* Live FPS & Draw-Call Telemetry Overlay (QW1) */
#f1-perf-overlay {
  position: fixed;
  top: max(62px, calc(env(safe-area-inset-top) + 56px));
  right: max(14px, env(safe-area-inset-right));
  width: 244px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 14, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #e8eef7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.35;
  z-index: 9200;
  pointer-events: auto;
  user-select: none;
}

#f1-perf-overlay .perf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

#f1-perf-overlay .perf-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

#f1-perf-overlay .perf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.75);
}

#f1-perf-overlay .perf-dot[data-health="warn"] {
  background: #ffab00;
  box-shadow: 0 0 8px rgba(255, 171, 0, 0.75);
}

#f1-perf-overlay .perf-dot[data-health="bad"] {
  background: #ff334b;
  box-shadow: 0 0 8px rgba(255, 51, 75, 0.8);
}

#f1-perf-overlay .perf-title {
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 10px;
  color: #cbd5e1;
}

#f1-perf-overlay .perf-hotkey {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

#f1-perf-overlay .perf-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 4px;
}

#f1-perf-overlay .perf-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

#f1-perf-overlay .perf-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

#f1-perf-overlay .perf-fps-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

#f1-perf-overlay .perf-fps {
  font-size: 26px;
  font-weight: 900;
  color: #ccff00;
  line-height: 1;
}

#f1-perf-overlay[data-health="warn"] .perf-fps {
  color: #ffab00;
}

#f1-perf-overlay[data-health="bad"] .perf-fps {
  color: #ff334b;
}

#f1-perf-overlay .perf-unit {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
}

#f1-perf-overlay .perf-sub-stats {
  text-align: right;
  font-size: 10px;
  color: #94a3b8;
}

#f1-perf-overlay .perf-sub-stats strong {
  color: #f8fafc;
}

#f1-perf-overlay #perf-spark {
  display: block;
  width: 100%;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 7px;
}

#f1-perf-overlay .perf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px 8px;
  margin-bottom: 7px;
}

#f1-perf-overlay .perf-cell {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 4px 6px;
}

#f1-perf-overlay .perf-cell span {
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: #8ea0b8;
}

#f1-perf-overlay .perf-cell strong {
  font-size: 11px;
  color: #f1f5f9;
}

#f1-perf-overlay .perf-meta {
  font-size: 9.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 7px;
}

#f1-perf-overlay .perf-actions {
  display: flex;
}

#f1-perf-overlay .perf-copy-btn {
  width: 100%;
  padding: 5px 8px;
  border-radius: 7px;
  border: 1px solid rgba(204, 255, 0, 0.35);
  background: rgba(204, 255, 0, 0.1);
  color: #e6ff80;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

#f1-perf-overlay .perf-copy-btn:hover {
  background: rgba(204, 255, 0, 0.22);
}

/* When the cockpit sidebar is tucked away, also make sure the instrument panel
   doesn't take up column space in the grid */
.workspace.panels-hidden .instrument {
  display: none !important;
}

/* =========================================================================
   FORMULA 1 APEX — EDITORIAL PARALLAX SHOWCASE & SREDESIGNS LOADER
   Faithfully inspired by landonorris.com & computational motorsport design
   Color tokens: Acid Lime (#d2ff00), Motorsport Carbon (#14190f, #0c0f0a)
   Typography: Mona Sans & Playfair Display
   ========================================================================= */

:root {
  --color--lime: #d2ff00;
  --color--lime-glow: rgba(210, 255, 0, 0.45);
  --color--lime-dim: rgba(210, 255, 0, 0.12);
  --color--dark-green: #14190f;
  --color--dark-green-tint-1: #212918;
  --color--dark-green-tint-2: #344026;
  --color--black: #0c0f0a;
  --color--white: #f5f6ed;
  --font-mona: 'Mona Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --cubic-default: cubic-bezier(0.65, 0.05, 0, 1);
}

/* =========================================================================
   APPLICATION DISPLAY MODES: LANDING PAGE vs SIMULATOR
   ========================================================================= */

/* In Landing Mode: hide all simulator cockpit panels, toolbars, pause buttons and HUDs */
body.landing-mode .topbar,
body.landing-mode .view-toolbar,
body.landing-mode .instrument,
body.landing-mode .stage-hint,
body.landing-mode #viewport-status,
body.landing-mode #rbr-hud,
body.landing-mode #f1-timing-tower,
body.landing-mode #sess-panel,
body.landing-mode #wx-panel,
body.landing-mode #sim-telemetry-panel,
/* Obsolete intro overlay completely disabled */
#intro-overlay,
#intro-start,
#btn-replay-intro {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.landing-mode #model-credit,
body.landing-mode #intro-overlay,
body.landing-mode #btn-replay-intro,
body.landing-mode #btn-floating-pause,
body.landing-mode #f1-pause-modal,
body.landing-mode #music-player-bar {
  display: none !important;
}

body.landing-mode #app,
body.landing-mode .workspace,
body.landing-mode .stage {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  overflow: hidden !important;
  height: 100vh !important;
}

body.landing-mode #viewport3d {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

body.landing-mode #apex-landing {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 20 !important;
}

/* In Simulator Mode or while Fullscreen Loading Screen is open: hide landing page & custom landing cursor reticle */
body:not(.landing-mode) #apex-landing,
body:not(.landing-mode) #apex-cursor-dot,
body:not(.landing-mode) #apex-cursor-ring,
body:has(#apex-loader:not(.fade-out)) #apex-cursor-dot,
body:has(#apex-loader:not(.fade-out)) #apex-cursor-ring,
#apex-landing.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 0. Magnetic Custom Cursor */
#apex-cursor-dot {
  position: fixed;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  background: var(--color--lime);
  border-radius: 50%;
  pointer-events: none;
  z-index: 100000;
  box-shadow: 0 0 10px var(--color--lime);
  transition: transform 0.05s linear;
}

#apex-cursor-ring {
  position: fixed;
  top: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--color--lime);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transition: width 0.25s var(--cubic-default), height 0.25s var(--cubic-default), background 0.25s var(--cubic-default), border-color 0.25s var(--cubic-default);
}

#apex-cursor-ring.cursor-hover {
  width: 64px;
  height: 64px;
  top: -32px;
  left: -32px;
  background: rgba(210, 255, 0, 0.18);
  border-color: var(--color--lime);
  box-shadow: 0 0 24px var(--color--lime-glow);
}

/* 1. Fullscreen Graphic Loading Screen */
#apex-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at 50% 30%, #11141a 0%, #08090b 70%, #030405 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: var(--color--white);
  font-family: var(--font-mona);
  transition: opacity 0.75s var(--cubic-default), visibility 0.75s ease, transform 0.75s var(--cubic-default);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 0 40px;
}

#apex-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

.loader-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.loader-arcade-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  contain: strict;
}

.loader-scanlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.28) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.16;
}

.loader-grid-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: 
    linear-gradient(rgba(210, 255, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210, 255, 0, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
}

.loader-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1240px;
  width: 95vw;
  padding: 4px 16px 30px;
  margin: 0 auto;
}

.loader-brand-badge {
  display: inline-block;
  margin-bottom: 24px;
}

.loader-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(210, 255, 0, 0.1);
  border: 1px solid rgba(210, 255, 0, 0.35);
  color: var(--color--lime);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.25s var(--cubic-default);
}

.loader-brand-link:hover {
  background: var(--color--lime);
  color: var(--color--black);
  box-shadow: 0 0 20px var(--color--lime-glow);
}

.loader-crest {
  font-size: 1.1rem;
}

.loader-title {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.04em;
  margin: 0 0 4px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 5;
  pointer-events: none;
}

.loader-title-f1 {
  display: block;
  position: relative;
  z-index: 1;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.loader-title-apex {
  display: block;
  position: relative;
  z-index: 2;
  margin-top: -0.22em; /* slight overlap with Formula 1 */
  letter-spacing: -0.02em;
}

.accent-lime {
  color: var(--color--lime);
  text-shadow: 0 0 35px var(--color--lime-glow), 0 4px 14px rgba(0, 0, 0, 0.85);
}

.loader-sub {
  font-size: clamp(0.78rem, 1.1vw, 0.94rem);
  letter-spacing: 0.02em;
  color: #dbe7df;
  text-transform: none;
  font-style: italic;
  margin: 0 auto 4px;
  max-width: 860px;
  font-weight: 500;
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
  position: relative;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.loader-sub.quote-fade {
  opacity: 0;
  transform: translateY(-4px);
}

.loader-sub .quote-author {
  font-style: normal;
  font-weight: 800;
  color: var(--color--lime);
  text-shadow: 0 0 14px var(--color--lime-glow);
  letter-spacing: 0.06em;
  margin-left: 6px;
  white-space: nowrap;
}

/* Dedicated Wind Tunnel & 3D Car Corridor (Unobstructed full-width stage above loading bar) */
.loader-windtunnel-stage {
  height: clamp(230px, 30vh, 320px);
  width: 100%;
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  margin-top: -16px;
  margin-bottom: 4px;
}

/* Glassmorphic Active Aerodynamics Wing Flap Controller & Telemetry Display (Underneath Loading Bar) */
.loader-aero-hud {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  margin: 0 0 14px 0;
  background: rgba(12, 17, 24, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  pointer-events: auto;
  z-index: 10;
  box-sizing: border-box;
}

.aero-hud-controls {
  display: flex;
  align-items: center;
}

.aero-mode-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 28, 38, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 14px;
  color: #fff;
  cursor: pointer;
  transition: all 0.22s var(--cubic-default);
  font-family: var(--font-mona);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.aero-mode-toggle-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(210, 255, 0, 0.6);
  box-shadow: 0 0 20px rgba(210, 255, 0, 0.25);
}

.aero-mode-toggle-btn.z-active {
  border-color: rgba(255, 170, 0, 0.55);
}
.aero-mode-toggle-btn.z-active:hover {
  border-color: rgba(255, 170, 0, 0.9);
  box-shadow: 0 0 22px rgba(255, 170, 0, 0.35);
}

.aero-mode-toggle-btn.x-active {
  border-color: rgba(0, 240, 255, 0.65);
}
.aero-mode-toggle-btn.x-active:hover {
  border-color: rgba(0, 240, 255, 1.0);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.4);
}

.aero-btn-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffaa00;
  box-shadow: 0 0 10px #ffaa00;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  animation: aeroPulse 1.6s infinite ease-in-out;
}

.aero-mode-toggle-btn.x-active .aero-btn-beacon {
  background: #00f0ff;
  box-shadow: 0 0 12px #00f0ff;
}

@keyframes aeroPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.aero-btn-caption {
  font-weight: 800;
  color: #8c9e83;
  text-transform: uppercase;
}

.aero-btn-badge {
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
}

.aero-mode-toggle-btn.z-active .aero-btn-badge {
  color: #ffb800;
}

.aero-mode-toggle-btn.x-active .aero-btn-badge {
  color: #00f0ff;
}

.aero-btn-shortcut {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
}

.aero-hud-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aero-metric-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: rgba(18, 24, 32, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 4px 10px;
}

.aero-metric-item .m-title {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #8c9e83;
  text-transform: uppercase;
}

.aero-metric-item .m-val {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

#metric-downforce .m-val {
  color: #ffb800;
}

#metric-drag .m-val {
  color: #cfd8c7;
}

#metric-speed .m-val {
  color: var(--color--lime);
}

@media (max-width: 900px) {
  .loader-windtunnel-stage {
    height: clamp(230px, 32vh, 320px);
  }
  .loader-aero-hud {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
  }
  .aero-hud-controls {
    justify-content: center;
  }
  .aero-mode-toggle-btn {
    width: 100%;
    justify-content: center;
  }
  .aero-hud-metrics {
    justify-content: space-between;
    gap: 6px;
  }
  .aero-metric-item {
    flex: 1;
    align-items: center;
    padding: 4px 6px;
  }
  .aero-metric-item .m-val {
    font-size: 0.68rem;
  }
  .aero-btn-shortcut {
    display: none;
  }
}

.loader-progress-wrap {
  width: 100%;
  margin-bottom: 12px;
}

.loader-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.loader-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #b2c73a, var(--color--lime));
  box-shadow: 0 0 16px var(--color--lime-glow);
  transition: width 0.25s ease-out;
}

.loader-meta-row {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.78rem;
  font-family: var(--mono);
  color: #8c9e83;
}

.loader-pct {
  color: var(--color--lime);
  font-weight: 700;
}

.loader-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.loader-chips span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #cfd8c7;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 4px;
}

/* 2. Editorial Parallax Landing Page Container */
#apex-landing {
  position: fixed;
  inset: 0;
  z-index: 100;
  color: var(--color--white);
  font-family: var(--font-mona);
  transition: opacity 0.45s ease, visibility 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

#apex-landing.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  pointer-events: none;
}

.land-scroll-body {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: auto;
  scroll-behavior: smooth;
  background: radial-gradient(circle at 50% 35%, rgba(0, 0, 0, 0.05) 0%, rgba(6, 9, 14, 0.35) 100%);
}

/* =========================================================================
   STICKY TOP NAVIGATION BAR · MOTORSPORT TELEMETRY DOCK
   ========================================================================= */
.land-nav {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  pointer-events: none;
}

.land-scroll-rail {
  width: min(100%, 1440px);
  height: 3px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.land-scroll-rail-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00e5ff 0%, var(--color--lime) 55%, #ffffff 100%);
  box-shadow: 0 0 12px var(--color--lime-glow);
  transform-origin: left center;
}

.land-nav-inner {
  pointer-events: auto;
  width: 100%;
  max-width: 1440px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(8, 12, 18, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 6px 10px 6px 12px;
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), 0 0 24px rgba(210, 255, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: all 0.25s ease;
  box-sizing: border-box;
  min-width: 0;
}

.land-nav-inner:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.75), 0 0 30px rgba(210, 255, 0, 0.08);
}

.land-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 1;
  min-width: 0;
}

/* Brand Anchor */
.land-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
  padding-right: 4px;
}

.brand-crest-pill {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(210, 255, 0, 0.14);
  border: 1px solid rgba(210, 255, 0, 0.45);
  color: var(--color--lime);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 0 12px var(--color--lime-glow);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.land-brand-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.land-brand-link:hover .brand-crest-pill {
  transform: scale(1.08);
  background: rgba(210, 255, 0, 0.25);
  border-color: var(--color--lime);
}

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

.brand-titles strong {
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: #ffffff;
}

.brand-titles .brand-sub {
  font-size: 0.62rem;
  color: #8c9e83;
  letter-spacing: 0.09em;
  font-weight: 700;
}

/* Single Auto-Updating Section Dropdown Pill */
.land-nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-active-trigger {
  appearance: none;
  background: rgba(210, 255, 0, 0.14);
  border: 1px solid rgba(210, 255, 0, 0.45);
  color: var(--color--lime);
  font-family: var(--font-mona);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(210, 255, 0, 0.16);
  transition: all 0.2s ease;
}

.nav-active-trigger:hover,
.land-nav-dropdown.is-open .nav-active-trigger {
  background: rgba(210, 255, 0, 0.24);
  border-color: var(--color--lime);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(210, 255, 0, 0.3);
}

.nav-active-trigger .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color--lime);
  box-shadow: 0 0 8px var(--color--lime);
}

.nav-active-trigger .nav-chevron {
  font-size: 0.75rem;
  line-height: 1;
  opacity: 0.85;
  transition: transform 0.22s ease;
}

.land-nav-dropdown.is-open .nav-active-trigger .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  background: rgba(8, 12, 18, 0.96);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(210, 255, 0, 0.35);
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 28px rgba(210, 255, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
  z-index: 1000;
}

/* Invisible hover bridge so moving the cursor from button to menu never drops hover */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.land-nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-item {
  color: #b8c6ae;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 10px;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.nav-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}

.nav-item.active {
  color: var(--color--lime);
  background: rgba(210, 255, 0, 0.14);
  border: 1px solid rgba(210, 255, 0, 0.35);
  box-shadow: 0 0 12px rgba(210, 255, 0, 0.15);
}

.nav-item.active .dot {
  background: var(--color--lime);
  box-shadow: 0 0 8px var(--color--lime);
}

/* Nav Actions Container */
.land-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 1;
  min-width: 0;
  margin-left: auto;
}

/* Integrated Soundtrack Media Capsule */
.nav-media-capsule {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 8px 4px 5px;
  min-height: 42px;
  height: auto;
  min-width: 0;
  max-width: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease;
}

.nav-media-capsule:hover {
  border-color: rgba(210, 255, 0, 0.35);
}

.nav-media-cover-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-media-art {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.25s ease, border-color 0.2s ease;
}

.nav-media-cover-wrap:hover .nav-media-art {
  transform: scale(1.08);
  border-color: var(--color--lime);
}

.nav-media-track-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 110px;
  max-width: 140px;
}

.nav-media-top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.nav-media-track-info .music-track-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.music-eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  width: 14px;
}

.music-eq-bars .eq-bar {
  width: 2px;
  background: var(--color--lime);
  border-radius: 1px;
  height: 3px;
  transition: height 0.15s ease;
}

.music-eq-bars.playing .eq-bar:nth-child(1) {
  animation: eqAnim1 0.7s infinite alternate ease-in-out;
}
.music-eq-bars.playing .eq-bar:nth-child(2) {
  animation: eqAnim2 0.5s infinite alternate ease-in-out;
}
.music-eq-bars.playing .eq-bar:nth-child(3) {
  animation: eqAnim3 0.6s infinite alternate ease-in-out;
}
.music-eq-bars.playing .eq-bar:nth-child(4) {
  animation: eqAnim4 0.45s infinite alternate ease-in-out;
}

@keyframes eqAnim1 { 0% { height: 3px; } 100% { height: 12px; } }
@keyframes eqAnim2 { 0% { height: 12px; } 100% { height: 5px; } }
@keyframes eqAnim3 { 0% { height: 5px; } 100% { height: 13px; } }
@keyframes eqAnim4 { 0% { height: 10px; } 100% { height: 3px; } }

.nav-media-progress-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-media-progress-line .music-progress-bar-wrap {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.nav-media-progress-line .music-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color--lime);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--color--lime);
  transition: width 0.1s linear;
}

.nav-media-progress-line .music-time-meta {
  font-size: 0.58rem;
  font-weight: 700;
  color: #8c9e83;
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.nav-media-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-media-controls .mctrl-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.nav-media-controls .mctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color--lime);
  border-color: var(--color--lime);
}

.nav-media-controls .mctrl-play {
  width: 30px;
  height: 30px;
  background: var(--color--lime);
  color: #000;
  border: none;
  box-shadow: 0 0 14px var(--color--lime-glow);
}

.nav-media-controls .mctrl-play:hover {
  transform: scale(1.1);
  background: #e2ff40;
  color: #000;
}

.nav-media-controls .mctrl-vol {
  font-size: 0.7rem;
}

.nav-btn-tracks {
  background: rgba(210, 255, 0, 0.12);
  color: var(--color--lime);
  border: 1px solid rgba(210, 255, 0, 0.35);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  padding: 6px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-btn-tracks:hover {
  background: var(--color--lime);
  color: #000;
  border-color: var(--color--lime);
  box-shadow: 0 0 12px var(--color--lime-glow);
}

/* Sound Toggle Button */
.btn-sound-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cfd8c7;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  transition: all 0.2s ease;
}

.btn-sound-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-sound-toggle.active {
  background: rgba(210, 255, 0, 0.15);
  border-color: var(--color--lime);
  color: var(--color--lime);
}

/* Enter Simulator Button */
.land-btn-enter {
  background: var(--color--lime);
  color: var(--color--black);
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  height: auto;
  max-width: 100%;
  flex-shrink: 0;
  text-decoration: none;
  box-shadow: 0 0 20px var(--color--lime-glow);
  transition: all 0.25s var(--cubic-default);
}

.land-btn-enter:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.6);
}

/* =========================================================================
   SECTION 1: HERO (Pinned 200vh Scroll Sequence)
   ========================================================================= */
.hero-pinned-track {
  height: 200vh;
  position: relative;
}

.hero-sticky-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 4vw;
}

.hero-sticky-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 44%, rgba(6, 12, 22, 0.36) 0%, rgba(6, 12, 22, 0.14) 54%, rgba(6, 12, 22, 0.42) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Full Soundtrack Modal / Drawer */
.soundtrack-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.soundtrack-modal.is-open {
  display: flex;
}

.soundtrack-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 4, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.soundtrack-modal-sheet {
  position: relative;
  width: 100%;
  max-width: 860px;
  max-height: 85vh;
  background: rgba(16, 21, 14, 0.96);
  border: 1px solid rgba(210, 255, 0, 0.35);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
  animation: modalSlideUp 0.3s cubic-bezier(0.65, 0.05, 0, 1);
}

@keyframes modalSlideUp {
  from { transform: translateY(30px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.soundtrack-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.soundtrack-modal-title {
  font-family: var(--font-mona);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin: 6px 0 4px;
  letter-spacing: -0.02em;
}

.soundtrack-modal-sub {
  font-size: 0.82rem;
  color: #8c9e83;
  margin: 0;
}

.soundtrack-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.soundtrack-modal-close:hover {
  background: var(--color--lime);
  color: #000;
  border-color: var(--color--lime);
}

.soundtrack-tracks-container {
  padding: 20px 28px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.soundtrack-section-title {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--color--lime);
  text-transform: uppercase;
  margin: 8px 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.soundtrack-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.soundtrack-track-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.2s ease;
}

.soundtrack-track-row:hover {
  background: rgba(210, 255, 0, 0.08);
  border-color: rgba(210, 255, 0, 0.35);
  transform: translateX(4px);
}

.soundtrack-track-row.is-active {
  background: rgba(210, 255, 0, 0.14);
  border-color: var(--color--lime);
  box-shadow: 0 0 20px rgba(210, 255, 0, 0.2);
}

.track-row-num {
  font-size: 0.8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.4);
  width: 22px;
}

.soundtrack-track-row.is-active .track-row-num {
  color: var(--color--lime);
}

.track-row-cover {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.track-row-info {
  flex: 1;
  min-width: 0;
}

.track-row-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.soundtrack-track-row.is-active .track-row-name {
  color: var(--color--lime);
}

.track-row-sub {
  font-size: 0.72rem;
  color: #8c9e83;
  margin-top: 2px;
}

.track-row-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #a4b39a;
  text-transform: uppercase;
}

.soundtrack-track-row.is-active .track-row-tag {
  background: var(--color--lime);
  color: #000;
}

.track-row-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.soundtrack-track-row:hover .track-row-play-btn {
  background: var(--color--lime);
  color: #000;
  border-color: var(--color--lime);
}

.soundtrack-track-row.is-active .track-row-play-btn {
  background: var(--color--lime);
  color: #000;
  border-color: var(--color--lime);
}

/* Hero Center Typography */
.hero-title-wrap {
  text-align: center;
  max-width: 1100px;
  z-index: 5;
  transition: transform 0.1s linear, opacity 0.1s linear;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  margin-bottom: 20px;
  padding: 6px 18px 6px 8px;
  background: rgba(8, 12, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 20px rgba(210, 255, 0, 0.12);
}

.badge-lime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  max-width: 100%;
  background: var(--color--lime);
  color: var(--color--black);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 0 10px var(--color--lime-glow);
}

.eyebrow-text {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-giant-title {
  font-family: var(--font-mona);
  font-size: clamp(3.8rem, 10.5vw, 11.2rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0 0 26px;
}

.word-formula {
  display: block;
  white-space: nowrap;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.72), 0 16px 60px rgba(0, 0, 0, 0.9);
}

.word-apex {
  display: block;
  white-space: nowrap;
  color: var(--color--lime);
  font-style: italic;
  margin-top: -0.04em; /* tightly pulled up directly underneath FORMULA 1 */
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.78), 0 0 60px var(--color--lime-glow);
}

/* Modern Motorsport Glassmorphic Blueprint Card */
.hero-modern-card {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 26px 36px 22px;
  background: rgba(8, 12, 20, 0.56);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform-style: preserve-3d;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease-out;
}

.hero-modern-card::before {
  content: "CHASSIS // FIA.2026.HOMOLOGATED";
  position: absolute;
  top: 10px;
  right: 24px;
  font-family: var(--font-mona);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.hero-modern-card:hover {
  border-color: var(--color--lime);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.98), 0 0 45px rgba(210, 255, 0, 0.25);
}

.card-edge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--color--lime);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.card-edge-tag .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color--lime);
  box-shadow: 0 0 10px var(--color--lime);
  animation: pulseDot 1.6s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 1; }
}

.modern-card-text {
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
  line-height: 1.6;
  color: #d6e2d0;
  margin: 0 0 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.modern-card-text strong {
  color: #ffffff;
  font-weight: 800;
}

.modern-card-text .text-lime {
  color: var(--color--lime);
  font-weight: 700;
}

.card-stats-mini-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.mini-stat .val {
  font-size: 0.88rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.mini-stat .lbl {
  font-size: 0.62rem;
  font-weight: 800;
  color: #8c9e83;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-stat-sep {
  color: rgba(210, 255, 0, 0.35);
  font-weight: 900;
  font-size: 0.9rem;
}

.hero-tagline strong {
  color: #fff;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.land-btn-primary {
  background: var(--color--lime);
  color: var(--color--black);
  border: none;
  border-radius: 8px;
  padding: 13px 26px;
  min-height: 44px;
  height: auto;
  max-width: 100%;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: 0 0 30px var(--color--lime-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.25s var(--cubic-default);
}

.land-btn-primary:hover {
  background: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.7);
}

.land-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  padding: 13px 24px;
  min-height: 44px;
  height: auto;
  max-width: 100%;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.25s var(--cubic-default);
}

.land-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}

.land-btn-ghost {
  background: transparent;
  border: 1px solid rgba(210, 255, 0, 0.35);
  color: var(--color--lime);
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s var(--cubic-default);
}

.land-btn-ghost:hover {
  background: rgba(210, 255, 0, 0.12);
  border-color: var(--color--lime);
}

/* Floating Bottom Ticker Chips */
/* Hero Interactive 2026 Active Aero Morphing Controller */
.hero-interactive-controls {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  pointer-events: auto;
}

.hero-aero-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  max-width: calc(100vw - 24px);
  background: rgba(10, 14, 22, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 7px 14px 7px 18px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-monaco-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: calc(100vw - 24px);
  padding: 5px 8px 5px 12px;
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: var(--font-mona);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #cbd5e1;
  text-transform: uppercase;
}

.hero-monaco-pill .monaco-flag {
  font-size: 0.9rem;
  line-height: 1;
}

.btn-hero-drive-monaco {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(217, 4, 41, 0.7);
  background: linear-gradient(135deg, rgba(217, 4, 41, 0.85), rgba(160, 0, 30, 0.9));
  color: #ffffff;
  font-family: var(--font-mona);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-drive-monaco:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(217, 4, 41, 0.55);
}

.aero-dock-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #8c9e83;
  text-transform: uppercase;
  white-space: nowrap;
}

.aero-dock-label .radar-ping {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color--lime);
  box-shadow: 0 0 10px var(--color--lime);
  display: inline-block;
  animation: radarPulse 1.4s infinite;
}

.aero-dock-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.btn-aero-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 14px;
  min-height: 34px;
  height: auto;
  max-width: 100%;
  line-height: 1.2;
  white-space: nowrap;
  color: #c5d3c0;
  font-family: var(--font-mona);
  cursor: pointer;
  transition: all 0.25s var(--cubic-default);
}

.btn-aero-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-aero-toggle.active {
  background: rgba(210, 255, 0, 0.15);
  border-color: var(--color--lime);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(210, 255, 0, 0.3);
}

.btn-aero-mode {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.btn-aero-toggle.active .btn-aero-mode {
  color: var(--color--lime);
}

.btn-aero-tag {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.75;
}

/* Hero Scroll Cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

@media (max-height: 820px) {
  .hero-title-wrap {
    margin-bottom: 92px;
  }
  .hero-eyebrow {
    margin-bottom: 12px;
  }
  .hero-giant-title {
    font-size: clamp(3.0rem, 8.2vw, 7.2rem);
    margin-bottom: 14px;
  }
  .hero-modern-card {
    padding: 16px 26px 14px;
  }
  .modern-card-text {
    font-size: clamp(0.88rem, 1.18vw, 1.02rem);
    line-height: 1.48;
    margin-bottom: 12px;
  }
  .hero-interactive-controls {
    bottom: 42px;
  }
  .hero-scroll-cue {
    bottom: 8px;
  }
}

.cue-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: #8c9e83;
  font-weight: 700;
}

.cue-mouse {
  width: 18px;
  height: 28px;
  border: 2px solid rgba(210, 255, 0, 0.5);
  border-radius: 10px;
  position: relative;
}

.cue-wheel {
  width: 4px;
  height: 6px;
  background: var(--color--lime);
  border-radius: 2px;
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouseWheel 1.5s infinite;
}

@keyframes mouseWheel {
  0% { top: 4px; opacity: 1; }
  100% { top: 14px; opacity: 0; }
}

/* =========================================================================
   SECTION 2: DUAL INFINITE MOTORSPORT MARQUEE
   ========================================================================= */
.home-marquee-wrap {
  position: relative;
  overflow: hidden;
  padding: 24px 0;
  background: rgba(10, 14, 20, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(210, 255, 0, 0.2);
  border-bottom: 1px solid rgba(210, 255, 0, 0.2);
  transform: skewY(-1.5deg);
  margin: 40px 0;
}

.marquee-ribbon {
  display: flex;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-mona);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.ribbon-left .marquee-track {
  animation: marqueeLeft 28s linear infinite;
  color: var(--color--lime);
}

.ribbon-right {
  margin-top: 10px;
}

.ribbon-right .marquee-track {
  animation: marqueeRight 32s linear infinite;
  color: #fff;
  opacity: 0.85;
}

@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* =========================================================================
   SECTION 3: PINNED HORIZONTAL FEATURE TRACK (300vh Scroll)
   ========================================================================= */
.horizontal-pinned-track {
  height: 360vh;
  position: relative;
}

.horizontal-sticky-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 4vw 16px;
}

.horizontal-header-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 4vw 14px;
}

.horiz-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4vw 18px;
}

.horiz-progress-track {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.horiz-progress-fill {
  height: 100%;
  width: 10%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00e5ff, var(--color--lime));
  box-shadow: 0 0 12px var(--color--lime-glow);
  transition: width 0.08s linear;
}

.horiz-progress-dist {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #a4b39a;
  white-space: nowrap;
}

.strip-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #a4b39a;
}

.strip-counter {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color--lime);
}

.horizontal-slider {
  display: flex;
  gap: clamp(190px, 26vw, 420px);
  padding: 0 12vw 0 8vw;
  align-items: stretch;
  will-change: transform;
}

.horiz-card {
  flex: 0 0 clamp(320px, 34vw, 490px);
  min-height: clamp(390px, 48vh, 450px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(8, 12, 20, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  padding: 32px 34px;
  backdrop-filter: blur(12px) saturate(165%);
  -webkit-backdrop-filter: blur(12px) saturate(165%);
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.horiz-card:hover {
  border-color: var(--color--lime);
}

.card-num {
  position: absolute;
  top: 22px;
  right: 28px;
  font-size: 2.6rem;
  font-weight: 900;
  color: rgba(210, 255, 0, 0.15);
  font-family: var(--font-mona);
}

.card-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--color--lime);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.card-title {
  font-size: clamp(1.7rem, 2.9vw, 2.65rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.card-body {
  font-size: 0.96rem;
  line-height: 1.55;
  color: #cfd8c7;
  margin: 0 0 20px;
}

.horiz-card .card-stats-grid,
.horiz-card .card-bottom-stack {
  margin-top: auto;
}

.card-bottom-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-stats-grid.two-col-compact {
  margin-top: 0;
}

.card-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
}

.stat-box.highlight {
  border-color: rgba(210, 255, 0, 0.4);
  background: rgba(210, 255, 0, 0.08);
}

.stat-box strong {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-box.highlight strong {
  color: var(--color--lime);
}

.stat-box small {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #8c9e83;
  margin-top: 4px;
}

.btn-morph-toggle {
  background: rgba(210, 255, 0, 0.15);
  border: 1.5px solid var(--color--lime);
  color: var(--color--lime);
  padding: 12px 20px;
  min-height: 42px;
  max-width: 100%;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s var(--cubic-default);
}

.btn-morph-toggle:hover {
  background: var(--color--lime);
  color: var(--color--black);
}

.aero-state-indicator {
  margin-top: 14px;
  font-size: 0.82rem;
  font-family: var(--mono);
  color: #a4b39a;
}

.state-label {
  color: var(--color--lime);
}

.card-links-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================================================
   SECTION 4: "ON TRACK / OFF TRACK" (OTOT) DUAL-PERSONA SPLIT
   (Signature centerpiece inspired by landonorris.com)
   ========================================================================= */
.otot-section {
  padding: 80px 4vw;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.otot-inner {
  max-width: 1600px;
  margin: 0 auto;
}

.otot-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #a4b39a;
}

.otot-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.otot-col {
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: all 0.35s var(--cubic-default);
}

.otot-on-track {
  background: rgba(10, 14, 22, 0.28);
  border: 1px solid rgba(210, 255, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.otot-on-track:hover {
  border-color: var(--color--lime);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(210, 255, 0, 0.25);
  transform: translateY(-4px);
}

.otot-off-track {
  background: rgba(10, 14, 22, 0.28);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.otot-off-track:hover {
  border-color: #00e5ff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 50px rgba(0, 229, 255, 0.25);
  transform: translateY(-4px);
}

.otot-giant-title {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 24px;
}

.title-serif {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-style: italic;
  font-weight: 900;
  line-height: 0.86;
  color: #ffffff;
}

.title-sans {
  font-family: var(--font-mona);
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.otot-on-track .title-sans {
  color: var(--color--lime);
}

.otot-off-track .title-sans {
  color: #00e5ff;
}

.otot-desc {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #cfd8c7;
  margin: 0 0 32px;
}

.otot-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.otot-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  max-width: 100%;
  color: #fff;
}

.otot-action-btn {
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s var(--cubic-default);
}

.btn-on-track {
  background: var(--color--lime);
  color: var(--color--black);
  box-shadow: 0 0 20px var(--color--lime-glow);
}

.btn-on-track:hover {
  background: #fff;
  transform: translateX(4px);
}

.btn-off-track {
  background: #00e5ff;
  color: #041018;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.btn-off-track:hover {
  background: #fff;
  transform: translateX(4px);
}

/* =========================================================================
   SECTION 5: LIVE 3D LIVERY & HELMET SHOWCASE
   ========================================================================= */
.liveries-section {
  padding: 100px 4vw;
  max-width: 1600px;
  margin: 0 auto;
}

.section-hdr {
  margin-bottom: 48px;
}

.section-hdr.center {
  text-align: center;
}

.hdr-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #a4b39a;
}

.section-hdr.center .hdr-eyebrow {
  justify-content: center;
}

.section-title {
  font-family: var(--font-mona);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.section-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #cfd8c7;
  max-width: 820px;
  margin: 0;
}

/* Dynamic 2026 Constructor Team Livery Cards (Lando Norris Editorial Style) */
.constructor-cards-grid,
.livery-swatches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 26px;
}

.constructor-card {
  position: relative;
  background: rgba(10, 14, 22, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  padding: 24px 22px 20px 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.constructor-card .card-watermark {
  position: absolute;
  right: 6px;
  bottom: 0px;
  font-family: var(--font-mona);
  font-size: 6.8rem;
  font-weight: 900;
  font-style: italic;
  line-height: 0.8;
  color: var(--card-team-color, #ffffff);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.constructor-card:hover .card-watermark,
.constructor-card.previewing .card-watermark,
.constructor-card.active .card-watermark {
  opacity: 0.16;
  transform: scale(1.04) translateX(-4px);
}

.constructor-card .card-racing-blade {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  z-index: 2;
  transition: width 0.25s ease;
}

.constructor-card:hover .card-racing-blade,
.constructor-card.previewing .card-racing-blade,
.constructor-card.active .card-racing-blade {
  width: 8px;
}

.constructor-card:hover,
.constructor-card.previewing {
  border-color: var(--card-team-color, var(--color--lime));
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 35px var(--card-team-glow, rgba(210, 255, 0, 0.35));
}

.constructor-card.active {
  border-color: var(--card-team-color, var(--color--lime));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 45px var(--card-team-glow, rgba(210, 255, 0, 0.45));
}

.card-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.card-fia-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.12em;
  color: #d6e0ce;
}

.card-number-badge {
  font-family: var(--font-mona);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--card-team-color, var(--color--lime));
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px var(--card-team-glow, rgba(210, 255, 0, 0.4));
}

.card-title-block {
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.card-category-tag {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--card-team-color, var(--color--lime));
  text-transform: uppercase;
  margin-bottom: 4px;
}

.card-team-title {
  font-family: var(--font-mona);
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 4px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.card-team-entrant {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #a4b39a;
  text-transform: uppercase;
}

.card-team-desc {
  font-size: 0.76rem;
  line-height: 1.45;
  color: #97a892;
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
}

.card-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.spec-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.spec-cell .cell-lbl {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #7d8f78;
  text-transform: uppercase;
}

.spec-cell .cell-val {
  font-family: var(--font-mona);
  font-size: 0.72rem;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-drivers-block {
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.drivers-eyebrow {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #7d8f78;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.driver-capsules-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.driver-badge {
  flex: 1 1 130px;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}

.driver-badge .badge-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-badge .badge-num {
  font-family: var(--font-mona);
  font-weight: 900;
  color: var(--card-team-color, var(--color--lime));
}

.card-footer-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.palette-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
}

.palette-swatches .swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.sync-cue,
.card-active-cue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #f4f7ff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
  text-transform: uppercase;
}

.sync-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--card-team-color, var(--color--lime));
  box-shadow: 0 0 8px var(--card-team-color, var(--color--lime));
  animation: radarPulse 1.2s infinite;
}

/* Fallback for legacy class */
.team-swatch-item {
  background: rgba(10, 14, 22, 0.28);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s var(--cubic-default);
}

.team-swatch-item:hover, .team-swatch-item.active {
  background: rgba(210, 255, 0, 0.12);
  border-color: var(--color--lime);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.swatch-color {
  width: 100%;
  height: 24px;
  border-radius: 6px;
  border: 2px solid;
  margin-bottom: 6px;
}

.team-swatch-item strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
}

.team-swatch-item small {
  font-size: 0.72rem;
  color: #a4b39a;
}

/* =========================================================================
   SECTION 6: F1 PIT WALL TELEMETRY & ENGINE BENCH
   ========================================================================= */
.exe-section {
  padding: 60px 4vw 100px;
  max-width: 1400px;
  margin: 0 auto;
}

.exe-window-frame {
  background: rgba(10, 14, 22, 0.32);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(210, 255, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(210, 255, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.exe-titlebar {
  background: rgba(12, 16, 22, 0.85);
  border-bottom: 1.5px solid rgba(210, 255, 0, 0.3);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  user-select: none;
}

.tele-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mona);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.12em;
  color: var(--color--lime);
  background: rgba(210, 255, 0, 0.12);
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid rgba(210, 255, 0, 0.3);
  white-space: nowrap;
  max-width: 100%;
}

.exe-title-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--color--lime);
  letter-spacing: 0.08em;
}

.exe-window-controls {
  display: flex;
  gap: 12px;
  color: #8c9e83;
  font-family: var(--mono);
  font-size: 0.85rem;
}

.exe-body {
  position: relative;
  padding: 32px;
}

.exe-scanline-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15) 1px, transparent 1px, transparent 2px);
  pointer-events: none;
}

.exe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  position: relative;
  z-index: 2;
}

.gauge-card {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(210, 255, 0, 0.2);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.gauge-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #a4b39a;
  display: block;
  margin-bottom: 8px;
}

.rpm-digital {
  font-family: var(--mono);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--color--lime);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}

.rpm-bar-wrap {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 14px;
}

.rpm-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #b2c73a, var(--color--lime), #ff0055);
  transition: width 0.08s linear;
}

.exe-slider {
  width: 100%;
  accent-color: var(--color--lime);
  cursor: pointer;
}

.slider-hint {
  display: block;
  font-size: 0.7rem;
  color: #8c9e83;
  margin-top: 6px;
}

.telemetry-duo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tele-mini-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.tele-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: #8c9e83;
}

.tele-val {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
}

.tele-val.highlight {
  color: var(--color--lime);
}

.text-lime {
  color: var(--color--lime);
}

.diag-terminal {
  background: #060905;
  border: 1px solid rgba(210, 255, 0, 0.2);
  border-radius: 8px;
  padding: 16px;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.7;
  color: #8c9e83;
  margin-bottom: 24px;
}

.exe-buttons-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-exe-test {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-exe-test:hover, .btn-exe-test.active {
  background: rgba(210, 255, 0, 0.15);
  border-color: var(--color--lime);
  color: var(--color--lime);
}

.btn-exe-launch {
  background: var(--color--lime);
  color: var(--color--black);
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  min-height: 44px;
  height: auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 0 24px var(--color--lime-glow);
  transition: all 0.2s ease;
}

.btn-exe-launch:hover {
  background: #fff;
}

.exe-status-strip {
  background: #090c07;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.72rem;
  font-family: var(--mono);
  color: #6d7d65;
}

.status-indicator-live {
  color: var(--color--lime);
  font-weight: 700;
}

/* =========================================================================
   SECTION 7: GLOBAL CIRCUITS HUB (9 Streamed 3D Venues)
   ========================================================================= */
.circuits-section {
  padding: 80px 4vw;
  max-width: 1600px;
  margin: 0 auto;
}

.circuits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.circuit-card {
  background: rgba(10, 14, 22, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  padding: 24px;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  transition: all 0.25s var(--cubic-default);
}

.circuit-card:hover {
  border-color: var(--color--lime);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(210, 255, 0, 0.2);
}

.circuit-card.home-circuit {
  border-color: rgba(210, 255, 0, 0.4);
  box-shadow: 0 0 20px rgba(210, 255, 0, 0.12);
}

.card-flag-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color--lime);
  margin-bottom: 8px;
}

.circuit-card h3 {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin: 0 0 6px;
  color: #fff;
}

.venue-loc {
  font-size: 0.85rem;
  color: #a4b39a;
  line-height: 1.4;
  margin: 0 0 16px;
}

.btn-venue-launch {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.circuit-card:hover .btn-venue-launch {
  background: var(--color--lime);
  border-color: var(--color--lime);
  color: var(--color--black);
}

/* =========================================================================
   SECTION 8: FIA 2026 TECHNICAL HOMOLOGATION MATRIX
   ========================================================================= */
.specs-section {
  padding: 80px 4vw;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.specs-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.specs-table-container {
  overflow-x: auto;
  margin-bottom: 40px;
  background: rgba(10, 14, 22, 0.28);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.specs-table th {
  text-align: left;
  padding: 16px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: #8c9e83;
  border-bottom: 2px solid rgba(210, 255, 0, 0.25);
  text-transform: uppercase;
}

.specs-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #cfd8c7;
}

.strikethrough {
  text-decoration: line-through;
  opacity: 0.5;
}

.highlight-lime {
  color: var(--color--lime);
  background: rgba(210, 255, 0, 0.06);
}

.specs-launch-cta {
  text-align: center;
}

/* =========================================================================
   SECTION 9: EDITORIAL FOOTER
   ========================================================================= */
.land-footer {
  padding: 80px 4vw 60px;
  background: rgba(10, 14, 22, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.land-footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col-brand {
  max-width: 520px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-logo .crest {
  color: var(--color--lime);
}

.footer-bio {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #8c9e83;
  margin: 0 0 20px;
}

.footer-bio strong {
  color: #fff;
}

.link-lime {
  color: var(--color--lime);
  text-decoration: none;
  font-weight: 700;
}

.link-lime:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.75rem;
  color: #55624e;
}

.footer-col-nav {
  display: flex;
  gap: 60px;
}

.nav-grp h5 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--color--lime);
  margin: 0 0 16px;
  text-transform: uppercase;
}

.nav-grp a {
  display: block;
  color: #cfd8c7;
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.nav-grp a:hover {
  color: var(--color--lime);
}

.nav-grp a.land-btn-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color--black);
  background: var(--color--lime);
  padding: 8px 18px;
  min-height: 36px;
  height: auto;
  width: fit-content;
  margin-bottom: 12px;
  font-weight: 800;
}

.nav-grp a.land-btn-enter:hover {
  color: #000000;
  background: #ffffff;
}

/* Return to Landing Button in Cockpit */
.btn-return-landing {
  background: rgba(210, 255, 0, 0.15) !important;
  color: var(--color--lime) !important;
  border-color: rgba(210, 255, 0, 0.45) !important;
  font-weight: 800 !important;
}

.btn-return-landing:hover {
  background: var(--color--lime) !important;
  color: var(--color--black) !important;
}

/* Responsive Media Queries */
@media (max-width: 1280px) {
  .nav-media-track-info { display: none; }
  .brand-titles .brand-sub { display: none; }
  .nav-item { padding: 6px 10px; font-size: 0.7rem; }
}

@media (max-width: 992px) {
  .land-nav-links { display: none; }
  .otot-split-grid { grid-template-columns: 1fr; }
  .exe-grid { grid-template-columns: 1fr; }
  .footer-col-nav { gap: 32px; }
  .horizontal-slider { gap: clamp(90px, 16vw, 180px); }
}

@media (max-width: 680px) {
  .land-nav { top: max(8px, env(safe-area-inset-top)); padding: 0 10px; }
  .land-nav-inner { padding: 4px 8px 4px 10px; gap: 6px; }
  .brand-titles { display: none; }
  .btn-sound-toggle { display: none; }
  .nav-btn-tracks span { display: none; }
  .land-btn-enter { padding: 7px 12px; font-size: 0.72rem; }
  .hero-giant-title { font-size: 4rem; }
  .hero-chips-ticker { display: none; }
  .hero-aero-dock { border-radius: 18px; padding: 8px 10px; gap: 8px; }
  .btn-aero-toggle { padding: 6px 10px; gap: 5px; }
  .horiz-card { flex: 0 0 84vw; min-height: 360px; padding: 24px; }
  .horizontal-slider { gap: 18vw; padding: 0 8vw; }
  .otot-col { padding: 36px 24px; }
}

/* =========================================================================
   LOADING SCREEN CONSTRUCTOR TEAM SELECTOR & DYNAMIC THEMES
   Ultra-High-Fidelity Glassmorphic Motorsport Control Console
   ========================================================================= */
.loader-team-picker {
  margin-top: 0;
  padding: 18px 24px 20px;
  background: linear-gradient(145deg, rgba(14, 20, 32, 0.72) 0%, rgba(7, 10, 16, 0.88) 100%);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 
    0 32px 85px rgba(0, 0, 0, 0.88),
    0 0 50px var(--team-accent-glow, rgba(210, 255, 0, 0.12)),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6);
  max-width: 1280px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Subtle carbon racing texture overlay */
.loader-team-picker::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 24px 24px, 12px 12px;
  pointer-events: none;
  opacity: 0.6;
}

/* Motorsport Race Header Bar */
.picker-race-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.race-header-title {
  font-family: var(--font-mona);
  font-size: clamp(0.95rem, 1.25vw, 1.22rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-transform: uppercase;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 4px 20px rgba(0, 0, 0, 0.75), 0 0 32px rgba(0, 0, 0, 0.6);
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.8));
}

/* Live Technical Specification Ribbon (Updates on Hover & Selection) */
.picker-spec-hud {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

.spec-hud-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.spec-hud-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #8c9e83;
  text-transform: uppercase;
}

.spec-hud-team {
  font-family: var(--font-mona);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--color--lime);
  text-shadow: 0 0 16px currentColor;
  transition: color 0.25s ease;
}

.spec-hud-details {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.spec-pill {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

/* Prototype Variant Switcher (1-click comparison between all 3 options) */
.prototype-switcher-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  flex-wrap: wrap;
}

.switcher-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: #8c9e83;
  letter-spacing: 0.12em;
}

.switcher-tab {
  font-family: var(--font-mona);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.switcher-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.switcher-tab.active {
  color: #0b0f14;
  background: var(--color--lime);
  border-color: var(--color--lime);
  box-shadow: 0 0 16px var(--color--lime-glow);
}

/* 4-column by 3-row dense packing grid for 11 constructors (10 1x1 + 1 2x1 = 12 cells) */
.team-picker-grid {
  position: relative;
  z-index: 2;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  grid-auto-rows: minmax(156px, auto);
  align-items: stretch;
  gap: 12px;
  margin-bottom: 16px;
  overflow-x: hidden;
}

/* Base card (1x1) */
.team-pick-btn {
  grid-column: span 1;
  grid-row: span 1;
  view-transition-name: var(--team-id);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px;
  min-height: 156px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  cursor: pointer;
  transition: 
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  color: #fff;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  will-change: transform;
}

.card-compact-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: 4px;
}

/* Hide expanded telemetry specs on unselected cards */
.team-pick-btn .card-telemetry-expanded {
  display: none;
}

.team-pick-btn:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: var(--picker-color, var(--color--lime));
  box-shadow: 
    0 16px 36px rgba(0, 0, 0, 0.8),
    0 0 28px var(--picker-glow, rgba(210, 255, 0, 0.35)),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  z-index: 1;
}

/* The 1 selected constructor spans 2 columns (2 + 10 = 12 cells, exactly 4x3) */
.team-pick-btn.active {
  grid-column: span 2;
  grid-row: span 1;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  padding: 12px 18px;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: var(--picker-color, var(--color--lime));
  box-shadow: 
    0 20px 48px rgba(0, 0, 0, 0.9),
    0 0 35px var(--picker-glow, rgba(210, 255, 0, 0.45)),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: none !important;
  z-index: 1;
  height: auto;
  min-height: 156px;
  overflow: hidden;
}

.team-pick-btn.active .card-compact-col {
  width: 165px;
  flex-shrink: 0;
}

/* Reveal live telemetry specs inside active card */
.team-pick-btn.active .card-telemetry-expanded {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 20px;
  text-align: left;
}

.telemetry-expanded-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--picker-color, var(--color--lime));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.telemetry-expanded-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.telemetry-expanded-full-title {
  font-family: var(--font-mona);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 8px;
}

.telemetry-expanded-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 14px;
  margin-bottom: 8px;
}

.telemetry-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.telemetry-stat-item .stat-lbl {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  color: #8c9e83;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.telemetry-stat-item .stat-val {
  font-family: var(--font-mona);
  font-size: 0.72rem;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.telemetry-desc {
  font-size: 0.68rem;
  line-height: 1.35;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6px;
}

/* View Transition animations for silky grid gliding */
::view-transition-group(*) {
  animation-duration: 0.32s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1120px) {
  .team-picker-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .team-picker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-pick-btn.active {
    grid-column: span 2;
    flex-direction: column;
  }
  .team-pick-btn.active .card-telemetry-expanded {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: 0;
    padding-top: 14px;
    width: 100%;
  }
}

/* Colored Racing Pinstripe along top edge */
.team-pick-btn .team-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  z-index: 3;
  box-shadow: 0 1px 6px var(--picker-glow, rgba(210, 255, 0, 0.4));
}

/* Card Header: Flag, Chassis Tag & Driver Numbers */
.picker-card-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
  min-width: 0;
  margin-bottom: 8px;
}

.picker-flag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-width: 0;
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-pick-flag {
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}

.team-pick-chassis {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.picker-num-pill {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2D Constructor Logo Badge (Authentic Official Team Graphics) */
.picker-logo-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6px 0;
  transform: translateZ(12px);
}

.picker-2d-logo-badge {
  width: 94px;
  height: 52px;
  border-radius: 8px;
  background: rgba(14, 18, 26, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  box-shadow: 
    0 4px 14px rgba(0, 0, 0, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.team-logo-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  pointer-events: none;
  user-select: none;
}

.team-pick-btn:hover .picker-2d-logo-badge {
  transform: scale(1.06) translateZ(10px);
  border-color: var(--picker-color, var(--color--lime));
  background: rgba(20, 26, 38, 0.88);
  box-shadow: 
    0 8px 22px rgba(0, 0, 0, 0.7),
    0 0 18px var(--team-glow, rgba(210, 255, 0, 0.35)),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.team-pick-btn.active .picker-2d-logo-badge {
  border-color: var(--picker-color, var(--color--lime));
  background: rgba(22, 30, 44, 0.95);
  box-shadow: 
    0 10px 24px rgba(0, 0, 0, 0.8),
    0 0 24px var(--team-glow, rgba(210, 255, 0, 0.45)),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
  transform: scale(1.08) translateZ(12px);
}

.logo-3d-svg {
  width: 40px;
  height: 40px;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}

/* Team Info: Title & Power Unit */
.picker-team-info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin: 6px 0 10px;
  text-align: center;
  width: 100%;
}

.team-brand-name {
  font-family: var(--font-mona);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.team-pick-btn:hover .team-brand-name,
.team-pick-btn.active .team-brand-name {
  /* Dark team primaries (Red Bull navy, etc.) are unreadable as text on these cards. */
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9), 0 0 12px var(--picker-glow, rgba(210, 255, 0, 0.35));
}

.team-pu-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94a3b8;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Status Indicator Dot & Label */
.picker-status-indicator {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  line-height: 1.2;
  overflow: hidden;
}

.indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.indicator-text {
  font-family: var(--font-mona);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease;
}

.team-pick-btn.active .indicator-dot {
  background: var(--picker-color, var(--color--lime));
  box-shadow: 0 0 10px var(--picker-color, var(--color--lime));
}

.team-pick-btn.active .indicator-text {
  color: #f4f7ff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

/* High-Energy Race Entrance Actions — four cohesive glassmorphic CTAs in natural flow (never static/sticky) */
.loader-entry-group {
  position: relative;
  z-index: 3;
  width: 100%;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.loader-action-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  width: 100%;
}

@media (max-width: 1120px) {
  .loader-action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .loader-action-row {
    grid-template-columns: 1fr;
  }
}

.loader-cta-btn {
  --cta-accent: var(--team-primary, var(--color--lime, #d2ff00));
  --cta-glow: var(--team-accent-glow, rgba(210, 255, 0, 0.28));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  min-height: 62px;
  box-sizing: border-box;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.065) 0%, rgba(14, 20, 32, 0.72) 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  color: #f1f5f9;
  font-family: var(--font-mona);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

/* Unified top accent micro-bar tying all 4 buttons to the constructor cards above */
.loader-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--cta-accent);
  opacity: 0.75;
  box-shadow: 0 1px 8px var(--cta-glow);
  transition: opacity 0.25s ease, height 0.25s ease;
}

.loader-cta-btn .cta-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.96rem;
  color: var(--cta-accent);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.loader-cta-btn .cta-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.loader-cta-btn .cta-kicker {
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #8c9e83;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease;
}

.loader-cta-btn .cta-label {
  font-family: var(--font-mona);
  font-size: 0.80rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loader-cta-btn .cta-arrow {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.48);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.loader-cta-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11) 0%, rgba(18, 26, 40, 0.84) 100%);
  border-color: var(--cta-accent);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.78),
    0 0 26px var(--cta-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.loader-cta-btn:hover::before {
  opacity: 1;
  height: 3px;
}

.loader-cta-btn:hover .cta-icon {
  transform: scale(1.06);
  border-color: var(--cta-accent);
  background: rgba(255, 255, 255, 0.08);
}

.loader-cta-btn:hover .cta-kicker {
  color: #cbd5e1;
}

.loader-cta-btn:hover .cta-arrow {
  transform: translateX(3px);
  color: var(--cta-accent);
}

.loader-cta-btn:active {
  transform: translateY(-1px) scale(0.995);
}

/* 1. Primary Action: Confirm & Enter Simulator (Signature Apex Lime Hero Accent) */
.btn-loader-confirm {
  --cta-accent: var(--color--lime, #d2ff00);
  --cta-glow: var(--color--lime-glow, rgba(210, 255, 0, 0.42));
  background: linear-gradient(135deg, rgba(210, 255, 0, 0.18) 0%, rgba(16, 26, 20, 0.85) 100%);
  border-color: rgba(210, 255, 0, 0.48);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.65),
    0 0 24px rgba(210, 255, 0, 0.18),
    inset 0 1px 0 rgba(238, 255, 128, 0.32);
}

.btn-loader-confirm::before {
  opacity: 1;
  height: 3px;
}

.btn-loader-confirm .cta-icon {
  background: var(--color--lime, #d2ff00);
  border-color: #eeff80;
  color: #080c12;
  box-shadow: 0 0 14px rgba(210, 255, 0, 0.45);
}

.btn-loader-confirm .cta-kicker {
  color: var(--color--lime, #d2ff00);
}

.btn-loader-confirm .cta-arrow {
  color: var(--color--lime, #d2ff00);
}

.btn-loader-confirm:hover {
  background: linear-gradient(135deg, rgba(210, 255, 0, 0.28) 0%, rgba(20, 34, 24, 0.92) 100%);
  border-color: var(--color--lime, #d2ff00);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.82),
    0 0 36px rgba(210, 255, 0, 0.36),
    inset 0 1px 0 rgba(238, 255, 128, 0.45);
}

.btn-loader-confirm:hover .cta-icon {
  background: #e4ff4d;
  color: #080c12;
}

/* 2. Secondary Action: Cinematic Landing Page (Dynamic Team Livery Accent) */
.btn-loader-explore {
  --cta-accent: var(--team-primary, #38bdf8);
  --cta-glow: var(--team-accent-glow, rgba(56, 189, 248, 0.32));
}

/* 3. Secondary Action: 3D Studio Showcase (Aero Cyan Telemetry Accent) */
.btn-loader-showcase {
  --cta-accent: #00e5ff;
  --cta-glow: rgba(0, 229, 255, 0.32);
}

/* 4. Secondary Action: F1 Pop-Up Casino (Motorsport Paddock Gold Accent) */
.btn-loader-casino {
  --cta-accent: #f59e0b;
  --cta-glow: rgba(245, 158, 11, 0.32);
}

.livery-variant-row {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 10px 0 4px;
  width: 100%;
}

.livery-variant-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.livery-variant-label {
  font-family: var(--font-mona);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7d8f78;
}

.livery-variant-tag {
  font-family: var(--mono);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.has-special-variant .livery-variant-tag {
  background: rgba(246, 194, 0, 0.14);
  border-color: rgba(246, 194, 0, 0.42);
  color: #f6c200;
}

.livery-variant-btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  padding: 4px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.livery-variant-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-family: var(--font-mona);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.livery-variant-btn .lv-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.livery-variant-btn .lv-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.livery-variant-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
}

.livery-variant-btn.is-on {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
  color: #ffffff;
  border-color: var(--variant-accent, rgba(255, 255, 255, 0.35));
  box-shadow: 0 0 14px var(--variant-glow, rgba(255, 255, 255, 0.18)), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.livery-variant-btn[data-livery="vegas-26"].is-on {
  background: linear-gradient(135deg, rgba(246, 194, 0, 0.22) 0%, rgba(0, 229, 255, 0.10) 100%);
  color: #fff6cc;
  border-color: rgba(246, 194, 0, 0.72);
  box-shadow: 0 0 14px rgba(246, 194, 0, 0.28), inset 0 1px 0 rgba(255, 240, 170, 0.22);
}

/* Landing page constructor card integration */
.constructor-card .livery-variant-row.is-landing {
  margin: 0 0 14px;
  padding: 0;
}

/* Loading screen 1x1 card: single-row segmented pill replaces status indicator cleanly */
.team-pick-btn.has-variants:not(.active) .picker-status-indicator {
  display: none;
}

.team-pick-btn.active .card-compact-col .livery-variant-row.is-compact {
  display: none;
}

.livery-variant-row.is-compact {
  margin: 0;
}

.livery-variant-row.is-compact .livery-variant-btns {
  padding: 2px;
  gap: 2px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.livery-variant-row.is-compact .livery-variant-btn {
  padding: 4px 6px;
  border-radius: 999px;
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  gap: 4px;
}

.livery-variant-row.is-compact .lv-swatch {
  width: 7px;
  height: 7px;
}

/* Loading screen 2x1 active card: spacious edition switcher inside expanded panel */
.livery-variant-row.is-loader-expanded {
  margin: 2px 0 8px;
}

.livery-variant-row.is-loader-expanded .livery-variant-btns {
  padding: 3px;
  gap: 4px;
}

.livery-variant-row.is-loader-expanded .livery-variant-btn {
  padding: 5px 8px;
  font-size: 0.58rem;
}

.team-pick-btn .livery-variant-row {
  pointer-events: auto;
}


/* Repositioned Author Credit Pill at the Bottom of the Selector */
.loader-brand-badge-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.loader-brand-badge-bottom .loader-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 20px;
  border-radius: 999px;
  background: rgba(14, 20, 32, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.loader-brand-badge-bottom .loader-brand-link:hover {
  background: rgba(210, 255, 0, 0.15);
  border-color: var(--color--lime);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 18px var(--color--lime-glow);
}

/* =========================================================================

/* =========================================================================
   REPLICATED LANDO NORRIS CIRCUIT VISUALIZER & CALENDAR
   ========================================================================= */
.circuit-vis-section {
  position: relative;
  background: transparent;
  padding: 100px 4vw;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.circuit-vis-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.circuit-vis-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 20px;
}

.circuit-vis-title-group h2 {
  font-family: var(--font-mona);
  font-size: clamp(2.4rem, 5.5vw, 5.2rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 8px 0 0;
  text-transform: uppercase;
}

.circuit-vis-title-group .circuit-round-num {
  font-family: var(--font-playfair);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color--lime);
  letter-spacing: 0.1em;
}

/* 3-Column Visualizer Layout (Lando Norris style) */
.circuit-vis-grid {
  display: grid;
  grid-template-columns: 280px 1fr 340px;
  gap: 36px;
  align-items: center;
  margin-bottom: 48px;
}

/* Left Specs Column */
.vis-col-metrics {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vis-metric-item {
  border-left: 2px solid var(--color--lime);
  padding-left: 14px;
}

.vis-metric-item .vis-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #8c9e83;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.vis-metric-item .vis-value-major {
  font-family: var(--font-mona);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color--lime);
  line-height: 1;
  letter-spacing: -0.02em;
}

.vis-metric-item .vis-unit {
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: 700;
  margin-left: 4px;
}

.vis-metric-item .vis-date-month {
  font-family: var(--font-playfair);
  font-style: italic;
  font-size: 1.25rem;
  color: #ffffff;
}

/* Center Column: 3D Interactive WebGL Track Visualizer */
.vis-col-map {
  position: relative;
  background: rgba(10, 14, 22, 0.28);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 480px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.track-3d-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  min-height: 400px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 50%, #10131a 0%, #060709 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.95);
}

#track-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

#track-3d-canvas:active {
  cursor: grabbing;
}

.track-3d-badge-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
  z-index: 5;
}

.track-3d-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(8, 9, 11, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(210, 255, 0, 0.4);
  color: var(--color--lime);
  font-family: var(--font-mona);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 4px;
}

.track-3d-live-tag .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color--lime);
  box-shadow: 0 0 8px var(--color--lime);
  animation: radarPulse 1.4s infinite;
}

.track-3d-acc-tag {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c0cbbe;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 4px;
}

.track-3d-hud {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 5;
  flex-wrap: wrap;
  gap: 10px;
}

.track-3d-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8c9e83;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: rgba(8, 9, 11, 0.75);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.track-3d-tools {
  display: flex;
  gap: 6px;
  pointer-events: auto;
}

.btn-3d-tool {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(14, 16, 20, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-mona);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-3d-tool:hover {
  background: rgba(210, 255, 0, 0.2);
  border-color: var(--color--lime);
  color: var(--color--lime);
  transform: translateY(-1px);
}

.btn-3d-tool.active {
  background: var(--color--lime);
  color: #000;
  border-color: var(--color--lime);
  box-shadow: 0 0 12px rgba(210, 255, 0, 0.4);
}

.track-sector-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  flex-wrap: wrap;
}

.sector-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d0d8ce;
}

.sector-dot-s1 { width: 8px; height: 8px; border-radius: 50%; background: #ffd700; box-shadow: 0 0 8px #ffd700; }
.sector-dot-s2 { width: 8px; height: 8px; border-radius: 50%; background: #00e1ff; box-shadow: 0 0 8px #00e1ff; }
.sector-dot-s3 { width: 8px; height: 8px; border-radius: 50%; background: #d2ff00; box-shadow: 0 0 8px #d2ff00; }
.braking-dot-accel { width: 8px; height: 8px; border-radius: 50%; background: #00ff87; box-shadow: 0 0 8px #00ff87; }
.braking-dot-brake { width: 8px; height: 8px; border-radius: 50%; background: #ff1801; box-shadow: 0 0 8px #ff1801; }

/* Right Column: Lore & Launch */
.vis-col-lore {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(10, 14, 22, 0.28);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.vis-lore-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--color--lime);
  text-transform: uppercase;
}

.vis-lore-title {
  font-family: var(--font-mona);
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  margin: 0;
}

.vis-lore-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #a4b39a;
  margin: 0;
}

.vis-lore-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.vis-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
}

.vis-stat-row span { color: #8c9e83; }
.vis-stat-row strong { color: #fff; font-weight: 800; }

.btn-vis-launch {
  width: 100%;
  min-height: 46px;
  height: auto;
  padding: 13px 16px;
  background: var(--color--lime);
  color: #000;
  font-family: var(--font-mona);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 25px var(--color--lime-glow);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.btn-vis-launch:hover {
  background: #e2ff40;
  transform: translateY(-2px);
  box-shadow: 0 0 35px var(--color--lime-glow);
}

/* Horizontal Round Switcher Tabs (All 9 Venues) */
.circuit-vis-tabs-w {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.circuit-vis-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  color: #fff;
}

.circuit-vis-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.circuit-vis-tab.active {
  background: rgba(210, 255, 0, 0.12);
  border-color: var(--color--lime);
  box-shadow: 0 0 16px rgba(210, 255, 0, 0.25);
}

.circuit-vis-tab .tab-flag { font-size: 1.1rem; }
.circuit-vis-tab .tab-name { font-family: var(--font-mona); font-weight: 900; font-size: 0.85rem; letter-spacing: 0.06em; }
.circuit-vis-tab .tab-round { font-size: 0.65rem; color: #8c9e83; font-weight: 700; }
.circuit-vis-tab.active .tab-name { color: var(--color--lime); }

@media (max-width: 1024px) {
  .circuit-vis-grid { grid-template-columns: 1fr; gap: 24px; }
  .vis-col-metrics { flex-direction: row; flex-wrap: wrap; }
}

/* Live Audio Spectrum Bars */
.music-spectrum-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
  width: 48px;
}

.spectrum-bar {
  width: 3px;
  height: 3px;
  background: var(--color--lime);
  border-radius: 1px;
  transition: height 0.08s ease;
}

/* =========================================================================
   DYNAMIC GLASSMORPHIC MOVEMENT & AERO GLOW ANIMATIONS
   ========================================================================= */
@keyframes glassAeroPulse {
  0%, 100% {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 28px rgba(210, 255, 0, 0.14), inset 0 1px 0 rgba(210, 255, 0, 0.25);
  }
}

.horiz-card,
.constructor-card,
.otot-on-track,
.otot-off-track,
.vis-col-map,
.vis-col-lore {
  animation: glassAeroPulse 10s ease-in-out infinite alternate;
}

/* =========================================================================
   FREE MOVEMENT & FLYTHROUGH CAMERA CONTROLLER STYLING (3D GAME NAVIGATION)
   ========================================================================= */
.free-cam-hud {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 45;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: rgba(7, 12, 22, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 229, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 8px 16px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: calc(100vw - 32px);
  overflow-x: auto;
}

.free-cam-hud.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.fcam-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.fcam-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d2ff00;
  box-shadow: 0 0 10px #d2ff00;
  animation: fcamBlink 1.8s infinite ease-in-out;
}

@keyframes fcamBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.fcam-title {
  font-family: 'Mona Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
}

.fcam-main-tag {
  background: rgba(210, 255, 0, 0.18);
  color: #d2ff00;
  border: 1px solid rgba(210, 255, 0, 0.5);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.fcam-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.fcam-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace, system-ui;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.fcam-chip kbd {
  display: inline-block;
  padding: 2px 5px;
  min-width: 16px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fcam-boost kbd {
  color: #d2ff00;
  background: rgba(210, 255, 0, 0.12);
  border-color: rgba(210, 255, 0, 0.4);
}

.fcam-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.fcam-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  padding: 4px 9px;
  border-radius: 14px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.fcam-btn:hover {
  background: rgba(0, 229, 255, 0.25);
  border-color: #00e5ff;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.fcam-orbit-btn:hover {
  background: rgba(255, 128, 0, 0.25);
  border-color: #ff8000;
  box-shadow: 0 0 10px rgba(255, 128, 0, 0.4);
}

/* Crosshair for Pointer Lock FPS Free Cam */
#free-cam-crosshair {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#free-cam-crosshair.visible {
  display: flex;
}

.fcam-reticle {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(0, 229, 255, 0.85);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
}

.fcam-reticle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #d2ff00;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px #d2ff00;
}

.fcam-lock-badge {
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  color: #00e5ff;
  background: rgba(0, 0, 0, 0.85);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  letter-spacing: 0.08em;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
}

/* Dynamic flight speed toast notification */
#free-cam-speed-toast {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(6, 11, 20, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid #00e5ff;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  z-index: 960;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#free-cam-speed-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .free-cam-hud {
    bottom: 8px;
    padding: 6px 12px;
    gap: 8px;
  }
  .fcam-controls .fcam-chip:nth-child(n+3) {
    display: none;
  }
}

/* =========================================================================
   DYNAMIC SCROLL TELEMETRY BARS, DELTA METERS & iOS PWA INSTALL HELPER
   ========================================================================= */
.specs-delta-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.delta-bar-card {
  background: rgba(10, 14, 22, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  padding: 16px 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.delta-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.delta-bar-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #a4b39a;
  text-transform: uppercase;
}

.delta-bar-val {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--color--lime);
}

.delta-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.delta-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00e5ff 0%, var(--color--lime) 100%);
  box-shadow: 0 0 12px var(--color--lime-glow);
  transition: width 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}

.delta-bar-sub {
  margin-top: 8px;
  font-size: 0.7rem;
  color: #8c9e83;
  display: flex;
  justify-content: space-between;
}

.land-sector-rail {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  z-index: 850;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: auto;
}

.land-sector-pip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 2px 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.land-sector-pip .pip-label {
  opacity: 0;
  transform: translateX(6px);
  transition: all 0.2s ease;
  background: rgba(8, 12, 18, 0.85);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.land-sector-pip:hover .pip-label,
.land-sector-pip.active .pip-label {
  opacity: 1;
  transform: translateX(0);
  color: var(--color--lime);
  border-color: rgba(210, 255, 0, 0.35);
}

.land-sector-pip .pip-bar {
  width: 14px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.land-sector-pip.active .pip-bar {
  width: 28px;
  background: var(--color--lime);
  box-shadow: 0 0 10px var(--color--lime-glow);
}

@media (max-width: 960px) {
  .land-sector-rail { display: none; }
}

.ios-pwa-banner {
  position: fixed;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 950;
  width: min(440px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(10, 14, 22, 0.94);
  border: 1px solid rgba(210, 255, 0, 0.45);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.85);
  color: #f5f6ed;
  font-size: 0.76rem;
  line-height: 1.35;
}

.ios-pwa-banner strong {
  color: var(--color--lime);
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.ios-pwa-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
}


/* ==========================================================================
   2026 F1 GARAGE OPERATING SYSTEM (#garage-os-overlay · z-index: 4500)
   Obsidian-Carbon Editorial Motorsport UI + 11 Constructor Wallpapers
   ========================================================================== */
#garage-os-overlay {
  --gos-accent: #ff8000;
  --gos-accent-2: #d2ff00;
  position: fixed;
  inset: 0;
  z-index: 4500;
  display: none;
  background: #070a10;
  color: #f1f5f9;
  font-family: "Mona Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}
#garage-os-overlay.open {
  display: block;
}
#garage-os-overlay.peek-3d {
  background: transparent;
}
.gos-wallpaper {
  position: absolute;
  inset: 0;
  background-color: #070a10;
  background-size: auto, cover;
  background-position: center;
  opacity: 1;
  transition: opacity 0.25s ease, background-image 0.35s ease;
}
#garage-os-overlay.peek-3d .gos-wallpaper {
  opacity: 0.22;
}
.gos-aero-overlay-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
  z-index: 1;
}
.gos-aero-overlay-canvas.on {
  display: block;
}
.gos-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
#garage-os-overlay.peek-3d .gos-main {
  background: rgba(8, 12, 20, 0.56);
}
#garage-os-overlay.peek-3d .gos-card {
  background: rgba(10, 15, 25, 0.62);
}

/* Top OS Chrome Bar */
.gos-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(7, 10, 16, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  flex-wrap: wrap;
}
.gos-top-left,
.gos-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gos-os-badge {
  background: #d2ff00;
  color: #090c08;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: 6px;
}
.gos-terminal-pill,
.gos-circuit-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #e2e8f0;
}
.gos-team-select {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--gos-accent);
  color: #ffffff;
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.gos-pill-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gos-pill-btn:hover,
.gos-pill-btn.active {
  background: rgba(210, 255, 0, 0.18);
  border-color: #d2ff00;
  color: #d2ff00;
}
.gos-pill-btn.synced {
  border-color: #22c55e;
  color: #4ade80;
}
.gos-clock {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  padding: 0 4px;
}
.gos-close-btn {
  background: #c8161d;
  border: 1px solid #ef4444;
  color: #fff;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.gos-close-btn:hover {
  background: #ef4444;
}

/* Workspace & Side/Bottom Dock */
.gos-workspace {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.gos-dock {
  width: 176px;
  background: rgba(7, 10, 17, 0.82);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  flex-shrink: 0;
}
.gos-dock-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  color: #cbd5e1;
  border-radius: 9px;
  padding: 9px 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gos-dock-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.gos-dock-btn.active {
  background: linear-gradient(90deg, color-mix(in srgb, var(--gos-accent) 28%, transparent), rgba(255, 255, 255, 0.05));
  border-color: var(--gos-accent);
  color: #fff;
}
.gos-dock-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
}
.gos-dock-badge {
  margin-left: auto;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 99px;
}

.gos-main {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 26px;
  background: rgba(8, 11, 18, 0.42);
}
.gos-app {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gos-app-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.gos-app-header h2 {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.gos-kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #d2ff00;
}
.gos-lime {
  color: #d2ff00 !important;
}
.gos-muted {
  color: #94a3b8;
  font-size: 12px;
}
.gos-card {
  background: rgba(11, 16, 28, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  padding: 15px 16px;
  backdrop-filter: blur(14px);
}
.gos-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.gos-card-head h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #e2e8f0;
}
.gos-badge {
  background: rgba(210, 255, 0, 0.14);
  border: 1px solid rgba(210, 255, 0, 0.45);
  color: #d2ff00;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}
.gos-tag {
  display: inline-block;
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
}
.gos-tag.urgent {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Reusable Controls */
.gos-btn-row,
.gos-chip-row,
.gos-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.gos-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
  border-radius: 9px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gos-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
}
.gos-btn.active {
  background: var(--gos-accent);
  border-color: var(--gos-accent);
  color: #fff;
}
.gos-btn-primary {
  background: #d2ff00;
  border-color: #d2ff00;
  color: #080b07;
  font-weight: 800;
}
.gos-btn-primary:hover {
  background: #e1ff4d;
}
.gos-btn-accent {
  background: var(--gos-accent);
  border-color: var(--gos-accent);
  color: #fff;
}
.gos-btn-sm {
  padding: 5px 10px;
  font-size: 11.5px;
}
.gos-btn-xs {
  padding: 3px 8px;
  font-size: 11px;
}
.gos-input {
  width: 100%;
  background: rgba(5, 8, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #f8fafc;
  padding: 7px 10px;
  font-size: 12.5px;
  outline: none;
}
.gos-input:focus {
  border-color: #d2ff00;
}
.gos-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11.5px;
  cursor: pointer;
}

/* Grids & KPIs */
.gos-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.gos-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
}
.gos-kpi-card {
  background: rgba(11, 16, 28, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  padding: 11px 13px;
}
.gos-kpi-card span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 4px;
}
.gos-kpi-card b {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 17px;
  color: #fff;
}
.gos-sliders {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gos-slider-row {
  display: grid;
  grid-template-columns: 126px 1fr 64px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.gos-slider-row input[type="range"] {
  accent-color: #d2ff00;
}
.gos-slider-row b {
  text-align: right;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  color: #38bdf8;
}
.gos-svg-chart {
  width: 100%;
  height: auto;
  display: block;
  background: rgba(4, 7, 14, 0.72);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Weather App — Authentic Apple iPhone / iOS Weather Aesthetic (Read-Only Telemetry) */
.gos-ios-wx {
  position: relative;
  border-radius: 22px;
  padding: 26px 24px 24px;
  color: #ffffff;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gos-ios-wx.sky-clear {
  background: linear-gradient(180deg, #1b6bc2 0%, #3787d6 34%, #4f9ee0 66%, #295b96 100%);
}
.gos-ios-wx.sky-overcast {
  background: linear-gradient(180deg, #3c5068 0%, #526880 38%, #475a70 72%, #2c3949 100%);
}
.gos-ios-wx.sky-rain {
  background: linear-gradient(180deg, #253447 0%, #364961 40%, #2a3a4f 75%, #192433 100%);
}
.gos-ios-wx.sky-storm {
  background: linear-gradient(180deg, #171e30 0%, #252e47 42%, #1d2438 76%, #111624 100%);
}
.gos-ios-wx.sky-night {
  background: linear-gradient(180deg, #0b1429 0%, #162447 42%, #1b2c52 76%, #0d162c 100%);
}
.gos-ios-wx-unit-bar {
  position: absolute;
  top: 16px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.gos-ios-wx-hero {
  text-align: center;
  padding: 8px 12px 10px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}
.gos-ios-wx-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.gos-ios-wx-city {
  margin: 4px 0 0;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.gos-ios-wx-subloc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 1px;
}
.gos-ios-wx-temp {
  font-size: 86px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 6px 0 4px 14px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Mona Sans", sans-serif;
}
.gos-ios-wx-cond {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
}
.gos-ios-wx-hl {
  margin-top: 3px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  justify-content: center;
  gap: 14px;
}
.gos-ios-wx-asphalt-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(8, 16, 30, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
}
.gos-ios-card {
  background: rgba(15, 29, 52, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 14px 16px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.gos-ios-card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.gos-ios-wx-summary {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.gos-ios-hourly-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gos-ios-hourly-strip::-webkit-scrollbar {
  display: none;
}
.gos-ios-hour-col {
  flex: 0 0 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  border-radius: 12px;
  text-align: center;
}
.gos-ios-hour-col.now {
  background: rgba(255, 255, 255, 0.14);
}
.gos-ios-hour-time {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.gos-ios-hour-icon {
  font-size: 20px;
  line-height: 1.1;
}
.gos-ios-hour-rain {
  font-size: 10.5px;
  font-weight: 700;
  color: #7dd3fc;
  min-height: 13px;
}
.gos-ios-hour-temp {
  font-size: 15px;
  font-weight: 600;
}
.gos-ios-bento {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 14px;
}
.gos-ios-7day {
  display: flex;
  flex-direction: column;
}
.gos-ios-day-row {
  display: grid;
  grid-template-columns: 62px 44px 36px 1fr 36px;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}
.gos-ios-day-row:first-child {
  border-top: 0;
}
.gos-ios-day-name {
  font-weight: 600;
}
.gos-ios-day-ic {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
  font-size: 17px;
}
.gos-ios-day-ic small {
  font-size: 10px;
  font-weight: 700;
  color: #7dd3fc;
  margin-top: 2px;
}
.gos-ios-day-lo {
  text-align: right;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 500;
}
.gos-ios-day-hi {
  text-align: left;
  color: #ffffff;
  font-weight: 600;
}
.gos-ios-range-track {
  position: relative;
  height: 5px;
  border-radius: 999px;
  background: rgba(8, 16, 30, 0.34);
}
.gos-ios-range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #4ecdc4 0%, #9ce868 42%, #f9c74f 74%, #f9844a 100%);
}
.gos-ios-range-dot {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(15, 29, 52, 0.75);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.85);
}
.gos-ios-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gos-ios-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 152px;
}
.gos-ios-tile-val {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.gos-ios-tile-val span {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  margin-left: 2px;
}
.gos-ios-tile-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
  margin-top: 6px;
}
.gos-ios-compass-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 2px 0;
}
.gos-ios-compass {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
}
.gos-seg-toggle {
  display: inline-flex;
  background: rgba(8, 16, 30, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 2px;
  backdrop-filter: blur(12px);
}
.gos-seg-toggle button {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.gos-seg-toggle button.active {
  background: rgba(255, 255, 255, 0.92);
  color: #0b1628;
}

/* Maps App */
.gos-world-svg {
  width: 100%;
  max-height: 360px;
  border-radius: 16px;
  border: 1px solid rgba(120, 196, 255, 0.22);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  display: block;
  background: #040b16;
}
.gos-map-pin circle {
  transition: r 0.15s ease, fill 0.15s ease;
}
.gos-map-pin:hover circle {
  filter: drop-shadow(0 0 6px #d2ff00);
}
.gos-map-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 14px;
}
.gos-scroll-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
}
.gos-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
}
.gos-list-item.active {
  border-color: #d2ff00;
  background: rgba(210, 255, 0, 0.12);
}
.gos-round-tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 800;
  color: #d2ff00;
  min-width: 34px;
}
.gos-sprint-tag {
  margin-left: auto;
  font-size: 9px;
  font-weight: 800;
  background: rgba(249, 115, 22, 0.25);
  color: #fb923c;
  padding: 2px 5px;
  border-radius: 4px;
}
.gos-dossier-top {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 14px;
  align-items: center;
}
.gos-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.gos-specs-grid > div {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 7px 9px;
}
.gos-specs-grid span {
  display: block;
  font-size: 9.5px;
  color: #94a3b8;
}
.gos-specs-grid b {
  font-size: 12.5px;
}
.gos-trace-svg {
  width: 100%;
  background: rgba(4, 8, 16, 0.78);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.gos-dossier-details {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #cbd5e1;
}
.gos-dossier-details p {
  margin: 6px 0;
}
.gos-lore-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid #d2ff00;
  background: rgba(210, 255, 0, 0.06);
  border-radius: 0 8px 8px 0;
}

/* Calendar, Mail, Messages, Files Split Panes */
.gos-alert-banner {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 12px;
  color: #fde68a;
}
.gos-cal-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
}
.gos-cal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.gos-cal-date {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  color: #38bdf8;
  min-width: 96px;
}
.gos-cal-body { flex: 1; }
.gos-cal-actions { display: flex; align-items: center; gap: 6px; }
.gos-status-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}
.gos-status-pill.completed { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.gos-status-pill.live-next,
.gos-status-pill.action-required { background: rgba(239, 68, 68, 0.22); color: #f87171; }
.gos-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
}
.gos-split-pane {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 14px;
  min-height: 460px;
}
.gos-mail-row {
  text-align: left;
  width: 100%;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  color: #e2e8f0;
  cursor: pointer;
}
.gos-mail-row.unread { border-left: 3px solid #d2ff00; }
.gos-mail-row.active { border-color: var(--gos-accent); background: rgba(255, 255, 255, 0.09); }
.gos-mail-row-top { display: flex; justify-content: space-between; font-size: 11.5px; }
.gos-mail-subj { font-size: 12.5px; font-weight: 700; margin: 3px 0; }
.gos-mail-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 10px; margin-bottom: 12px; }
.gos-mail-body { font-size: 13.5px; line-height: 1.6; color: #e2e8f0; white-space: pre-wrap; }
.gos-reply-bubble { background: rgba(210, 255, 0, 0.08); border: 1px solid rgba(210, 255, 0, 0.25); border-radius: 10px; padding: 9px 11px; margin-top: 8px; font-size: 12.5px; }
.gos-reply-form, .gos-chat-composer { display: flex; gap: 8px; margin-top: 12px; }
.gos-chat-pane { display: flex; flex-direction: column; }
.gos-chat-feed { flex: 1; display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; padding-right: 4px; }
.gos-chat-msg { background: rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 9px 11px; font-size: 12.5px; }
.gos-chat-msg.urgent { border-left: 3px solid #ef4444; background: rgba(239, 68, 68, 0.12); }
.gos-chat-meta { display: flex; justify-content: space-between; font-size: 11px; color: #94a3b8; margin-bottom: 3px; }
.gos-quick-replies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* News & Principal & Wind Tunnel & Tyres */
.gos-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
}
.gos-news-card h3 { margin: 8px 0 6px; font-size: 15px; line-height: 1.35; }
.gos-news-card p { margin: 0 0 10px; font-size: 12.5px; color: #cbd5e1; line-height: 1.5; }
.gos-news-card.urgent { border-color: rgba(239, 68, 68, 0.5); }
.gos-news-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gos-link { color: #d2ff00; font-size: 12px; font-weight: 700; text-decoration: none; }
.gos-decision-list { display: flex; flex-direction: column; gap: 12px; }
.gos-options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.gos-option-btn {
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  padding: 11px 13px;
  color: #f8fafc;
  cursor: pointer;
}
.gos-option-btn:hover:not(:disabled) { border-color: #d2ff00; background: rgba(210, 255, 0, 0.1); }
.gos-option-btn.picked { border-color: #22c55e; background: rgba(34, 197, 94, 0.16); }
.gos-option-btn b { display: block; font-size: 13px; margin-bottom: 4px; }
.gos-option-btn span { font-size: 11.5px; color: #94a3b8; }
.gos-verdict-box { margin-top: 10px; padding: 10px 12px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); font-size: 12.5px; }
.gos-run-log { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.gos-run-row { display: flex; justify-content: space-between; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11.5px; padding: 4px 8px; background: rgba(255, 255, 255, 0.04); border-radius: 6px; }
.gos-compound-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gos-compound-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(12, 16, 28, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px;
  color: #fff;
  cursor: pointer;
}
.gos-compound-btn.active { border-color: var(--cmp-col); box-shadow: 0 0 18px color-mix(in srgb, var(--cmp-col) 40%, transparent); }
.gos-cmp-ring { width: 22px; height: 22px; border-radius: 50%; border: 4px solid var(--cmp-col); display: block; }
.gos-4corner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gos-corner-card { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; padding: 9px 11px; }
.gos-corner-card.optimal { border-color: #22c55e; }
.gos-corner-card.overheating { border-color: #ef4444; }
.gos-corner-card.cold { border-color: #38bdf8; }
.gos-corner-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; }
.gos-corner-temp { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 22px; font-weight: 900; margin: 3px 0; }

/* Steering Wheel Programmer App */
.gos-wheel-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 12px;
}
.gos-wheel-layout { display: grid; grid-template-columns: 340px 1fr; gap: 14px; }
.gos-pcu-mock {
  background: linear-gradient(160deg, #161b26, #090c12);
  border: 2px solid var(--pcu-accent);
  border-radius: 22px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gos-pcu-leds { display: grid; grid-template-columns: repeat(15, 1fr); gap: 4px; }
.gos-pcu-leds i { height: 7px; border-radius: 99px; display: block; }
.gos-pcu-leds.fia_standard .led-g { background: #00f57a; }
.gos-pcu-leds.fia_standard .led-r { background: #ff3358; }
.gos-pcu-leds.fia_standard .led-b { background: #d2ff00; }
.gos-pcu-leds.high_contrast .led-g { background: #00f0ff; }
.gos-pcu-leds.high_contrast .led-r { background: #ff3d8b; }
.gos-pcu-leds.high_contrast .led-b { background: #d2ff00; }
.gos-pcu-leds.team_accent .led-g { background: #00f57a; }
.gos-pcu-leds.team_accent .led-r { background: var(--pcu-accent); }
.gos-pcu-leds.team_accent .led-b { background: #d2ff00; }
.gos-pcu-lcd {
  background: #03060c;
  border: 1px solid #38bdf8;
  border-radius: 10px;
  padding: 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.gos-pcu-lcd-head { display: flex; justify-content: space-between; font-size: 10.5px; color: #38bdf8; border-bottom: 1px solid rgba(255, 255, 255, 0.12); padding-bottom: 5px; margin-bottom: 8px; }
.gos-pcu-lcd-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.gos-pcu-gear { font-size: 56px; font-weight: 900; color: #d2ff00; text-align: center; line-height: 1; }
.gos-pcu-delta { color: #22c55e; font-size: 15px; font-weight: 900; margin-bottom: 6px; }
.gos-pcu-tyres { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; font-size: 9.5px; color: #38bdf8; }
.gos-pcu-mfd { display: flex; flex-direction: column; gap: 4px; font-size: 10px; text-align: right; color: #e2e8f0; }
.gos-pcu-mfd b { color: #d2ff00; margin-left: 4px; }
.gos-pcu-btn-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.gos-pcu-chip { background: rgba(255, 255, 255, 0.05); border-radius: 7px; padding: 5px 7px; font-size: 10px; }
.gos-pcu-chip b { color: #d2ff00; display: block; }
.gos-wheel-subgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gos-inline-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.gos-mfd-slots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-size: 11.5px; }
.gos-pages-checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 7px; }
.gos-page-check {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 11.5px;
  cursor: pointer;
}
.gos-page-check.on { border-color: rgba(210, 255, 0, 0.45); background: rgba(210, 255, 0, 0.08); }
.gos-page-check small { display: block; color: #94a3b8; font-size: 10px; }
.gos-map-rows { display: flex; flex-direction: column; gap: 8px; max-height: 410px; overflow-y: auto; }
.gos-map-row { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 10px; font-size: 12px; padding: 6px 8px; background: rgba(255, 255, 255, 0.035); border-radius: 8px; }
.gos-map-row small { display: block; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10px; }

/* Files & Arcade */
.gos-file-pre {
  background: rgba(4, 7, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 13px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #e2e8f0;
  overflow-x: auto;
}
.gos-regs-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12px; }
.gos-regs-table td { padding: 6px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.gos-regs-table td:last-child { text-align: right; color: #d2ff00; }

.gos-arcade-root { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin: 0 auto; }
.gos-arcade-topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: rgba(11, 16, 28, 0.88); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 11px 14px; }
.gos-arcade-title { font-size: 13px; font-weight: 800; color: #d2ff00; }
.gos-arcade-sub { font-size: 11px; color: #94a3b8; }
.gos-arcade-modes { display: flex; gap: 6px; flex-wrap: wrap; }
.gos-arcade-hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: rgba(7, 10, 18, 0.9); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; padding: 9px 14px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; }
.gos-arcade-hud span { color: #94a3b8; margin-right: 6px; }
.gos-arcade-hud b { font-size: 14px; color: #d2ff00; }
.gos-arcade-stage { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 14px; overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.2); background: #020617; }
.gos-arcade-canvas { width: 100%; height: 100%; display: block; }
.gos-arcade-overlay { position: absolute; inset: 0; background: rgba(4, 8, 18, 0.82); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; gap: 10px; }
.gos-arcade-edition { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.12em; color: #facc15; }
.gos-arcade-hero { margin: 0; font-size: 28px; font-weight: 900; }
.gos-arcade-final { font-family: "IBM Plex Mono", ui-monospace, monospace; color: #4ade80; font-weight: 800; }
.gos-arcade-desc { max-width: 440px; font-size: 12.5px; color: #cbd5e1; margin: 0; }
.gos-arcade-controls { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.gos-arcade-ctrl-group { display: flex; gap: 8px; flex-wrap: wrap; }

.gos-toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  pointer-events: none;
  background: rgba(9, 14, 24, 0.96);
  border: 1px solid #d2ff00;
  color: #f8fafc;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.75);
  transition: all 0.2s ease;
  z-index: 4600;
}
.gos-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.gos-loading {
  text-align: center;
  padding: 40px;
  color: #94a3b8;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

/* Mobile & Tablet Responsive Layout */
@media (max-width: 960px) {
  .gos-workspace {
    flex-direction: column-reverse;
  }
  .gos-dock {
    width: 100%;
    flex-direction: row;
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 8px;
    overflow-x: auto;
  }
  .gos-dock-btn {
    width: auto;
    flex-direction: column;
    gap: 3px;
    padding: 6px 10px;
    font-size: 10.5px;
    white-space: nowrap;
  }
  .gos-grid-2,
  .gos-ios-bento,
  .gos-map-layout,
  .gos-cal-grid,
  .gos-split-pane,
  .gos-wheel-layout,
  .gos-dossier-top,
  .gos-wheel-subgrid {
    grid-template-columns: 1fr;
  }
  .gos-compound-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gos-terminal-pill,
  .gos-circuit-pill {
    display: none;
  }
}

/* =========================================================================
   Version Pill & Release History Modal (v1.6.0)
   ========================================================================= */
.app-version-pill {
  appearance: none;
  background: rgba(210, 255, 0, 0.1);
  border: 1px solid rgba(210, 255, 0, 0.35);
  color: #d2ff00;
  font-family: var(--mono, monospace);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.app-version-pill:hover {
  background: rgba(210, 255, 0, 0.2);
  border-color: rgba(210, 255, 0, 0.7);
  transform: translateY(-1px);
}
.footer-ver-btn {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(210, 255, 0, 0.3);
  color: #d2ff00;
  font-family: var(--mono, monospace);
  font-size: 0.76rem;
  padding: 2px 9px;
  border-radius: 999px;
  cursor: pointer;
  margin-left: 6px;
}
.footer-ver-btn:hover {
  background: rgba(210, 255, 0, 0.14);
}
.rh-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100020;
  background: rgba(4, 7, 13, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.rh-backdrop[hidden] {
  display: none;
}
.rh-dialog {
  width: min(820px, 96vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: rgba(11, 16, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  color: #edf2f9;
}
.rh-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.rh-eyebrow {
  font-family: var(--mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: #d2ff00;
  margin-bottom: 4px;
}
.rh-header h2 {
  font-size: 1.18rem;
  margin: 0 0 4px;
}
.rh-sub {
  margin: 0;
  font-size: 0.78rem;
  color: #93a1b5;
}
.rh-sub code {
  color: #38bdf8;
}
.rh-close {
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}
.rh-close:hover {
  background: rgba(255, 255, 255, 0.18);
}
.rh-body {
  padding: 16px 22px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rh-release-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 14px 16px;
}
.rh-release-card.is-current {
  border-color: rgba(210, 255, 0, 0.45);
  background: rgba(210, 255, 0, 0.04);
}
.rh-release-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.rh-release-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rh-ver {
  font-family: var(--mono, monospace);
  font-weight: 800;
  font-size: 0.84rem;
  color: #d2ff00;
}
.rh-codename {
  margin: 0;
  font-size: 0.96rem;
  color: #fff;
}
.rh-latest-badge {
  font-family: var(--mono, monospace);
  font-size: 0.64rem;
  font-weight: 800;
  background: #d2ff00;
  color: #090d14;
  padding: 2px 7px;
  border-radius: 999px;
}
.rh-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: #8b9bb0;
  font-family: var(--mono, monospace);
}
.rh-highlights {
  margin: 0;
  padding-left: 18px;
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .app-version-pill {
    font-size: 0.64rem;
    padding: 2px 6px;
  }
}
