/* =========================================================
   APEX AERO — visual system
   ========================================================= */

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060709;
  --bg-2: #080a0c;
  --panel: #0b0d10;
  --panel-2: #101419;
  --panel-3: #14181e;
  --text: #f2f5f6;
  --muted: #909aa4;
  --dim: #74808b;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #d4ff3f;
  --accent-rgb: 212, 255, 63;
  --cyan: #74e7ff;
  --red: #ff6158;
  --orange: #ff9f43;
  --radius: 18px;
  --radius-sm: 11px;
  --display: "Barlow Condensed", "Noto Sans HK", "Microsoft JhengHei", "PingFang HK", "Arial Narrow", sans-serif;
  --sans: "Manrope", "Noto Sans HK", "Microsoft JhengHei", "PingFang HK", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Noto Sans HK", "Microsoft JhengHei", "Consolas", monospace;
  --max: 1660px;
  --pad: 28px;
  --team: #ff8000;
  --team2: #47c7fc;
  --team-accent: #47c7fc;
  --team-dark: #2b1403;
  --team-light: #ffd0a3;
  --car-ink: #15100a;
  --team-rgb: 255, 128, 0;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: #2d343c var(--bg);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: #0a0c07; }

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
svg { display: block; }
canvas { display: block; }
h1, h2, h3, h4, p, dl, dd, dt { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  background: var(--accent);
  color: #090b06;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient-glow {
  position: absolute;
  width: 900px;
  height: 900px;
  top: -450px;
  right: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--team-rgb), 0.12), transparent 66%);
  filter: blur(30px);
  transition: background 0.6s ease;
}
.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 0%, black, transparent 72%);
}

/* =========================================================
   Top bar
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 7, 9, 0.82);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-mark {
  width: 27px;
  height: 27px;
  color: var(--text);
  flex: 0 0 auto;
}
.brand-type {
  font-family: var(--display);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: 0.035em;
  line-height: 1;
  white-space: nowrap;
}
.brand-type span { color: var(--accent); padding: 0 1px; }
.brand-sub {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.16em;
  color: var(--dim);
  border-left: 1px solid var(--line-strong);
  padding-left: 10px;
  margin-left: 2px;
  line-height: 1.4;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.main-nav a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { right: 0; }

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}
.sim-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--dim);
  white-space: nowrap;
}
.sim-badge i,
.live-dot,
.live-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.8);
  display: inline-block;
}

.season-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 11px;
}
.season-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 5px 12px 6px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--dim);
  transition: background 0.22s ease, color 0.22s ease;
  min-width: 96px;
}
.season-switch button b {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.02em;
  font-weight: 700;
}
.season-switch button span {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.season-switch button:hover { color: var(--text); }
.season-switch button.is-active {
  color: #0a0c05;
  background: var(--accent);
}
.season-switch button.is-active span { color: rgba(10, 12, 5, 0.62); }

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 6px 7px;
  border-radius: 5px;
  transition: color 0.2s, background 0.2s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.is-active {
  color: #0a0c05;
  background: var(--accent);
}

.icon-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--dim);
  transition: color 0.2s, border-color 0.2s;
}
.icon-button svg { width: 16px; height: 16px; }
.icon-button:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.4); }
.icon-button[aria-pressed="true"] { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.4); }

.spec-strip {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 12, 0.64);
}
.spec-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 35px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--dim);
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.spec-strip-inner::-webkit-scrollbar { display: none; }
.spec-strip-inner > span {
  padding: 0 17px;
  border-right: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.spec-strip-inner > span:first-child { padding-left: 0; }
.spec-strip-inner > span:last-child { border-right: 0; }
.spec-strip-inner b { color: var(--text); font-weight: 500; }
.strip-flag { color: var(--accent) !important; }
.strip-aero b { color: var(--team-accent); }
.strip-aero span { font-size: 7px; color: var(--dim); }
.strip-air { margin-left: auto; color: var(--muted); }
.strip-air i {
  width: 4px; height: 4px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 8px rgba(116, 231, 255, 0.9);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 78px var(--pad) 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: center;
}
.hero-copy { max-width: 820px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.7);
}
.eyebrow-slash { color: var(--dim); }
#heroYear { color: var(--text); }

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(72px, 8.3vw, 132px);
  line-height: 0.79;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-left: -4px;
}
.hero h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.25px rgba(242, 245, 246, 0.7);
  text-stroke: 1.25px rgba(242, 245, 246, 0.7);
}
.hero-lede {
  max-width: 620px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  margin-top: 28px;
  padding-left: 18px;
  border-left: 1px solid rgba(var(--accent-rgb), 0.5);
}
.hero-meta {
  display: flex;
  align-items: flex-start;
  gap: 34px;
  margin-top: 40px;
}
.hero-meta div { display: flex; flex-direction: column; gap: 5px; }
.hero-meta b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 27px;
  line-height: 1;
  color: var(--text);
}
.hero-meta span {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.hero-graphic {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-ring {
  position: absolute;
  inset: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.hero-ring::before,
.hero-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.hero-ring::before { inset: 26px; }
.hero-ring::after { inset: 80px; border-style: dashed; opacity: 0.8; }
.hero-year {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--display);
  font-size: 104px;
  line-height: 0.8;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}
.hero-year span:last-child {
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 245, 246, 0.55);
}
.hero-year i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 400;
  transform: translateY(-2px);
}
.hero-graphic-label {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.18em;
  line-height: 1.65;
  text-align: center;
  color: var(--dim);
}
.hero-graphic-label b { color: var(--accent); font-weight: 400; }
.hero-coord {
  position: absolute;
  top: 38px;
  right: 36px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: var(--dim);
  text-align: right;
}
.hero-graphic::before {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  top: 18%;
  left: 14%;
  box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0.06), 0 0 24px rgba(var(--accent-rgb), 0.5);
}

/* =========================================================
   Cockpit & panels
   ========================================================= */

.cockpit {
  position: relative;
  scroll-margin-top: 116px;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 30px;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr) 338px;
  gap: 12px;
  align-items: start;
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.024), transparent 42%),
    var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 16%);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-heading > div { display: flex; align-items: center; gap: 9px; }
.panel-heading h2 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
}
.section-no {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  background: rgba(var(--accent-rgb), 0.06);
  border-radius: 4px;
  padding: 3px 5px;
  line-height: 1;
}
.panel-count {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  color: var(--dim);
}
.text-button {
  border: 0;
  background: transparent;
  padding: 2px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s, border-color 0.2s;
}
.text-button:hover { color: var(--accent); border-color: var(--accent); }

/* Garage */

