/* MotorLedger home, the data sections (home-parts.js, home-play.js). Content layer: solid tiles, hairlines, ink marks;
   green only for BUY and ACCUMULATE; glass stays on the nav and over photographs. Motion is transform and opacity only. */

.smp { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2);
  font: 600 12px/1 var(--font); color: var(--ink-2); white-space: nowrap; vertical-align: middle; cursor: pointer; }
.smp.rcpt { position: relative; text-decoration: none; }
/* a finger's worth of room around the small tag, without moving it */
@media (pointer: coarse) { .smp.rcpt::after { content: ''; position: absolute; inset: -10px -6px; } }
.t-label .smp { height: 20px; padding: 0 8px; font-size: 11px; }

/* verdict colours as data: one token per band, used by dots, swatches and the ruler */
[data-b="BUY"] { --bc: var(--pos); }
[data-b="ACCUMULATE"] { --bc: color-mix(in srgb, var(--pos) 52%, var(--bg)); }
[data-b="HOLD"] { --bc: color-mix(in srgb, var(--ink) 54%, var(--bg)); }
[data-b="WATCH"] { --bc: color-mix(in srgb, var(--ink) 36%, var(--bg)); }
[data-b="AVOID"] { --bc: color-mix(in srgb, var(--ink) 22%, var(--bg)); }

/* ---------- Spotlight ---------- */
.spot-frame { touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.spot-frame.dragging { cursor: grabbing; }
.spot-frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.spot-track { display: flex; height: 100%; }
.spot-slide { flex: 0 0 100%; height: 100%; margin: 0; overflow: hidden; }
/* the chip and controls ride an overlay the size of the slide on show (the whole frame, unless the gallery narrows it) */
.spot-ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.spot-ui > * { pointer-events: auto; }

/* ---------- Hero directions (html[data-hero], picked on the board) ----------
   The photo never grows past what its source holds (--stage-max), and the height still fits the first screen; the
   width around it carries real content instead of margin. */
/* the hero's room (Ali, 2026-10-21: "the entire hero is feeling a bit cramped now. lets give everything some room to
   breathe and also make the showcase images a little bit smaller"). Before: photo up to 1120 px, 16 px under the nav,
   14 px to the strip, and on a 1536 x 700 window the strip ended 4 px below the fold. Now the photo stops at 1000 px and,
   on a short window, leaves the nav gap, the strip and 56 px of air in the first screen (the 104 = 48 strip + 56). */
:root { --stage-max: 1000px; --hero-top: 32px; --foot-gap: 20px; --chip-in: 24px; --title-gap: 72px; --find-gap: 40px;
  --fit-w: max(480px, calc((100svh - var(--nav-top) - var(--nav-h) - var(--hero-top) - var(--foot-gap) - 104px) * 1.7)); }
@media (max-width: 720px) { :root { --hero-top: 16px; --foot-gap: 16px; --chip-in: 12px; --title-gap: 40px; --find-gap: 32px; } }

/* GALLERY: the track runs edge to edge; the car on show sits in the middle and its neighbours show at both edges, a
   step back. A tap on a neighbour brings it in; a swipe moves them all. */
[data-hero="gallery"] .stage.spot { width: 100%; margin-top: calc(var(--nav-top) + var(--nav-h) + var(--hero-top)); }
[data-hero="gallery"] .spot { --S: min(var(--stage-max), calc(100vw - 2 * var(--gutter) - 128px), var(--fit-w)); }
[data-hero="gallery"] .spot-frame { aspect-ratio: auto; height: calc(var(--S) / 1.7); border-radius: 0; overflow: hidden; background: none; isolation: auto; }
[data-hero="gallery"] .spot-track { gap: 32px; }
[data-hero="gallery"] .spot-chip { left: var(--chip-in); bottom: var(--chip-in); max-width: calc(100% - 2 * var(--chip-in)); }
[data-hero="gallery"] .home-title { margin-top: var(--title-gap); }
[data-hero="gallery"] .home-find { margin-top: var(--find-gap); }
[data-hero="gallery"] .spot-slide { flex: 0 0 var(--S); border-radius: var(--r-stage); background-color: var(--bg-3); transform-origin: 50% 50%;
  transition: transform 720ms var(--ease-spring-0), opacity 520ms ease-out; }
/* a neighbour steps back by size alone: dimmed, the red F40 read as pink on white (a bright ground reads bright) */
[data-hero="gallery"] .spot-slide:not(.on) { transform: scale(.9); cursor: pointer; }
[data-hero="gallery"] .spot-ui { left: 50%; right: auto; width: var(--S); translate: -50% 0; }
@media (max-width: 720px) {
  [data-hero="gallery"] .spot { --S: calc(100vw - 64px); }
  [data-hero="gallery"] .spot-track { gap: 10px; }
  [data-hero="gallery"] .spot-slide { border-radius: var(--r-stage); }
}

/* SPLIT: the title and the search beside the stage, the pair as wide as the nav island */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) min(calc(100% - 400px - 40px), var(--fit-w), var(--stage-max)); gap: 40px; align-items: center;
  width: min(var(--wrap), calc(100vw - 2 * var(--gutter))); margin: calc(var(--nav-top) + var(--nav-h) + 16px) auto 0; }
.hero-split .stage { width: 100%; margin: 0; }
.hero-split .hs-text { display: block; margin-top: 0; }
.hero-split .hs-text h1 { font-size: clamp(38px, 3.3vw, 52px); max-width: 14ch; }
.hero-split .hs-text p { margin-top: 16px; font-size: 17px; }
.hero-split .home-find { margin-top: 28px; }
.hero-split .bigsearch { width: 100%; height: 56px; font-size: 16px; }
.hero-split .stage-cap > span { flex-direction: column; gap: 2px; }
@media (max-width: 1100px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); gap: 0; width: 100%; margin-top: 0; }
  .hero-split .stage { order: -1; width: min(var(--stage-max), calc(100vw - 2 * var(--gutter)), var(--fit-w)); margin: calc(var(--nav-top) + var(--nav-h) + 16px) auto 0; }
  .hero-split .hs-text { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 32px auto 0; padding-inline: var(--gutter); }
  .hero-split .hs-text h1 { font: var(--t-display); letter-spacing: var(--tr-display); }
  .hero-split .stage-cap > span { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; }
}
@media (max-width: 720px) { .hero-split .stage { width: calc(100vw - 16px); margin-top: calc(var(--nav-top) + var(--nav-h) + 10px); } }

