@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: block;
  src: url("/assets/fonts/archivo.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: block;
  src: url("/assets/fonts/archivo-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Comic Neue";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/comic-neue-700.woff2") format("woff2");
}

:root {
  --black: #000;
  --car: #121212;            /* livery black */
  --yellow: #ffc400;         /* livery yellow */
  --yellow-ink: #3a2c00;
  --asphalt: #3b3d40;
  --asphalt-2: #313336;
  --white: #fff;
  --concrete: #e6e7e3;
  --ink: #141414;
  --muted: #5d6166;
  --red: #e01b24;
  --green: #18a34a;
  --blue: #1f4fd1;
  /* classic doge text colours, garnish only */
  --doge-lime: #6dff2e;
  --doge-pink: #ff4fd8;
  --doge-cyan: #3ef0ff;
  --wide: "Archivo", "Arial Black", system-ui, sans-serif;
  --comic: "Comic Sans MS", "Comic Neue", "Chalkboard SE", cursive;
  --gutter: 16px;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.5 var(--wide);
  font-stretch: 100%;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--yellow); color: var(--black); padding: 8px 12px; z-index: 10; font-weight: 700; }
.skip-link:focus { top: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* doge-speak: the only Comic Sans on the page */
.ds { font-family: var(--comic); font-weight: 700; font-style: normal; font-stretch: 100%; letter-spacing: 0; }
.ds-lime { color: var(--doge-lime); }
.ds-pink { color: var(--doge-pink); }
.ds-cyan { color: var(--doge-cyan); }
.ds-ink { color: #b100a0; }

/* ---------- broadcast bug ---------- */
.bug {
  display: flex; align-items: center; gap: 14px;
  min-height: 34px; padding: 6px var(--gutter);
  background: var(--black); color: var(--white);
  font-size: 13px; font-weight: 700; font-stretch: 85%; letter-spacing: .02em;
}
.bug-live { display: inline-flex; align-items: center; gap: 7px; background: var(--red); padding: 2px 8px 2px 7px; font-style: italic; font-stretch: 110%; }
.bug-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--white); animation: blink 1.4s steps(2, start) infinite; }
.bug-where { color: #c9cbce; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bug-flag { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.bug-flag i { width: 18px; height: 12px; background: var(--yellow); }
body[data-flag="green"] .bug-flag i { background: var(--green); }
@keyframes blink { to { visibility: hidden; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--asphalt);
  background-image:
    radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.2px),
    radial-gradient(rgba(0,0,0,.18) 1px, transparent 1.2px);
  background-size: 5px 5px, 7px 7px;
  background-position: 0 0, 2px 3px;
  color: var(--white);
}
.track { position: absolute; inset: 0; pointer-events: none; }
.lane {
  position: absolute; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.75) 0 70px, transparent 70px 170px);
  animation: lanes .9s linear infinite;
}
.lane.l1 { top: 44%; opacity: .55; }
.lane.l2 { top: 74%; }
.apron { position: absolute; left: 0; right: 0; bottom: 18px; height: 16px; border-top: 5px solid var(--yellow); border-bottom: 5px solid var(--yellow); }
@keyframes lanes { to { background-position: -170px 0; } }

.hero-in {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  padding: 28px var(--gutter) 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start;
}
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
  grid-template-areas: "title title" "say car" "lt car";
  grid-template-rows: auto auto 1fr;
  column-gap: 8px;
}
.title {
  grid-area: title; margin: 0;
  font-weight: 900; font-style: italic; font-stretch: 125%;
  font-size: clamp(54px, 8.6vw, 132px); line-height: .9; letter-spacing: -.035em;
  color: var(--white);
  -webkit-text-stroke: 2px var(--black);
  paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--black);
}
.title-cash { color: var(--yellow); }
.hero-say { grid-area: say; margin: 14px 0 0; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.15; }
.hero-say .ds { display: inline-block; text-shadow: 2px 2px 0 var(--black); }
.hero-say .ds-pink { margin-left: .4em; }