.garage-panel {
  padding: 18px 16px 0;
  overflow: hidden;
}
.garage-season {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 18px 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.garage-note { margin-left: auto; color: var(--dim); font-size: 7px; }
.garage-list {
  max-height: 524px;
  margin: 0 -5px;
  padding: 0 5px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #2d343c transparent;
}
.car-option {
  width: 100%;
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  display: grid;
  grid-template-columns: 21px 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  text-align: left;
  color: var(--muted);
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.car-option + .car-option { margin-top: 1px; }
.car-option:hover { background: rgba(255, 255, 255, 0.035); color: var(--text); }
.car-option.is-active {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line-strong);
  color: var(--text);
}
.car-option.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 2px;
  height: 22px;
  background: var(--team);
  border-radius: 2px;
}
.car-option { position: relative; }
.car-index {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--dim);
  letter-spacing: 0.04em;
}
.car-swatch {
  width: 3px;
  height: 22px;
  border-radius: 2px;
  background: var(--opt-color, var(--team));
  box-shadow: 0 0 10px color-mix(in srgb, var(--opt-color, var(--team)) 30%, transparent);
}
.car-option-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.car-option-text b {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.car-option-text span {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.car-option-tag {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--dim);
  letter-spacing: 0.03em;
}
.car-option.is-active .car-option-tag { color: var(--accent); }
.garage-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 10px;
  border-top: 1px solid var(--line);
  margin: 0 -16px;
  padding: 13px 16px 15px;
  background: rgba(0, 0, 0, 0.16);
}
.garage-footer span {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: var(--dim);
}
.garage-footer strong {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  grid-column: 1;
  color: var(--text);
}
.garage-pu {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 6.5px !important;
  color: var(--muted) !important;
  letter-spacing: 0.1em !important;
  text-align: right;
}

/* =========================================================
   Stage
   ========================================================= */

.stage-column { min-width: 0; }

.stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1.48 / 1;
  min-height: 580px;
  max-height: 700px;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 58% 47%, rgba(var(--team-rgb), 0.13), transparent 48%),
    radial-gradient(ellipse at 60% 100%, rgba(var(--team-rgb), 0.1), transparent 50%),
    linear-gradient(180deg, #0b0f13 0%, #080a0d 56%, #06080a 100%);
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.stage-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  opacity: 0.55;
}
.flow-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.stage-top {
  position: absolute;
  top: 18px;
  left: 21px;
  right: 21px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.live-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.13em;
  color: var(--muted);
}
.live-label i { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.3); }
  50% { opacity: 0.55; box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0); }
}
.stage-state {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.11em;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 8px;
  background: rgba(4, 6, 8, 0.45);
  backdrop-filter: blur(6px);
}
.stage-state b { color: var(--accent); font-weight: 500; }
.flow-tag {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 6.2px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.42);
  pointer-events: none;
  text-transform: uppercase;
}
.flow-tag i {
  display: block;
  height: 1px;
  width: 44px;
  background: linear-gradient(90deg, transparent, rgba(var(--team-rgb), 0.65));
  position: relative;
}
.flow-tag i::after {
  content: "";
  position: absolute;
  left: -1px;
  top: -2px;
  width: 5px;
  height: 5px;
  border-left: 1px solid rgba(var(--team-rgb), 0.8);
  border-bottom: 1px solid rgba(var(--team-rgb), 0.8);
  transform: rotate(45deg);
}
.flow-tag-in { right: 4%; top: 26%; }
.flow-tag-in i { background: linear-gradient(90deg, transparent, rgba(var(--team-rgb), 0.5)); }
.flow-tag-wake { left: 3%; top: 43.5%; }
.flow-tag-wake i {
  width: 30px;
  background: linear-gradient(90deg, rgba(var(--team-rgb), 0.55), transparent);
}
.flow-tag-wake i::after {
  left: auto;
  right: -1px;
  transform: rotate(225deg);
}

.stage-watermark {
  position: absolute;
  z-index: 0;
  right: 20px;
  top: 66px;
  font-family: var(--display);
  font-size: 260px;
  line-height: 0.7;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
}
.stage-car {
  position: absolute;
  z-index: 3;
  left: -2%;
  right: -2%;
  bottom: 17.5%;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.stage-car svg { width: 100%; height: auto; overflow: visible; }
.stage-glow {
  position: absolute;
  left: 25%;
  right: 12%;
  bottom: 0;
  height: 28%;
  background: radial-gradient(ellipse at center, rgba(var(--team-rgb), 0.2), transparent 70%);
  filter: blur(24px);
  z-index: -1;
}

.active-flap {
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1);
  transform-box: fill-box;
  transform-origin: 100% 100%;
}
#frontFlap26 { transform-origin: 0% 100%; }
.stage.is-open #flap25,
.stage.is-open #rearFlap26 { transform: translateY(-7px) rotate(-8deg); }
.stage.is-open #frontFlap26 { transform: translateY(-5px) rotate(-5deg); }
.car-wing-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
}
.car-nose-text {
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  fill: var(--car-ink);
  opacity: .72;
  letter-spacing: -0.02em;
}
.car-tech-text {
  font-family: var(--mono);
  font-size: 5.4px;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.car-tech-ink { fill: var(--car-ink); opacity: .55; }
.car-big-number {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.wheel-tech { pointer-events: none; }
.wheel-tech text { font-size: 5px; letter-spacing: 0.08em; }
.stage.is-open .wheel-tech { opacity: 0.92; }
.surface-flow path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 0.85;
  stroke-linecap: round;
  stroke-dasharray: 18 86;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.16));
  animation: surface-flow 2.1s linear infinite;
}
.surface-flow path:nth-child(2) {
  animation-duration: 2.9s;
  stroke: var(--team2);
  opacity: 0.4;
}
.surface-flow path:nth-child(3) { animation-duration: 2.5s; opacity: 0.55; }
.stage.flow-paused .surface-flow path { animation-play-state: paused; }
@keyframes surface-flow {
  from { stroke-dashoffset: 104; }
  to { stroke-dashoffset: 0; }
}
.stage:hover .car-model { transform: translateY(-2px); }
.car-model { transition: transform 0.6s ease; }

.hotspot {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.11em;
  color: var(--dim);
  pointer-events: none;
}
.hotspot i {
  display: block;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.45));
  position: relative;
}
.hotspot i::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -2px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.9);
}
.hotspot-front { right: 5%; top: 69%; flex-direction: row-reverse; }
.hotspot-front i { transform: rotate(180deg); }
.hotspot-floor { left: 48%; top: 78%; }
.hotspot-rear { left: 9%; top: 48%; }
.hotspot-rear i { width: 34px; }

.stage-readout {
  position: absolute;
  z-index: 4;
  top: 52px;
  left: 22px;
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(6, 8, 11, 0.52);
  backdrop-filter: blur(9px);
  max-width: calc(100% - 150px);
}
.stage-readout > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.stage-readout span {
  flex-basis: 100%;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.13em;
  color: var(--dim);
}
.stage-readout b {
  font-family: var(--display);
  font-size: 21px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.stage-readout small {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--dim);
}
.readout-main { padding-right: 20px; border-right: 1px solid var(--line); }
.readout-main span { color: var(--accent) !important; }
.readout-main b { font-size: 28px; }
.readout-side { padding-right: 12px; }

.stage-bottom {
  position: absolute;
  z-index: 5;
  left: 22px;
  right: 22px;
  bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(90deg, rgba(6, 8, 11, 0.9), rgba(6, 8, 11, 0.66));
  backdrop-filter: blur(12px);
}
.speed-control { flex: 1; min-width: 0; max-width: 440px; }
.speed-label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}
.speed-label span {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.13em;
  color: var(--dim);
  margin-right: auto;
}
.speed-label b {
  font-family: var(--display);
  font-size: 27px;
  line-height: 0.8;
  font-weight: 600;
}
.speed-label small {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--dim);
  letter-spacing: 0.08em;
}
.aero-state {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  flex: 0 0 auto;
}
.aero-state button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  padding: 7px 10px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}
.aero-state button:hover { color: var(--text); }
.aero-state button.is-active {
  background: var(--accent);
  color: #0b0d06;
  font-weight: 600;
}

