/* Race Engineer Pro — foglio di stile del sito */

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #0E1115;
  --bg-2: #12161B;
  --surface: #161B21;
  --surface-2: #1C2229;
  --line: #262D36;
  --line-2: #353E49;
  --text: #EEF1F4;
  --text-2: #C6CED6;
  --muted: #A0AAB5;
  --dim: #85909C;
  --accent: #FF6A1F;
  --accent-hi: #FF8A4C;
  --on-accent: #14100C;
  --purple: #B78BFF;
  --green: #46D98A;
  --yellow: #F2C94C;
  --qr-light: #EEF1F4;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--accent); }
a:hover { color: var(--accent-hi); }
strong { font-weight: 600; color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: var(--on-accent); }

/* ---------- Bottoni ---------- */
.btn { background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hi); color: var(--on-accent); }
.btn--ghost { border-color: var(--line-2); color: var(--text); font-weight: 500; }
.btn--ghost:hover { border-color: var(--muted); color: var(--text); }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn.is-pending { background: var(--surface-2); border-color: var(--line-2); color: var(--muted); cursor: default; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14, 17, 21, .92); border-bottom: 1px solid #1E242B; }
@supports (backdrop-filter: blur(10px)) { .site-header { background: rgba(14, 17, 21, .78); backdrop-filter: blur(10px) saturate(1.2); } }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--text); }
.brand svg { width: 34px; height: 34px; }
.brand-name { white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.brand-name span { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--text); }
.header-tools { display: flex; align-items: center; gap: 14px; }

.lang { display: flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.lang a { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 38px; font: 600 13px/1 var(--mono); color: var(--muted); text-decoration: none; letter-spacing: .04em; }
.lang a:hover { color: var(--text); }
.lang a[aria-current="page"] { background: var(--surface-2); color: var(--text); }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid #1B2026; background-color: var(--bg); background-image: linear-gradient(#161B21 1px, transparent 1px), linear-gradient(90deg, #161B21 1px, transparent 1px); background-size: 48px 48px; background-position: -1px -1px; }
.hero-track { position: absolute; right: -140px; top: 30px; width: 900px; opacity: .2; pointer-events: none; }
.hero-track path { fill: none; stroke: var(--accent); stroke-width: 3; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: center; padding-block: clamp(56px, 8vw, 96px) clamp(56px, 7vw, 88px); }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); font-size: 14px; color: var(--text-2); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: clamp(54px, 6.4vw, 92px); line-height: .9; letter-spacing: -.005em; }
.hero h1 span { color: var(--accent); }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { font-size: 14px; color: var(--dim); }
.hero-meta .ver { font-family: var(--mono); color: var(--text-2); margin-left: 6px; }

