/* Landing page layout (shared look lives in site.css). */
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body.landing { overflow-x: hidden; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(7, 7, 12, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--red);
}
.wordmark { font: italic 900 1.15rem/1 var(--font); text-decoration: none; letter-spacing: 0.02em; white-space: nowrap; }
.topnav { display: flex; gap: 22px; margin-left: auto; }
.topnav a { text-decoration: none; font: 700 0.8rem/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: #ddd; white-space: nowrap; }
.topbar .go-btn { white-space: nowrap; }
/* Seven links on one line down to the phone layout. */
@media (max-width: 1180px) {
  .topbar { gap: 16px; }
  .topnav { gap: 14px; }
  .topnav a { font-size: 0.72rem; letter-spacing: 0.06em; }
}
.topnav a:hover { color: #fff; }
.topbar .go-btn { font-size: 0.85rem; padding: 0.65em 1.4em; }

.hero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero.no-shot { background: radial-gradient(circle at 70% 40%, #2a0605, var(--bg) 70%); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 7, 12, 0.94) 0%, rgba(7, 7, 12, 0.55) 45%, rgba(7, 7, 12, 0.05) 75%), linear-gradient(0deg, var(--bg) 0%, rgba(7, 7, 12, 0) 30%); }
.hero-copy { position: relative; padding: clamp(24px, 6vw, 72px) clamp(16px, 5vw, 64px); max-width: 640px; }
.hero-title { font-size: clamp(2.8rem, 8vw, 6rem); margin: 12px 0 16px; }
.hero-lead { font-size: clamp(1rem, 1.6vw, 1.2rem); color: #d6d6de; margin: 0 0 26px; max-width: 30em; }
.hero-copy .go-btn { font-size: 1.15rem; }
.hero-tower { position: absolute; right: clamp(16px, 4vw, 48px); top: 36px; width: 200px; border-left: 3px solid var(--red); }

.section { padding: clamp(48px, 8vw, 96px) clamp(16px, 5vw, 64px) 0; max-width: 1400px; margin: 0 auto; }
.section-title { font-size: clamp(2rem, 5vw, 3.4rem); margin: 10px 0 12px; }
.section-lead { max-width: 40em; margin: 0 0 28px; }

.calendar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 38px; }
.cup-circuits-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cup-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cup-number { font: italic 900 2.2rem/1 var(--font); color: var(--red); min-width: 1.4em; }
.cup-name { margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.7rem); text-transform: uppercase; }
.cup-rounds { color: var(--muted); font: 600 0.85rem/1.3 var(--font); margin-left: auto; }
:root { --gold: #d8c48a; }
.circuit-era { margin-top: 4px; color: var(--gold); font: 600 0.78rem/1.35 var(--font); }
.historic-head { display: grid; gap: 6px; margin-top: 18px; }
.historic-head h3 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); text-transform: uppercase; }
.historic-head p { margin: 0; }
.is-historic .cup-number { color: var(--gold); }
.historic-sights { margin-top: 18px; }
.circuit-round { position: absolute; top: 8px; left: 8px; padding: 3px 8px; background: rgba(8, 8, 12, 0.78); border-left: 3px solid var(--red); font: italic 900 0.85rem/1 var(--font); color: #fff; }
.season-card { background: linear-gradient(120deg, #1d0706, var(--panel) 55%); border: 1px solid var(--line); border-left: 4px solid var(--red); padding: 26px 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: center; }
.season-copy { display: grid; gap: 12px; }
.season-shot { order: 2; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); }
.season-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.season-card h3 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.4rem); text-transform: uppercase; }
.season-card p { margin: 0; max-width: 62ch; color: #d6d6de; line-height: 1.5; }
.season-card .kicker { color: var(--red); }
.season-facts { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.season-facts li { display: grid; }
.season-facts b { font: italic 900 2rem/1 var(--font); }
.season-facts span { color: var(--muted); font: 700 0.72rem/1.4 var(--font); letter-spacing: 0.14em; text-transform: uppercase; }
.season-card .go-btn { justify-self: start; }
@media (max-width: 1100px) {
  .cup-circuits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season-card { grid-template-columns: minmax(0, 1fr); }
  .season-shot { order: 0; }
}
@media (max-width: 620px) {
  .cup-circuits-grid { grid-template-columns: minmax(0, 1fr); }
  .cup-rounds { margin-left: 0; }
}
/* Or race your way: random, custom and single races. */
.choices-card { border: 1px solid var(--line); border-top: 4px solid var(--red); background: linear-gradient(160deg, var(--panel), #0b0b12); padding: 26px 28px; display: grid; gap: 22px; }
.choices-head { display: grid; gap: 10px; }
.choices-head h3 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.4rem); text-transform: uppercase; }
.choices-head p { margin: 0; max-width: 78ch; color: #d6d6de; line-height: 1.5; }
.choices-head .kicker { color: var(--red); }
.choices-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.choices-shots figure { margin: 0; }
.choices-shots img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); background: var(--panel-2); }
.choices-shots figcaption { margin-top: 8px; color: var(--muted); font: 600 0.85rem/1.3 var(--font); }
.choices-ways { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.choices-ways li { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; background: rgba(255, 255, 255, 0.03); border-left: 3px solid var(--red); }
.choices-ways h4 { margin: 0; font-size: 1.25rem; text-transform: uppercase; }
.choices-ways p { margin: 0; color: #d6d6de; line-height: 1.5; flex: 1; }
.choices-ways .ghost-btn { align-self: flex-start; }
@media (max-width: 1100px) {
  .choices-ways { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .choices-card { padding: 20px 16px; }
  .choices-shots { grid-template-columns: minmax(0, 1fr); }
}
.circuit-card { background: var(--panel); border-top: 3px solid var(--red); overflow: hidden; display: flex; flex-direction: column; }
.circuit-shot { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--panel-2), #1d0706); position: relative; }
.circuit-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.circuit-body { display: grid; grid-template-columns: 1fr 96px; gap: 10px; padding: 14px 16px 16px; align-items: center; }
.circuit-body h4 { margin: 0 0 4px; font: italic 900 1.05rem/1.1 var(--font); text-transform: uppercase; }
.circuit-meta { color: var(--muted); font-size: 0.85rem; line-height: 1.4; }
.circuit-map { width: 96px; height: 72px; }
.circuit-map .track { fill: none; stroke: #fff; stroke-width: 3; stroke-linejoin: round; }
.circuit-map .start { fill: var(--red); }

.career-summary { background: var(--panel); border-left: 3px solid var(--red); padding: clamp(18px, 3vw, 32px); display: grid; gap: 18px; }
.career-summary .career-tier { font: italic 900 clamp(2rem, 5vw, 3rem)/1 var(--font); text-transform: uppercase; }
.summary-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.summary-stat { background: rgba(255, 255, 255, 0.03); padding: 10px 12px; }
.summary-stat span { display: block; color: var(--muted); font: 700 0.66rem/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px; }
.summary-stat strong { font-size: 1.35rem; }
.summary-bests { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px; }
.summary-best { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; background: rgba(255, 255, 255, 0.03); font-weight: 600; }
.summary-best span { color: var(--muted); }

.team-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.team-card { background: var(--panel); border-top: 4px solid var(--team); overflow: hidden; }
.team-shot { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--team), #07070c 80%); }
.team-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-body { padding: 12px 16px 16px; }
.team-body h3 { margin: 0; font: italic 900 1.05rem/1.1 var(--font); text-transform: uppercase; }
.team-car { color: var(--muted); font-size: 0.85rem; margin: 2px 0 10px; }
.team-drivers { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-weight: 600; }
.team-drivers b { display: inline-block; min-width: 2.2em; color: var(--red); }

.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.howto-block { background: var(--panel); padding: 20px 24px; }
.howto-block h3 { margin: 0 0 10px; font: italic 900 1.05rem/1.1 var(--font); text-transform: uppercase; }
.howto-block h3 + p { margin-top: 0; }
.keys { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.keys dt { font-weight: 700; background: var(--panel-2); padding: 2px 8px; border-bottom: 2px solid #000; }
.keys dd { margin: 0; color: var(--muted); align-self: center; }

.footer { margin-top: clamp(56px, 8vw, 96px); padding: 24px clamp(16px, 5vw, 64px); border-top: 1px solid var(--line); font-size: 0.85rem; }
.footer p { margin: 4px 0; }

.phone-note { max-width: 420px; background: var(--panel); color: var(--ink); border: 0; border-top: 3px solid var(--red); padding: 24px; }
.phone-note::backdrop { background: rgba(5, 5, 10, 0.8); }
.phone-note h2 { font-size: 1.8rem; margin: 10px 0; }
.note-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }

@media (max-width: 860px) {
  .topnav { display: none; }
  .topbar { justify-content: space-between; }
  .hero-tower { display: none; }
  .hero { min-height: 70vh; }
}

/* Power-ups */
.pu-lede { max-width: 62ch; }
.pu-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; }
.pu-card { background: var(--panel); border-top: 3px solid var(--red); overflow: hidden; display: flex; flex-direction: column; }
.pu-shot { aspect-ratio: 16 / 9; background: #0c0a12; }
.pu-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pu-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.pu-head { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; }
.pu-icon svg { width: 44px; height: 44px; display: block; }
.pu-name { margin: 0; font: italic 900 1.05rem/1.1 var(--font); text-transform: uppercase; }
.pu-counterpart { margin: 0; color: var(--muted); font-size: 0.8rem; }
.pu-rarity { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 8px; border: 1px solid currentColor; white-space: nowrap; }
.pu-rarity-common { color: #9aa4b2; }
.pu-rarity-uncommon { color: #4cc38a; }
.pu-rarity-rare { color: #4da3ff; }
.pu-rarity-very-rare { color: #ffc81e; }
.pu-effect { margin: 0; }
.pu-controls { margin: 0; color: var(--muted); font-size: 0.85rem; }
.pu-odds-title { margin: 32px 0 6px; font: italic 900 1.05rem/1.1 var(--font); text-transform: uppercase; }
.pu-odds-wrap { overflow-x: auto; }
.pu-odds { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pu-odds th, .pu-odds td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.pu-odds thead th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pu-odds th[scope="row"], .pu-odds thead th:first-child { text-align: left; }
@media (max-width: 640px) {
  .pu-cards { grid-template-columns: 1fr; }
  .pu-odds thead { display: none; }
  .pu-odds, .pu-odds tbody, .pu-odds tr { display: block; width: 100%; }
  .pu-odds tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .pu-odds th[scope="row"] { display: block; border: 0; padding: 0 0 6px; }
  .pu-odds td { display: inline-block; border: 0; padding: 2px 10px 2px 0; text-align: left; }
  .pu-odds td::before { content: attr(data-label) " "; color: var(--muted); }
}
.pu-shot.no-shot { display: none; }

/* Your other drivers */
.summary-drivers { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; gap: 6px; }
.summary-drivers li { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 1.2fr; gap: 10px; padding: 8px 12px; background: var(--panel); border-left: 3px solid var(--red); }
.summary-drivers li span { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .summary-drivers li { grid-template-columns: 1fr; gap: 2px; } }

/* ---- The grid pages (drivers.html, teams.html) ---- */
.grid-page main { padding-bottom: 24px; }
.grid-links { margin: -12px 0 24px; font-weight: 600; }
.grid-links a { color: #fff; }
.topnav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px var(--red); }
.driver-cards, .team-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.driver-card { display: grid; grid-template-columns: 124px 1fr; background: var(--panel); border-top: 4px solid var(--team); overflow: hidden; }
/* The helmet's panel runs the card's full height; the portrait sits on top. */
.driver-helmet { background: radial-gradient(circle at 50% 40%, #1a1a24, #07070c 75%); background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--team) 45%, #0b0b10), #07070c 70%); }
.driver-helmet img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.driver-body { padding: 12px 14px 14px; min-width: 0; }
.driver-body h2, .team-cards .team-body h2 { margin: 2px 0 0; font: italic 900 1.1rem/1.1 var(--font); text-transform: uppercase; }
.team-cards .team-body h2 { font-size: 1rem; }
/* Small red text on the dark panels: a lighter red, for contrast. */
.driver-card .kicker, .team-cards .kicker { color: #ff4a3d; line-height: 1.3; }
.team-cards .team-drivers b { color: #ff4a3d; }
.driver-line { font-size: 0.82rem; margin: 3px 0 10px; }
.standing { margin: 0 0 6px; font-weight: 700; }
.standing span { font-size: 0.68rem; letter-spacing: 0.12em; color: var(--muted); margin-right: 4px; }
.record { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; margin: 0 0 8px; }
.record div { min-width: 0; }
.record dt { font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.record dd { margin: 0; font-weight: 700; }
.career-line { font-size: 0.82rem; margin: 0; color: var(--muted); }
.team-cards .career-line { margin: 0 0 10px; }
.moved { font-size: 0.8rem; margin: 6px 0 0; }
.champion { color: #ffd400; }
.team-cards .team-body .kicker { margin: 0 0 2px; }
@media (max-width: 520px) {
  .driver-card { grid-template-columns: 96px 1fr; }
}

/* ---- Race day: replays, the podium, two players ---- */
/* One row, always: wider than the copy's column where the window has room,
   and a row that scrolls sideways (no bar) where it has not, as on a phone. */
.hero-features { display: flex; flex-wrap: nowrap; gap: 8px; margin: 22px 0 0; width: max-content; max-width: calc(100vw - 2 * clamp(16px, 5vw, 64px)); overflow-x: auto; scrollbar-width: none; }
.hero-features::-webkit-scrollbar { display: none; }
.hero-features .chip { text-decoration: none; flex: none; white-space: nowrap; }
.hero-features .chip:hover, .hero-features .chip:focus-visible { background: rgba(225, 6, 0, 0.3); }

.race-day .section-lead { max-width: 44em; }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  grid-template-areas: "gallery copy";
  gap: clamp(20px, 3.4vw, 48px);
  align-items: center;
  margin-top: clamp(36px, 6vw, 80px);
}
.feature.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); grid-template-areas: "copy gallery"; }
.feature-gallery { grid-area: gallery; display: grid; gap: 10px; min-width: 0; }
.feature-main { margin: 0; background: #05050a; border-top: 3px solid var(--red); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.feature-main img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #05050a; }
.feature-main.no-shot { aspect-ratio: 16 / 9; background: radial-gradient(circle at 60% 40%, #2a0605, var(--panel) 70%); }
.feature-main figcaption { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; background: var(--panel); font-size: 0.85rem; color: #d6d6de; }
.cap-tag { flex: none; padding: 0.4em 0.65em; background: var(--red); color: #fff; font: italic 900 0.72rem/1 var(--font); letter-spacing: 0.06em; text-transform: uppercase; }
.cap-text { min-width: 0; }
.feature-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.thumb { position: relative; display: block; padding: 0; border: 0; background: #05050a; color: #fff; cursor: pointer; overflow: hidden; opacity: 0.6; transition: opacity 0.15s; }
.thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.thumb span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; background: linear-gradient(0deg, rgba(5, 5, 10, 0.9), rgba(5, 5, 10, 0)); font: 700 0.68rem/1 var(--font); letter-spacing: 0.08em; text-align: left; text-transform: uppercase; }
.thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.thumb:hover, .thumb:focus-visible, .thumb.is-on { opacity: 1; }
.thumb.is-on::after { background: var(--red); }
.thumb:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.thumb.no-shot { min-height: 48px; }

.feature-copy { grid-area: copy; min-width: 0; }
.feature-num { margin: 0 0 14px; font: italic 900 clamp(3rem, 6vw, 4.8rem)/1 var(--font); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.42); letter-spacing: -0.02em; }
.feature-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin: 10px 0 14px; padding-right: 0.1em; }
.feature-copy > p:not([class]) { color: #d6d6de; line-height: 1.55; }
.feature-points { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.feature-points li { padding: 2px 0 2px 14px; border-left: 3px solid var(--red); color: var(--muted); line-height: 1.5; }
.feature-points strong { color: #fff; }
.feature-copy .feature-how { color: var(--muted); font-size: 0.92rem; }
.feature-how b, .feature-copy p b { color: #fff; }

/* The two players' keys, P1 sky blue and P2 pink as in the game. */
.keymap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 4px; }
.keymap-col { --p: #75d5ff; min-width: 0; padding: 12px 10px 14px; background: var(--panel-2); border-top: 3px solid var(--p); display: grid; justify-items: center; gap: 8px; }
.keymap-col[data-player="2"] { --p: #ff7ac6; }
.keymap-tag { justify-self: start; margin: 0; padding: 0.15em 0.45em; background: var(--p); color: #0b0b12; font: 900 0.8rem/1.2 var(--font); letter-spacing: 0.04em; border-radius: 2px; }
.key-cluster { display: grid; grid-template-columns: repeat(3, 2.3em); grid-auto-rows: 2.1em; gap: 4px; }
.key-cluster .key-throttle { grid-column: 2; }
.key-cluster .key-left { grid-column: 1; grid-row: 2; }
.key-cluster .key-brake { grid-column: 2; grid-row: 2; }
.key-cluster .key-right { grid-column: 3; grid-row: 2; }
.key-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.key {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 2.3em; padding: 0.3em 0.55em; background: #1d1d29; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14); border-bottom: 3px solid #000; border-radius: 4px;
  font: 700 0.85rem/1 var(--font); white-space: nowrap;
}
.key small { color: var(--p); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; }
.howto-block .howto-sub { margin-top: 22px; }
.keymap-note { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted); font-size: 0.8rem; line-height: 1.45; }

@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "copy"; }
}
@media (max-width: 520px) {
  .feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keymap { grid-template-columns: minmax(0, 1fr); }
}

/* The trackside world (Stage J): six real screenshots with captions. */
.trackside-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.trackside-card { margin: 0; background: var(--panel); border-top: 3px solid var(--red); overflow: hidden; display: flex; flex-direction: column; }
.trackside-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: linear-gradient(135deg, var(--panel-2), #1d0706); }
.trackside-card figcaption { padding: 12px 14px 14px; color: var(--muted); line-height: 1.45; }
.trackside-card figcaption b { display: block; color: #fff; font-weight: 700; margin-bottom: 2px; }

/* ---- The Las Vegas Strip at night: a banner as wide as the page, six sights under it ---- */
/* Las Vegas: the Trackside section's lead example. */
.vegas { margin: clamp(20px, 3vw, 36px) 0 clamp(28px, 4vw, 48px); }
.vegas-banner { position: relative; margin: 0; background: #05050a; }
.vegas-banner img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 900px; object-fit: cover; object-position: 50% 30%; }
.vegas-banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, var(--bg) 0%, rgba(7, 7, 12, 0.72) 22%, rgba(7, 7, 12, 0) 55%); }
.vegas-copy { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 0 clamp(16px, 5vw, 64px) clamp(16px, 3vw, 36px); max-width: 1400px; margin: 0 auto; }
.vegas-copy .kicker { color: #ff5ad0; }
.vegas-copy p:not(.kicker) { max-width: 40em; margin: 0; color: #e4e4ea; line-height: 1.55; }
.vegas-sights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 16px 0 0; }
.vegas-sights .trackside-card { border-top-color: #ff5ad0; }
.vegas-sights .trackside-card img { height: auto; aspect-ratio: 16 / 9; }
.vegas-more { max-width: 1400px; margin: 14px auto 0; padding: 0 clamp(16px, 5vw, 64px); font-size: 0.92rem; }
@media (max-width: 900px) { .vegas-sights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .vegas-sights { grid-template-columns: minmax(0, 1fr); }
  /* Phones: the whole picture, the words under it. */
  .vegas-banner::after { display: none; }
  .vegas-copy { position: static; padding-top: 14px; }
}

/* ---- New on track: four pictures and two cards of words ---- */
.ontrack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
@media (min-width: 1000px) { .ontrack-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ontrack-card { background: var(--panel); border-top: 3px solid var(--red); overflow: hidden; }
.ontrack-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: linear-gradient(135deg, var(--panel-2), #1d0706); }
.ontrack-card h3 { margin: 14px 16px 6px; font: italic 900 1.05rem/1.1 var(--font); text-transform: uppercase; }
.ontrack-card p { margin: 0 16px 16px; color: var(--muted); line-height: 1.5; }
.ontrack-card.is-words { border-top-color: rgba(255, 255, 255, 0.35); background: var(--panel-2); display: flex; flex-direction: column; justify-content: center; padding: 10px 0; }