/* INDEX: the stage beside a list of the seven spotlight cars, the pair as wide as the nav island; the row on show is
   ringed by a hairline and follows every swipe */
.hero-index { display: grid; grid-template-columns: min(calc(100% - 300px - 20px), var(--fit-w), var(--stage-max)) minmax(0, 1fr); gap: 20px; align-items: start;
  width: min(var(--wrap), calc(100vw - 2 * var(--gutter))); margin: calc(var(--nav-top) + var(--nav-h) + 16px) auto 0; }
.hero-index .stage { width: 100%; margin: 0; }
.spot-index { display: grid; grid-auto-rows: 1fr; gap: 4px; margin: 0; padding: 0; list-style: none; aspect-ratio: auto; }
.spot-index button { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; height: 100%; padding: 6px; border: 0; border-radius: 14px;
  background: none; color: var(--ink); text-align: left; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 200ms ease-out, background-color 200ms ease-out; }
.spot-index button[aria-current] { box-shadow: inset 0 0 0 1px var(--line-2); }
@media (hover: hover) and (pointer: fine) { .spot-index button:not([aria-current]):hover { background: var(--bg-2); } }
.spot-index img { width: 76px; height: 50px; border-radius: 9px; object-fit: cover; }
.si-t { display: grid; gap: 4px; min-width: 0; }
.si-t b { overflow: hidden; font: 600 14px/1.25 var(--font); letter-spacing: -0.008em; text-overflow: ellipsis; white-space: nowrap; }
.si-t > span { display: flex; align-items: center; gap: 8px; min-width: 0; font: 500 12px/1 var(--font); color: var(--ink-2); white-space: nowrap; }
.si-t .tnum { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) {
  .hero-index { grid-template-columns: minmax(0, 1fr); width: 100%; margin-top: 0; }
  .hero-index .stage { width: min(var(--stage-max), calc(100vw - 2 * var(--gutter)), var(--fit-w)); margin: calc(var(--nav-top) + var(--nav-h) + 16px) auto 0; }
  .spot-index { display: none; }
}
@media (max-width: 720px) { .hero-index .stage { width: calc(100vw - 16px); margin-top: calc(var(--nav-top) + var(--nav-h) + 10px); } }
.spot-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; pointer-events: none; }
/* the spotlight chip says more than a car page's chip ("name · verdict score"), so it covers more of each photo; a deeper
   dim keeps its white text at 4.5:1 on every slide (measured by tests/photosweep.sh: the GT3 RS slide needs 0.52) */
.glass.photo.spot-chip { background: rgb(14 15 18 / .6); }
[data-glass="full"] .glass.photo.spot-chip { background: rgb(14 15 18 / .55); }
[data-glass="lite"] .glass.photo.spot-chip { background: rgb(14 15 18 / .58); }
/* the chip names the car on show and opens it; the arrow says so, and leans forward under a mouse */
.spot-chip { display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 40px); padding-right: 10px; color: #fff; text-decoration: none;
  transition: transform var(--d-press-out) var(--ease-spring-15); }
.spot-chip .sc-t { overflow: hidden; line-height: 36px; text-overflow: ellipsis; white-space: nowrap; }
.spot-chip svg { flex: none; width: 16px; height: 16px; transition: transform 260ms var(--ease-spring-15); }
.spot-chip:active { transform: scale(.97); transition-duration: var(--d-press-in); }
@media (hover: hover) and (pointer: fine) { .spot-chip:hover svg { transform: translateX(2px); } }
.spot-chip .ct-s { display: none; }
@media (max-width: 720px) {
  .spot-chip { max-width: calc(100% - 24px); } .spot-chip .sc-t { line-height: 32px; }
  .spot-chip .ct-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .spot-chip .ct-s { display: inline; }
}

/* ---------- Spotlight navigation ----------
   Nothing sits on the car but its name. The arrows ride the neighbouring cars (the place a hand reaches for "the next
   one"), name where they go, and grow when that car is pointed at; position and the clock sit under the photo. Every
   control: 40 px or larger, a hover only for a mouse, a press, a keyboard ring. */