/* ---------- Dashboard illustrativa ---------- */
.dash-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dash { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, .5); }
.dash-bar { min-height: 48px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: #11151A; font: 400 12px/1 var(--mono); color: var(--muted); letter-spacing: .03em; }
.dash-bar b { color: var(--text); font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.dash-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.dash-laps { padding: 16px 18px; border-right: 1px solid var(--line); }
.laps { width: 100%; border-collapse: collapse; font: 400 13px/1 var(--mono); font-variant-numeric: tabular-nums; }
.laps th { text-align: left; font-weight: 400; font-size: 11px; color: var(--dim); padding: 8px 0; }
.laps td { padding: 9px 0; border-top: 1px solid #20262D; color: var(--text-2); }
.laps td:first-child { color: var(--dim); width: 44px; }
.laps .t { color: var(--text); }
.laps .pb { color: var(--green); }
.laps .best { color: var(--purple); }
.laps .t.best { font-weight: 600; }
.laps .now td { color: #5F6A76; }
.laps .now td:first-child, .laps .now .t { color: var(--accent); font-weight: 600; }
.legend { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; font: 400 11px/1.4 var(--mono); color: var(--dim); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.dash-side { display: flex; flex-direction: column; }
.dash-cell { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.dash-cell + .dash-cell { border-top: 1px solid var(--line); }
.cell-label { font: 400 11px/1.3 var(--mono); color: var(--dim); letter-spacing: .03em; }
.big { font: 600 32px/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.big small { font-size: 15px; color: var(--muted); font-weight: 400; }
.mid { font: 600 26px/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }
.cell-row { flex-wrap: wrap; display: flex; justify-content: space-between; gap: 8px; font: 400 12px/1.3 var(--mono); color: var(--muted); }
.spark { width: 100%; height: 56px; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.sample { font-size: 13px; color: var(--dim); }

/* ---------- Striscia ---------- */
.strip { background: var(--bg-2); border-bottom: 1px solid #1B2026; }
.strip-inner { padding-block: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap; }
.strip p { font-size: 17px; color: var(--text-2); max-width: 40em; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tags span { padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 8px; font: 400 13px/1.2 var(--mono); color: var(--text); }

/* ---------- Sezioni ---------- */
.section { padding-block: clamp(72px, 9vw, 120px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.kicker { display: block; font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.section-head > div { flex: 1 1 520px; }
.h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(40px, 5.2vw, 64px); line-height: .95; max-width: 13em; text-wrap: balance; }
.section-lead { flex: 0 1 360px; max-width: 24em; font-size: 17px; color: var(--muted); }

/* Funzioni */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.feature-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--surface-2); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.feature > div { display: flex; flex-direction: column; gap: 8px; }
.feature p { font-size: 16px; color: var(--muted); }

/* Modalità */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.tab { min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: 600 15px/1 var(--sans); cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.tab:hover { border-color: var(--muted); color: var(--text); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mode { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; background: var(--bg-2); border: 1px solid #20262D; border-radius: 18px; padding: clamp(24px, 4vw, 48px); }
.js .mode[hidden] { display: none; }
.no-js .mode + .mode { margin-top: 20px; }
.no-js .tabs { display: none; }
.mode-copy { display: flex; flex-direction: column; gap: 20px; }
.mode-copy h3 { text-wrap: balance; font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: clamp(32px, 3.6vw, 44px); line-height: 1; }
.mode-copy p { font-size: 17px; color: var(--muted); }
.checks { display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.screen { min-height: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 20px; min-width: 0; }
.chips { display: flex; gap: 8px; font: 600 12px/1 var(--mono); }
.chips span { padding: 7px 12px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text-2); }
.chips .on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chart { height: 210px; display: flex; align-items: flex-end; gap: 10px; border-bottom: 1px solid var(--line-2); }
.chart div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; font: 400 10px/1 var(--mono); color: var(--dim); }
.chart i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--line-2); }
.chart .best i { background: var(--purple); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 14px; border-radius: 10px; background: var(--surface-2); }
.stat b { display: block; margin-top: 6px; font: 600 20px/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.stat b small { font-size: 13px; color: var(--muted); font-weight: 400; }
.stat .best { color: var(--purple); }
.stages { width: 100%; border-collapse: collapse; font: 400 15px/1 var(--mono); font-variant-numeric: tabular-nums; }
.stages th { font-weight: 400; font-size: 11px; color: var(--dim); text-align: left; padding: 10px 4px; }
.stages td { padding: 14px 4px; border-top: 1px solid #20262D; }
.stages th:last-child, .stages td:last-child { text-align: right; }
.stages td:first-child { color: var(--accent); font-weight: 600; }
.stages .km { color: var(--text-2); }
.stages .gain { color: var(--green); }
.stages .loss { color: var(--accent-hi); }
.stages tfoot td { border-top: 2px solid var(--line-2); font-weight: 600; color: var(--text); padding-top: 16px; }
.stages tfoot td:last-child { color: var(--green); }
.fuel-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fuel-total .num { font-size: 44px; font-weight: 600; color: var(--accent); line-height: 1; }
.fuel-total .num small { font-size: 18px; color: var(--muted); font-weight: 400; }
.fuel-bar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; gap: 3px; }
.fuel-bar i:first-child { background: var(--accent); }
.fuel-bar i:last-child { background: var(--yellow); }
.qr-box { display: flex; gap: 28px; align-items: center; }
.qr-frame { background: var(--qr-light); padding: 14px; border-radius: 10px; flex-shrink: 0; }
.qr-frame canvas { width: 222px; height: 222px; image-rendering: pixelated; }
.qr-info { display: flex; flex-direction: column; gap: 14px; flex: 1; min-width: 0; }
.qr-count { white-space: nowrap; font: 600 28px/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.qr-count span { color: var(--dim); }
.segs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.segs i { height: 8px; border-radius: 2px; background: var(--line-2); transition: background-color .2s ease; }
.segs i.on { background: var(--accent); }
.qr-note { font-size: 14px; color: var(--muted); }
.mode-note { margin-top: 14px; }

/* Come funziona */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--line); }
.step { padding: 32px 36px 0; display: flex; flex-direction: column; gap: 12px; }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step + .step { border-left: 1px solid var(--line); }
.step-n { font-family: var(--display); font-weight: 700; font-style: italic; font-size: 88px; line-height: .9; color: var(--accent); }
.step h3 { font-size: 22px; font-weight: 600; }
.step p { color: var(--muted); }

/* Specifiche */
.specs { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; }
.specs-intro { display: flex; flex-direction: column; gap: 20px; }
.specs-intro p { font-size: 17px; color: var(--muted); max-width: 30em; }
.spec-list > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.spec-list > div:last-child { border-bottom: 1px solid var(--line); }
.spec-list dt { font-size: 15px; color: var(--dim); }
.spec-list dd { font-size: 17px; }

/* Download */
.download { padding-bottom: clamp(72px, 9vw, 120px); }
.dl-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; gap: 40px; }
.dl-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--accent); }
.dl-card h2 { font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: clamp(40px, 6vw, 80px); line-height: .92; }
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dl-opt { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.dl-opt .cell-label { font-size: 13px; }
.dl-opt h3 { font-size: 26px; font-weight: 600; line-height: 1.2; }
.dl-opt p { color: var(--muted); flex: 1; }
.dl-opt .btn { margin-top: 6px; }
.contact { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid #1B2026; background: #0B0D10; }
.footer-inner { padding-block: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; font-size: 14px; color: var(--dim); }
.footer-inner .brand-name { font-size: 20px; color: var(--text); }
.footer-meta { display: flex; flex-direction: column; gap: 4px; }
.footer-links { display: flex; align-items: center; gap: 20px; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* Suggerimento lingua */
.lang-hint { position: fixed; z-index: 60; right: 20px; bottom: 20px; max-width: 360px; padding: 18px 20px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: 14px; }
.lang-hint[hidden] { display: none; }
.lang-hint p { font-size: 15px; color: var(--text); }
.lang-hint-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lang-hint .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-track { width: 700px; right: -220px; }
  .mode { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .specs { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px rgba(0, 0, 0, .5); }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid #1E242B; }
  .steps { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 2px solid var(--line); }
  .step, .step:first-child, .step:last-child { padding: 0 0 28px 24px; }
  .step + .step { border-left: 0; }
  .step-n { font-size: 56px; }
  .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .spec-list > div { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .header-inner { gap: 12px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 19px; }
  .brand svg { width: 28px; height: 28px; }
  .header-tools { gap: 10px; }
  .lang a { min-width: 40px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature { padding: 22px; flex-direction: row; gap: 16px; align-items: flex-start; }
  .feature-icon { flex-shrink: 0; margin: 0; }
  .feature > div { display: flex; flex-direction: column; gap: 6px; }
  .feature h3 { font-size: 18px; }
  .cta-row .btn { flex: 1 1 100%; }
  .dash-body { grid-template-columns: minmax(0, 1fr); }
  .dash-laps { border-right: 0; border-bottom: 1px solid var(--line); }
  .laps .s2, .laps .s3 { display: none; }
  .dash-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-cell + .dash-cell { border-top: 0; }
  .dash-cell:nth-child(2) { border-left: 1px solid var(--line); }
  .dash-cell:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .big { font-size: 26px; }
  .mid { font-size: 22px; }
  .screen { padding: 18px; min-height: 0; }
  .chart { height: 160px; gap: 6px; }
  .stats { gap: 8px; }
  .stat { padding: 12px 10px; }
  .stat b { font-size: 16px; }
  .qr-box { flex-direction: column; align-items: stretch; }
  .qr-frame { align-self: center; }
  .stages { font-size: 14px; }
  .lang-hint { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 640px) {
  .dl-card { gap: 28px; }
  .dl-opt { padding: 22px; }
  .dl-opt h3 { font-size: 22px; }
}
.lead, .section-lead, .mode-copy p, .specs-intro p { text-wrap: pretty; }