/* Range controls */

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--fill, 50%), rgba(255, 255, 255, 0.12) var(--fill, 50%), rgba(255, 255, 255, 0.12) 100%);
  outline: none;
  cursor: ew-resize;
  margin: 3px 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--text);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1), 0 2px 7px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
input[type="range"]:hover::-webkit-slider-thumb,
input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.14), 0 2px 7px rgba(0, 0, 0, 0.5);
  transform: scale(1.08);
}
input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text);
  border: 3px solid var(--accent);
}
input[type="range"]::-moz-range-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
}

/* Metric strip */

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}
.metric {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 11px;
  padding: 12px 13px 11px;
  min-width: 0;
  overflow: hidden;
}
.metric::after {
  content: "";
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 1px;
  background: linear-gradient(transparent, var(--team), transparent);
  opacity: 0.6;
}
.metric-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metric-label em {
  font-style: normal;
  color: var(--team-accent);
  font-size: 6px;
  border: 1px solid var(--line);
  padding: 2px 3px;
  border-radius: 3px;
  white-space: nowrap;
}
.metric strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 5px;
  font-family: var(--display);
  font-size: 29px;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.metric strong small {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--dim);
  font-weight: 400;
  letter-spacing: 0.06em;
}
.metric-foot {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 6px;
  color: var(--dim);
  letter-spacing: 0.1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   Setup panel
   ========================================================= */

.setup-panel {
  padding: 18px 17px 16px;
}
.trim-preset {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 18px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.trim-preset i {
  margin-left: auto;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
}
.control-group { margin-bottom: 18px; }
.control-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.control-head label {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.11em;
  color: var(--muted);
}
.control-head output {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  letter-spacing: 0.02em;
}
.control-head output small {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--dim);
  font-weight: 400;
}
.control-help {
  margin-top: 7px;
  color: var(--dim);
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.range-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 5.8px;
  letter-spacing: 0.08em;
  color: #65707b;
}
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.segmented button {
  appearance: none;
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 8px 4px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: var(--dim);
  transition: background 0.18s, color 0.18s;
}
.segmented button:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.segmented button.is-active {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.balance-block {
  margin: 4px 0 19px;
  padding: 12px 12px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}
.balance-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.balance-top span {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.11em;
  color: var(--dim);
}
.balance-top b {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1;
  font-weight: 600;
}
.balance-top b small {
  font-family: var(--mono);
  font-size: 6px;
  color: var(--dim);
  font-weight: 400;
}
.balance-track {
  position: relative;
  height: 4px;
  margin: 11px 1px 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(var(--team-rgb), 0.25), rgba(255, 255, 255, 0.1) 45%, rgba(var(--team2), 0.28));
}
.balance-window {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 44%;
  width: 10%;
  border-left: 1px solid rgba(var(--accent-rgb), 0.5);
  border-right: 1px solid rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.08);
}
.balance-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--text);
  border: 2px solid var(--team);
  box-shadow: 0 0 0 3px rgba(var(--team-rgb), 0.12);
  transition: left 0.3s ease;
}
.balance-ends {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 5.8px;
  letter-spacing: 0.1em;
  color: #6b7682;
}
.compact { margin-bottom: 16px; }
.compact .control-head { margin-bottom: 7px; }

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 15px;
}
.switch-row > div { display: flex; flex-direction: column; gap: 2px; }
.switch-row span:first-child {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.switch-row small {
  font-size: 8.5px;
  color: var(--dim);
}
.switch { width: 32px; height: 18px; position: relative; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line-strong);
  transition: background 0.2s;
}
.switch span::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  top: 2px; left: 2px;
  background: #818b94;
  transition: transform 0.2s ease, background 0.2s;
}
.switch input:checked + span { background: rgba(var(--accent-rgb), 0.18); border-color: rgba(var(--accent-rgb), 0.5); }
.switch input:checked + span::after { transform: translateX(14px); background: var(--accent); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch-row.is-disabled { opacity: 0.4; pointer-events: none; }

.platform-block {
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 17px;
}
.platform-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.platform-head span {
  font-family: var(--mono);
  font-size: 6.3px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.platform-head b {
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.platform-meter {
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.09);
  margin: 9px 0 7px;
  overflow: hidden;
}
.platform-meter span {
  display: block;
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, var(--accent), #ffae42);
  border-radius: inherit;
  transition: width 0.3s ease, background 0.3s ease;
}
.platform-block p {
  font-size: 8.5px;
  line-height: 1.45;
  color: var(--dim);
}
.spec-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}
.spec-mini > div {
  background: var(--panel);
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spec-mini span {
  font-family: var(--mono);
  font-size: 5.8px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.spec-mini b {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.concept-note {
  margin-top: 11px;
  font-size: 8px;
  line-height: 1.5;
  color: #6b7682;
}

/* =========================================================
   Section scaffolding
   ========================================================= */

.section {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 92px var(--pad) 30px;
  scroll-margin-top: 116px;
}
.aero-section { padding-top: 84px; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px) 62px;
  gap: 30px;
  align-items: end;
  margin-bottom: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  position: relative;
}
.section-heading::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 68px;
  height: 1px;
  background: var(--accent);
}
.section-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-heading h2 {
  font-family: var(--display);
  font-size: clamp(42px, 4.4vw, 68px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-transform: uppercase;
  max-width: 680px;
}
.section-heading > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  max-width: 420px;
  padding-bottom: 4px;
}
.section-index {
  font-family: var(--display);
  font-size: 44px;
  line-height: 0.8;
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  text-align: right;
  align-self: start;
  padding-top: 4px;
}

/* =========================================================
   Aero map
   ========================================================= */

.aero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.9fr);
  gap: 11px;
}
.chart-card,
.balance-card,
.insight-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.022), transparent 46%),
    var(--panel);
  position: relative;
  overflow: hidden;
}
.chart-card { padding: 18px 19px 14px; }
.force-card { grid-row: span 2; min-height: 545px; display: flex; flex-direction: column; }
.ride-card { min-height: 256px; }
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.card-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.13em;
  color: var(--dim);
  margin-bottom: 5px;
}
.card-header h3,
.balance-card h3 {
  font-family: var(--display);
  font-size: 25px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  color: var(--dim);
  padding-top: 3px;
}
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.chart-legend i,
.chart-footer i,
.telemetry-legend i {
  width: 12px;
  height: 2px;
  border-radius: 2px;
  display: inline-block;
}
.legend-df { background: var(--team); box-shadow: 0 0 8px rgba(var(--team-rgb), 0.3); }
.legend-drag { background: #8c98a4; }
.force-chart-wrap {
  position: relative;
  flex: 1;
  min-height: 360px;
}
.force-chart-wrap canvas { width: 100%; height: 100%; min-height: 360px; }
.chart-footer {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.chart-footer > div {
  display: flex;
  align-items: center;
  gap: 17px;
  flex-wrap: wrap;
}
.chart-footer span {
  font-family: var(--mono);
  font-size: 6.5px;
  color: var(--dim);
  letter-spacing: 0.1em;
}
.chart-footer span b { color: var(--text); font-weight: 500; }
.chart-footer strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  font-weight: 400;
  color: var(--muted);
}
.chart-footer strong b { color: var(--text); font-weight: 500; }
.chart-footer p {
  font-size: 8px;
  line-height: 1.45;
  color: var(--dim);
  text-align: right;
  max-width: 220px;
}
.card-tag {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 4px;
  padding: 4px 6px;
  background: rgba(var(--accent-rgb), 0.04);
  white-space: nowrap;
}
.ride-card canvas { width: 100%; height: 135px; margin: 1px 0 2px; }
.ride-readout {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
  margin-top: 2px;
}
.ride-readout span {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.ride-readout b {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  margin-left: auto;
}
.ride-readout b small { font-family: var(--mono); font-size: 6.5px; color: var(--dim); font-weight: 400; }
#rideChartDelta { color: var(--accent); margin-left: 0; }
.balance-card {
  padding: 18px 19px;
  min-height: 256px;
  display: flex;
  flex-direction: column;
}
.balance-card-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 3px 10px;
}
.balance-card-top .card-kicker { grid-column: 1 / -1; }
.balance-card h3 { grid-column: 1; }
.balance-window-number {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.balance-window-number b {
  font-family: var(--display);
  font-size: 35px;
  line-height: 0.85;
  font-weight: 600;
}
.balance-window-number span {
  font-family: var(--mono);
  font-size: 6px;
  color: var(--dim);
  letter-spacing: 0.08em;
}
.balance-visual {
  position: relative;
  height: 58px;
  margin: 16px 0 9px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  border-radius: 6px;
}
.balance-car-line {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}
.balance-car-line::before,
.balance-car-line::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #0b0d10;
}
.balance-car-line::before { left: 14%; }
.balance-car-line::after { right: 8%; }
.balance-force {
  position: absolute;
  top: 4px;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.balance-force.front { right: 5%; color: var(--team-accent); }
.balance-force.rear { left: 11%; }
.balance-arrow {
  position: absolute;
  top: 19px;
  width: 1px;
  height: 19px;
  background: var(--team);
}
.balance-arrow::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -3px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 5px solid var(--team);
}
.balance-arrow.front { right: 16%; }
.balance-arrow.rear { left: 22%; background: var(--team-accent); }
.balance-arrow.rear::after { border-top-color: var(--team-accent); }
.balance-arrow.front { height: 22px; }
.balance-scale {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 5.5px;
  color: var(--dim);
  margin-top: auto;
}
.balance-scale > span:first-child,
.balance-scale > span:nth-last-child(1) { width: 15px; }
.balance-scale > span:last-child { text-align: right; }
.window-label {
  margin-left: auto;
  font-size: 5px;
  letter-spacing: 0.08em;
  color: #53606a;
}
.balance-scale-track {
  position: absolute;
  left: 23px;
  right: 23px;
  top: 9px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}
.balance-scale-window {
  position: absolute;
  left: 44%;
  width: 10%;
  top: -2px;
  bottom: -2px;
  background: rgba(var(--accent-rgb), 0.25);
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}
.balance-scale-marker {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text);
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
  transition: left 0.3s ease;
}
.balance-card > p {
  font-size: 9px;
  line-height: 1.5;
  color: var(--dim);
  border-top: 1px solid var(--line);
  padding-top: 9px;
  margin-top: 16px;
}
.insight-card {
  grid-column: 1 / -1;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background:
    linear-gradient(100deg, rgba(var(--accent-rgb), 0.035), transparent 42%),
    var(--panel);
}
.insight-top { display: flex; align-items: center; gap: 10px; }
.insight-top .card-kicker { margin: 0; }
.insight-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.6);
}
.insight-copy {
  grid-column: 1;
  grid-row: 2;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.08;
  text-transform: uppercase;
  max-width: 590px;
  letter-spacing: -0.01em;
}
.insight-stats {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  gap: 26px;
  align-self: center;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.insight-stats div { display: flex; flex-direction: column; gap: 3px; }
.insight-stats span {
  font-family: var(--mono);
  font-size: 5.8px;
  letter-spacing: 0.09em;
  color: var(--dim);
}
.insight-stats b {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.insight-signature {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: end;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  color: #65707b;
  white-space: nowrap;
}
.insight-signature span { color: var(--accent); }

/* =========================================================
   Lap simulation
   ========================================================= */

.track-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 11px;
}
.track-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 10px 11px 9px;
  text-align: left;
  color: var(--dim);
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  min-width: 0;
}
.track-tab:hover { background: var(--panel-2); color: var(--muted); }
.track-tab.is-active {
  background: linear-gradient(145deg, rgba(var(--team-rgb), 0.11), rgba(255, 255, 255, 0.025));
  border-color: rgba(var(--team-rgb), 0.38);
  color: var(--text);
}
.track-tab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.track-tab.is-active .track-tab-top .cc { color: var(--team-accent); }
.track-tab-name {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  margin-top: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-tab-meta {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  font-family: var(--mono);
  font-size: 5.5px;
  color: #65707b;
  margin-top: 5px;
  letter-spacing: 0.03em;
}
.track-tab.is-active .track-tab-meta { color: var(--dim); }

.lap-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
  gap: 11px;
  align-items: stretch;
}
.map-card {
  padding: 17px 18px 15px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.map-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.map-header h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  max-width: 360px;
}
.map-weather {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-family: var(--mono);
  font-size: 6px;
  color: var(--dim);
  letter-spacing: 0.04em;
  padding-top: 2px;
}
.map-weather span {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 5px;
  white-space: nowrap;
}
.map-wrap {
  position: relative;
  flex: 1;
  min-height: 340px;
  border-radius: 9px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(var(--team-rgb), 0.055), transparent 60%),
    rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.map-wrap canvas { width: 100%; height: 100%; min-height: 340px; }
