/* The site borrows the game's HUD: flat panels, hard pixels, the road's
   amber edge, cyan beacons, green for engines that run. */
:root {
  --bg: #0d0e1d;
  --bg2: #13152a;
  --panel: #1a1d3a;
  --panel2: #242852;
  --line: #343970;
  --ink: #f2f3ff;
  --dim: #a9aedb;
  --mute: #7479ad;
  --cyan: #5fe0ff;
  --amber: #ffa01f;
  --green: #5dff78;
  --red: #ff5148;
  --hull: #ec7a6d;
  --theme: #a877c9;
  --theme-bg: #2a1d3d;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gut: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
/* Livespeed's worlds. */
.t-noon { --theme: #ff9a3c; --theme-bg: #3a2a18; }
.t-black-sun { --theme: #ff3b3b; --theme-bg: #1c1c22; }
.t-amber { --theme: #3fd6c6; --theme-bg: #3b2814; }
.t-blue-hour { --theme: #ffd14a; --theme-bg: #1b2440; }
.t-storm { --theme: #4fe3ff; --theme-bg: #2e2a24; }
.t-basalt { --theme: #ff6a1f; --theme-bg: #20161a; }
/* The other game's. */
.t-ice { --theme: #b18ad6; --theme-bg: #2b2044; }
.t-ember { --theme: #ff6a1f; --theme-bg: #3a1a12; }
.t-sand { --theme: #e8b45a; --theme-bg: #3a2c14; }
.t-sea { --theme: #4fd1c5; --theme-bg: #123336; }

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gut) 72px; outline: none; }
main.wide { max-width: none; padding-left: 0; padding-right: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 12px; max-width: 62ch; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.92em; }
kbd { background: var(--panel2); border: 1px solid var(--line); border-bottom-width: 2px; padding: 1px 6px; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 50; background: var(--amber); color: #000; padding: 8px 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
[hidden] { display: none !important; }

/* The game's 5x7 font, drawn as SVG so it stays hard at any size. */
.px { height: 1em; width: auto; fill: currentColor; shape-rendering: crispEdges; display: inline-block; vertical-align: -0.12em; flex: none; }
.pxw { display: inline-flex; flex-wrap: wrap; gap: 0.5em 0.86em; align-items: center; }
.label { font: 600 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.dim { color: var(--dim); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap;
  padding: 12px var(--gut);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 20px; }
.logo:hover { text-decoration: none; color: var(--amber); }
.logo i { display: block; width: 26px; height: 14px; background: linear-gradient(var(--amber) 0 0) 0 0/100% 4px no-repeat, linear-gradient(var(--cyan) 0 0) 6px 10px/100% 4px no-repeat; transform: skewX(-24deg); }
.top nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.top nav a { color: var(--dim); font: 600 12px/1 var(--mono); letter-spacing: 0.12em; padding: 10px 12px; border-bottom: 3px solid transparent; }
.top nav a:hover { color: var(--ink); text-decoration: none; }
.top nav a.on { color: var(--ink); border-bottom-color: var(--amber); }
.who { display: flex; align-items: center; gap: 10px; }
.chip { font: 600 11px/1 var(--mono); letter-spacing: 0.1em; padding: 6px 8px; border: 1px solid var(--theme); color: var(--theme); background: none; cursor: pointer; }

/* A pilot's plate: number on a slanted block, then the handle. */
.plate { display: inline-flex; align-items: center; gap: 0.55em; color: var(--ink); white-space: nowrap; }
a.plate:hover { text-decoration: none; }
a.plate:hover .handle { color: var(--cyan); }
.plate .no { display: inline-grid; place-items: center; min-width: 2.5em; padding: 0.34em 0.5em; background: var(--plate, var(--amber)); color: #0b0c18; transform: skewX(-14deg); font-size: 0.8em; }
.plate .no .px { transform: skewX(14deg); }
.plate .handle { font-size: 0.8em; }
.plate.drone { color: var(--mute); }
.plate.drone .no { background: var(--line); color: var(--dim); }

/* Buttons: flat blocks with a hard shadow that gives way when pressed. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 13px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 13px 18px; border: 0; cursor: pointer;
  background: var(--amber); color: #0b0c18;
  box-shadow: 4px 4px 0 #000;
  transition: transform 60ms, box-shadow 60ms;
}
.btn:hover { text-decoration: none; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #000; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.btn.ghost { background: var(--panel2); color: var(--ink); box-shadow: 4px 4px 0 #000, inset 0 0 0 1px var(--line); }
.btn.go { background: var(--green); }
.btn.danger { background: none; color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.btn.small { padding: 9px 12px; font-size: 11px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 #000; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.spread { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; }

/* Fields */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span { font: 600 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.field small { color: var(--mute); }
input[type=text], input[type=password], input[type=number], input[type=datetime-local], select {
  width: 100%; padding: 12px; font: 15px var(--mono); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 0;
}
input:focus, select:focus { outline: 2px solid var(--cyan); outline-offset: 0; border-color: var(--cyan); }
input.pin { width: 7.2em; font-size: 28px; letter-spacing: 0.4em; text-align: center; padding: 8px 4px 8px 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 0; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 10px 14px; font: 600 12px/1.2 var(--mono); letter-spacing: 0.06em; border: 1px solid var(--line); margin: 0 -1px -1px 0; color: var(--dim); background: var(--bg); }
.seg input:checked + span { background: var(--cyan); color: #0b0c18; border-color: var(--cyan); position: relative; }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.err { color: var(--red); font: 13px var(--mono); min-height: 1.4em; margin: 0; }

/* Panels */
.panel { background: var(--panel); padding: 20px; }
.panel.edge { border-left: 4px solid var(--amber); }
.panel h3 { margin-bottom: 12px; }
.section { margin-top: 56px; }
.section > header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.section > header h2 { font-size: 26px; }
/* The road's center line. */
.dash { height: 3px; margin: 0 0 20px; background: repeating-linear-gradient(90deg, var(--line) 0 22px, transparent 22px 40px); }
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(28px, 5vw, 46px); }
.page-head p { color: var(--dim); margin-top: 14px; }
.empty { padding: 36px 20px; text-align: center; color: var(--dim); border: 1px dashed var(--line); }
.empty .px { color: var(--mute); font-size: 20px; margin-bottom: 12px; }

/* Hero */
.hero { position: relative; min-height: min(78vh, 700px); max-width: 1720px; margin: 0 auto; display: grid; align-items: end; overflow: hidden; background: var(--bg); }
.hero > img { position: absolute; inset: 0 0 0 auto; width: min(100%, 1180px); height: 100%; object-fit: cover; object-position: 50% 78%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 42%, #000 88%, transparent 100%); }
/* Some worlds have a white sky: the title needs dark air behind it. */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--bg) 0%, rgba(13, 14, 29, 0.82) 36%, rgba(13, 14, 29, 0) 62%), linear-gradient(0deg, var(--bg) 0%, rgba(13, 14, 29, 0) 30%); }
.hero-in { position: relative; z-index: 2; width: 100%; max-width: 1240px; margin: 0 auto; padding: 72px var(--gut) 56px; display: grid; gap: 28px; }
.hero h1 { font-size: clamp(40px, 7.4vw, 96px); color: var(--ink); line-height: 1; }
.hero h1 .px { filter: drop-shadow(0.06em 0.06em 0 #000); }
.hero .sub { font-size: clamp(17px, 2.2vw, 22px); color: var(--ink); max-width: 30ch; margin: 0; }
.hud { display: inline-grid; grid-template-columns: auto 1fr auto; gap: 10px 14px; align-items: center; background: rgba(20, 22, 50, 0.82); padding: 16px 18px; width: min(100%, 340px); }
.hud .bar { height: 12px; background: #0f1026; min-width: 90px; }
.hud .bar i { display: block; height: 100%; background: var(--c, var(--cyan)); transition: width 600ms; }
.hud .label { color: var(--dim); }
.speed { position: absolute; right: var(--gut); bottom: 40px; z-index: 2; background: rgba(20, 22, 50, 0.82); padding: 14px 18px; display: flex; align-items: end; gap: 10px; color: var(--cyan); font-size: 54px; }
.speed small { font-size: 13px; color: var(--dim); }

/* The four lights: seat, link, stream, grid. */
.lamps { display: inline-flex; gap: 6px; padding: 6px 8px; background: #06070f; }
.lamp { width: 14px; height: 14px; border-radius: 50%; background: #2a2d45; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.5); }
.lamp.on { background: var(--green); box-shadow: 0 0 10px var(--green); }
.lamp.wait { background: var(--amber); animation: blink 1s steps(2, start) infinite; }
.lamp.bad { background: var(--red); }
.lamps.big { gap: 14px; padding: 14px 18px; }
.lamps.big .lamp { width: 30px; height: 30px; }
@keyframes blink { to { opacity: 0.25; } }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2px; background: var(--line); }
.step { background: var(--bg2); padding: 22px 20px 24px; display: grid; gap: 10px; align-content: start; }
.step .px { font-size: 18px; }
.step p { color: var(--dim); margin: 0; font-size: 15px; }
.step .lamps { justify-self: start; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.cards.four { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card { display: grid; background: var(--panel); color: var(--ink); position: relative; border-top: 4px solid var(--theme); transition: transform 80ms; }
a.card:hover { text-decoration: none; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }
.card .art { position: relative; aspect-ratio: 9 / 5; background: var(--theme-bg); overflow: hidden; }
.card .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .art .map { position: absolute; inset: 0; }
.card .body { padding: 16px 18px 18px; display: grid; gap: 12px; }
.card h3 { font-size: 15px; }
.card h3 .px { font-size: 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 12px/1.4 var(--mono); color: var(--dim); }
.meta b { color: var(--ink); font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 var(--mono); letter-spacing: 0.12em; padding: 6px 8px; text-transform: uppercase; white-space: nowrap; }
.badge.open { color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.badge.staging { background: var(--amber); color: #0b0c18; }
.badge.live { background: var(--red); color: #fff; }
.badge.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1s steps(2, start) infinite; }
.badge.finished { color: #0b0c18; background: conic-gradient(#fff 25%, #c9cbe0 0 50%, #fff 0 75%, #c9cbe0 0) 0 0 / 10px 10px; }
.badge.cancelled { color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); }
.card .badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.slots { display: flex; flex-wrap: wrap; gap: 4px; }
.slots i { width: 14px; height: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.slots i.p { background: var(--plate, var(--amber)); box-shadow: none; }
.slots i.d { background: var(--line); box-shadow: none; }

/* Track maps */
.map svg { width: 100%; height: 100%; display: block; }
.map .road { fill: none; stroke: var(--ink); stroke-linejoin: round; stroke-linecap: round; }
.map .under { fill: none; stroke: #000; stroke-opacity: 0.55; stroke-linejoin: round; stroke-linecap: round; }
.map .k1 { stroke: #ff6a1f; } .map .k2 { stroke: var(--cyan); } .map .k3 { stroke: #b08a4e; } .map .k4 { stroke: var(--green); } .map .k5 { stroke: #e8c77a; }
.map .k6 { stroke: #7f9a3c; } .map .k7 { stroke: var(--theme-bg); stroke-dasharray: 2 3; }
.map .lowg { stroke: #d48cff; stroke-dasharray: 3 3; }
.map .tunnel { stroke: #0b0c18; stroke-dasharray: 1 5; }
.map .start { stroke: var(--amber); }
.map .dot { stroke: #000; stroke-width: 1; }
.profile { width: 100%; height: 44px; display: block; }
.profile path { fill: color-mix(in srgb, var(--theme) 30%, transparent); stroke: var(--theme); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 11px var(--mono); color: var(--dim); }
.legend i { display: inline-block; width: 14px; height: 4px; margin-right: 6px; vertical-align: middle; }

/* Race page */
.race-head { margin: 28px 0 24px; padding: 28px clamp(18px, 3vw, 32px); background: linear-gradient(120deg, var(--theme-bg), var(--panel) 70%); border-left: 6px solid var(--theme); display: grid; gap: 18px; }
.race-head h1 { font-size: clamp(26px, 5vw, 50px); }
.race-head .crumbs { font: 12px var(--mono); color: var(--dim); letter-spacing: 0.08em; }
.two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.two.one { grid-template-columns: minmax(0, 720px); }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.bigmap { aspect-ratio: 16 / 10; background: var(--theme-bg); position: relative; }
.bigmap .clock { position: absolute; left: 14px; top: 12px; font-size: 26px; color: var(--ink); background: rgba(13, 14, 29, 0.7); padding: 8px 10px; }
.banner { padding: 14px 18px; font: 600 14px/1.4 var(--mono); letter-spacing: 0.04em; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.banner.amber { background: var(--amber); color: #0b0c18; }
.banner.red { background: var(--red); color: #fff; }
.banner.green { background: var(--green); color: #0b0c18; }
.banner.dim { background: var(--panel2); color: var(--dim); }
.grid-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.grid-list li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto auto; gap: 12px; align-items: center; background: var(--bg2); padding: 10px 14px; min-height: 52px; }
.grid-list li.you { box-shadow: inset 4px 0 0 var(--cyan); }
.grid-list .pos { color: var(--mute); font-size: 14px; }
.grid-list .craft { font: 11px var(--mono); color: var(--dim); letter-spacing: 0.08em; }
.grid-list li.free { color: var(--mute); font: 12px var(--mono); letter-spacing: 0.08em; }

.preflight { display: grid; gap: 16px; }
.preflight ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.preflight li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 14px; background: var(--bg2); }
.preflight li > .lamp { width: 22px; height: 22px; margin-top: 2px; }
.preflight li h4 { margin: 0 0 4px; font: 700 12px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.preflight li.off { opacity: 0.5; }
.preflight li p { color: var(--dim); font-size: 14px; margin: 0 0 10px; }
.preflight li p:last-child { margin-bottom: 0; }
.copy { display: flex; align-items: stretch; max-width: 100%; margin: 0 0 10px; }
.copy code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-right: 0; color: var(--cyan); }
.copy button { border: 1px solid var(--line); background: var(--panel2); color: var(--ink); font: 700 11px var(--mono); letter-spacing: 0.1em; padding: 0 12px; cursor: pointer; }
.copy button:hover { background: var(--cyan); color: #0b0c18; }
details { margin-top: 8px; }
summary { cursor: pointer; color: var(--dim); font: 12px var(--mono); letter-spacing: 0.06em; }

/* Podium and timing tables */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; align-items: end; margin-bottom: 20px; }
.podium > div { background: var(--panel2); padding: 16px 12px; display: grid; gap: 10px; justify-items: center; text-align: center; min-width: 0; }
.podium > div { grid-row: 1; }
.podium .p1 { grid-column: 2; padding-top: 44px; background: linear-gradient(var(--theme-bg), var(--panel2)); border-top: 4px solid var(--amber); }
.podium .p2 { grid-column: 1; padding-top: 28px; }
.podium .p3 { grid-column: 3; }
.podium .place { font-size: 30px; color: var(--amber); }
.podium .p2 .place, .podium .p3 .place { font-size: 22px; color: var(--dim); }
.podium .plate { flex-direction: column; gap: 8px; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 600 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--bg2); white-space: nowrap; }
td.r, th.r { text-align: right; }
tbody tr:hover { background: var(--bg2); }
tr.me { box-shadow: inset 4px 0 0 var(--cyan); }
td .px { font-size: 13px; }
.fast { color: #d48cff; }
.gold { color: var(--amber); }

/* Craft picker */
.crafts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2px; }
.crafts label { cursor: pointer; display: block; }
.crafts input { position: absolute; opacity: 0; }
.crafts .c { background: var(--bg2); padding: 14px; display: grid; gap: 8px; border: 2px solid transparent; height: 100%; }
.crafts input:checked + .c { border-color: var(--cyan); background: var(--panel2); }
.crafts input:focus-visible + .c { outline: 2px solid var(--ink); }
.crafts .c .px { font-size: 15px; }
.crafts .c small { color: var(--dim); font-size: 13px; }
.stat { display: grid; grid-template-columns: 4.6em 1fr; gap: 8px; align-items: center; font: 10px var(--mono); letter-spacing: 0.1em; color: var(--mute); text-transform: uppercase; }
.stat i { height: 6px; background: var(--bg); display: block; }
.stat i b { display: block; height: 100%; background: var(--green); }

/* Garage */
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2px; }
.downloads a { background: var(--bg2); color: var(--ink); padding: 14px; display: grid; gap: 4px; font: 600 13px var(--mono); }
.downloads a small { color: var(--mute); font-weight: 400; }
.downloads a.yours { background: var(--amber); color: #0b0c18; }
.downloads a.yours small { color: #3a2a08; }
.downloads a:hover { text-decoration: none; outline: 2px solid var(--cyan); outline-offset: -2px; }

/* Ticker */
.ticker { display: flex; gap: 28px; overflow-x: auto; padding: 8px var(--gut); background: var(--bg2); border-bottom: 1px solid var(--line); font: 12px/1.2 var(--mono); color: var(--dim); white-space: nowrap; scrollbar-width: none; }
.ticker b { color: var(--ink); font-weight: 600; }
.ticker .livedot { color: var(--red); }
.ticker a { color: inherit; }

/* Dialog and toasts */
dialog { border: 0; padding: 0; background: var(--panel); color: var(--ink); width: min(94vw, 460px); max-height: 92vh; box-shadow: 10px 10px 0 #000; border-top: 4px solid var(--amber); }
dialog.wide { width: min(94vw, 760px); }
dialog::backdrop { background: rgba(5, 6, 14, 0.78); }
dialog form, dialog .inner { padding: 26px; }
dialog h2 { font-size: 22px; margin-bottom: 20px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; background: none; border: 0; color: var(--dim); font: 700 12px var(--mono); letter-spacing: 0.12em; padding: 16px 8px; cursor: pointer; border-bottom: 3px solid transparent; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--amber); }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; gap: 8px; max-width: min(92vw, 380px); }
.toast { background: var(--panel2); border-left: 4px solid var(--cyan); padding: 12px 14px; font: 13px/1.4 var(--mono); box-shadow: 4px 4px 0 #000; }
.toast.bad { border-left-color: var(--red); }

footer { border-top: 1px solid var(--line); padding: 22px var(--gut); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font: 12px var(--mono); color: var(--mute); }

@media (max-width: 860px) {
  .two { grid-template-columns: minmax(0, 1fr); }
  .speed { display: none; }
  /* The picture sits above the words instead of behind them. */
  .hero { display: block; min-height: 0; }
  .hero > img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 9 / 5; -webkit-mask-image: none; mask-image: none; object-position: 50% 50%; }
  .hero::before { display: none; }
  .hero-in { padding-top: 28px; padding-bottom: 8px; }
  .top nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .grid-list li { grid-template-columns: 1.6em minmax(0, 1fr) auto; }
  .grid-list .craft { display: none; }
}
@media (max-width: 600px) {
  .opt { display: none; }
  th, td { padding: 9px 6px; }
  .podium .plate .handle { font-size: 0.62em; }
  .panel { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