.spot-pad { position: absolute; z-index: 3; top: calc(var(--fh, 60vh) / 2); left: 20px; translate: 0 -50%; display: grid; place-items: center; width: 56px; height: 56px;
  padding: 0; border: 0; border-radius: 50%; color: #fff; cursor: pointer; transition: transform 320ms var(--ease-spring-15), background-color 200ms ease-out; }
.spot-pad.next { left: auto; right: 20px; }
/* a neutral glass: the photo glass saturates what lies behind it, and over grass an arrow turned olive */
.glass.photo.spot-pad { background: rgb(14 15 18 / .62); }
[data-glass="full"] .glass.photo.spot-pad { background: rgb(14 15 18 / .6); -webkit-backdrop-filter: blur(14px) saturate(100%); backdrop-filter: blur(14px) saturate(100%); }
[data-glass="lite"] .glass.photo.spot-pad { background: rgb(14 15 18 / .56); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.spot-pad svg { width: 24px; height: 24px; }
.spot-pad:active { transform: scale(.92); transition-duration: var(--d-press-in); }
.spot-pad:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* over the neighbour's visible slice when it is wide enough to hold one; otherwise centred on the stage's own edge */
[data-hero="gallery"] .spot[data-peek="wide"] .spot-pad.prev { left: calc((100% - var(--sw)) / 4); translate: -50% -50%; }
[data-hero="gallery"] .spot[data-peek="wide"] .spot-pad.next { left: calc(100% - (100% - var(--sw)) / 4); right: auto; translate: -50% -50%; }
[data-hero="gallery"] .spot[data-peek="narrow"] .spot-pad.prev { left: calc((100% - var(--sw)) / 2); translate: -50% -50%; }
[data-hero="gallery"] .spot[data-peek="narrow"] .spot-pad.next { left: calc(100% - (100% - var(--sw)) / 2); right: auto; translate: -50% -50%; }
/* the destination's name, under the arrow, while it is pointed at or focused */
/* it opens inward, from the arrow's outer edge, as the filmstrip's names do: centred, the left arrow's name hung off the
   screen at 1024 and 768 px when the left neighbour was pointed at */
.pad-name { position: absolute; top: calc(100% + 10px); left: 0; max-width: 220px; height: 28px; padding: 0 12px; border-radius: 999px; overflow: hidden;
  background: rgb(14 15 18 / .62); color: #fff; font: 600 12px/28px var(--font); letter-spacing: -0.003em; text-overflow: ellipsis; white-space: nowrap;
  opacity: 0; transform: translateY(-4px); transition: opacity 180ms ease-out, transform 260ms var(--ease-spring-15); pointer-events: none; }
.spot-pad.next .pad-name { left: auto; right: 0; }
.spot-pad:focus-visible .pad-name { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .spot-pad:hover, .spot:has(.spot-slide.peek-prev:hover) .spot-pad.prev, .spot:has(.spot-slide.peek-next:hover) .spot-pad.next { transform: scale(1.08); }
  .spot-pad:hover .pad-name, .spot:has(.spot-slide.peek-prev:hover) .spot-pad.prev .pad-name, .spot:has(.spot-slide.peek-next:hover) .spot-pad.next .pad-name { opacity: 1; transform: none; }
  [data-hero="gallery"] .spot-slide.peek-prev:hover, [data-hero="gallery"] .spot-slide.peek-next:hover { transform: scale(.915); }
}
@media (max-width: 720px) { .spot-pad { display: none; } }
/* the rail carries its own previous and next */
[data-spotnav="rail"] .spot-pad { display: none; }

/* under the photo: the caption at the left, the clock and the position at the right */
/* top-aligned: the caption box is as tall as the longest caption, so centring would drop the controls by however much
   longer that caption is; this way the strip always hangs --foot-gap under the photo (its names sit on the chip's line).
   It wraps when the foot is too narrow for the strip beside a readable caption (see the container rule below) */
.spot-foot { container: spotfoot / inline-size; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px 28px; margin-top: var(--foot-gap); }
[data-hero="gallery"] .spot-foot { width: var(--S); margin-inline: auto; }
.spot-foot .stage-cap { flex: 1 1 240px; display: grid; min-width: 0; margin: 0; padding: 0; }
/* every car's caption sits in the one cell, unseen, so the box is always the tallest one's height: a longer caption
   (the NSX wraps to three lines at 1100 px) no longer drops the strip 8 px and the page below 16 px when the clock moves on */
.spot-foot .stage-cap > span { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.spot-foot .cap-ghost { visibility: hidden; }
.spot-nav { display: flex; align-items: center; gap: 14px; flex: none; }
.spot-play { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--bg-2); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: transform var(--d-press-out) var(--ease-spring-15), background-color 200ms ease-out; }
.spot-play svg { width: 15px; height: 15px; }
.spot-play:active { transform: scale(.92); transition-duration: var(--d-press-in); }
.spot-play:focus-visible, .sp-pager button:focus-visible, .sr-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .spot-play:hover { background: var(--bg-3); } }

/* SEGMENTS: one bar per car; the car on show fills over its 7 s, or stands full when the clock is stopped */
.sp-segments { display: flex; align-items: center; gap: 6px; }
.sp-segments button { position: relative; width: 30px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: none; cursor: pointer; }
.sp-segments button::before, .sp-segments button i { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 4px; border-radius: 2px; }
.sp-segments button::before { background: var(--line-2); transition: background-color 200ms ease-out; }
.sp-segments button[aria-current]::before { background: color-mix(in srgb, var(--ink) 22%, var(--bg)); }
.sp-segments button i { background: var(--ink); transform: scaleX(0); transform-origin: left center; }
.spot:not(.auto) .sp-segments [aria-current] i { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .sp-segments button:not([aria-current]):hover::before { background: color-mix(in srgb, var(--ink) 40%, var(--bg)); } }

/* FILMSTRIP: the seven photos; the one on show is ringed, its clock runs under it */
.sp-filmstrip { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; }
/* thumbnails scale with the photo (60 x 40 on a 1000 px photo, never under 48 x 32), so a smaller photo still leaves the
   caption beside them a readable width */
/* the 8 px under the photos is the clock bar's room; a matching negative margin keeps it out of the row's centring, so
   the pause button and the photos share one centre line (they sat 4 px apart) */
.sp-filmstrip { --th: clamp(48px, calc(var(--S, 1000px) * 0.06), 60px); margin-bottom: -8px; }
.sp-filmstrip button { position: relative; flex: none; width: var(--th); height: calc(var(--th) / 1.5); padding: 0; border: 0; border-radius: 9px; background: var(--bg-3); cursor: pointer;
  transition: transform var(--d-press-out) var(--ease-spring-15); }
.sp-filmstrip img { display: block; width: 100%; height: 100%; border-radius: 9px; object-fit: cover; }
.sp-filmstrip button::after { content: ""; position: absolute; inset: -4px; border-radius: 13px; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 200ms ease-out; }
.sp-filmstrip [aria-current]::after { box-shadow: inset 0 0 0 1.5px var(--ink); }
.sp-filmstrip i { position: absolute; left: 8px; right: 8px; bottom: -9px; height: 2px; border-radius: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left center; }
.sp-filmstrip button:active { transform: scale(.95); transition-duration: var(--d-press-in); }
@media (hover: hover) and (pointer: fine) { .sp-filmstrip button:not([aria-current]):hover::after { box-shadow: inset 0 0 0 1.5px var(--line-2); } }
/* which car a thumbnail is, above it while it is pointed at or focused (seven small photos are hard to tell apart).
   It sits wholly on the photo, on the price chip's centre line (the gap to the strip, the chip's inset, and half the
   36 - 28 px height difference; +10 px crossed the photo's edge), so it wears the chip's dark glass in both themes.
   tests/filmlabel.js checks it. */
.sp-filmstrip button::before { content: attr(data-name); position: absolute; z-index: 2; bottom: calc(100% + var(--foot-gap) + var(--chip-in) + 4px + (40px - var(--th) / 1.5) / 2); left: 50%; height: 28px; padding: 0 12px; border-radius: 999px;
  background: rgb(14 15 18 / .78); color: #fff; font: 600 12px/28px var(--font); letter-spacing: -0.003em; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-50%, 4px); transition: opacity 160ms ease-out, transform 240ms var(--ease-spring-15); }
.sp-filmstrip button:focus-visible::before { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) and (pointer: fine) { .sp-filmstrip button:hover::before { opacity: 1; transform: translate(-50%, 0); } }
/* the last two thumbnails sit at the photo's right edge: their names grow leftwards and end the chip's inset inside it,
   the chip's left inset mirrored (the second last reaches past its 60 px thumbnail and the 8 px gap) */
.sp-filmstrip button:nth-last-child(-n+2)::before { left: auto; right: var(--chip-in); transform: translate(0, 4px); }
.sp-filmstrip button:nth-last-child(2)::before { right: calc(var(--chip-in) - var(--th) - 8px); }
/* and the first two open rightwards from the strip's left edge, which keeps them clear of the chip on a small photo
   (centred, the first one's name came within 15 px of it at 1536 x 700) */
.sp-filmstrip button:nth-child(-n+2)::before { left: 0; transform: translate(0, 4px); }
.sp-filmstrip button:nth-child(2)::before { left: calc(-1 * var(--th) - 8px); }
.sp-filmstrip button:nth-child(-n+2):focus-visible::before { transform: none; }
@media (hover: hover) and (pointer: fine) { .sp-filmstrip button:nth-child(-n+2):hover::before { transform: none; } }
.sp-filmstrip button:nth-last-child(-n+2):focus-visible::before { transform: none; }
@media (hover: hover) and (pointer: fine) { .sp-filmstrip button:nth-last-child(-n+2):hover::before { transform: none; } }

/* RAIL: previous, one bar for the whole set with the car on show marked and filling, next, and the count */
.sp-rail { display: flex; align-items: center; gap: 4px; }
.sr-b { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer;
  transition: transform var(--d-press-out) var(--ease-spring-15), background-color 200ms ease-out; }
.sr-b svg { width: 20px; height: 20px; }
.sr-b:active { transform: scale(.9); transition-duration: var(--d-press-in); }
@media (hover: hover) and (pointer: fine) { .sr-b:hover { background: var(--bg-2); } }
.sr-bar { position: relative; width: 168px; height: 4px; margin: 0 8px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.sr-pos { position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% / var(--n, 7)); border-radius: 2px; background: color-mix(in srgb, var(--ink) 22%, var(--bg));
  transform: translateX(calc(var(--k) * 100%)); transition: transform 560ms var(--ease-spring-0); }
.sr-pos i { position: absolute; inset: 0; border-radius: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left center; }
.spot:not(.auto) .sr-pos i { transform: scaleX(1); }
.sr-count { min-width: 58px; margin-left: 6px; font: 500 13px/1 var(--font); color: var(--ink-2); text-align: right; white-space: nowrap; }
.sr-count b { font-weight: 600; color: var(--ink); }

/* a foot too narrow for the strip beside a readable caption (a tablet: at 768 px the filmstrip left the caption a 42 px
   column, its words spilling out) puts the controls first on their own row and gives the caption the full width under
   them. 746 = the smallest filmstrip row (play 40 + 14 + seven 48 px thumbnails and their gaps, 438) + 28 + 280 px of
   caption. Phones override this below. */
@container spotfoot (max-width: 745px) {
  .spot-nav { order: -1; }
  .spot-foot .stage-cap { flex-basis: 100%; }
}

/* phones: the controls first, centred under the photo, then the caption. Each row is sized to fit a 296 px column
   (a 360 px phone): segments 238, filmstrip 284, rail 272 */
@media (max-width: 720px) {
  .spot-foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .spot-foot .stage-cap { flex: none; justify-content: flex-start; }   /* in a column, the desktop flex-basis became a 240 px height */
  .spot-nav { order: -1; justify-content: center; gap: 8px; }
  .spot-play { width: 36px; height: 36px; }
  .sp-segments { gap: 4px; } .sp-segments button { width: 24px; height: 36px; } .sp-segments button::before, .sp-segments button i { top: 16px; }
  /* the filmstrip takes the whole width (seven photos as large as a phone allows); its pause button moves beside the
     caption, so the clock's control stays one tap away */
  [data-spotnav="filmstrip"] .spot-nav { display: contents; }
  [data-spotnav="filmstrip"] .sp-filmstrip { order: -1; width: 100%; gap: 5px; padding-bottom: 8px; margin-bottom: 0; }
  [data-spotnav="filmstrip"] .spot-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 12px; }
  [data-spotnav="filmstrip"] .sp-filmstrip { grid-column: 1 / -1; }
  .sp-filmstrip button { flex: 1 1 0; width: auto; height: auto; aspect-ratio: 3 / 2; border-radius: 7px; } .sp-filmstrip img { border-radius: 7px; }
  .sp-filmstrip button::after { inset: -3px; border-radius: 9px; } .sp-filmstrip i { left: 5px; right: 5px; bottom: -8px; }
  .sp-filmstrip button::before { display: none; }
  .sr-b { width: 36px; height: 36px; } .sr-bar { width: 88px; margin: 0 8px; } .sr-count { min-width: 44px; margin-left: 4px; }
}
/* to a finger each pager target is 44 px tall (the touch audit measured the phone filmstrip's photos 32 x 22): the segments
   grow and give the room back in their margins, the filmstrip's photos gain an invisible reach above and below */
@media (pointer: coarse) {
  .sp-segments button { height: 44px; margin-block: -6px; } .sp-segments button::before, .sp-segments button i { top: 20px; }
}
/* on a phone the filmstrip's name label is off (::before is free); wider, it is the label, so this stays phone-only */
@media (pointer: coarse) and (max-width: 720px) {
  /* :nth-child(n) matches the end labels' own placement rules (nth-child(2) sat its hit area over the first photo) */
  .sp-filmstrip button:nth-child(n)::before, .sp-filmstrip button:nth-child(n):focus-visible::before { display: block; content: ''; inset: -11px -2px; height: auto; padding: 0; transform: none; opacity: 1; background: none; border-radius: 0; pointer-events: auto; transition: none; }
}
@media (prefers-reduced-motion: reduce) { .sr-pos, .spot-pad, .pad-name { transition: none; } }

/* ---------- Title, search, chips ---------- */
.home-find { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; }
.bigsearch { display: flex; align-items: center; gap: 12px; width: min(640px, 100%); height: 60px; padding: 0 14px 0 20px; border: 0; border-radius: 999px;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font: 400 18px/1 var(--font); letter-spacing: -0.012em; text-align: left;
  transition: transform var(--d-press-out) var(--ease-spring-15), background-color 200ms ease-out; }
.bigsearch svg { width: 20px; height: 20px; flex: none; }
.bigsearch span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bigsearch kbd { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); font: 500 13px/1 var(--font); }
.bigsearch:active { transform: scale(.985); transition-duration: var(--d-press-in); }
@media (hover: hover) and (pointer: fine) { .bigsearch:hover { background: var(--bg-3); } }
.trychips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.trychips .t-label { margin-right: 4px; }
.tchip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border: 0; border-radius: 999px; background: var(--bg-2); color: var(--ink);
  font: 500 14px/1 var(--font); text-decoration: none; white-space: nowrap; transition: transform var(--d-press-out) var(--ease-spring-15), background-color 200ms ease-out; }