.map-hud {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(5, 7, 9, 0.72);
  backdrop-filter: blur(8px);
}
.hud-live {
  font-family: var(--mono);
  font-size: 5.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 4px;
}
.hud-live i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.map-hud b {
  font-family: var(--display);
  font-size: 24px;
  line-height: 0.8;
  font-weight: 600;
}
.map-hud small {
  font-family: var(--mono);
  font-size: 5.5px;
  color: var(--dim);
}
#hudGear {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--text);
  border-left: 1px solid var(--line-strong);
  padding-left: 7px;
  margin-left: 3px;
}
.hud-mode {
  font-family: var(--mono);
  font-size: 5.5px;
  letter-spacing: 0.04em;
  color: var(--team-accent);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 4px;
  border-radius: 3px;
  margin-left: 4px;
}
.map-start-label {
  position: absolute;
  top: 10px;
  right: 11px;
  font-family: var(--mono);
  font-size: 5.5px;
  letter-spacing: 0.09em;
  color: #6b7682;
}
.map-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--line);
  margin-top: 9px;
}
.map-meta > div {
  background: var(--panel);
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.map-meta span {
  font-family: var(--mono);
  font-size: 5.5px;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.map-meta b {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-blurb {
  font-size: 9px;
  line-height: 1.5;
  color: var(--dim);
  margin-top: 10px;
}

.telemetry-card {
  padding: 17px 18px 14px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.lap-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.lap-time-block { display: flex; flex-direction: column; gap: 1px; }
.lap-time-row { display: flex; align-items: center; gap: 10px; }
.lap-time-row > b {
  font-family: var(--display);
  font-size: clamp(52px, 5vw, 76px);
  line-height: 0.84;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.lap-year {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  padding: 3px 5px;
  border-radius: 3px;
}
.lap-sub {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-top: 3px;
}
.run-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #090b05;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 10px 13px;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  white-space: nowrap;
}
.run-button:hover { box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.18); transform: translateY(-1px); }
.run-button.is-running { background: var(--team); color: #0b0c08; }
.run-icon {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
}
.run-button.is-running .run-icon {
  width: 7px; height: 7px; border: 0; border-radius: 1px;
  background: currentColor;
  animation: blink 0.8s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }
.lap-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 19px 0 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.lap-kpis > div {
  padding: 0 9px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px;
}
.lap-kpis > div:first-child { padding-left: 0; }
.lap-kpis > div:last-child { border-right: 0; }
.lap-kpis span {
  flex-basis: 100%;
  font-family: var(--mono);
  font-size: 5.5px;
  letter-spacing: 0.09em;
  color: var(--dim);
  margin-bottom: 3px;
}
.lap-kpis b {
  font-family: var(--display);
  font-size: 22px;
  line-height: 0.9;
  font-weight: 600;
}
.lap-kpis small { font-family: var(--mono); font-size: 6px; color: var(--dim); }
.telemetry-wrap {
  position: relative;
  flex: 1;
  min-height: 245px;
}
.telemetry-wrap canvas { width: 100%; height: 100%; min-height: 245px; }
.telemetry-tip {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  background: rgba(5, 7, 9, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 7px 8px;
  font-family: var(--mono);
  font-size: 6.5px;
  line-height: 1.6;
  color: var(--muted);
  min-width: 100px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}
.telemetry-tip b { color: var(--text); font-weight: 500; }
.telemetry-tip .tt-speed { font-family: var(--display); font-size: 18px; color: var(--text); line-height: 1; }
.telemetry-foot {
  border-top: 1px solid var(--line);
  padding-top: 9px;
  margin-top: 4px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.telemetry-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 5.5px;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.telemetry-legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend-speed { background: var(--team); }
.legend-throttle { background: var(--accent); }
.legend-brake { background: var(--red); }
.legend-active { background: var(--cyan); }
.energy-block { width: 200px; max-width: 45%; flex: 0 0 auto; }
.energy-block > span {
  display: block;
  font-family: var(--mono);
  font-size: 5.5px;
  letter-spacing: 0.06em;
  color: var(--dim);
  text-align: right;
  margin-bottom: 5px;
  white-space: nowrap;
}
.energy-block b { color: var(--text); font-weight: 500; }
.energy-track {
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.energy-track span {
  display: block;
  height: 100%;
  width: 80%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.3s ease;
}
.lap-summary {
  font-size: 9px;
  line-height: 1.55;
  color: var(--dim);
  margin-top: 9px;
  padding-right: 8px;
}
.lap-live-status {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* =========================================================
   Compare
   ========================================================= */

.compare-shell {
  padding: 18px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--accent-rgb), 0.035), transparent 55%),
    var(--panel);
}
.compare-controls {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.compare-picker {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px 10px;
  align-items: baseline;
}
.picker-year {
  grid-row: span 2;
  font-family: var(--display);
  font-size: 35px;
  line-height: 0.85;
  font-weight: 600;
  color: var(--team);
}
.picker-2026 .picker-year { color: var(--cyan); }
.compare-picker label {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.compare-picker select {
  appearance: none;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  padding: 5px 20px 6px 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  border-radius: 0;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23909aa4' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}
.compare-picker select:focus { border-color: var(--accent); outline: none; }
.compare-picker select option { background: #0d1014; color: var(--text); }
.compare-divider {
  width: 34px;
  align-self: center;
  display: grid;
  place-items: center;
  padding-top: 14px;
}
.compare-divider span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
}
.swap-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  flex: 0 0 auto;
  transition: color 0.2s, border-color 0.2s;
}
.swap-button svg { width: 16px; height: 16px; }
.swap-button:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.35); }
.swap-button.is-pulsing { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08); }

.duel-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px minmax(0, 1fr);
  align-items: stretch;
  margin-top: 16px;
}
.duel-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 15px 16px 13px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.035), transparent 55%);
  overflow: hidden;
}
.duel-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--a-color, var(--accent));
}
.duel-b::before { background: var(--b-color, var(--cyan)); }
.duel-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
}
.year-tag {
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 2px 5px;
  font-size: 6.5px;
  color: var(--a-color, var(--accent));
}
.year-tag-26 { color: var(--b-color, var(--cyan)); }
.duel-card h3 {
  font-family: var(--display);
  font-size: 31px;
  font-weight: 600;
  line-height: 1;
  margin-top: 10px;
  letter-spacing: 0.01em;
}
.duel-time {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 7px;
}
.duel-time b {
  font-family: var(--display);
  font-size: 42px;
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.duel-time span {
  font-family: var(--mono);
  font-size: 6px;
  color: var(--dim);
}
.duel-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}
.duel-card-stats div { display: flex; flex-direction: column; gap: 2px; }
.duel-card-stats span {
  font-family: var(--mono);
  font-size: 5.5px;
  letter-spacing: 0.07em;
  color: var(--dim);
}
.duel-card-stats b {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.duel-centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  position: relative;
}
.duel-centre-label {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.14em;
  color: var(--dim);
}
.duel-centre b {
  font-family: var(--display);
  font-size: 47px;
  line-height: 0.9;
  font-weight: 500;
  margin-top: 7px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.duel-centre > span:last-of-type {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-top: 5px;
}
.duel-axis {
  display: flex;
  gap: 3px;
  align-items: center;
  margin-top: 12px;
}
.duel-axis i {
  display: block;
  width: 17px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
}
.duel-axis i:nth-child(2) { background: var(--accent); width: 25px; }
.duel-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 16px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.duel-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 5.8px;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-bottom: 5px;
}
.duel-chart-wrap canvas { width: 100%; height: 275px; }
.duel-legend {
  display: flex;
  gap: 18px;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 6px;
  color: var(--dim);
  letter-spacing: 0.05em;
}
.duel-legend span { display: inline-flex; align-items: center; gap: 5px; }
.duel-legend i {
  display: inline-block;
  width: 15px;
  height: 2px;
}
.duel-legend-a i { background: var(--a-color, var(--accent)); }
.duel-legend-b i { background: var(--b-color, var(--cyan)); }
.duel-legend b { color: var(--text); font-weight: 500; }
.duel-side { display: flex; flex-direction: column; min-width: 0; }
.sector-table {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sector-row {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr 0.8fr;
  gap: 5px;
  align-items: baseline;
  padding: 7px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sector-row:last-child { border-bottom: 0; }
.sector-row.head {
  font-size: 5.5px;
  letter-spacing: 0.09em;
  color: var(--dim);
  padding-top: 0;
}
.sector-row span:first-child { color: var(--text); }
.sector-row .best { color: var(--accent); }
.sector-row .slower { color: var(--red); }
.duel-narrative {
  font-size: 9.5px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 13px;
  border-left: 1px solid rgba(var(--accent-rgb), 0.4);
  padding-left: 10px;
}
.duel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}
.duel-foot > span {
  font-family: var(--mono);
  font-size: 5.2px;
  letter-spacing: 0.06em;
  color: #68737e;
  line-height: 1.5;
}

/* =========================================================
   Method / reg cards
   ========================================================= */

.method-section { padding-bottom: 50px; }
.method-heading { margin-bottom: 26px; }
.reg-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-bottom: 50px;
}
.reg-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 21px;
  background: var(--panel);
  overflow: hidden;
}
.reg-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 95% 0%, rgba(var(--team-rgb), 0.08), transparent 48%);
  pointer-events: none;
}
.reg-2026::before { background: radial-gradient(ellipse at 95% 0%, rgba(116, 231, 255, 0.08), transparent 48%); }
.reg-card header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 12px;
}
.reg-card header > span {
  font-family: var(--display);
  font-size: 42px;
  line-height: 0.8;
  font-weight: 600;
  color: var(--team);
}
.reg-2026 header > span { color: var(--cyan); }
.reg-card h3 {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}
.reg-card header small {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 5.5px;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.reg-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}
.reg-card dl > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.reg-card dt {
  font-family: var(--mono);
  font-size: 5.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.reg-card dd {
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
}

.method-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 38px;
  padding-top: 31px;
  border-top: 1px solid var(--line);
}
.method-title h3 {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 600;
  line-height: 0.95;
  text-transform: uppercase;
  margin-top: 2px;
}
.method-title p {
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--dim);
  margin-top: 16px;
  max-width: 260px;
}
.method-line {
  width: 54px;
  height: 1px;
  background: var(--accent);
  margin-top: 18px;
}
.method-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}
.method-columns h4 {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 11px;
}
.method-columns h4:nth-of-type(2) { color: var(--muted); }
.method-columns li {
  position: relative;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--muted);
  padding: 0 0 8px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 8px;
}
.method-columns li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.method-columns > div:last-child li::before { background: #68737e; }
.method-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}
.method-chips span {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 7px;
  background: rgba(255, 255, 255, 0.02);
}
.sources {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.sources > span {
  font-family: var(--mono);
  font-size: 5.8px;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-bottom: 2px;
}
.sources a {
  font-size: 9px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.18);
  text-underline-offset: 3px;
  transition: color 0.2s;
  width: fit-content;
}
.sources a:hover { color: var(--accent); }
.method-disclaimer {
  margin-top: 22px;
  font-size: 8.5px;
  line-height: 1.65;
  color: #6b7682;
  max-width: 760px;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--pad) 42px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.footer-brand svg { width: 20px; height: 20px; }