.car-wrap { grid-area: car; position: relative; margin-top: -36px; aspect-ratio: 1; }
.car { width: 100%; height: auto; animation: car-in .7s cubic-bezier(.2,.9,.25,1) both, rumble .12s linear .7s infinite; }
@keyframes car-in { from { transform: translateX(70%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rumble { 0%,100% { translate: 0 0; } 50% { translate: 0 1px; } }
.pops { position: absolute; inset: 0; pointer-events: none; }
.pop {
  position: absolute; font-family: var(--comic); font-weight: 700; font-size: clamp(20px, 2.2vw, 30px); line-height: 1;
  text-shadow: 2px 2px 0 var(--black); white-space: nowrap;
  animation: pop 1.7s ease-out both;
}
@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 12% { opacity: 1; transform: scale(1.06); } 22% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }

/* lower third */
.lt { grid-area: lt; align-self: end; margin-top: 22px; max-width: 560px; }
.lt-head { display: flex; align-items: stretch; background: var(--white); color: var(--ink); box-shadow: 6px 6px 0 var(--black); }
.lt-num {
  flex: none; display: grid; place-items: center; width: 72px;
  background: var(--yellow); color: var(--black);
  font-weight: 900; font-style: italic; font-stretch: 125%; font-size: 34px; letter-spacing: -.04em;
  -webkit-text-stroke: 1.5px var(--white); paint-order: stroke fill;
}
.lt-text { margin: 0; padding: 12px 14px; font-size: 15.5px; line-height: 1.4; font-weight: 500; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.ca {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; min-width: 0; max-width: 100%;
  padding: 0 6px 0 14px; background: var(--black); color: var(--white);
  border: 2px solid var(--black);
}
.ca-k { font-weight: 800; font-stretch: 75%; color: var(--yellow); font-size: 14px; }
.ca code { font: 600 14px/1.2 ui-monospace, "SF Mono", Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-copy {
  flex: none; min-height: 36px; padding: 0 14px; border: 0; cursor: pointer;
  background: var(--yellow); color: var(--black); font-weight: 800; font-stretch: 85%; font-size: 14px;
}
.ca-copy:disabled { background: #3a3a3a; color: #9a9a9a; cursor: default; }
.buy {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  background: var(--yellow); color: var(--black); text-decoration: none;
  font-weight: 900; font-style: italic; font-stretch: 115%; font-size: 18px; letter-spacing: -.01em;
  border: 2px solid var(--black); box-shadow: 4px 4px 0 var(--black);
}
.buy:hover { background: #ffd43d; }
.buy:active { translate: 2px 2px; box-shadow: 2px 2px 0 var(--black); }
.buy[hidden], .xbtn[hidden] { display: none; }
.xbtn {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  background: var(--white); color: var(--black); border: 2px solid var(--black); box-shadow: 4px 4px 0 var(--black);
}
.copy-status:empty { display: none; }
.copy-status { flex-basis: 100%; margin: 0; min-height: 1.4em; font-size: 14px; color: var(--yellow); font-weight: 600; }

/* ---------- timing tower ---------- */
.pylon { background: var(--black); color: var(--white); padding: 0 0 12px; box-shadow: 6px 6px 0 rgba(0,0,0,.45); margin-top: 10px; }
.pylon-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 12px 9px; border-bottom: 4px solid var(--yellow); }
.pylon-title { margin: 0; font-size: 15px; font-weight: 900; font-style: italic; font-stretch: 110%; line-height: 1.15; }
.pylon-sub { font-size: 13px; font-weight: 800; font-stretch: 75%; color: var(--yellow); }
.pylon-rows { list-style: none; margin: 0; padding: 4px 0 0; position: relative; }
.row {
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px;
  height: 40px; padding: 0 12px 0 8px;
  font-stretch: 75%; font-weight: 800; font-size: 19px;
  transition: transform .5s cubic-bezier(.3,.8,.3,1);
}
.row + .row { border-top: 1px solid #262626; }
.pos { display: grid; place-items: center; height: 28px; background: var(--white); color: var(--black); font-size: 17px; font-weight: 900; font-stretch: 85%; }
.plate { letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.val { font-variant-numeric: tabular-nums; text-align: right; min-width: 6ch; }
.val.up { color: #49e37b; }
.val.down { color: #ff6b6b; }
.row-us { background: var(--yellow); color: var(--black); border-top-color: transparent !important; }
.row-us .pos { background: var(--black); color: var(--yellow); }
.row-us .val.up, .row-us .val.down { color: var(--black); }
.row-us.is-pit { background: #2a2a2a; color: #cfcfcf; }
.row-us.is-pit .pos { background: var(--yellow); color: var(--black); font-size: 13px; font-stretch: 75%; }
.row-us.is-pit .val { color: #9a9a9a; font-size: 14px; }
.pylon-mc { margin: 10px 12px 0; font-size: 14px; line-height: 1.35; color: #d9d9d9; min-height: 2.7em; }
.pylon-mc b { color: var(--yellow); font-variant-numeric: tabular-nums; }
.pylon-src { margin: 8px 12px 0; font-size: 12px; color: #8d8d8d; line-height: 1.35; }

/* ---------- decal wall (SAFER barrier) ---------- */
.wall {
  background: #f6f7f4;
  border-top: 8px solid var(--black);
  border-bottom: 3px solid #c9cbc6;
  padding: 14px var(--gutter);
}
.decals { list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; }
.d { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; font-size: 15px; line-height: 1.1; white-space: nowrap; }
.d small { font-size: .7em; }
.d1 { background: var(--red); color: var(--white); font-weight: 900; font-style: italic; font-stretch: 125%; }
.d2 { background: var(--yellow); color: var(--black); font-weight: 900; font-stretch: 125%; flex-direction: column; gap: 0; padding: 3px 10px; }
.d2 small { font-weight: 700; font-stretch: 100%; text-transform: lowercase; margin-top: -2px; }
.d3 { color: var(--blue); border: 3px solid var(--blue); font-weight: 800; font-stretch: 90%; }
.d4 { background: var(--black); color: var(--yellow); font-weight: 900; font-stretch: 62%; font-size: 18px; letter-spacing: .04em; }
.d5 { background: var(--green); color: var(--white); font-weight: 800; font-style: italic; border-radius: 999px; padding: 5px 14px; }
.d5 small { font-weight: 500; }
.d6 { color: #e2620a; font-weight: 900; font-style: italic; border-bottom: 4px solid #e2620a; padding: 3px 2px; }
.d7 { background: var(--blue); color: var(--white); font-weight: 700; font-stretch: 85%; border: 2px solid var(--white); outline: 2px solid var(--blue); }
.d7::before { content: "\2190"; font-weight: 900; }
.d8 { background: #14204a; color: var(--white); font-weight: 600; font-stretch: 125%; font-size: 13px; letter-spacing: .03em; }
.d9 { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 50%; background: #c2a633; color: var(--white); font-weight: 900; font-size: 20px; }
.d10 { font-family: var(--comic); font-weight: 700; color: #b100a0; border: 2px dashed #b100a0; }

/* ---------- section heads ---------- */
.h2 { margin: 0; font-weight: 900; font-style: italic; font-stretch: 125%; font-size: clamp(34px, 5vw, 60px); line-height: .95; letter-spacing: -.035em; }

/* ---------- story ---------- */
.story { padding: 64px 0 72px; }
.story-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "head head" "photo beats" "now beats"; grid-template-rows: auto auto 1fr; gap: 28px 48px; }
.story-head { grid-area: head; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 22px; }
.story-head .ds { margin: 0; font-size: 22px; }
.story-photo { grid-area: photo; margin: 0; align-self: start; }
.story-photo img { width: 100%; height: auto; aspect-ratio: 1280 / 722; object-fit: cover; background: #ddd; border: 3px solid var(--black); box-shadow: 8px 8px 0 var(--yellow); }
.story-photo figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); }
.story-photo figcaption a { color: var(--ink); }
.beats { grid-area: beats; list-style: none; margin: 0; padding: 0; }
.beat { position: relative; padding: 0 0 22px 26px; border-left: 4px solid var(--black); }
.beat:last-child { padding-bottom: 0; border-left-color: var(--yellow); }
.beat::before { content: ""; position: absolute; left: -12px; top: 2px; width: 20px; height: 20px; background: conic-gradient(var(--black) 25%, var(--white) 0 50%, var(--black) 0 75%, var(--white) 0); background-size: 10px 10px; border: 2px solid var(--black); }
.beat-date { display: block; font-size: 13px; font-weight: 800; font-stretch: 75%; color: var(--muted); }
.beat-h { margin: 2px 0 4px; font-size: 22px; line-height: 1.1; font-weight: 900; font-style: italic; font-stretch: 112%; letter-spacing: -.02em; }
.beat p { margin: 0; max-width: 52ch; }
.beat .beat-src { margin-top: 4px; font-size: 14px; }
.beat-src a { font-weight: 700; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }

/* ---------- pit stop ---------- */
.pit { background: var(--concrete); padding: 64px 0; border-top: 3px solid #cfd1cc; }
.pit-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px 48px; align-items: center; }
.pit-lede { margin: 14px 0 22px; font-size: 18px; max-width: 34ch; }
.pit-btn {
  min-height: 64px; min-width: 270px; padding: 0 34px; cursor: pointer;
  background: var(--yellow); color: var(--black); border: 3px solid var(--black); box-shadow: 6px 6px 0 var(--black);
  font-weight: 900; font-style: italic; font-stretch: 125%; font-size: 28px; letter-spacing: -.02em;
}
.pit-btn:hover { background: #ffd43d; }
.pit-btn:active { translate: 3px 3px; box-shadow: 3px 3px 0 var(--black); }
.pit-btn[aria-disabled="true"] { cursor: progress; background: #ffe27a; }
.pit-time { margin: 22px 0 0; font-size: 16px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pit-time b { font-weight: 900; font-stretch: 85%; font-size: 26px; font-variant-numeric: tabular-nums; min-width: 5.6ch; display: inline-block; }
.pit-k { color: var(--muted); font-weight: 600; }

.pitbox {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--asphalt);
  background-image: linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  border: 3px solid var(--black);
}
.box-lines { position: absolute; left: 14%; right: 14%; top: 10%; bottom: 8%; border: 6px solid var(--yellow); border-bottom: 0; }
.box-lines::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: 0; height: 22px; background: conic-gradient(var(--black) 25%, var(--white) 0 50%, var(--black) 0 75%, var(--white) 0); background-size: 22px 22px; }
.pit-car-wrap { position: absolute; left: 50%; top: 50%; width: 58%; translate: -50% -50%; }
.pit-car { width: 100%; height: auto; }
.tires { position: absolute; inset: 0; pointer-events: none; }
.tire { position: absolute; width: 13%; height: auto; opacity: 0; }
.pit-car-wrap { z-index: 1; }
.tires { z-index: 2; }
.t1 { left: 18%; top: 60%; }
.t2 { left: 57%; top: 63%; }
.t3 { left: 68%; top: 44%; }
.t4 { left: 9%; top: 38%; }
.pit-toasts { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.toast {
  position: absolute; font-family: var(--comic); font-weight: 700; font-size: clamp(18px, 2.4vw, 28px); white-space: nowrap; line-height: 1;
  text-shadow: 2px 2px 0 var(--black);
  animation: pop 1.4s ease-out both;
}
.toast.big { font-size: clamp(24px, 3.4vw, 40px); }

/* pit sequence (classes set by app.js; --k scales the crew speed) */
.pitbox.go .pit-car-wrap { animation: jack calc(1.9s * var(--k, 1)) ease-in-out both; }
.pitbox.go .tire.old { animation: tire-off calc(.6s * var(--k, 1)) ease-in both; animation-delay: calc(var(--d) * var(--k, 1)); }
.pitbox.go .tire.new { animation: tire-on calc(.55s * var(--k, 1)) ease-out both; animation-delay: calc(var(--d) * var(--k, 1)); }
.pitbox.leave .pit-car-wrap { animation: leave .9s cubic-bezier(.5,0,.2,1) both; }
@keyframes jack { 0% { translate: -50% -50%; } 12%, 88% { translate: -50% calc(-50% - 14px); } 100% { translate: -50% -50%; } }
@keyframes tire-off { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(260%, 40%) rotate(540deg); } }
@keyframes tire-on { 0% { opacity: 1; transform: translate(-320%, 30%) rotate(-540deg); } 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes leave { 0% { translate: -50% -50%; } 45% { translate: 160% -50%; opacity: 1; } 46% { translate: 160% -50%; opacity: 0; } 47% { translate: -260% -50%; opacity: 0; } 48% { opacity: 1; } 100% { translate: -50% -50%; } }

/* ---------- garage ---------- */
.garage { background: var(--car); color: var(--white); padding: 64px 0 56px; border-top: 10px solid var(--yellow); }
.garage-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 24px; }
.garage-sub { margin: 0; color: #a9a9a9; font-size: 14px; }
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vslot { margin: 0; }
html[data-show-dex-paid="false"] .vslot-dexpaid { display: none; }
.vframe { position: relative; aspect-ratio: 1; background: #000; border: 2px solid #2b2b2b; overflow: hidden; }
.vid { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.vid-pending, .vid-sound { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; background: rgba(0,0,0,.75); font-size: 13px; font-weight: 600; }
.vid-sound { left: auto; right: 10px; }
.vid[data-ready="1"] ~ .vid-pending { display: none; }
.vid[data-ready="0"] ~ .vid-sound { display: none; }
.vid[data-ready="0"] { cursor: default; }
.vcap { margin-top: 10px; font-weight: 800; font-style: italic; font-stretch: 112%; font-size: 17px; line-height: 1.25; }

.finish { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 44px; padding-top: 28px; border-top: 1px solid #2f2f2f; }
.ca-light { border-color: #3a3a3a; }
.xbtn-light { box-shadow: 4px 4px 0 #3a3a3a; }
.finish .buy { box-shadow: 4px 4px 0 #3a3a3a; }

/* ---------- footer ---------- */
.foot {
  background: var(--black); color: #bdbdbd; font-size: 14px; text-align: center;
  padding: 44px var(--gutter) 40px; position: relative;
}
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px; background: conic-gradient(var(--black) 25%, var(--white) 0 50%, var(--black) 0 75%, var(--white) 0); background-size: 16px 16px; }
.foot p { margin: 6px 0; }
.foot p:first-child { color: var(--white); font-weight: 700; margin-top: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; }
}
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 18px; padding-bottom: 56px; gap: 22px; }
  .pylon { margin-top: 0; }
  .story-in { grid-template-columns: 1fr; grid-template-areas: "head" "photo" "beats" "now"; grid-template-rows: auto; }
  .pit-in { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .bug { font-size: 12px; gap: 10px; }
  .bug-where { display: none; }
  .stage {
    grid-template-columns: minmax(0, 1fr) 48%;
    grid-template-areas: "title title" "say car" "lt lt";
    grid-template-rows: auto auto auto;
  }
  .title { font-size: clamp(38px, 12.4vw, 64px); text-shadow: 4px 4px 0 var(--black); -webkit-text-stroke-width: 1.5px; }
  .hero-say { font-size: 21px; margin-top: 12px; }
  .hero-say .ds { display: block; }
  .hero-say .ds-pink { margin-left: 18px; margin-top: 4px; }
  .car-wrap { margin-top: -10px; margin-right: -8px; }
  .lt { margin-top: 10px; }
  .lt-num { width: 52px; font-size: 26px; }
  .lt-text { font-size: 14.5px; padding: 10px 12px; }
  .cta { margin-top: 14px; gap: 8px; }
  .cta .ca { flex: 1 1 100%; }
  .cta .buy { flex: 1 1 auto; justify-content: center; }
  .lane.l1 { top: 30%; }
  .lane.l2 { top: 52%; }
  .story, .pit, .garage { padding-top: 48px; padding-bottom: 48px; }
  .pit-btn { width: 100%; }
  .vgrid { grid-template-columns: 1fr; }
  .finish .ca { flex: 1 1 100%; }
  .finish .buy { flex: 1 1 auto; justify-content: center; }
  .d { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .bug-live i { animation: none; }
  .lane { animation: none; }
}
.beat-src .sep { color: var(--muted); margin: 0 4px; }
.story-now { grid-area: now; align-self: start; margin: 0; padding: 14px 16px; background: var(--yellow); max-width: 60ch; font-weight: 500; }
.d11 { background: var(--white); color: var(--black); font-weight: 900; font-style: italic; font-stretch: 112%; border: 3px solid var(--black); box-shadow: 3px 3px 0 var(--yellow); }
/* soften the square edge of the PFP's dark vignette */
.car, .pit-car { -webkit-mask-image: radial-gradient(closest-side, #000 93%, transparent 100%); mask-image: radial-gradient(closest-side, #000 93%, transparent 100%); }

/* ---------- hero: race button ---------- */
.race-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px;
  background: var(--white); color: var(--black); text-decoration: none;
  font-weight: 900; font-style: italic; font-stretch: 115%; font-size: 17px; letter-spacing: -.01em;
  border: 2px solid var(--black); box-shadow: 4px 4px 0 var(--black);
}
.race-link::before { content: "\2190"; font-style: normal; }
.race-link:hover { background: #f3f3f0; }
.race-link:active { translate: 2px 2px; box-shadow: 2px 2px 0 var(--black); }

/* ---------- LEFT TURN ONLY ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.race { background: var(--car); color: var(--white); padding: 56px 0 64px; scroll-margin-top: 8px; }
.race-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 24px; }
.race-head .h2 { flex: 1 1 100%; }
.race-h-y { color: var(--yellow); }
.race-sub { margin: 0; font-size: 17px; color: #c9cbce; flex: 1 1 auto; }
.race-sub .ds { font-size: 19px; }
.race-best { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; font-stretch: 75%; color: var(--yellow); }
.race-best b { display: inline-grid; place-items: center; min-width: 52px; height: 34px; padding: 0 8px; background: var(--white); color: var(--black); font-size: 20px; font-weight: 900; font-stretch: 85%; }

.race-stage {
  position: relative; margin-top: 22px; width: 100%; aspect-ratio: 16 / 9; max-height: 78vh;
  background: #2a2c30; border: 3px solid var(--black); box-shadow: 8px 8px 0 var(--yellow);
  overflow: hidden; cursor: pointer; touch-action: pan-y;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.race-stage.is-racing { touch-action: none; }
.race-stage:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.race-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.race-hud { position: absolute; left: 10px; top: 10px; right: 172px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.race-hud > div { display: flex; align-items: center; gap: 7px; height: 46px; padding: 0 12px; background: var(--black); }
.hud-from { font-size: 13px; font-weight: 800; font-stretch: 75%; color: #b4b4b4; }
.hud-pos b { font-size: 30px; font-weight: 900; font-style: italic; font-stretch: 112%; letter-spacing: -.02em; color: var(--yellow); font-variant-numeric: tabular-nums; min-width: 2.3ch; }
.hud-pos.up { animation: hud-up .45s ease-out; }
@keyframes hud-up { 0% { background: var(--yellow); } 100% { background: var(--black); } }
.hud-pos.up b { animation: hud-up-b .45s ease-out; }
@keyframes hud-up-b { 0% { color: var(--black); transform: scale(1.12); } 100% { color: var(--yellow); transform: none; } }
.hud-k { font-size: 13px; font-weight: 800; font-stretch: 75%; color: var(--yellow); }
.hud-lap b { font-size: 22px; font-weight: 900; font-stretch: 85%; color: var(--white); }
.race-hud .hud-spd { background: var(--yellow); color: var(--black); }
.hud-spd b { font-size: 24px; font-weight: 900; font-stretch: 85%; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.hud-spd .hud-k { color: var(--black); }
.hud-spd i { font-family: var(--comic); font-style: normal; font-weight: 700; font-stretch: 100%; }
.hud-gap b { font-size: 20px; font-weight: 900; font-stretch: 85%; color: var(--white); font-variant-numeric: tabular-nums; min-width: 3.4ch; }
.race-map { position: absolute; right: 10px; top: 10px; width: 150px; height: 80px; background: rgba(0,0,0,.72); pointer-events: none; }

/* race radio: one solid caption band (bottom), overtake chip near the car, big outlined flag/lap calls. never faint text on the asphalt */
.race-radio {
  position: absolute; left: 10px; bottom: 10px; display: flex; align-items: stretch; max-width: calc(100% - 190px);
  background: var(--black); box-shadow: 4px 4px 0 rgba(0,0,0,.5); pointer-events: none;
  opacity: 0; transition: opacity .25s ease-out .05s;
}
.race-radio.on { opacity: 1; transition: none; }
.race-radio.in { animation: rr-in .22s ease-out; }
@keyframes rr-in { from { transform: translateY(8px); } to { transform: none; } }
.rr-tag { display: grid; place-items: center; padding: 0 9px; background: var(--yellow); color: var(--black); font-size: 13px; font-weight: 900; font-style: italic; font-stretch: 112%; white-space: nowrap; }
.rr-text { padding: 7px 12px 8px; font-family: var(--comic); font-weight: 700; font-size: 22px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race-pops { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rpop {
  position: absolute; translate: -50% -50%; white-space: nowrap;
  padding: 5px 11px 7px; background: var(--black); border-bottom: 3px solid currentColor;
  font-family: var(--comic); font-weight: 700; font-size: 22px; line-height: 1;
  animation: rpop 1.3s ease-out both;
}
.rpop.pass { font-family: var(--wide); font-style: italic; font-weight: 900; font-stretch: 100%; font-size: 24px; letter-spacing: -.01em; padding: 5px 12px 6px; background: var(--yellow); color: var(--black) !important; border-bottom: 3px solid var(--black); box-shadow: 4px 4px 0 var(--black); }
.rpop.big { padding: 0; background: none; border: 0; font-size: 40px; -webkit-text-stroke: 7px var(--black); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--black); }
@keyframes rpop { 0% { opacity: 0; transform: scale(.7); } 10% { opacity: 1; transform: scale(1.06); } 18% { transform: scale(1); } 86% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-14px); } }

.race-ov { position: absolute; inset: 0; }
.race-ov[hidden] { display: none; }
.race-ov-start { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 14px; padding: 18px; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.6)); }
.rs-lt { display: flex; align-items: stretch; max-width: 520px; background: var(--white); color: var(--ink); box-shadow: 6px 6px 0 var(--black); }
.rs-body { padding: 10px 14px 11px; }
.rs-title { margin: 0; font-size: 21px; line-height: 1.1; font-weight: 900; font-style: italic; font-stretch: 112%; letter-spacing: -.02em; }
.rs-rules { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 14.5px; line-height: 1.35; }
.rs-rules b { font-weight: 800; }
.k-red { color: var(--red); }
.k-green { color: var(--green); }
.rs-go {
  min-height: 58px; padding: 0 28px; cursor: pointer;
  background: var(--yellow); color: var(--black); border: 3px solid var(--black); box-shadow: 6px 6px 0 var(--black);
  font-weight: 900; font-style: italic; font-stretch: 125%; font-size: 24px; letter-spacing: -.02em;
}
.rs-go:hover { background: #ffd43d; }
.rs-go:active { translate: 3px 3px; box-shadow: 3px 3px 0 var(--black); }
.only-touch { display: none; }
@media (pointer: coarse) { .only-touch { display: inline; } .only-fine { display: none; } }
.race-ov-pause { display: grid; place-items: center; background: rgba(0,0,0,.5); }

.race-ov-finish { display: flex; align-items: center; padding: 20px 28px; background: rgba(14,14,14,.8); cursor: default; touch-action: pan-y; }
.rf-in { width: 100%; max-width: 660px; }
.rf-tag { margin: 0; font-size: 16px; font-weight: 800; font-style: italic; font-stretch: 112%; color: var(--yellow); }
.rf-pos {
  margin: 2px 0 10px; font-weight: 900; font-style: italic; font-stretch: 125%;
  font-size: clamp(84px, 11vw, 150px); line-height: .9; letter-spacing: -.035em; color: var(--white);
  -webkit-text-stroke: 2px var(--black); paint-order: stroke fill; text-shadow: 6px 6px 0 var(--black);
}
.rf-pos::first-letter { color: var(--yellow); }
.rf-lt { display: flex; align-items: stretch; background: var(--white); color: var(--ink); box-shadow: 6px 6px 0 var(--black); }
.rf-lt p { margin: 0; padding: 11px 14px; font-size: 17px; line-height: 1.35; font-weight: 600; }
.rf-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; font-size: 13px; font-weight: 800; font-stretch: 75%; color: var(--yellow); }
.rf-stats span { display: inline-flex; align-items: baseline; gap: 7px; padding: 6px 10px; background: var(--black); }
.rf-stats b { color: var(--white); font-size: 18px; font-weight: 900; font-stretch: 85%; font-variant-numeric: tabular-nums; }
.rf-btns { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 18px; }
.rf-x {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px;
  background: var(--yellow); color: var(--black); text-decoration: none;
  font-weight: 900; font-style: italic; font-stretch: 115%; font-size: 18px; letter-spacing: -.01em;
  border: 2px solid var(--black); box-shadow: 4px 4px 0 var(--black);
}
.rf-x:hover { background: #ffd43d; }
.rf-btn {
  min-height: 50px; padding: 0 16px; cursor: pointer;
  background: var(--white); color: var(--black); border: 2px solid var(--black); box-shadow: 4px 4px 0 var(--black);
  font-weight: 800; font-stretch: 100%; font-size: 16px;
}
.rf-btn:hover { background: #f0f0ec; }
.rf-x:active, .rf-btn:active { translate: 2px 2px; box-shadow: 2px 2px 0 var(--black); }

@media (max-width: 860px) {
  .race-stage { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .race { padding: 44px 0 52px; }
  .race-sub { font-size: 15.5px; }
  .race-stage { aspect-ratio: 4 / 5; max-height: 72vh; max-height: 72svh; margin-top: 18px; box-shadow: 5px 5px 0 var(--yellow); }
  .race-hud { left: 8px; top: 8px; right: 8px; gap: 4px; }
  .race-hud > div { height: 40px; padding: 0 9px; gap: 5px; }
  .hud-pos b { font-size: 25px; }
  .hud-lap b { font-size: 19px; }
  .hud-spd b { font-size: 20px; }
  .hud-from, .hud-k { font-size: 12px; }
  .race-hud > .hud-gap { height: 30px; }
  .hud-gap b { font-size: 16px; }
  .race-radio { left: 8px; right: 8px; bottom: 8px; max-width: none; }
  .rr-tag { font-size: 11.5px; padding: 0 7px; }
  .rr-text { font-size: 18px; padding: 6px 10px 7px; }
  .rpop.pass { font-size: 20px; }
  .rpop.big { font-size: 32px; -webkit-text-stroke: 6px var(--black); }
  .race-map { top: 54px; bottom: auto; right: 8px; width: 96px; height: 54px; }
  .race-ov-start { padding: 12px; gap: 12px; }
  .rs-lt .lt-num { width: 44px; font-size: 22px; }
  .rs-body { padding: 8px 10px 9px; }
  .rs-title { font-size: 18px; }
  .rs-rules { font-size: 13.5px; gap: 1px 10px; }
  .rs-go { width: 100%; min-height: 54px; font-size: 22px; }
  .race-ov-finish { padding: 14px; align-items: flex-start; }
  .rf-tag { font-size: 14px; }
  .rf-pos { font-size: 88px; margin-bottom: 8px; text-shadow: 4px 4px 0 var(--black); }
  .rf-lt .lt-num { width: 44px; font-size: 22px; }
  .rf-lt p { font-size: 15px; padding: 9px 11px; }
  .rf-stats { margin-top: 12px; }
  .rf-stats span { padding: 5px 8px; }
  .rf-stats b { font-size: 16px; }
  .rf-btns { gap: 8px; margin-top: 14px; }
  .rf-x { flex: 1 1 100%; justify-content: center; min-height: 48px; font-size: 17px; }
  .rf-btn { flex: 1 1 0; min-height: 46px; font-size: 15px; padding: 0 10px; }
  .cta .race-link { flex: 1 1 auto; justify-content: center; }
}
.race-stage.is-finished .race-hud, .race-stage.is-finished .race-map { visibility: hidden; }
.rf-btn, .rf-x { white-space: nowrap; }
@media (max-width: 600px) { .rf-btn { font-size: 14px; padding: 0 8px; } .race-ov-finish { align-items: center; } }
.rf-x:focus-visible, .rs-go:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.rs-go { white-space: nowrap; }
@media (max-width: 600px) { .rs-go { font-size: 19px; padding: 0 12px; } }
.race-stage.is-finished .race-radio { visibility: hidden; }