.tchip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
button.tchip { padding: 0 16px; }
.tchip:active { transform: scale(.96); transition-duration: var(--d-press-in); }
@media (hover: hover) and (pointer: fine) { .tchip:hover { background: var(--bg-3); } }
@media (max-width: 720px) { .bigsearch { height: 54px; font-size: 16px; } .bigsearch kbd { display: none; } }
.home-glance .rcpt { text-decoration-thickness: 2px; text-underline-offset: 0.14em; }

/* ---------- Verdict field and the evidence funnel ---------- */
.vf-wrap { padding: 28px; border-radius: var(--r-tile); background: var(--bg-2); }
.vf-read { min-height: 26px; margin-bottom: 16px; font: 400 15px/1.35 var(--font); color: var(--ink-2); }
.vf-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.vf-read b { font: 600 19px/1.2 var(--font); color: var(--ink); letter-spacing: -0.012em; }
.vf { display: block; width: 100%; height: auto; overflow: visible; }
.vg { cursor: pointer; outline: none; }
.vg .hit { fill: transparent; pointer-events: all; }
.vg:focus-visible .hit { stroke: var(--accent); stroke-width: 2; rx: 6; }
.vg circle { fill: var(--bc); transition: fill-opacity 220ms ease-out; }
.vf-hl .vg:not(.on) circle { fill-opacity: .2; }
.vf-key { margin-top: 12px; }
.vf-key a { position: relative; transition: transform var(--d-press-out) var(--ease-spring-15), box-shadow 200ms ease-out; }
.vf-key a.on { box-shadow: inset 0 0 0 1.5px var(--ink); }
.vf-key .sw { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--bc); }
@media (max-width: 720px) { .vf-key a { padding: 10px 12px; } .vf-key span { font-size: 11.5px; line-height: 1.25; } }
.funnel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 48px; }
.funnel h3 { grid-column: 1 / -1; font: var(--t-title3); letter-spacing: var(--tr-title3); }
.fn-row { display: grid; align-content: start; gap: 12px; padding: 22px; border-radius: var(--r-tile); background: var(--bg-2); }
.fn-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 500 14px/1.3 var(--font); color: var(--ink-2); }
.fn-top b { font: 700 36px/1 var(--font); letter-spacing: -0.035em; color: var(--ink); }
.fn-bar { display: block; height: 8px; border-radius: 4px; background: var(--bg-3); overflow: hidden; }
.fn-bar i { display: block; height: 100%; border-radius: 4px; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.fn-row p { font: 400 13px/1.45 var(--font); color: var(--ink-2); }
@media (max-width: 900px) { .funnel { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .vf-wrap { padding: 18px; } }

/* ---------- The score build ---------- */
/* one column that no child can widen: "Rate a specific car" revealed rating rows wider than a phone, the grid's auto column
   grew to hold them, and the columns and formula above ran off the screen (Ali, 2026-10-24) */
.bld { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.bld-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.bchips { display: flex; flex-wrap: wrap; gap: 8px; }
.bchip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border: 0; border-radius: 999px; background: var(--bg-2); color: var(--ink);
  font: 500 14px/1 var(--font); white-space: nowrap; transition: background-color 200ms ease-out, color 200ms ease-out, transform var(--d-press-out) var(--ease-spring-15); }
.bchip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.bchip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.bchip:active { transform: scale(.96); transition-duration: var(--d-press-in); }
/* the tag is a button now, so while it is faded out it also leaves the tab order and the reach of a finger */
.bld-smp { opacity: 0; visibility: hidden; transition: opacity 200ms ease-out, visibility 0s 200ms; }
#build.is-sample .bld-smp { opacity: 1; visibility: visible; transition: opacity 200ms ease-out; }
.bld-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding: 28px; border-radius: var(--r-tile); background: var(--bg-2); }
.bld-cols { display: flex; gap: 6px; min-width: 0; }
.bc { flex: var(--w) 1 0; min-width: 0; display: grid; gap: 10px; align-content: start; }
.bc-track { position: relative; height: 300px; border-radius: 12px; background: var(--bg); overflow: hidden; }
.bc.na .bc-track { background: repeating-linear-gradient(135deg, transparent 0 7px, var(--line) 7px 8px), var(--bg); }
.bc-bar { position: absolute; inset: 0; border-radius: 12px; background: var(--ink); transform: translateY(100%); }
.bc-v { position: absolute; left: 0; right: 0; top: 10px; text-align: center; font: 700 16px/1 var(--font); color: var(--bg); }
.bc-na { position: absolute; left: 6px; right: 6px; bottom: 12px; text-align: center; font: 500 11px/1.25 var(--font); color: var(--ink-2); }
.bc-l { display: flex; gap: 6px; font: 600 12.5px/1.25 var(--font); color: var(--ink); min-width: 0; }
.bc-l em { display: none; font-style: normal; }
.bc-l small { display: block; font-weight: 500; color: var(--ink-2); }
.bld-side { display: grid; align-content: start; gap: 10px; }
.bld-num { font: 700 72px/1 var(--font); letter-spacing: -0.045em; }
.bld-band { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 14px/1.3 var(--font); color: var(--ink-2); }
.bld-f { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font: 500 13px/1.5 var(--font); color: var(--ink-2); font-variant-numeric: tabular-nums;
  min-height: calc(3 * 1.5em + 14px); }
.bld-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bld-legend { display: none; }
.bld-rated { display: flex; flex-wrap: wrap; gap: 16px 28px; padding: 20px 28px; border-radius: var(--r-tile); background: var(--bg-2); }
.bld-rated .t-label { margin-bottom: 8px; }
/* each rating takes the room it is given, so its control can tell when it does not fit and fold into two rows */
.bld-rated > div { flex: 1 1 260px; min-width: 0; }
/* the band's name sits 10px over the track, clear of the marker's ring (8px over it): at 6px the ring cut into the name */
.ruler { position: relative; padding: 26px 0 0; container-type: inline-size; }
.rl-track { display: flex; gap: 3px; height: 10px; }
.rl-s { position: relative; flex: var(--w) 1 0; border-radius: 5px; background: var(--bg-3); transition: background-color 300ms ease-out; }
.rl-s.g { background: color-mix(in srgb, var(--pos) 28%, var(--bg-3)); }
.rl-s.on { background: var(--ink); } .rl-s.g.on { background: var(--pos); }
.rl-s em { position: absolute; left: 0; bottom: 20px; font: 600 12px/1 var(--font); font-style: normal; color: var(--ink-2); white-space: nowrap; }
.rl-s.on em { color: var(--ink); }
/* markers are zero-width and move in container units (cqw), so their boxes never reach past the track */
.rl-m { position: absolute; left: 0; top: 26px; width: 0; height: 10px; pointer-events: none; }
.rl-m i { position: absolute; left: -10px; top: -5px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 3px var(--ink), 0 2px 8px rgb(0 0 0 / .2); }
.rl-ticks { position: relative; height: 14px; margin-top: 10px; font: 500 12px/1 var(--font); color: var(--ink-2); }
.rl-ticks span { position: absolute; left: 0; translate: -50% 0; } .rl-ticks span:first-child { translate: 0 0; } .rl-ticks span:last-child { translate: -100% 0; }
@media (max-width: 1000px) { .bld-main { grid-template-columns: 1fr; } .bld-side { grid-template-columns: auto 1fr; align-items: end; gap: 6px 20px; } .bld-side .t-label, .bld-f, .bld-acts { grid-column: 1 / -1; } .bld-num { font-size: 60px; } }
@media (max-width: 720px) {
  .bld-main { padding: 18px; gap: 20px; }
  .bc-track { height: 200px; border-radius: 9px; } .bc-bar { border-radius: 9px; }
  .bld-cols { gap: 4px; }
  .bc-v { font-size: 13px; top: 8px; }
  .bc-na { display: none; }
  .bc-l { justify-content: center; } .bc-l em { display: block; color: var(--ink-2); } .bc-l > span { display: none; }
  .bld-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font: 500 13px/1.3 var(--font); }
  .bld-legend li { display: grid; grid-template-columns: 16px 1fr auto; gap: 6px; align-items: baseline; }
  .bld-legend em { font-style: normal; color: var(--ink-2); } .bld-legend small { display: none; } .bld-legend b { font-weight: 600; color: var(--ink-2); }
  .rl-s em { display: none; } .rl-s.on em { display: block; }
  .bld-rated { padding: 16px; }
}
@media (max-width: 460px) { .bld-legend { grid-template-columns: 1fr; } }