.footer-brand span span { color: var(--accent); }
.site-footer p {
  font-size: 8.5px;
  color: var(--dim);
}
.footer-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.noscript {
  position: fixed;
  inset: auto 20px 20px;
  background: var(--red);
  color: #fff;
  padding: 14px;
  border-radius: 8px;
  z-index: 1000;
}

/* =========================================================
   Readability pass — keep technical labels legible at 1080p
   ========================================================= */

.spec-strip-inner { font-size: 9px; }
.section-kicker { font-size: 9px; }
.eyebrow { font-size: 9px; }
.metric-label { font-size: 7.5px; }
.metric-label em { font-size: 6.5px; }
.metric-foot { font-size: 7.5px; }
.stage-readout span { font-size: 7.5px; }
.stage-readout small { font-size: 8px; }
.stage-state, .live-label { font-size: 8px; }
.card-kicker { font-size: 8px; }
.chart-legend { font-size: 7.5px; }
.chart-footer span { font-size: 7.5px; }
.chart-footer strong { font-size: 9.5px; }
.chart-footer p { font-size: 9px; }
.ride-readout span { font-size: 7.2px; }
.ride-readout b { font-size: 21px; }
.insight-stats span { font-size: 7.2px; }
.insight-copy { font-size: 28px; }
.control-head label { font-size: 8px; }
.control-help { font-size: 10.5px; }
.range-meta { font-size: 6.7px; }
.balance-top span { font-size: 7px; }
.balance-ends { font-size: 6.6px; }
.balance-card > p { font-size: 10px; }
.balance-scale { font-size: 6.4px; }
.spec-mini span { font-size: 6.8px; }
.spec-mini b { font-size: 10.5px; }
.concept-note { font-size: 9px; }
.garage-season { font-size: 8.5px; }
.garage-note { font-size: 7.5px; }
.car-option-text span { font-size: 8px; }
.car-option-tag { font-size: 7.5px; }
.garage-footer span { font-size: 7.5px; }
.garage-pu { font-size: 7px !important; }
.map-weather { font-size: 7px; }
.map-meta span { font-size: 6.8px; }
.map-meta b { font-size: 10.5px; }
.map-blurb { font-size: 10px; }
.track-tab-top { font-size: 7px; }
.track-tab-meta { font-size: 6.4px; }
.map-hud small, .hud-live, .hud-mode { font-size: 6.5px; }
.map-start-label { font-size: 6.5px; }
.lap-kpis span { font-size: 6.8px; }
.lap-kpis small { font-size: 7px; }
.lap-sub { font-size: 7.5px; }
.lap-summary { font-size: 10.5px; color: #68737e; }
.telemetry-legend { font-size: 6.8px; }
.energy-block > span { font-size: 6.8px; }
.duel-card-stats span { font-size: 7.4px; }
.duel-card-stats b { font-size: 10.5px; }
.sector-row { font-size: 9.5px; }
.sector-row.head { font-size: 7.2px; }
.duel-narrative { font-size: 11px; color: #8b96a1; }
.duel-foot > span { font-size: 6.5px; }
.reg-card dt { font-size: 6.8px; }
.reg-card dd { font-size: 11px; }
.reg-card header small { font-size: 6.8px; }
.method-columns h4 { font-size: 7.5px; }
.method-columns li { font-size: 11px; }
.method-title p { font-size: 11px; }
.sources a { font-size: 10px; }
.sources > span { font-size: 6.8px; }
.method-disclaimer { font-size: 9.5px; }
.site-footer p { font-size: 9px; }
.footer-links { font-size: 7px; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1440px) {
  .hero { grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; }
  .hero-year { font-size: 88px; }
  .cockpit { grid-template-columns: 266px minmax(0, 1fr) 318px; }
  .garage-list { max-height: 490px; }
  .stage-readout { gap: 13px; padding: 9px 11px; }
  .stage-readout b { font-size: 18px; }
  .readout-main b { font-size: 24px; }
  .hotspot-front { right: 5%; }
}

@media (max-width: 1240px) {
  :root { --pad: 20px; }
  .main-nav { gap: 17px; }
  .sim-badge { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) 300px; }
  .hero-year { font-size: 72px; }
  .hero h1 { font-size: clamp(64px, 8.4vw, 104px); }
  .cockpit { grid-template-columns: 246px minmax(0, 1fr) 300px; gap: 9px; }
  .setup-panel { padding: 16px 14px; }
  .stage { min-height: 520px; max-height: 640px; }
  .stage-car { bottom: 19%; }
  .stage-readout { max-width: calc(100% - 40px); }
  .stage-readout span { font-size: 5.8px; }
  .metric { padding: 10px; }
  .metric strong { font-size: 26px; }
  .metric-label { font-size: 5.8px; }
  .metric-label em { display: none; }
  .aero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.85fr); }
  .lap-grid { grid-template-columns: minmax(330px, 0.75fr) minmax(0, 1.25fr); }
  .duel-body { grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.8fr); }
  .insight-copy { font-size: 24px; }
}

