/* PURPLE Model GP - on top of lab/lab.css, concept/lab/concept-lab.css and concept/compare/compare.css (the lanes are the side-by-side
   page's lanes, one per entrant). Unlike the side-by-side page this one scrolls: the result first (standings with the real pole in
   place, the race link), then the replay lanes, the results table, the shared curves and the harness. Dark only; each lane's accent is the entrant's colour (concept/gp/entrants.json). */
.gp-page { height: auto; min-height: 100vh; overflow: visible; }
body.gp-page { overflow-x: hidden; overflow-y: auto; }
.gp-banner { padding: 8px var(--gut); background: #3a1020; border-bottom: 1px solid var(--red); color: var(--text); font: 600 13px/1.4 var(--sans); }
.gp-lanes { flex: none; grid-template-columns: repeat(5, minmax(0, 1fr)); height: 640px; }
.gp-lanes .cmp-lane { --lc: var(--gp-c, var(--purple)); }
.gp-lanes .cmp-lane.ctrl { border-top-style: dashed; }
.gp-lanes .cmp-best-v { font-size: 26px; }
.gp-lanes .cmp-chart { height: 170px; }
.gp-lanes .cmp-lw { font-family: var(--mono); font-size: 11px; }
.gp-lanes .cmp-stats { grid-template-columns: minmax(0, 1fr); }
.gp-lanes .cmp-side { align-items: flex-start; text-align: left; }

/* ---- the result, first screen: headline + race button on the left, the standings on the right */
.gp-result { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 28px; align-items: start; margin: 12px var(--gut) 0; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.gp-result[hidden] { display: none; }
.gp-result-l { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gp-kicker { margin: 0; font: 500 12px/1.3 var(--sans); color: var(--muted); }
.gp-headline { margin: 0; font: 600 22px/1.3 var(--sans); color: var(--text); text-wrap: balance; }
.gp-headline .t { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.02em; }
.gp-sub { margin: 0; font: 400 13px/1.5 var(--sans); color: var(--muted); max-width: 60ch; }
.gp-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.gp-cta .btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 14px; text-decoration: none; }
.btn.gp-race-btn { background: var(--purple); border-color: var(--purple); color: #0a0a0c; box-shadow: 0 0 0 0 rgba(178, 108, 255, .5); }
.btn.gp-race-btn:hover:not(:disabled) { background: #c38cff; border-color: #c38cff; }
.gp-watch { color: var(--text); }
.gp-race-note { margin: 0; font: 400 12px/1.45 var(--sans); color: var(--muted); max-width: 60ch; }
.gp-board-wrap { min-width: 0; }
.gp-board { width: 100%; border-collapse: collapse; font: 400 13px/1.3 var(--sans); color: var(--text); }
.gp-board th { text-align: left; font: 500 11px/1.25 var(--sans); color: var(--muted); padding: 0 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.gp-board th.n, .gp-board td.n { text-align: right; }
.gp-board td { padding: 7px 8px; border-bottom: 1px solid #1c1c22; vertical-align: middle; }
.gp-board td.n { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gp-board td.t { font-weight: 600; font-size: 14px; }
.gp-board .pos { width: 2.6em; font: 600 13px/1 var(--mono); color: var(--muted); }
.gp-board tr.p1 .pos { color: var(--text); }
.gp-board tbody tr { box-shadow: inset 3px 0 0 var(--rc, transparent); }
.gp-board tbody tr.p1 { background: linear-gradient(90deg, rgba(178, 108, 255, .14), transparent 70%); }
.gp-board .nm { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.gp-board .sub { display: block; margin: 2px 0 0 18px; font: 400 11px/1.3 var(--sans); color: var(--muted); }
.gp-board .gp-chip { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--rc); }
.gp-board tr.ctrl .gp-chip { background: none; border: 2px solid var(--rc); box-sizing: border-box; }
.gp-board tr.pole { box-shadow: inset 3px 0 0 var(--green); }
.gp-board tr.pole td { border-bottom-style: dashed; }
.gp-board tr.pole .nm { color: var(--green); font-weight: 600; }
.gp-board .gp-chip.pole { background: none; border: 2px solid var(--green); box-sizing: border-box; }
.gp-board .under { color: var(--green); }
.gp-board .over { color: var(--text); }
.gp-board-src { margin: 8px 0 0; font: 400 11px/1.4 var(--sans); color: var(--muted); }
.gp-board-src b { color: var(--text); font-weight: 500; }

/* ---- the replay heading */
.gp-replay-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 20px var(--gut) 8px; scroll-margin-top: 8px; }
.gp-replay-h h2 { margin: 0; font: 600 15px/1.25 var(--sans); color: var(--text); }
.gp-replay-h p { margin: 0; font: 400 12px/1.4 var(--sans); color: var(--muted); }

/* ---- one loading line per card: ours covers the canvas until the view is ready; the view's own line is not shown here */
.gp-lanes .cv-loading { display: none; }
.gp-lanes .cmp-car-wait { z-index: 1; background: radial-gradient(120% 90% at 50% 45%, #18181f 0%, var(--panel) 62%); }

.gp-below { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0 var(--gut) 12px; }
.gp-below .panel { padding: 0 0 12px; min-width: 0; }
.gp-below .ph { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 12px 8px; }
.gp-below .ph h2 { margin: 0; font: 600 15px/1.25 var(--sans); color: var(--text); }

.gp-table-wrap { overflow-x: auto; padding: 0 12px; }
.gp-table { width: 100%; border-collapse: collapse; font: 400 12px/1.35 var(--sans); color: var(--text); }
.gp-table th { text-align: left; font: 500 11px/1.25 var(--sans); color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.gp-table td { padding: 6px 8px; border-bottom: 1px solid #1c1c22; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gp-table td.n { font-family: var(--mono); text-align: right; }
.gp-table th.n { text-align: right; }
.gp-table tr.seed td { color: var(--muted); font-size: 11px; }
.gp-table tr.seed td:nth-child(2) { padding-left: 26px; }
.gp-table .sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
.gp-table .under { color: var(--green); }
.gp-table .warn { color: var(--amber); }
.gp-table .bad { color: var(--red); }

.gp-curves { position: relative; height: 320px; margin: 0 12px; }
.gp-curves canvas { display: block; width: 100%; height: 100%; }
.gp-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 8px 12px 0; font: 500 12px/1.3 var(--sans); color: var(--muted); }
.gp-legend i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.gp-harness { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; padding: 0 12px; font: 400 12px/1.4 var(--sans); }
.gp-harness .k { color: var(--muted); }
.gp-harness .v { color: var(--text); font-family: var(--mono); font-size: 11px; overflow-wrap: anywhere; }
.gp-empty { grid-column: 1 / -1; margin: 24px auto; max-width: 720px; padding: 16px; font: 400 13px/1.5 var(--sans); color: var(--muted); }
.gp-empty code { font: 500 12px var(--mono); color: var(--text); overflow-wrap: anywhere; }

@media (max-width: 1400px) { .gp-lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; height: auto; row-gap: 12px; } .gp-lanes .cmp-lane { grid-row: auto; display: flex; flex-direction: column; } .gp-lanes .cmp-car { flex: none; height: 200px; } }
@media (max-width: 1100px) { .gp-lanes { display: flex; flex-direction: column; } .gp-result { grid-template-columns: minmax(0, 1fr); } }


/* the results table scrolls inside its own box; the entrant column stays put while it does */
.gp-table th:nth-child(2), .gp-table td:nth-child(2) { position: sticky; left: 0; z-index: 1; background: var(--panel); box-shadow: 1px 0 0 var(--line); }
.gp-swipe { display: none; margin: 8px 12px 0; font: 400 11px/1.4 var(--sans); color: var(--muted); }
@media (max-width: 640px) {
  .gp-swipe { display: block; }
  .gp-table .mid { display: none; }
  .gp-harness { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gp-harness .k { margin-top: 8px; }
  .gp-lanes .cmp-car { height: 180px; }
  .gp-result { margin: 8px var(--gut) 0; padding: 14px 12px; }
  .gp-headline { font-size: 18px; }
  .gp-board .opt { display: none; }
  .gp-board td, .gp-board th { padding-left: 6px; padding-right: 6px; }
  .gp-board .sub { margin-left: 0; }
  .gp-cta .btn { flex: 1 1 auto; justify-content: center; }
  .gp-curves { height: 240px; }
  .gp-below .ph { flex-direction: column; gap: 4px; }
  .gp-table th:first-child, .gp-table td:first-child { display: none; }
  .gp-table tr.seed td:nth-child(2) { padding-left: 16px; }
  .gp-lanes .cmp-chart { height: 150px; }
}

/* ---- tabs in the header: the live race (default) and the last recorded race */
.gp-page .cmp-top { flex-wrap: wrap; }
.gp-tabs { display: flex; gap: 4px; }
.gp-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r); background: none; font: 600 13px/1.2 var(--sans); color: var(--muted); cursor: pointer; }
.gp-tab:hover { color: var(--text); }
.gp-tab.on { color: var(--text); border-color: var(--red); background: rgba(240, 80, 110, .08); }
#gpTabRec.on { border-color: var(--purple); background: var(--purple-dim); }
.gp-rec[hidden], .gp-live[hidden] { display: none; }
.gp-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gp-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: gp-pulse 1.8s ease-out infinite; }
@keyframes gp-pulse { 0% { box-shadow: 0 0 0 0 rgba(240, 80, 110, .55); } 70% { box-shadow: 0 0 0 7px rgba(240, 80, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 80, 110, 0); } }
@media (prefers-reduced-motion: reduce) { .gp-live-dot { animation: none; } }

/* ---- the recorded tab: standings + one race button, then the replay with its controls */
.gp-result { grid-template-columns: minmax(0, 1fr) auto; }
.gp-result-r { display: flex; align-items: flex-start; }
#gpRaceModels[hidden] { display: none; }
.gp-replay-h .cmp-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.gp-replay-h { align-items: center; }

/* ---- LIVE (concept/gp/live.js) */
.gp-live { padding: 12px var(--gut) 16px; }
.gp-live-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 28px; align-items: start; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--r); }
.gp-live .gp-kicker { margin: 0; font: 500 12px/1.3 var(--sans); color: #ff9fb2; }
.gp-live-ctl { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gp-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.gp-pk { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r); font: 500 13px/1.2 var(--sans); color: var(--text); cursor: pointer; user-select: none; }
.gp-pk:has(input:checked) { border-color: var(--gp-c); background: rgba(255, 255, 255, .03); }
.gp-pk:has(input:disabled) { cursor: default; opacity: .75; }
.gp-pk input { margin: 0; accent-color: var(--gp-c); }
.gp-pk i { width: 8px; height: 8px; border-radius: 50%; background: var(--gp-c); }
.gp-pk i.ctrl { background: none; border: 2px solid var(--gp-c); box-sizing: border-box; }
.gp-live-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.btn.gp-start { padding: 12px 18px; font-size: 15px; text-align: left; line-height: 1.3; }
.gp-live-go .btn[hidden] { display: none; }
.gp-live-status { margin: 0; font: 500 12px/1.4 var(--mono); color: var(--muted); }
.gp-live-res { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.gp-live-res .gp-board { width: 100%; }
.gp-live-res .gp-board td { padding-top: 5px; padding-bottom: 5px; }
#gpLiveRace[hidden] { display: none; }
.gp-board tr.moved td { background: rgba(178, 108, 255, .12); }

/* the standings strip pinned at the top while the lanes scroll */
.gp-strip { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 10px 0 0; padding: 8px 12px; background: rgba(18, 18, 22, .94); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--r); font: 500 12px/1.3 var(--sans); color: var(--muted); }
.gp-strip[hidden] { display: none; }
.gp-strip-t { font-family: var(--mono); color: var(--text); margin-right: 4px; }
.gp-sc { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; color: var(--text); padding: 2px 6px; border-radius: 4px; transition: background var(--t-flash); }
.gp-sc.moved { background: rgba(178, 108, 255, .2); }
.gp-sc i { width: 8px; height: 8px; border-radius: 50%; background: var(--gp-c); align-self: center; }
.gp-sc.pole i { background: none; border: 2px solid var(--green); box-sizing: border-box; }
.gp-sc.pole { color: var(--green); }
.gp-sc b { font-family: var(--mono); font-weight: 600; }
.gp-sc b.p { color: var(--muted); font-size: 11px; }
.gp-sc small { color: var(--muted); font: 500 11px var(--mono); }

/* one lane = one full-width row: identity + 3D car | numbers | progress chart | feed */
.gp-live-lanes { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.gp-ll { --lc: var(--gp-c, var(--purple)); display: grid; grid-template-columns: 260px 250px minmax(0, 1fr) minmax(0, 400px); min-width: 0; overflow: hidden; border-left: 3px solid var(--lc); padding: 0; }
.gp-ll.ctrl { border-left-style: dashed; }
.gp-ll > div { min-width: 0; }
.gp-ll-a { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.gp-ll-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 2px; }
.gp-ll-h .cmp-lt i { background: var(--lc); }
.gp-ll-h .cmp-lt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-ll-chip { flex: none; padding: 2px 8px; border-radius: 999px; font: 600 11px/1.4 var(--mono); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.gp-ll-chip.on { border-color: var(--red); color: #ffb3c1; }
.gp-ll-chip.end { border-color: var(--green); color: var(--green); }
.gp-ll-chip.bad { border-color: var(--red); color: var(--red); }
.gp-ll-w { padding: 2px 12px 8px; font: 400 11px/1.45 var(--sans); color: var(--muted); overflow-wrap: anywhere; }
.gp-ll-w code { font: 500 11px var(--mono); color: var(--text); }
.gp-ll-lab.live { color: #ffb3c1; }
.gp-ll-lab.mock { color: var(--amber); }
.gp-ll-car.cmp-car { flex: 1 1 auto; height: auto; min-height: 150px; }
.gp-ll .cv-loading { display: none; }
.gp-ll .cmp-car-wait { z-index: 1; background: radial-gradient(120% 90% at 50% 45%, #18181f 0%, var(--panel) 62%); }
.gp-ll-gen { padding: 8px 12px 10px; }
.gp-ll-bar { height: 4px; border-radius: 2px; background: #22222a; overflow: hidden; }
.gp-ll-bar i { display: block; height: 100%; width: 0; background: var(--lc); transition: width 400ms var(--ease); }
.gp-ll-gv { display: block; margin-top: 5px; font: 500 12px/1 var(--mono); color: var(--muted); }
.gp-ll-gv b { font-size: 18px; color: var(--text); font-weight: 600; }
.gp-ll-b { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-right: 1px solid var(--line); }
.gp-ll-k { font: 500 11px/1.3 var(--sans); color: var(--muted); }
.gp-ll-bl { display: flex; flex-direction: column; gap: 2px; }
.gp-ll-best { font: 600 30px/1 var(--mono); color: var(--lc); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.gp-ll-best.start { color: var(--muted); }
.gp-ll-best small { font-size: 13px; color: var(--muted); }
.gp-ll-kv { display: grid; grid-template-columns: auto auto; gap: 3px 10px; margin: 0; font: 400 12px/1.35 var(--sans); }
.gp-ll-kv dt { color: var(--muted); }
.gp-ll-kv dd { margin: 0; text-align: right; font-family: var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.gp-ll .under { color: var(--green); }
.gp-ll .warn { color: var(--amber); }
.gp-ll .bad { color: var(--red); }
.gp-ll .muted { color: var(--muted); }
.gp-ll-sec { display: flex; flex-wrap: wrap; gap: 2px 10px; font: 500 11px/1.4 var(--mono); color: var(--text); }
.gp-ll-sec b { color: var(--muted); font-weight: 500; }
.gp-ll-sec small { color: var(--muted); }
.gp-ll-note { margin-top: auto; font: 400 11px/1.45 var(--sans); color: var(--muted); }
.gp-ll-note b { color: var(--text); font-weight: 600; }
.gp-ll-c { display: flex; flex-direction: column; padding: 8px 8px 6px; border-right: 1px solid var(--line); }
.gp-ll-ch { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 2px 4px 4px; }
.gp-ll-lg { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 500 11px/1.3 var(--sans); color: var(--muted); }
.gp-ll-lg .lg { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.gp-ll-lg .lg i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.gp-ll-lg .lg i.k { background: var(--lc); }
.gp-ll-lg .lg i.r { border: 1px solid var(--muted); }
.gp-ll-lg .lg i.x { background: var(--red); border-radius: 1px; width: 6px; height: 6px; }
.gp-ll-svg { flex: 1 1 auto; min-height: 250px; position: relative; }
.gp-ll-svg svg { position: absolute; inset: 0; display: block; }
.gp-ll .svgwrap .grid { stroke: #1f1f26; }
.gp-ll .svgwrap .bestline { stroke: var(--lc); }
.gp-ll .svgwrap .kept { fill: var(--lc); }
.gp-ll .svgwrap .ref.pole { stroke: var(--green); opacity: .8; }
.gp-ll-d { display: flex; flex-direction: column; padding: 8px 0 0; }
.gp-ll-d .gp-ll-ch { padding: 2px 12px 4px; }
.gp-feed { list-style: none; margin: 0; padding: 0; height: 330px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-top: 1px solid var(--line); }
.gp-feed:empty::before { content: "the ideas arrive here, newest first"; display: block; padding: 12px; font: 400 12px/1.4 var(--sans); color: var(--muted); }

/* the homepage's Mubit feed card (concept/lab/mubit-first.css), here inside a lane */
.gp-feed .ln.mu-card { padding: 9px 12px 9px 10px; border-left: 2px solid transparent; border-bottom: 1px solid #1c1c22; background: none; }
.gp-feed .ln.mu-card.ok { border-left-color: var(--green); }
.gp-feed .ln.mu-card.pend { border-left-color: var(--lc); }
.gp-feed .ln.mu-card.fb { border-left-color: var(--amber); }
.gp-feed .ln.mu-card .l1 { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.gp-feed .ln.mu-card .g { flex: none; width: auto; min-width: 30px; font: 500 12px/1 var(--mono); color: var(--muted); }
.gp-feed .mu-v, .gp-feed .mu-chip { flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; font: 600 12px/1 var(--sans); white-space: nowrap; }
.gp-feed .mu-v.good { color: var(--green); border-color: rgba(74, 222, 128, .5); background: rgba(74, 222, 128, .08); }
.gp-feed .mu-v.bad { color: var(--red); border-color: rgba(240, 80, 110, .45); background: rgba(240, 80, 110, .06); }
.gp-feed .mu-v.wait { color: var(--muted); font-weight: 500; }
.gp-feed .mu-chip.warn { color: var(--amber); border-color: rgba(251, 191, 36, .45); font-weight: 500; }
.gp-feed .mu-hyp { margin-top: 6px; font: 400 13px/1.45 var(--sans); color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gp-feed .mu-hyp:empty, .gp-feed .mu-chg:empty, .gp-feed .mu-res:empty { display: none; }
.gp-feed .mu-chg { margin-top: 3px; font: 500 12px/1.4 var(--sans); color: #c9c9d2; overflow-wrap: anywhere; }
.gp-feed .mu-chg .k { color: var(--muted); font-weight: 400; }
.gp-feed .mu-res { margin-top: 2px; font: 400 12px/1.4 var(--sans); color: var(--muted); overflow-wrap: anywhere; }
.gp-feed .mu-res .mu-eng.kept { color: var(--text); }
.gp-feed .mu-meta { margin-top: 4px; font: 400 11px/1.4 var(--sans); color: var(--muted); overflow-wrap: anywhere; }
.gp-feed .mu-meta .num { font-family: var(--mono); }
.gp-feed .mu-rid { font: 500 11px/1.3 var(--mono); color: #cfc3ff; }

@media (max-width: 1300px) { .gp-ll { grid-template-columns: 240px 230px minmax(0, 1fr); } .gp-ll-d { grid-column: 1 / -1; border-top: 1px solid var(--line); } .gp-feed { height: 260px; } }
@media (max-width: 1100px) { .gp-live-head { grid-template-columns: minmax(0, 1fr); } .gp-result { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .gp-ll { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gp-ll-c { grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: 0; }
  .gp-ll-b { border-right: 0; }
}
@media (max-width: 640px) {
  .gp-live { padding: 8px var(--gut) 12px; }
  .gp-live-head { padding: 14px 12px; }
  .gp-ll { grid-template-columns: minmax(0, 1fr); }
  .gp-ll-a { border-right: 0; border-bottom: 1px solid var(--line); }
  .gp-ll-svg { min-height: 200px; }
  .gp-feed { height: 300px; }
  .btn.gp-start { flex: 1 1 auto; }
  .gp-tabs { width: 100%; }
  .gp-tab { flex: 1 1 0; justify-content: center; }
  .gp-replay-h .cmp-ctl { margin-left: 0; }
}
.btn.gp-race-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 14px; text-decoration: none; white-space: nowrap; }
.gp-replay-h { flex-wrap: wrap; }
.gp-replay-h .cmp-ctl { flex: 1 1 auto; min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
  .gp-strip { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 10px; }
  .gp-strip-t { display: none; }
  .gp-replay-h .cmp-seed select { max-width: 44vw; }
}

/* ---- race length, the replay of a recorded live race and its label */
.gp-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.gp-seg .btn { padding: 6px 10px; font-size: 12px; }
.gp-seg .btn.on { border-color: var(--purple); background: var(--purple-dim); color: var(--text); }
.gp-replay-go { gap: 6px 8px; }
.btn.gp-replay-btn { padding: 8px 12px; font-size: 13px; }
.gp-replay-chip { display: inline-block; padding: 1px 8px; border: 1px solid rgba(251, 191, 36, .55); border-radius: 999px; font: 500 11px/1.5 var(--mono); color: var(--amber); white-space: nowrap; vertical-align: 1px; }
.gp-replay-chip[hidden] { display: none; }
.gp-strip .gp-replay-chip:empty { display: none; }