/* ---------- Proof ---------- */
.proof { display: grid; gap: var(--gap); }
.guess, .reveal { padding: 32px; border-radius: var(--r-tile); background: var(--bg-2); }
.g-q { font: var(--t-title3); letter-spacing: var(--tr-title3); max-width: 32ch; }
/* the 28 sample cars: two rows of fourteen, seven to a row on a phone; 3:2 tiles cropped on the car */
.g-wall { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; }
.g-wall li { aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: var(--bg-3); transition: opacity 420ms ease-out calc(var(--i) * 14ms); }
.g-wall img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the no-photo placeholder only: as ".g-wall span" this outranked .g-tx, so the name block rendered (clipped) on a desk and
   came out centred and spread on a phone */
.g-wall span[role="img"] { display: grid; place-items: center; height: 100%; color: var(--ink-2); }
.g-wall span[role="img"] svg { width: min(22px, 62%); height: auto; }
.g-wall.marked li.down { opacity: .26; }
.g-read { min-height: 20px; margin-top: 10px; font: 500 13px/1.5 var(--font); color: var(--ink-2); }
.rv-wall { margin: -4px 0 26px; }
/* on a phone the wall is a two-column list (Ali's pick W2, 2026-10-25): each car's photo and name, and in the answer its
   value against the sticker; the cars worth less than new keep a readable name and fade only their photo */