@media (max-width: 1080px) {
  .topbar { gap: 18px; grid-template-columns: auto 1fr; }
  .main-nav { display: none; }
  .topbar-tools { grid-column: 2; }
  .hero { padding-top: 56px; padding-bottom: 42px; }
  .hero-graphic { display: none; }
  .cockpit { grid-template-columns: 236px minmax(0, 1fr); }
  .setup-panel { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; }
  .setup-panel .panel-heading,
  .setup-panel .trim-preset { grid-column: 1 / -1; }
  .setup-panel .control-group { margin-bottom: 15px; }
  .setup-panel .balance-block { margin-top: 0; }
  .setup-panel .switch-row { align-self: start; margin-top: 0; }
  .setup-panel .platform-block { align-self: start; margin-top: 0; }
  .setup-panel .spec-mini { align-self: start; }
  .setup-panel .concept-note { grid-column: 1 / -1; }
  .stage { min-height: 500px; max-height: 620px; }
  .flow-tag { display: none; }
  .garage-list { max-height: 465px; }
  .aero-grid { grid-template-columns: 1fr; }
  .force-card { grid-row: auto; min-height: 480px; }
  .ride-card, .balance-card { min-height: 0; }
  .insight-card { grid-template-columns: 1fr auto; }
  .insight-stats { grid-column: 2; grid-row: 1 / span 2; }
  .insight-signature { display: none; }
  .lap-grid { grid-template-columns: 1fr; }
  .map-wrap { min-height: 380px; }
  .map-wrap canvas { min-height: 380px; }
  .section-heading { grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); }
  .section-index { display: none; }
  .track-tabs { overflow-x: auto; padding-bottom: 4px; grid-template-columns: repeat(6, minmax(150px, 1fr)); scrollbar-width: none; }
  .track-tabs::-webkit-scrollbar { display: none; }
  .duel-top { grid-template-columns: 1fr 130px 1fr; }
  .duel-centre b { font-size: 38px; }
  .duel-body { grid-template-columns: 1fr; }
  .duel-side { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .sector-table { border-top: 0; }
  .duel-foot { grid-column: 1 / -1; }
  .method-grid { grid-template-columns: 1fr; gap: 24px; }
  .method-title p { max-width: 460px; }
}

@media (max-width: 860px) {
  :root { --pad: 14px; --radius: 14px; }
  .topbar { height: 58px; gap: 8px; padding: 0 14px; }
  .brand-mark { width: 22px; height: 22px; }
  .brand-type { font-size: 20px; }
  .brand-sub, .icon-button { display: none; }
  .season-switch button { min-width: 0; padding: 5px 8px; }
  .season-switch button b { font-size: 16px; }
  .season-switch button span { display: none; }
  .spec-strip-inner { padding: 0 14px; min-height: 31px; }
  .spec-strip-inner > span { padding: 0 10px; font-size: 7px; }
  .strip-aero { display: none !important; }
  .strip-air { margin-left: 0; }
  .hero { display: block; padding: 45px 14px 30px; }
  .hero h1 { font-size: clamp(56px, 17vw, 86px); line-height: 0.81; }
  .hero-lede { max-width: none; font-size: 12.5px; margin-top: 20px; padding-left: 12px; }
  .hero-meta { gap: 18px; margin-top: 28px; flex-wrap: wrap; }
  .hero-meta b { font-size: 23px; }
  .hero-meta span { font-size: 6.5px; }
  .eyebrow { font-size: 7px; margin-bottom: 17px; }
  .cockpit { display: flex; flex-direction: column; gap: 9px; padding: 0 14px 22px; }
  .garage-panel { width: 100%; padding: 14px 12px 0; }
  .garage-list { display: flex; max-height: none; overflow-x: auto; gap: 5px; margin: 0 -12px; padding: 0 12px 10px; }
  .car-option { min-width: 158px; padding: 8px 7px; grid-template-columns: 17px 7px minmax(0, 1fr); }
  .car-option + .car-option { margin-top: 0; }
  .car-option-tag { display: none; }
  .garage-footer { display: none; }
  .garage-season { margin: 12px 0 8px; }
  .stage-column { width: 100%; }
  .stage { aspect-ratio: auto; min-height: 340px; max-height: 380px; }
  .stage-top { top: 12px; left: 13px; right: 13px; }
  .stage-state { font-size: 6px; padding: 4px 5px; }
  .stage-readout { top: 44px; left: 13px; right: 13px; max-width: none; padding: 8px 9px; gap: 10px; }
  .stage-readout b { font-size: 16px; }
  .readout-main b { font-size: 20px; }
  .stage-readout > div { gap: 2px; }
  .stage-readout small { font-size: 5.5px; }
  .stage-readout .readout-side:nth-last-child(1) { display: none; }
  .readout-side { padding-right: 0; }
  .readout-main { padding-right: 10px; }
  .stage-car { left: 0; right: 0; bottom: 38%; }
  .stage-watermark { font-size: 140px; top: 92px; right: 10px; }
  .hotspot { display: none; }
  .stage-bottom { left: 12px; right: 12px; bottom: 11px; padding: 9px 10px; gap: 9px; flex-direction: column; align-items: stretch; }
  .speed-control { max-width: none; }
  .aero-state { align-self: flex-end; }
  .aero-state button { padding: 6px 9px; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric { padding: 9px 10px; }
  .metric strong { font-size: 24px; }
  .setup-panel { display: block; padding: 14px 13px; }
  .setup-panel .panel-heading { margin-bottom: 0; }
  .trim-preset { margin-bottom: 14px; }
  .balance-block { margin-top: 14px; }
  .section { padding: 64px 14px 20px; }
  .aero-section { padding-top: 58px; }
  .section-heading { grid-template-columns: 1fr; gap: 15px; margin-bottom: 22px; padding-top: 14px; }
  .section-heading h2 { font-size: clamp(35px, 11vw, 48px); }
  .section-heading > p { font-size: 11px; max-width: none; }
  .section-kicker { margin-bottom: 10px; }
  .force-card { min-height: 420px; padding: 14px 12px 12px; }
  .force-chart-wrap, .force-chart-wrap canvas { min-height: 270px; }
  .chart-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
  .chart-footer p { text-align: left; max-width: none; }
  .chart-footer > div { gap: 10px; }
  .chart-legend { gap: 8px; }
  .ride-card, .balance-card, .insight-card { padding: 14px 13px; }
  .insight-card { display: block; }
  .insight-copy { font-size: 22px; margin-top: 9px; }
  .insight-stats { padding: 13px 0 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 15px; gap: 16px; flex-wrap: wrap; }
  .insight-stats b { font-size: 18px; }
  .track-tabs { display: flex; gap: 5px; margin: 0 -14px 9px; padding: 0 14px 4px; }
  .track-tab { min-width: 126px; padding: 8px 9px; }
  .track-tab-name { font-size: 17px; }
  .map-card, .telemetry-card { padding: 13px 12px; }
  .map-header h3 { font-size: 22px; }
  .map-weather { display: none; }
  .map-wrap, .map-wrap canvas { min-height: 300px; }
  .map-meta { grid-template-columns: 1fr 1fr; }
  .lap-header { gap: 10px; }
  .lap-time-row > b { font-size: 48px; }
  .lap-kpis { grid-template-columns: repeat(3, 1fr); gap: 8px 0; }
  .lap-kpis > div { padding: 0 7px; }
  .lap-kpis > div:nth-child(3) { border-right: 0; }
  .lap-kpis > div:nth-child(4) { padding-left: 0; }
  .lap-kpis > div:last-child { display: none; }
  .telemetry-wrap, .telemetry-wrap canvas { min-height: 220px; }
  .telemetry-foot { flex-direction: column; align-items: stretch; gap: 9px; }
  .energy-block { width: 100%; max-width: none; }
  .energy-block > span { text-align: left; }
  .compare-shell { padding: 13px 12px; }
  .compare-controls { flex-wrap: wrap; align-items: flex-end; }
  .compare-picker { flex: 1 1 100%; }
  .compare-divider { display: none; }
  .compare-picker select { font-size: 10px; }
  .swap-button { display: none; }
  .duel-top { grid-template-columns: 1fr; gap: 7px; }
  .duel-centre { padding: 9px; order: 3; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .duel-centre b { font-size: 36px; margin-top: 3px; }
  .duel-centre-label { display: none; }
  .duel-axis { display: none; }
  .duel-side { display: block; }
  .duel-chart-wrap canvas { height: 220px; }
  .sector-table { border-top: 1px solid var(--line); }
  .duel-foot { margin-top: 12px; }
  .reg-compare { grid-template-columns: 1fr; margin-bottom: 34px; }
  .reg-card { padding: 15px 13px; }
  .reg-card header { gap: 8px; }
  .reg-card header small { flex-basis: 100%; margin-left: 0; }
  .reg-card dl { grid-template-columns: 1fr; }
  .method-grid { padding-top: 22px; }
  .method-columns { grid-template-columns: 1fr; gap: 22px; }
  .method-title h3 { font-size: 30px; }
  .method-section { padding-bottom: 28px; }
  .site-footer { padding: 22px 14px 32px; gap: 10px; }
  .footer-links { margin-left: 0; flex-basis: 100%; justify-content: space-between; }
  .site-footer p { flex-basis: 100%; }
}

@media (max-width: 390px) {
  .stage { min-height: 355px; }
  .stage-car { bottom: 42%; }
  .stage-readout b { font-size: 14px; }
  .readout-main b { font-size: 18px; }
  .metric strong { font-size: 21px; }
  .lap-time-row > b { font-size: 42px; }
}

/* Hong Kong Traditional Chinese typography.
   Barlow / Manrope carry Latin + numerals; CJK glyphs fall back to the system. */
html[lang="zh-Hant-HK"] body {
  line-height: 1.65;
}
html[lang="zh-Hant-HK"] .hero h1 {
  font-size: clamp(58px, 7.2vw, 112px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 800;
}
html[lang="zh-Hant-HK"] .hero h1 em {
  color: rgba(212, 255, 63, 0.08);
  -webkit-text-stroke: 1.4px rgba(212, 255, 63, 0.82);
}
html[lang="zh-Hant-HK"] .garage-list { max-height: 585px; }
html[lang="zh-Hant-HK"] .hero-lede {
  font-size: 14px;
  line-height: 1.85;
}
html[lang="zh-Hant-HK"] .section-heading h2 {
  font-size: clamp(34px, 3.7vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 700;
}
html[lang="zh-Hant-HK"] .method-title h3,
html[lang="zh-Hant-HK"] .insight-copy {
  line-height: 1.25;
  letter-spacing: 0;
}
html[lang="zh-Hant-HK"] .method-title h3 { font-size: 31px; }
html[lang="zh-Hant-HK"] .insight-copy { font-size: 25px; }
html[lang="zh-Hant-HK"] .main-nav a { font-size: 11px; letter-spacing: 0.04em; }
html[lang="zh-Hant-HK"] .season-switch button span { font-size: 8px; letter-spacing: 0.02em; }
html[lang="zh-Hant-HK"] .garage-season,
html[lang="zh-Hant-HK"] .garage-note,
html[lang="zh-Hant-HK"] .panel-count { letter-spacing: 0.05em; }
html[lang="zh-Hant-HK"] .car-option-text b { font-size: 12px; }
html[lang="zh-Hant-HK"] .car-option-text span { font-size: 8.5px; }
html[lang="zh-Hant-HK"] .control-head label,
html[lang="zh-Hant-HK"] .metric-label,
html[lang="zh-Hant-HK"] .card-kicker,
html[lang="zh-Hant-HK"] .section-kicker {
  letter-spacing: 0.06em;
}
html[lang="zh-Hant-HK"] .control-head label { font-size: 9px; }
html[lang="zh-Hant-HK"] .control-help { font-size: 11.5px; line-height: 1.6; }
html[lang="zh-Hant-HK"] .segmented button,
html[lang="zh-Hant-HK"] .aero-state button,
html[lang="zh-Hant-HK"] .run-button,
html[lang="zh-Hant-HK"] .text-button {
  font-size: 9px;
  letter-spacing: 0.04em;
}
html[lang="zh-Hant-HK"] .metric-label { font-size: 9px; }
html[lang="zh-Hant-HK"] .metric-foot { font-size: 8.5px; letter-spacing: 0.03em; }
html[lang="zh-Hant-HK"] .stage-readout span { font-size: 8.5px; }
html[lang="zh-Hant-HK"] .stage-state,
html[lang="zh-Hant-HK"] .live-label { font-size: 9px; }
html[lang="zh-Hant-HK"] .chart-legend { font-size: 8.5px; }
html[lang="zh-Hant-HK"] .chart-footer p { font-size: 10px; }
html[lang="zh-Hant-HK"] .track-tab-name { font-size: 21px; }
html[lang="zh-Hant-HK"] .track-tab-top { font-size: 7.5px; letter-spacing: 0.02em; }
html[lang="zh-Hant-HK"] .track-tab-meta { font-size: 7px; letter-spacing: 0.02em; }
html[lang="zh-Hant-HK"] .duel-card h3 { font-size: 33px; }
html[lang="zh-Hant-HK"] .sector-row { font-size: 10px; }
html[lang="zh-Hant-HK"] .sector-row.head { font-size: 7.5px; letter-spacing: 0.03em; }
html[lang="zh-Hant-HK"] .duel-narrative { font-size: 12px; line-height: 1.7; }
html[lang="zh-Hant-HK"] .method-columns li { font-size: 12px; line-height: 1.7; }
html[lang="zh-Hant-HK"] .reg-card dd { font-size: 12px; line-height: 1.5; }
html[lang="zh-Hant-HK"] .sources a { font-size: 11px; }
html[lang="zh-Hant-HK"] .spec-mini span { font-size: 8px; }
html[lang="zh-Hant-HK"] .spec-mini b { font-size: 11.5px; }
html[lang="zh-Hant-HK"] .map-meta span { font-size: 7.8px; }
html[lang="zh-Hant-HK"] .map-meta b { font-size: 11.5px; }
html[lang="zh-Hant-HK"] .lap-kpis span { font-size: 7.5px; }
html[lang="zh-Hant-HK"] .lap-summary { font-size: 11px; }
html[lang="zh-Hant-HK"] .energy-block > span { font-size: 8px; }
html[lang="zh-Hant-HK"] .method-disclaimer { font-size: 10.5px; line-height: 1.75; }
html[lang="zh-Hant-HK"] .footer-links { font-size: 8px; }

@media (max-width: 1080px) {
  html[lang="zh-Hant-HK"] .hero h1 { font-size: clamp(58px, 8vw, 92px); }
  html[lang="zh-Hant-HK"] .section-heading h2 { font-size: clamp(33px, 4.6vw, 48px); }
}
@media (max-width: 860px) {
  html[lang="zh-Hant-HK"] .hero h1 { font-size: clamp(48px, 14.5vw, 70px); line-height: 1.08; }
  html[lang="zh-Hant-HK"] .hero-lede { font-size: 13px; }
  html[lang="zh-Hant-HK"] .section-heading h2 { font-size: clamp(27px, 7.8vw, 36px); }
  html[lang="zh-Hant-HK"] .insight-copy { font-size: 22px; }
  html[lang="zh-Hant-HK"] .control-head label { font-size: 10px; }
  html[lang="zh-Hant-HK"] .control-help { font-size: 12px; }
  html[lang="zh-Hant-HK"] .main-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