.g-tx { display: none; }
@media (max-width: 720px) {
  .g-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .g-wall li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 44px; padding: 6px 0;
    aspect-ratio: auto; border-radius: 0; overflow: visible; background: none; border-top: 1px solid var(--line); transition: none; }
  .g-wall li > img, .g-wall li > span[role="img"] { width: 40px; height: 27px; border-radius: 5px; background: var(--bg-3); transition: opacity 420ms ease-out calc(var(--i) * 14ms); }
  .g-wall li > img { object-fit: cover; }
  .g-wall li > span[role="img"] svg { width: 16px; }
  .g-tx { display: grid; gap: 1px; min-width: 0; align-content: center; }
  .g-nm { font: 600 13px/1.25 var(--font); color: var(--ink); overflow-wrap: anywhere; }
  .g-x { font: 500 12px/1.25 var(--font); color: var(--ink-2); font-variant-numeric: tabular-nums; }
  .g-wall.marked li.down { opacity: 1; }
  .g-wall.marked li.down > img, .g-wall.marked li.down > span[role="img"] { opacity: .3; }
  .g-wall.marked li.down .g-nm { color: var(--ink-2); font-weight: 500; }
}
/* under 400 px "its sticker" wrapped under every value (three lines a row); the line under the list names the unit */
@media (max-width: 400px) { .g-xs { display: none; } }
/* at 320 a name had 61 px and "Speedster" needs 64.5: a smaller photo and tighter gaps give it 69, the type unchanged */
@media (max-width: 340px) {
  .g-wall { column-gap: 12px; }
  .g-wall li { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; }
  .g-wall li > img, .g-wall li > span[role="img"] { width: 36px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) { .g-wall li { transition: none; } }
.g-in { display: flex; align-items: center; gap: 24px; max-width: 560px; margin-top: 26px; }
.g-in input { flex: 1; }
.g-in output { min-width: 2ch; font: 700 48px/1 var(--font); letter-spacing: -0.04em; text-align: right; }
.g-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 26px; }
.g-acts .t-open { margin-left: 0; font-size: 15px; }
.rv-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 24px; margin-bottom: 22px; }
.rv-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.rv-big b { font: 700 72px/1 var(--font); letter-spacing: -0.045em; }
.rv-big span { font: 500 18px/1.3 var(--font); color: var(--ink-2); }
.rv-you { order: 3; width: 100%; font: 400 15px/1.45 var(--font); color: var(--ink-2); }
.rv-you:empty { display: none; }
.views { position: relative; }
.view { position: relative; }
.ladder { display: grid; }
/* a verdict's row is a button that opens the list of its cars, one verdict at a time */
.ld-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 150px 100px 20px; align-items: center; gap: 16px; width: 100%; padding: 14px 0; border: 0; border-top: 1px solid var(--line);
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ld-item:first-child .ld-row { border-top: 0; }
.ld-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.ld-chev svg { display: block; width: 16px; height: 16px; color: var(--ink-2); transition: transform var(--d-menu-open) var(--ease-spring-0); }
.ld-row[aria-expanded="true"] .ld-chev svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .ld-row:hover .ld-chev svg { color: var(--ink); } }
.ld-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 0 0 14px; list-style: none; }
.ld-list li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 34px; border-top: 1px solid var(--line); font: 400 14px/1.3 var(--font); }
.ld-list li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ld-list i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.ld-list i.up { background: var(--ink); box-shadow: none; } .ld-list i.up.g { background: var(--pos); }
.ld-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.ld-dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.ld-dots i.up { background: var(--ink); box-shadow: none; } .ld-dots i.up.g { background: var(--pos); }
.ld-k { font: 400 14px/1.3 var(--font); color: var(--ink-2); } .ld-k b { font-weight: 600; color: var(--ink); }
.ld-m { font: 700 22px/1 var(--font); letter-spacing: -0.02em; text-align: right; }
.ld-m small { display: block; margin-top: 4px; font: 500 11px/1.2 var(--font); color: var(--ink-2); letter-spacing: 0; }
.sv { width: 100%; min-height: 200px; }
.sv svg { display: block; overflow: visible; }
.sv .gl { stroke: var(--line); }
.sv .one { stroke: var(--ink-2); stroke-dasharray: 4 4; }
.sv .ax { font: 500 13px var(--font); fill: var(--ink-2); }
.sv .rb { font-weight: 600; fill: var(--ink); }
.sv .sd { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; cursor: pointer; transition: transform 200ms var(--ease-spring-0); transform-box: fill-box; transform-origin: center; }
.sv .sd.g { fill: var(--pos); stroke: var(--pos); }
.sv .sd:hover, .sv .sd:focus-visible { transform: scale(1.3); outline: none; }
.sv .sd.o { fill: var(--ink); }
.sv .sl { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-dasharray: 1; }
.sv .sl.g { stroke: var(--pos); stroke-width: 2.5; }
.sv .sl-t { font: 600 14px var(--font); fill: var(--ink); } .sv .sl-t .b { font-weight: 500; fill: var(--ink-2); }
/* the spread's line above the chart (it replaced a floating tooltip a finger could not raise) and its step buttons */
.sp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sp-read { min-height: 2.8em; margin: 0; font: 400 15px/1.4 var(--font); color: var(--ink-2); }
.sp-read b { font-weight: 600; color: var(--ink); }
/* the chosen car: a copy of its dot drawn last (on top of its neighbours), larger, ringed in the accent */
.sv .sp-sel { fill: var(--bg); stroke: var(--accent); stroke-width: 3; opacity: 0; pointer-events: none; }
.sv .sp-sel.g { fill: var(--pos); }
.sv .sp-sel.on { opacity: 1; }
/* a sideways slide reads the dots; an up or down one still scrolls the page */
.sv svg { touch-action: pan-y; }
.real-strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 24px; align-items: center; padding: 24px 28px; border-radius: var(--r-tile); box-shadow: inset 0 0 0 1px var(--line); }
.real-strip p:not(.t-label) { margin-top: 6px; font: 400 15px/1.5 var(--font); color: var(--ink-2); }
.real-strip .kv3 { margin-top: 0; }
@media (max-width: 900px) { .real-strip { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .guess, .reveal { padding: 20px; }
  .g-in output { font-size: 40px; }
  .rv-big b { font-size: 56px; }
  .ld-row { grid-template-columns: minmax(0, 1fr) auto 20px; gap: 8px 12px; }
  .ld-dots { grid-column: 1 / -1; order: 3; }
  .ld-list { grid-template-columns: minmax(0, 1fr); }
  .ld-list li { min-height: 40px; }
  .ld-k { display: none; }
  .real-strip { padding: 20px; }
}

/* ---------- Analog scroll scene ---------- */
.an-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.an-stick { position: sticky; top: calc(50vh - 230px); display: grid; justify-items: center; gap: 22px; padding: 36px 28px; border-radius: var(--r-tile); background: var(--bg-2); }
/* drawn at exactly 1:1 (viewBox 280 wide), so its numbers are true 15px type */
.gate { display: block; width: 280px; max-width: 100%; height: auto; overflow: visible; }
.gate .slots line { stroke: color-mix(in srgb, var(--ink) 9%, transparent); stroke-width: 20; stroke-linecap: round; }
.gate .nums text { font: 600 15px var(--font); fill: var(--ink-2); transition: fill 200ms ease-out; }
.gate .nums text.on { fill: var(--ink); font-weight: 700; }
.gate .trail { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.gate .knob circle { fill: var(--ink); }
.gate .knob .kr { fill: none; stroke: var(--ink); stroke-opacity: .16; stroke-width: 1.5; }
.an-stat { max-width: 36ch; text-align: center; }
.an-stat b { display: block; font: 700 60px/1 var(--font); letter-spacing: -0.045em; }
.an-stat span { display: block; margin-top: 10px; font: 400 15px/1.45 var(--font); color: var(--ink-2); }
.an-steps { margin: 0; padding: 0; list-style: none; }
.an-step { display: grid; align-content: center; gap: 12px; min-height: 72vh; }
.an-step:first-child { min-height: 52vh; align-content: start; padding-top: 8vh; }
.an-step .t-label { display: flex; align-items: center; gap: 8px; transition: color 200ms ease-out; }
.an-step.on .t-label { color: var(--accent); }
.an-step h3 { font: var(--t-title); letter-spacing: var(--tr-title); }
.an-step > p:not(.t-label) { max-width: 40ch; font: 400 19px/1.5 var(--font); color: var(--ink-2); }
.an-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
@media (max-width: 900px) {
  .an-grid { grid-template-columns: 1fr; gap: 0; }
  .an-vis { position: sticky; top: calc(var(--nav-top) + var(--nav-h) + 8px); z-index: 2; }
  .an-stick { position: static; grid-template-columns: 112px minmax(0, 1fr); justify-items: start; align-items: center; gap: 16px; padding: 14px 16px; box-shadow: 0 8px 24px rgb(0 0 0 / .08); }
  .gate { width: 112px; } .gate .nums { display: none; }
  .an-stat { text-align: left; } .an-stat b { font-size: 34px; } .an-stat span { margin-top: 4px; font-size: 13px; }
  .an-step { min-height: 62vh; } .an-step:first-child { min-height: 48vh; padding-top: 6vh; }
  .an-step > p:not(.t-label) { font-size: 17px; }
}

/* ---------- Price check ---------- */
.pc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; margin-top: var(--gap); padding: 32px; border-radius: var(--r-tile); background: var(--bg-2); }
.pc-in h3 { font: var(--t-title3); letter-spacing: var(--tr-title3); }
.pc-in > p { margin-top: 8px; font: 400 15px/1.45 var(--font); color: var(--ink-2); }
.pc-f { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 12px; margin-top: 22px; font: 500 14px/1.3 var(--font); color: var(--ink-2); }
.pc-f output { font: 700 20px/1 var(--font); letter-spacing: -0.015em; color: var(--ink); }
.pc-f input { grid-column: 1 / -1; }
/* the readout changes as you drag; its lines never change count, so nothing below moves */
.pc-word { font: 600 14px/1.3 var(--font); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-big { margin-top: 10px; font: 500 19px/1.35 var(--font); color: var(--ink-2); }
.pc-big b { font: 700 48px/1 var(--font); letter-spacing: -0.04em; color: var(--ink); }
.pc-g { position: relative; height: 92px; margin-top: 30px; container-type: inline-size; }
.pc-track { position: absolute; left: 0; right: 0; top: 30px; height: 8px; border-radius: 4px; background: var(--bg-3); overflow: hidden; }
.pc-band { position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 22%, transparent); transform-origin: left; }
.pc-fair, .pc-ask { position: absolute; left: 0; top: 0; width: 0; height: 100%; pointer-events: none; }
.pc-fair i { position: absolute; left: -1px; top: 21px; width: 2px; height: 26px; border-radius: 1px; background: var(--ink); }
.pc-fair span { position: absolute; left: 0; top: 0; translate: -50% 0; font: 600 12px/1 var(--font); color: var(--ink); white-space: nowrap; }
.pc-ask i { position: absolute; left: -10px; top: 24px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 3px var(--accent-fill), 0 2px 8px rgb(0 0 0 / .18); }
.pc-ask span { position: absolute; left: 0; top: 52px; translate: -50% 0; font: 600 12px/1 var(--font); color: var(--accent); white-space: nowrap; }
.pc-ticks { position: absolute; left: 0; right: 0; top: 76px; height: 14px; font: 500 11px/1 var(--font); color: var(--ink-2); }
.pc-ticks span { position: absolute; translate: -50% 0; } .pc-ticks span:first-child { translate: 0 0; } .pc-ticks span:last-child { translate: -100% 0; }
@media (max-width: 900px) { .pc { grid-template-columns: 1fr; gap: 24px; padding: 22px; } }
@media (max-width: 720px) { #pc-rest { display: block; margin-top: 6px; white-space: nowrap; } .pc-big b { font-size: 40px; } }
.pc-big b, #pc-gap { display: inline-block; font-variant-numeric: tabular-nums; }

/* ---------- Duel ---------- */
.duel { padding: 28px; border-radius: var(--r-tile); background: var(--bg-2); }
.du-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.du-dots { display: flex; gap: 6px; }
.du-dots i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.du-dots i.ok { background: var(--ink); box-shadow: none; }
.du-dots i.no { background: var(--bg-3); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.du-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 18px; }
.du-vs { font: 600 14px/1 var(--font); color: var(--ink-2); }
/* one column no part can widen: at 320 px the ACCUMULATE pill under the score was wider than the card, the column grew to
   hold it and the card's own edge cut the name and the pill */
.du-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 0 0 18px; border: 0; border-radius: 22px; background: var(--bg); color: var(--ink); text-align: left; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line); transition: transform var(--d-press-out) var(--ease-spring-15), box-shadow 250ms ease-out; }
.du-card .ph { display: block; aspect-ratio: var(--stage-ar); overflow: hidden; background: var(--bg-3); }
.du-card .ph img { width: 100%; height: 100%; object-fit: cover; }
/* every round deals new names; the card keeps one height whatever the name, so nothing below it ever jumps */
.du-n { padding: 6px 18px 0; font: 600 17px/1.3 var(--font); letter-spacing: -0.012em; min-height: calc(2 * 1.3em + 6px);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.du-y { padding: 0 18px; font: 400 13px/1.35 var(--font); color: var(--ink-2); }
.du-s { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 18px 0; }
/* the score counts up in fixed-width digits, so the card never changes size while it counts (it used to bounce) */
.du-s b { font: 700 34px/1 var(--font); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; min-width: 4ch; }
.du-card:active { transform: scale(.98); transition-duration: var(--d-press-in); }
.du-card.win { box-shadow: 0 0 0 2.5px var(--ink); }
.du-card.picked:not(.win) { box-shadow: 0 0 0 1px var(--line-2); }
@media (hover: hover) and (pointer: fine) { .du-card:not(.win):not(.lose):hover { box-shadow: 0 0 0 1.5px var(--ink-2); } }
.du-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; margin-top: 20px; }
.du-msg { font: 500 16px/1.4 var(--font); min-height: 1.4em; }
.du-s { min-height: 40px; }
@media (max-width: 720px) {
  .duel { padding: 16px; }
  .du-pair { grid-template-columns: 1fr 1fr; gap: 10px; } .du-vs { display: none; }
  .du-card { border-radius: 18px; padding-bottom: 14px; } .du-y { display: none; }
  .du-n { padding: 6px 12px 0; font-size: 14px; }
  .du-s { padding: 6px 12px 0; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; min-height: 62px; }
  .du-s b { font-size: 26px; } .du-p { min-height: 24px; }
  .du-foot { min-height: 88px; align-items: flex-start; } .du-msg { min-height: 2.8em; }
}
/* the narrowest phones: a card is about 120 px, so the longest verdict (ACCUMULATE) gets a smaller pill and the card's text
   a smaller inset */
@media (max-width: 359px) {
  .du-n, .du-s { padding-left: 8px; padding-right: 8px; }
  .du-s .pill { height: 22px; padding: 0 7px; font-size: 11px; }
  .du-n { font-size: 13px; }
}
/* a hyphenated word in a car's name stays on one line ("Mercedes-Benz" broke at its hyphen in a 120 px card) */
.du-nw { white-space: nowrap; }

/* ---------- Best buys ---------- */
.bb-in { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px; max-width: 640px; }
.bb-in label { font: 600 14px/1 var(--font); color: var(--ink-2); }
.bb-in output { font: 700 48px/1 var(--font); letter-spacing: -0.04em; }
.bb-in input { grid-column: 1 / -1; }
.bb-ticks { grid-column: 1 / -1; display: flex; justify-content: space-between; font: 500 12px/1 var(--font); color: var(--ink-2); }
.bb-meta { margin: 26px 0 16px; font: 400 15px/1.45 var(--font); color: var(--ink-2); }
.bb-cards { position: relative; }
