/* v2b "Scroll To Drive — Traffic". Default rules = the stacked page (reduced motion / no JS).
   html.game-on turns the first section into the playable canvas stage. Tokens come from /shared/base.css. */
:root { --dock-h: 66px; --hud-h: 132px; }
html { scroll-padding-bottom: var(--dock-h); }
body { background: var(--white); padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom)); }
h1, h2, h3 { font-weight: 700; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 300; background: var(--red); color: var(--white); font-family: var(--px); font-size: 14px; padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 8px; }
a.btn-px { display: inline-block; text-decoration: none; }
.btn-px.inv { background: var(--white); color: var(--red); box-shadow: 4px 4px 0 var(--red-deep); }
:focus-visible { outline: 3px dashed var(--red); outline-offset: 3px; }
.finish :focus-visible, .title :focus-visible, .card-red :focus-visible { outline-color: var(--white); }
section[tabindex="-1"]:focus, .entry:focus { outline: none; }
.wavy { background: var(--checker); }
.wavy-on .wavy { background: var(--wavy) 0 0 / 480px 480px repeat; image-rendering: pixelated; }

/* ================= game section — stacked defaults ================= */
.game { position: relative; }
.stage { position: relative; padding: 16px 16px 8px; }
html:not(.game-on) .stage { background: var(--checker); }
.wavy-on:not(.game-on) .stage { background: var(--wavy) 0 0 / 480px 480px repeat; }
#road, .hud, .pops, .game-only, .cp-fin { display: none; }

/* title card (hero in stacked mode, intro card in drive mode) */
.title {
  position: relative; max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--red); color: var(--white); padding: 22px 18px 20px;
  border: 3px solid var(--white); outline: 3px solid var(--red); box-shadow: 10px 10px 0 var(--red-deep);
}
.title::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(180, 13, 16, .35) 2px 3px); }
.title > * { position: relative; z-index: 1; }
.title-hero { display: none; }
html:not(.game-on) .title-hero { display: block; aspect-ratio: 720 / 545; max-width: 380px; margin: 0 auto 14px; background: var(--white) url(/art/miami-scene.png) center / contain no-repeat; border: 3px solid var(--white); }
.kicker { font-family: var(--px); text-transform: uppercase; font-size: 12px; margin: 0; }
.title h1 { margin: 10px auto 8px; }
.title h1 img { width: min(100%, 330px); height: auto; margin: 0 auto; filter: brightness(0) invert(1); image-rendering: auto; }
.stage-tag { font-family: var(--px); text-transform: uppercase; font-size: 18px; margin: 0 0 6px; }
.title-when { font-size: 22px; line-height: 1.15; margin: 0 0 16px; }
.title-when b { font-family: var(--px); text-transform: uppercase; font-size: 15px; font-weight: 400; }
.press {
  display: inline-block; font-family: var(--px); text-transform: uppercase; font-size: 20px; text-decoration: none;
  color: var(--red); background: var(--white); padding: 12px 20px; box-shadow: 5px 5px 0 var(--red-deep);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.press:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--red-deep); }
.press:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--red-deep); }
.press span { display: inline-block; animation: blink 1s steps(1) infinite; }
.hint { font-size: 19px; margin: 12px 0 0; }
html:not(.game-on) .hint { display: none; }

/* checkpoint cards */
.cps { list-style: none; margin: 26px auto 10px; padding: 0; max-width: 720px; display: grid; gap: 22px; }
.card { position: relative; background: var(--white); border: 3px solid var(--red); box-shadow: 6px 6px 0 var(--red); padding: 14px; }
.card-red { background: var(--red); color: var(--white); border-color: var(--white); outline: 3px solid var(--red); box-shadow: 6px 6px 0 var(--red-deep); }
.cp-tag { display: inline-block; font-family: var(--px); text-transform: uppercase; font-size: 11px; background: var(--red); color: var(--white); padding: 3px 7px; margin: 0 0 8px; }
.card-red .cp-tag { background: var(--white); color: var(--red); }
.cp-h { font-family: var(--px); text-transform: uppercase; font-size: 30px; line-height: 1; margin: 0 0 6px; }
.cp-h span { display: block; font-size: 16px; margin-top: 5px; }
.card p { margin: 0 0 6px; font-size: 20px; line-height: 1.1; }
.cp-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.cp-act .btn-px { font-size: 13px; padding: 11px 14px; }
.card-vid { display: grid; grid-template-columns: 100px 1fr; gap: 12px; align-items: start; }
.card-vid .cp-h { font-size: 24px; }
.card-vid video { width: 100px; aspect-ratio: 9 / 16; object-fit: cover; border: 3px solid var(--red); background: var(--checker); }
.tip { font-family: var(--px); text-transform: uppercase; font-size: 11px !important; }
.strip { list-style: none; display: flex; gap: 4px; padding: 0; margin: 6px 0; overflow: hidden; }
.strip img { width: 34px; height: 34px; flex: none; border: 2px solid var(--red); image-rendering: auto; }
.passing { font-family: var(--px); text-transform: uppercase; font-size: 12px !important; }
.pit { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pit-item { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--red); box-shadow: 3px 3px 0 var(--red); transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
.pit-item:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--red); }
.pit-item:focus-visible { outline: 3px dashed var(--red); outline-offset: 3px; }
.pit-m { aspect-ratio: 1; background: var(--checker); border-bottom: 2px solid var(--red); display: grid; place-items: center; overflow: hidden; }
.pit-m img { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }
.pit-n { font-family: var(--px); text-transform: uppercase; font-size: 9px; line-height: 1.1; padding: 4px 4px 0; }
.pit-p { font-size: 17px; padding: 0 4px 3px; }

/* ================= drive mode ================= */
.game-on .game { height: 100vh; height: 100dvh; }
.game-on .stage { height: 100%; padding: 0; overflow: hidden; background: var(--white); touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.racing .stage { touch-action: none; }
.game-on #road { display: block; position: absolute; left: 0; top: 0; image-rendering: pixelated; image-rendering: crisp-edges; }
.game-on .game-only { display: block; }
.game-on .cp-fin { display: block; }

.game-on .hud { display: block; position: absolute; z-index: 3; left: 0; right: 0; top: 0; padding: 12px 16px 0; pointer-events: none; max-width: 1240px; margin: 0 auto; }
.hud-stats { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 8px; }
.lbl, .stage-name, #h-gear { display: block; font-family: var(--px); text-transform: uppercase; font-size: 12px; line-height: 1.1; }
.hud b { display: block; font-family: var(--px); font-size: 25px; line-height: 1; letter-spacing: -.02em; }
.hud-c { text-align: center; }
.hud-c b { font-size: 40px; transform: skewX(-8deg); }
.hud-r { text-align: right; }
.stage-name { margin-top: 5px; white-space: nowrap; font-size: 11px; }
.rpm { display: block; width: 118px; height: 13px; margin: 5px 0 3px auto; border: 2px solid var(--red); padding: 1px; }
#h-rpm { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 8px); clip-path: inset(0 100% 0 0); }
#h-gear.shift { animation: shift .36s steps(3); }
@keyframes shift { 0% { transform: translateX(-6px); } 50% { transform: translateX(3px); } 100% { transform: none; } }

.mm { position: relative; height: 26px; margin: 8px 13px 0; pointer-events: auto; }
.mm-line { position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 4px, transparent 4px 7px); }
.mm-car { position: absolute; left: -6px; top: -5px; width: 12px; height: 12px; background: var(--red); box-shadow: 0 0 0 2px var(--white); will-change: transform; z-index: 1; }
.mm button { position: absolute; top: 0; left: calc(var(--at) * 100%); transform: translateX(-50%); width: 26px; height: 26px; padding: 0; display: grid; place-items: center; font-family: var(--px); font-size: 12px; color: var(--red); background: var(--white); border: 2px solid var(--red); box-shadow: 2px 2px 0 var(--red); }
.mm button:hover { background: var(--red); color: var(--white); }

.game-on .pops { display: block; position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.pop { position: absolute; left: 0; right: 0; top: 31%; text-align: center; opacity: 0; }
.pop.on { opacity: 1; animation: pop-in .32s steps(4) both; }
.pop-t { display: block; font-family: var(--px); font-size: clamp(32px, 10vw, 84px); line-height: 1; transform: skewX(-10deg); text-shadow: -2px -2px 0 var(--white), 2px -2px 0 var(--white), -2px 2px 0 var(--white), 2px 2px 0 var(--white), 6px 6px 0 var(--pink); white-space: nowrap; }
.pop-n { display: block; font-family: var(--px); font-size: 28px; margin-top: 6px; color: var(--white); text-shadow: -2px -2px 0 var(--red), 2px -2px 0 var(--red), -2px 2px 0 var(--red), 2px 2px 0 var(--red), 4px 4px 0 var(--red-deep); }
.pop-c { display: inline-block; font-family: var(--px); text-transform: uppercase; font-size: 14px; margin-top: 6px; color: var(--white); background: var(--red); padding: 2px 8px; }
.pop-c:empty { display: none; }
@keyframes pop-in { 0% { transform: scale(.3); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.count { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font-family: var(--px); font-weight: 700; font-size: clamp(130px, 42vw, 280px); line-height: 1; opacity: 0; text-shadow: -3px -3px 0 var(--white), 3px -3px 0 var(--white), -3px 3px 0 var(--white), 3px 3px 0 var(--white), 10px 10px 0 var(--pink); }
.count.go { font-size: clamp(90px, 30vw, 220px); transform: skewX(-10deg); }
.count.on { animation: count .6s steps(6) both; }
@keyframes count { 0% { opacity: 0; scale: 2.2; } 30% { opacity: 1; scale: 1; } 85% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: .9; } }
.count.go.on { animation-duration: .65s; }

.game-on .title { position: absolute; z-index: 5; left: 16px; right: 16px; top: 52%; transform: translateY(-50%); transition: opacity .3s steps(3), transform .3s steps(3); }
.game-on .title.gone { opacity: 0; transform: translateY(-50%) scale(.85); pointer-events: none; }

.game-on .cps { position: absolute; z-index: 4; left: 12px; right: 12px; top: var(--hud-h); margin: 0; max-width: none; display: block; }
.game-on .cp { position: absolute; left: 0; right: 6px; top: 0; visibility: hidden; transform: translateX(-120%); transition: transform .42s steps(6), visibility 0s .42s; }
.game-on .cp:nth-child(even) { transform: translateX(120%); }
.game-on .cp.on { visibility: visible; transform: none; transition: transform .42s steps(6); }
.game-on .card { background: color-mix(in srgb, var(--white) 94%, transparent); }
.game-on .card-red { background: var(--red); }
.game-on .opt { display: none; }

/* ================= finish / results ================= */
.finish { position: relative; overflow: hidden; background: var(--red); color: var(--white); padding: 0 16px 56px; }
.finish::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(180, 13, 16, .35) 2px 3px); }
.flagline { position: relative; height: 28px; margin: 0 -16px 30px; background: repeating-conic-gradient(var(--red-deep) 0 25%, var(--white) 0 50%) 0 0 / 28px 28px; border-bottom: 4px solid var(--white); }
.finish .wrap { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; display: grid; gap: 22px; grid-template-areas: 'head' 'results' 'entry' 'where' 'front'; }
.finish .head { grid-area: head; }
.complete { font-family: var(--px); text-transform: uppercase; font-size: 18px; margin: 0; }
.big { font-family: var(--px); text-transform: uppercase; font-size: clamp(36px, 10.6vw, 120px); line-height: .92; margin: 4px 0 0; transform: skewX(-8deg); transform-origin: left; text-shadow: 5px 5px 0 var(--red-deep); }
.front { grid-area: front; margin: 0; background: var(--white); border: 4px solid var(--white); box-shadow: 10px 10px 0 var(--red-deep); }
.front img { width: 100%; height: auto; image-rendering: auto; }
.results { grid-area: results; margin: 0; font-family: var(--px); text-transform: uppercase; }
.results div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 2px dashed rgba(255, 253, 253, .55); }
.results dt { font-size: 14px; }
.results dd { margin: 0; font-size: 22px; font-weight: 700; }
.entry { grid-area: entry; background: var(--white); color: var(--red); padding: 20px 18px; box-shadow: 10px 10px 0 var(--red-deep); }
.blink { font-family: var(--px); text-transform: uppercase; font-size: 13px; margin: 0; animation: blink 1s steps(1) infinite; }
.entry h3 { font-family: var(--px); text-transform: uppercase; font-size: 28px; line-height: 1; margin: 6px 0; }
.entry-sub { margin: 0 0 14px; font-size: 21px; }
.where { grid-area: where; font-size: 22px; }
.where p { margin: 0 0 12px; }
.where-d { font-family: var(--px); text-transform: uppercase; font-size: 36px; line-height: 1; }
.where-d span { display: block; font-size: 18px; margin-top: 6px; }

/* ================= store + roster ================= */
.sec { padding: 56px 16px; }
.panel { max-width: 1100px; margin: 0 auto; background: var(--white); border: 4px solid var(--red); box-shadow: 10px 10px 0 var(--red); padding: 22px 16px 26px; }
.eyebrow { display: inline-block; font-family: var(--px); text-transform: uppercase; font-size: 13px; background: var(--red); color: var(--white); padding: 4px 8px; margin: 0; }
.sec-h { font-family: var(--px); text-transform: uppercase; font-size: clamp(30px, 8.5vw, 60px); line-height: 1; margin: 10px 0 8px; }
.lede { margin: 0 0 20px; max-width: 60ch; }
#store-grid .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
#store-grid .store-card .t { font-size: 11px; padding: 10px 10px 2px; }
#store-grid .store-card .r { padding: 2px 10px 10px; font-size: 20px; }
#store-grid .store-card .m img, #store-grid .store-card .m video { image-rendering: auto; }
.store-sheet img, .store-line img { image-rendering: auto; }

.roster { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ros { position: relative; background: var(--white); border: 3px solid var(--red); box-shadow: 4px 4px 0 var(--red); transition: transform .14s var(--ease), box-shadow .14s var(--ease); }
.ros:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--red); }
.ros img { width: 100%; height: auto; aspect-ratio: 1; image-rendering: auto; }
.ros-p { position: absolute; left: -3px; top: -3px; z-index: 1; font-family: var(--px); font-size: 10px; background: var(--red); color: var(--white); padding: 2px 5px; }
.ros-n { display: block; font-family: var(--px); text-transform: uppercase; font-size: 11px; line-height: 1.15; padding: 6px; min-height: 3.3em; border-top: 3px solid var(--red); }
.ros-tag { position: absolute; right: 4px; top: 4px; font-family: var(--px); text-transform: uppercase; font-size: 9px; background: var(--red); color: var(--white); padding: 2px 5px; }
.ros-lock { position: absolute; left: 50%; top: 30%; width: 36px; height: 28px; transform: translateX(-50%); background: var(--white); border: 4px solid var(--red); box-shadow: 3px 3px 0 var(--red); }
.ros-lock::before { content: ''; position: absolute; left: 3px; right: 3px; top: -20px; height: 18px; border: 4px solid var(--red); border-bottom: 0; }
.ros-lock::after { content: ''; position: absolute; left: 50%; top: 5px; width: 4px; height: 9px; background: var(--red); transform: translateX(-50%); }

/* ================= footer ================= */
.info { background: var(--white); border-top: 4px solid var(--red); }
.marquee { overflow: hidden; white-space: nowrap; background: var(--red); color: var(--white); font-family: var(--px); text-transform: uppercase; font-size: 20px; padding: 10px 0; }
.mq-in { display: inline-flex; animation: mq 22s linear infinite; will-change: transform; }
.mq-in span { padding-right: 0; }
@keyframes mq { to { transform: translateX(-50%); } }
.info-in { max-width: 1100px; margin: 0 auto; padding: 36px 16px 40px; display: grid; gap: 30px; }
.info-logo { width: min(320px, 82%); height: auto; image-rendering: auto; margin-bottom: 10px; }
.info-txt > p { margin: 0 0 12px; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 8px 0; border-bottom: 2px dashed var(--pink); }
.facts dt { font-family: var(--px); text-transform: uppercase; font-size: 12px; padding-top: 4px; }
.facts dd { margin: 0; }
.teaser { margin: 0; }
.teaser video { width: 100%; max-width: 340px; aspect-ratio: 9 / 16; object-fit: cover; border: 4px solid var(--red); box-shadow: 8px 8px 0 var(--red); background: var(--checker); }
.teaser figcaption { font-family: var(--px); text-transform: uppercase; font-size: 12px; margin-top: 14px; }

/* ================= dock (persistent mobile CTA) ================= */
.dock { position: fixed; z-index: 85; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); background: var(--white); border-top: 4px solid var(--red); }
.dock-when { margin-right: auto; font-family: var(--px); text-transform: uppercase; font-size: 13px; line-height: 1.1; }
.dock-when span { display: block; font-size: 11px; }
.dock .btn-px { font-size: 14px; padding: 12px 18px; box-shadow: 3px 3px 0 var(--red-deep); }
.dock #store-cart-btn { position: static; display: inline-flex; gap: 8px; align-items: center; background: var(--white); color: var(--red); border: 3px solid var(--red); padding: 9px 14px; box-shadow: 3px 3px 0 var(--red); }
.dock #store-cart-btn .n { background: var(--red); color: var(--white); padding: 0 6px; }

@keyframes blink { 50% { opacity: 0; } }

/* ================= short phones: keep cards compact ================= */
@media (max-height: 760px) {
  .game-on .card p:not(.cp-tag):not(.passing) { font-size: 18px; }
  .game-on .strip img { width: 28px; height: 28px; }
  .game-on .card-vid video { width: 80px; }
  .game-on .card-vid { grid-template-columns: 80px 1fr; }
  .game-on .title { padding: 16px 14px; }
  .game-on .title h1 img { width: min(100%, 260px); }
}

/* ================= larger screens ================= */
@media (min-width: 700px) {
  .roster { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  #store-grid .store-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #store-grid .store-card .t { font-size: 13px; }
}
@media (min-width: 900px) {
  :root { --hud-h: 160px; }
  .hud b { font-size: 34px; }
  .hud-c b { font-size: 56px; }
  .lbl, #h-gear { font-size: 14px; }
  .stage-name { font-size: 13px; }
  .rpm { width: 174px; height: 17px; }
  #h-rpm { background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 12px); }
  .game-on .cps { left: 28px; right: auto; width: 410px; }
  .game-on .title { left: 50%; right: auto; width: 520px; transform: translate(-50%, -50%); }
  .game-on .title.gone { transform: translate(-50%, -50%) scale(.85); }
  .pop { top: 36%; }
  .finish { padding-bottom: 80px; }
  .finish .wrap { grid-template-columns: 1.05fr 1fr; column-gap: 40px; grid-template-areas: 'head head' 'front results' 'front entry' 'where entry'; align-items: start; }
  .roster { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .info-in { grid-template-columns: 1.3fr .7fr; align-items: start; }
  .dock { left: auto; right: 24px; bottom: 24px; border: 4px solid var(--red); box-shadow: 8px 8px 0 var(--red); padding: 10px 12px; }
  .dock-when { margin-right: 8px; }
  body { padding-bottom: 0; }
}

/* finish card stays compact so the Shift Arcade storefront owns the screen */
.game-on .cp-fin .card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 14px; }
.game-on .cp-fin .cp-tag, .game-on .cp-fin p { display: none; }
.game-on .cp-fin .cp-h { font-size: 22px; margin: 0; }
.game-on .cp-fin .cp-act { margin: 0; }

/* ================= v2b: game additions ================= */
.sub { display: block; font-family: var(--px); text-transform: uppercase; font-size: 11px; margin-top: 3px; }
.sub i { font-style: normal; }
.hud-row2 { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.hud-row2 .mm { flex: 1; margin: 0 13px 0 13px; }
.mm-f { position: absolute; top: 2px; left: calc(var(--at) * 100%); transform: translateX(-50%); width: 22px; height: 22px; display: grid; place-items: center; font-family: var(--px); font-size: 11px; color: var(--red); background: var(--white); border: 2px solid var(--red); }
.ctl { display: flex; gap: 6px; pointer-events: auto; }
.ctl button { position: relative; min-width: 34px; height: 34px; padding: 0 6px; font-family: var(--px); font-size: 12px; text-transform: uppercase; color: var(--red); background: var(--white); border: 2px solid var(--red); box-shadow: 2px 2px 0 var(--red); }
.ctl button[aria-pressed="true"] { background: var(--red); color: var(--white); }
.ctl button[hidden] { display: none; }
#btn-sound s { position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: var(--red); transform: rotate(-40deg); }
#btn-sound[aria-pressed="true"] s { display: none; }

/* steering hint */
.steer-hint { position: absolute; left: 12px; right: 12px; bottom: calc(var(--dock-h) + 18%); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; opacity: 0; transition: opacity .3s steps(3); }
.steer-hint.on { opacity: 1; }
.steer-hint span { font-family: var(--px); text-transform: uppercase; font-size: 18px; text-align: center; color: var(--white); background: var(--red); padding: 12px 6px; box-shadow: 4px 4px 0 var(--red-deep); animation: blink 1s steps(1) infinite; }
.steer-hint em { grid-column: 1 / -1; font-style: normal; text-align: center; font-family: var(--px); text-transform: uppercase; font-size: 12px; background: var(--white); padding: 4px; justify-self: center; }
.hint-keys { display: none !important; }
@media (hover: hover) and (pointer: fine) {
  .hint-keys { display: inline !important; }
  .steer-hint em.hint-keys { display: block !important; }
  .hint-touch { display: none !important; }
  .steer-hint span { display: none; }
}
.title .hint span { display: block; }

/* pause overlay */
.paused { position: absolute; z-index: 7; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; background: rgba(255, 253, 253, .78); }
.paused[hidden] { display: none; }
.paused-h { margin: 0; font-family: var(--px); text-transform: uppercase; font-size: 48px; color: var(--red); text-shadow: 5px 5px 0 var(--pink); }
.paused .press { background: var(--red); color: var(--white); }
.paused-skip { font-family: var(--px); text-transform: uppercase; font-size: 13px; }

/* compact checkpoint cards: never over the road; collapse to a pill, tap to expand */
.game-on .cps { top: calc(var(--hud-h) - 4px); }
.game-on .card { padding: 10px 12px; }
.game-on .cp-h { font-size: 24px; }
.game-on .cp-h span { font-size: 14px; }
.game-on .card p.cp-line { font-size: 18px; }
.game-on .opt { display: none; }
.game-on .strip img { width: 26px; height: 26px; }
.game-on .card-vid { grid-template-columns: 64px 1fr; }
.game-on .card-vid video { width: 64px; }
.game-on .pit { gap: 6px; }
.game-on .pit-n { font-size: 8px; }
.game-on .cp.mini .card { cursor: pointer; padding: 6px 10px; display: flex; align-items: center; gap: 10px; }
.game-on .cp.mini .card > *:not(.cp-tag):not(div), .game-on .cp.mini .cp-act, .game-on .cp.mini video, .game-on .cp.mini .card-vid > div > *:not(.cp-tag) { display: none; }
.game-on .cp.mini .cp-tag { margin: 0; }
.game-on .cp.mini .card::after { content: '+'; margin-left: auto; font-family: var(--px); font-size: 18px; line-height: 1; }
.game-on .cp.mini .card-red::after { content: none; }
.game-on .cp-fin .card { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.game-on .cp-fin .cp-tag, .game-on .cp-fin p { display: none; }
.game-on .cp-fin .cp-h { font-size: 22px; margin: 0; }
.game-on .cp-fin .cp-act { margin: 0; }

/* results */
.best-flag { margin: 0 0 8px; font-family: var(--px); text-transform: uppercase; font-size: 13px; background: var(--white); color: var(--red); display: inline-block; padding: 3px 8px; animation: blink 1s steps(1) infinite; }
.best-flag[hidden] { display: none; }
.results dl { margin: 0 0 16px; }
.entry h3 { font-size: 24px; line-height: 1.05; }

/* dock: skip-to-info while the game is on screen */
.dock .dock-skip { display: none; }
.in-game .dock .dock-skip { display: inline-block; }
.in-game .dock-when { display: none; }
.in-game .dock .btn-px { padding: 12px 13px; font-size: 13px; }
.in-game .dock-skip { margin-right: auto; background: var(--white); color: var(--red); border: 3px solid var(--red); padding: 9px 10px; box-shadow: 3px 3px 0 var(--red); }

@media (min-width: 900px) {
  .sub { font-size: 13px; }
  .mm-f { width: 26px; height: 26px; font-size: 12px; top: 0; }
  .steer-hint { left: 50%; right: auto; transform: translateX(-50%); bottom: 8%; }
  .game-on .cp-h { font-size: 28px; }
  .in-game .dock-skip { margin-right: 0; }
}

.card-open .pop { top: 44%; }
@media (min-width: 900px) { .card-open .pop { top: 36%; } }

#h-time.hurry { animation: blink .5s steps(1) infinite; }

/* neighbourhood banner: slides in under the HUD for ~2.4s */
.zone { position: absolute; left: 0; right: 0; top: calc(var(--hud-h) + 46px); text-align: center; opacity: 0; transform: translateX(-100%); }
.zone.on { animation: zone 2.4s steps(1, end) both; animation-timing-function: steps(8); }
.zone small { display: inline-block; font-family: var(--px); text-transform: uppercase; font-size: 11px; background: var(--white); color: var(--red); padding: 2px 8px; border: 2px solid var(--red); }
.zone b { display: block; margin: 4px auto 0; width: fit-content; max-width: calc(100% - 24px); font-family: var(--px); text-transform: uppercase; font-size: clamp(20px, 6.4vw, 44px); line-height: 1.05; color: var(--white); background: var(--red); padding: 6px 14px; box-shadow: 5px 5px 0 var(--red-deep); transform: skewX(-8deg); }
.zone i { display: block; font-style: normal; font-family: var(--px); text-transform: uppercase; font-size: 11px; margin-top: 8px; }
@keyframes zone { 0% { opacity: 1; transform: translateX(-100%); } 12% { transform: none; } 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(100%); } }
.stage-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

.card p.cp-tag { font-size: 11px; line-height: 1.3; }
.game-on .cp.mini .cp-tag { white-space: nowrap; }
.zone-open .pop, .zone-open.card-open .pop { top: 47%; }
/* keep the pit-stop card short so it never reaches the road */
.game-on .pit-m { aspect-ratio: auto; height: 42px; }
.game-on .pit-p { font-size: 15px; }
.game-on #cp-4 .cp-h span { display: inline; margin-left: 8px; }
@media (max-width: 899px) { .game-on #cp-4 .cp-act { display: none; } }

/* ================= v2b: DAY / NIGHT + CHASE toggles ================= */
.modes { display: none; justify-content: center; gap: 10px; margin: 14px 0 0; flex-wrap: wrap; }
.game-on .modes.game-only, .modes.small { display: flex; }
.mode { display: inline-flex; align-items: stretch; padding: 0; border: 3px solid var(--white); background: var(--red); color: var(--white); font-family: var(--px); text-transform: uppercase; font-size: 12px; box-shadow: 3px 3px 0 var(--red-deep); }
.mode span { padding: 7px 8px; background: var(--red-deep); }
.mode b { padding: 7px 8px; font-weight: 400; opacity: .5; }
.mode[aria-pressed="false"] .m-off, .mode[aria-pressed="true"] .m-on { background: var(--white); color: var(--red); opacity: 1; }
.mode:focus-visible { outline: 3px dashed var(--white); outline-offset: 3px; }
.modes.small .mode { border-color: var(--red); }

/* pursuit meter: the bar empties as the cops close in */
.pursuit { display: flex; align-items: center; gap: 6px; }
.pursuit[hidden] { display: none; }
.pbar { display: inline-block; width: 66px; height: 10px; border: 2px solid currentColor; padding: 1px; }
.pbar span { display: block; height: 100%; background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 5px); clip-path: inset(0 0 0 0); }
.pursuit.low { animation: blink .4s steps(1) infinite; }

/* BUSTED flash */
.flash { position: absolute; inset: 0; background: var(--red); opacity: 0; pointer-events: none; }
.flash.on { animation: flash .6s steps(4) both; }
@keyframes flash { 0% { opacity: .75; } 25% { opacity: 0; } 50% { opacity: .55; } 100% { opacity: 0; } }

/* night: HUD and banners stay readable on the dark sky (canvas covers the stage) */
.night .game-on .stage, .game-on.night .stage { background: #2a0306; }
.night .hud { color: var(--pink); }
.night .hud b, .night .hud .sub i { color: var(--white); }
.night #h-rpm { background: repeating-linear-gradient(90deg, var(--pink) 0 6px, transparent 6px 8px); }
.night .rpm { border-color: var(--pink); }
.night .mm-line { background: repeating-linear-gradient(90deg, var(--pink) 0 4px, transparent 4px 7px); }
.night .mm-car { background: var(--white); box-shadow: 0 0 0 2px #2a0306; }
.night .mm-f { background: #2a0306; color: var(--pink); border-color: var(--pink); }
.night .zone small { background: #2a0306; color: var(--pink); border-color: var(--pink); }
.night .zone i, .night .pop-c:not(:empty) { color: var(--white); }
.night .paused { background: rgba(42, 3, 6, .82); }
.night .paused-skip { color: var(--pink); }

/* ================= LEVEL control ================= */
.mode-lv b { opacity: .5; }
.mode-lv[data-level="easy"] b[data-l="easy"], .mode-lv[data-level="normal"] b[data-l="normal"], .mode-lv[data-level="hard"] b[data-l="hard"] { background: var(--white); color: var(--red); opacity: 1; }

/* ================= fit every viewport: 375 to 2560 wide (owner feedback) ================= */
/* floating bar never covers a form: hidden while the RSVP card is on screen or a field has focus */
.dock { transition: transform .2s steps(3), visibility 0s; }
.dock-off .dock { transform: translateY(calc(100% + 40px)); visibility: hidden; transition: transform .2s steps(3), visibility 0s .2s; }
html { scroll-padding-bottom: calc(var(--dock-h) + 24px); }
/* finish / results: fluid type, never wider than its column, art capped to the viewport */
.finish { padding: 0 clamp(16px, 4vw, 56px) clamp(48px, 8vh, 96px); }
.finish .wrap { max-width: 1160px; gap: clamp(14px, 2.4vh, 22px); }
.flagline { margin-bottom: clamp(16px, 3vh, 30px); }
.big { font-size: clamp(28px, min(7.4vw, 9vh), 76px); line-height: .95; overflow-wrap: anywhere; max-width: 100%; }
.complete { font-size: clamp(13px, 1.6vw, 18px); }
.front { justify-self: center; width: 100%; max-width: 560px; }
.front img { width: auto; max-width: 100%; max-height: min(56vh, 560px); margin: 0 auto; object-fit: contain; }
.entry h3 { font-size: clamp(19px, 2.6vw, 26px); overflow-wrap: anywhere; }
.entry-sub { font-size: clamp(18px, 1.8vw, 21px); }
.where-d { font-size: clamp(26px, 3.6vw, 36px); }
.results dd { font-size: clamp(17px, 2vw, 22px); }
.sec-h { font-size: clamp(26px, 6.5vw, 60px); overflow-wrap: anywhere; }
.info-logo { width: min(320px, 70%); }
@media (min-width: 900px) {
  body { padding-bottom: calc(var(--dock-h) + 40px); }
  .finish { min-height: 100vh; min-height: 100dvh; }
  .finish .wrap { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: clamp(24px, 3vw, 48px); }
  .finish .results dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .front img { max-height: min(58vh, 560px); }
}
@media (min-width: 1800px) { .finish .wrap, .panel, .info-in { max-width: 1280px; } }
/* start card on short phones (375x667): tighten so the toggles and PRESS START stay on screen */
@media (max-height: 700px) {
  .game-on .title { padding: 12px 12px 14px; top: 54%; }
  .game-on .title h1 { margin: 6px auto 4px; }
  .game-on .title h1 img { width: min(100%, 210px); }
  .game-on .title .stage-tag, .game-on .title .hint, .game-on .title .kicker { display: none; }
  .game-on .title-when { font-size: 18px; margin-bottom: 10px; }
  .game-on .press { font-size: 17px; padding: 10px 16px; }
  .modes { margin-top: 10px; gap: 6px; }
  .mode { font-size: 11px; }
  .mode span, .mode b { padding: 6px 6px; }
}

/* ================= v2b batch: toasts in the sky band, heat, radio, nitro, garage, share ================= */
/* toasts: banner + score pops stack under the HUD (and the collapsed checkpoint tab) and never sit over the road */
.game-on .toasts { position: absolute; z-index: 6; left: 8px; right: 8px; top: calc(var(--hud-h) + 46px); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.toasts .pop, .toasts .zone { position: static; transform: none; }
.toasts .pop:not(.on), .toasts .zone:not(.on) { display: none; }
.toasts .pop { opacity: 1; text-align: center; }
.toasts .pop.on { animation: pop-in .28s steps(4) both; }
.toasts .pop-t { font-size: clamp(22px, 6.6vw, 46px); }
.toasts .pop-n { font-size: clamp(16px, 4.6vw, 24px); margin-top: 2px; }
.toasts .pop-c { font-size: 11px; margin-top: 4px; }
.toasts .zone { text-align: center; opacity: 1; }
.toasts .zone.on { animation: zone-in .3s steps(4) both; }
.toasts .zone b { font-size: clamp(18px, 5.4vw, 36px); padding: 4px 12px; }
.toasts .zone i { margin-top: 4px; font-size: 10px; }
@keyframes zone-in { from { transform: translateX(-60%); opacity: 0; } to { transform: none; opacity: 1; } }
.card-open .toasts, .zone-open .toasts { top: calc(var(--hud-h) + 46px); }
@media (min-width: 900px) { .game-on .toasts { top: calc(var(--hud-h) + 6px); left: 460px; right: 460px; } }
@media (min-width: 900px) and (max-width: 1279px) { .game-on .toasts { left: 440px; right: 16px; } }

/* heat meter: three pixel blocks */
.heat { display: flex; align-items: center; gap: 3px; }
.heat[hidden] { display: none; }
.heat i { display: inline-block; width: 10px; height: 10px; border: 2px solid currentColor; }
.heat[data-heat="1"] i:nth-child(-n+1), .heat[data-heat="2"] i:nth-child(-n+2), .heat[data-heat="3"] i:nth-child(-n+3) { background: currentColor; }
.heat[data-heat="3"] i { animation: blink .5s steps(1) infinite; }

/* radio */
.ctl #btn-radio[aria-pressed="true"] { background: var(--red); color: var(--white); }
.radio-tag { position: absolute; right: 16px; top: calc(var(--hud-h) - 6px); margin: 0; font-family: var(--px); text-transform: uppercase; font-size: 11px; background: var(--red); color: var(--white); padding: 3px 8px; opacity: 0; pointer-events: none; }
.radio-tag.on { animation: tag 2.2s steps(1) both; }
@keyframes tag { 0%, 90% { opacity: 1; } 100% { opacity: 0; } }

/* nitro: big thumb button bottom-right above the bar on phones; bottom-left on desktop (Space / Shift) */
.nitro { display: none; }
.racing .nitro, .game-on .nitro.burn { display: grid; }
.nitro { position: absolute; z-index: 5; right: 12px; bottom: calc(var(--dock-h) + 14px); width: 84px; height: 84px; place-items: center; align-content: center; gap: 2px; padding: 0; font-family: var(--px); text-transform: uppercase; color: var(--red); background: var(--white); border: 3px solid var(--red); box-shadow: 4px 4px 0 var(--red-deep); overflow: hidden; }
.nitro b { position: relative; z-index: 1; font-size: 13px; font-weight: 400; }
.nitro small { position: relative; z-index: 1; font-size: 9px; }
.nitro-fill { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, var(--pink) 0 6px, var(--pink-2) 6px 8px); clip-path: inset(100% 0 0 0); }
.nitro.ready { color: var(--white); border-color: var(--white); outline: 3px solid var(--red); animation: blink .6s steps(1) infinite; }
.nitro.ready .nitro-fill { background: repeating-linear-gradient(0deg, var(--red) 0 6px, var(--red-deep) 6px 8px); }
.nitro.burn { color: var(--white); background: var(--red); }
.nitro:disabled { cursor: default; }
@media (min-width: 900px) { .nitro { right: auto; left: 24px; bottom: 24px; width: 92px; height: 92px; } }

/* garage on the start card */
.garage { display: none; margin-top: 10px; }
.game-on .garage.game-only { display: block; }
.mode-car { align-items: center; }
.mode-car canvas { width: 48px; height: 30px; margin: 0 6px; image-rendering: pixelated; background: var(--white); }
.mode-car b { opacity: 1; padding: 7px 8px; background: var(--white); color: var(--red); }
.mode-car i { font-style: normal; padding: 0 8px; font-size: 11px; }
.car-stats { margin: 6px 0 0; font-family: var(--px); text-transform: uppercase; font-size: 10px; letter-spacing: .02em; white-space: pre-wrap; }

/* results actions + share */
.res-act { display: flex; flex-wrap: wrap; gap: 12px; }
.share-status { margin: 8px 0 0; font-family: var(--px); text-transform: uppercase; font-size: 12px; min-height: 1em; }
@media (max-height: 700px) { .garage { margin-top: 6px; } .car-stats { font-size: 9px; } .mode-car canvas { width: 40px; height: 25px; } }
@media (max-width: 899px) and (max-height: 920px) {
  .game-on .title .kicker, .game-on .title .stage-tag { display: none; }
  .game-on .title { padding: 14px 12px 14px; top: 53%; }
  .game-on .title h1 { margin: 4px auto 6px; }
  .game-on .title h1 img { width: min(100%, 250px); }
  .game-on .title-when { margin-bottom: 12px; }
  .game-on .title .hint { font-size: 16px; margin-top: 8px; }
}
.toasts .pop.on { background: var(--white); border: 3px solid var(--red); box-shadow: 4px 4px 0 var(--red-deep); padding: 4px 14px 6px; }
.toasts .pop-t { text-shadow: 3px 3px 0 var(--pink); }
.toasts .pop-n { color: var(--red); text-shadow: none; }
.night .toasts .pop.on { background: #2a0306; border-color: var(--pink); }
.night .toasts .pop-n { color: var(--white); }
.hud b { text-shadow: 2px 2px 0 var(--white); }
.night .hud b { text-shadow: 2px 2px 0 #2a0306; }
.results .res-act { justify-content: flex-start; align-items: center; border-bottom: 0; padding: 4px 0 0; }

/* toasts under an EXPANDED checkpoint card (phones): directly below its bottom edge, compact one line */
@media (max-width: 899px) {
  .card-open .toasts { top: var(--card-bottom, calc(var(--hud-h) + 46px)); }
  .card-open .toasts .pop.on { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 3px 10px 4px; }
  .card-open .toasts .pop-t { font-size: 20px; transform: skewX(-8deg); }
  .card-open .toasts .pop-n { font-size: 15px; margin: 0; }
  .card-open .toasts .pop-c { margin: 0; font-size: 10px; }
  .card-open .toasts .zone small, .card-open .toasts .zone i { display: none; }
  .card-open .toasts .zone b { font-size: 18px; margin: 0; }
}
/* short phones (375x667): expanded checkpoint cards stay compact so card + toast both fit above the horizon */
@media (max-width: 899px) and (max-height: 700px) {
  .game-on .card { padding: 6px 10px 8px; }
  .game-on .card p.cp-tag { margin-bottom: 4px; }
  .game-on .cp-h { font-size: 19px; margin-bottom: 2px; }
  .game-on .cp-h span { display: inline; font-size: 12px; margin-left: 6px; }
  .game-on .card p.cp-line { font-size: 15px; margin: 0; }
  .game-on .cp:not(.cp-fin) .cp-act { display: none; }
  .game-on .strip { margin: 4px 0 0; }
  .game-on .strip img { width: 20px; height: 20px; }
  .game-on .card-vid { grid-template-columns: 34px 1fr; }
  .game-on .card-vid video { width: 34px; }
  .game-on .pit { margin-top: 4px; gap: 4px; }
  .game-on .pit-m { height: 26px; }
  .game-on .pit-n, .game-on .pit-p { display: none; }
}

/* ================= brands: Shift Arcade Miami × Sims For Hire (true colours) ================= */
.brands { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; }
.b-tile { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 4px 10px; border: 2px solid var(--white); box-shadow: 3px 3px 0 var(--red-deep); }
.b-tile img { height: 100%; width: auto; max-width: none; image-rendering: auto; }
.b-sa { background: #0b0b10; }
.b-sfh { background: var(--red); padding: 6px 10px; }
.b-x { font-family: var(--px); font-size: 14px; color: var(--white); }
.brands-fin { justify-content: flex-start; margin: 10px 0 0; }
.brands-foot { justify-content: flex-start; margin: 4px 0 16px; }
.brands-foot .b-tile { height: 44px; border-color: var(--red); }
.brands-foot .b-x, .brands-fin .b-x { color: var(--red); }
.finish .brands-fin .b-x { color: var(--white); }
@media (max-height: 700px) { .brands-title { margin-top: 8px; } .brands-title .b-tile { height: 26px; padding: 3px 7px; } .brands-title .b-sfh { padding: 5px 7px; } }

/* results: the pixel Shift Arcade building replaces the photo */
.front canvas { display: block; width: 100%; height: auto; max-height: min(56vh, 560px); object-fit: contain; image-rendering: pixelated; background: #9fd3f7; }
.night .front canvas { background: #0b0620; }

/* ================= toggles: selected = solid fill + bold, unselected = outline only ================= */
.mode { background: transparent; box-shadow: 3px 3px 0 var(--red-deep); }
.mode span { background: var(--red-deep); color: var(--white); }
.mode b, .mode-lv b { opacity: 1; font-weight: 400; color: var(--white); background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 253, 253, .55); text-decoration: none; }
.mode[aria-pressed="false"] .m-off, .mode[aria-pressed="true"] .m-on,
.mode-lv[data-level="easy"] b[data-l="easy"], .mode-lv[data-level="normal"] b[data-l="normal"], .mode-lv[data-level="hard"] b[data-l="hard"] {
  background: var(--white); color: var(--red); opacity: 1; font-weight: 700; box-shadow: none; text-shadow: .5px 0 0 currentColor, -.5px 0 0 currentColor;
}
.modes.small .mode b { color: var(--red); box-shadow: inset 0 0 0 1px rgba(226, 18, 22, .55); }
.modes.small .mode[aria-pressed="false"] .m-off, .modes.small .mode[aria-pressed="true"] .m-on,
.modes.small .mode-lv[data-level="easy"] b[data-l="easy"], .modes.small .mode-lv[data-level="normal"] b[data-l="normal"], .modes.small .mode-lv[data-level="hard"] b[data-l="hard"] { background: var(--red); color: var(--white); }

/* ================= landing page first: event essentials + RSVP / Book on the start card ================= */
.game-on .title .kicker { display: block; }
.title .kicker { font-size: 12px; letter-spacing: .02em; }
.title-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.title-cta .btn-px { flex: 1 1 0; min-width: 0; font-size: 14px; padding: 12px 10px; white-space: nowrap; }
.title .title-cta .t-rsvp { font-size: 16px; font-weight: 700; background: var(--white); color: var(--red); box-shadow: 4px 4px 0 var(--red-deep); }
.title .title-cta .t-book { background: transparent; color: var(--white); border: 3px solid var(--white); box-shadow: 4px 4px 0 var(--red-deep); padding: 9px 8px; }
.title-cta .press { flex: 1 0 100%; text-align: center; }
html:not(.game-on) .title-cta .press { display: none; }
@media (max-height: 760px) { .game-on .title .hint { display: none; } }
@media (max-width: 899px) and (max-height: 920px) {
  .game-on .title .kicker { display: block; font-size: 10px; }
  .game-on .title h1 img { width: min(100%, 220px); }
  .game-on .title-when { font-size: 17px; margin-bottom: 10px; }
  .game-on .title-when b { font-size: 13px; }
  .title-cta { gap: 8px; }
  .title-cta .btn-px { font-size: 12px; padding: 10px 8px; }
  .title-cta .t-rsvp { font-size: 14px; }
  .title-cta .t-book { padding: 7px 6px; }
  .game-on .press { font-size: 16px; padding: 9px 14px; }
  .game-on .modes { margin-top: 8px; gap: 6px; }
  .car-stats { display: none; }
  .garage { margin-top: 6px; }
}
@media (max-height: 700px) {
  .game-on .title { padding: 10px 10px 12px; top: calc(50% + 8px); }
  .game-on .title h1 { margin: 2px auto 2px; }
  .game-on .title h1 img { width: min(100%, 170px); }
  .game-on .title-when { font-size: 15px; margin-bottom: 8px; }
  .game-on .title-when b { font-size: 12px; }
  .brands-title { margin-top: 6px; }
  .brands-title .b-tile { height: 22px; }
}
/* desktop: the event panel sits beside the road, not on top of it */
@media (min-width: 1100px) {
  .game-on .title { left: clamp(24px, 4vw, 72px); width: 460px; transform: translateY(-50%); top: calc(50% + 64px); }
  .game-on .title.gone { transform: translateY(-50%) scale(.85); }
}

/* in-race cards: the lineup card shows more portraits; the pit stop leads with booking */
.game-on .strip-big { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.game-on .strip-big img { width: 100%; height: auto; aspect-ratio: 1; }
.cp-lead { margin: 4px 0 6px; }

/* ================= THE LINEUP: select your artist ================= */
.lineup { padding-top: clamp(40px, 7vh, 72px); }
.panel-lineup { max-width: 1240px; }
.sec-h span { display: inline-block; }
.sel { display: grid; gap: 18px; margin-top: 8px; }
.sel-pre { display: grid; grid-template-columns: minmax(0, 46%) 1fr; gap: 14px; align-items: center; background: var(--red); color: var(--white); padding: 12px; border: 3px solid var(--red); box-shadow: 6px 6px 0 var(--red-deep); }
.sel-pre.pre-in { animation: preIn .28s steps(4); }
@keyframes preIn { from { transform: translateX(-12px); opacity: .3; } }
.pre-art { position: relative; background: var(--white); border: 3px solid var(--white); }
.pre-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; image-rendering: auto; }
.pre-art.locked img { filter: grayscale(1) contrast(.6) brightness(1.3); }
.pre-p { position: absolute; left: -3px; top: -3px; font-family: var(--px); font-size: 14px; background: var(--white); color: var(--red); padding: 3px 7px; border: 3px solid var(--red); }
.pre-k { margin: 0; font-family: var(--px); text-transform: uppercase; font-size: 11px; }
.pre-n { margin: 4px 0 10px; font-family: var(--px); text-transform: uppercase; font-size: clamp(22px, 6vw, 44px); line-height: 1; overflow-wrap: anywhere; }
.bars { margin: 0; display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 50px minmax(0, 1fr); align-items: center; gap: 6px; }
.bar dt { font-family: var(--px); text-transform: uppercase; font-size: 11px; }
.bar dd { margin: 0; display: flex; align-items: center; gap: 6px; }
.bar i { flex: 1; height: 12px; border: 2px solid var(--white); background: repeating-linear-gradient(90deg, var(--white) 0 8px, transparent 8px 10px); transform-origin: left; animation: barIn .5s steps(8); }
.bar i.q { background: repeating-linear-gradient(90deg, rgba(255, 253, 253, .35) 0 8px, transparent 8px 10px); animation: none; }
.bar b { font-family: var(--px); text-transform: uppercase; font-size: 10px; font-weight: 400; flex: none; }
.bar i { min-width: 40px; }
@keyframes barIn { from { transform: scaleX(0); } }
.lineup .roster { margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ros { box-shadow: none; border: 0; background: none; }
.ros:hover { transform: none; box-shadow: none; }
.ros-b { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: block; width: 100%; background: var(--white); border: 3px solid var(--red); box-shadow: 4px 4px 0 var(--red); transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
.ros-b:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--red); }
.ros-b:focus-visible { outline: 3px dashed var(--red); outline-offset: 3px; }
.ros.sel .ros-b { border-color: var(--red); box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--red), 6px 6px 0 6px var(--red-deep); transform: translate(-2px, -2px); }
.ros.sel .ros-b::after { content: 'P1'; position: absolute; right: -6px; top: -14px; z-index: 2; font-family: var(--px); font-size: 12px; background: var(--red); color: var(--white); padding: 2px 6px; border: 2px solid var(--white); animation: blink 1s steps(1) infinite; }
.ros.sel .ros-n { background: var(--red); color: var(--white); }
.ros-b img { display: block; width: 100%; height: auto; aspect-ratio: 1; image-rendering: auto; }
.ros.locked .ros-b img { filter: grayscale(1) contrast(.6) brightness(1.3); }
@media (min-width: 700px) {
  .lineup .roster { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sel-pre { grid-template-columns: minmax(0, 38%) 1fr; padding: 16px; }
}
@media (min-width: 1000px) {
  .sel { grid-template-columns: minmax(0, 340px) 1fr; align-items: start; }
  .sel-pre { grid-template-columns: 1fr; position: sticky; top: 20px; }
  .lineup .roster { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pre-n { font-size: 34px; }
}
@media (min-width: 1500px) { .sel { grid-template-columns: minmax(0, 420px) 1fr; } }

/* ================= TRY IT LIVE ================= */
.panel-live { background: var(--red); color: var(--white); border-color: var(--white); outline: 4px solid var(--red); box-shadow: 10px 10px 0 var(--red-deep); }
.panel-live .eyebrow { background: var(--white); color: var(--red); }
.panel-live .sec-h span, .panel-where .sec-h span { display: block; font-size: .42em; margin-top: 6px; }
.live-in { display: grid; gap: 16px; align-items: center; }
.live-in video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--red-deep); border: 3px solid var(--white); }
.panel-live .lede { margin-bottom: 12px; }
.panel-live .btn-px:not(.ghost) { background: var(--white); color: var(--red); box-shadow: 4px 4px 0 var(--red-deep); }
@media (min-width: 900px) { .live-in { grid-template-columns: 1.2fr 1fr; gap: 28px; } }

/* ================= pop-up store: smaller, after the artists ================= */
.store-sec { padding-top: 36px; padding-bottom: 36px; }
.store-sec .panel { max-width: 980px; }
.store-sec .sec-h { font-size: clamp(22px, 4.6vw, 40px); }
@media (min-width: 700px) { .store-sec #store-grid .store-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ================= location ================= */
.where-sec { padding-top: 24px; }
.panel-where .where { color: var(--red); }
.panel-where .where-d span { display: inline; margin-left: 10px; }
/* finish: location moved to its own section after the store */
.finish .wrap { grid-template-areas: 'head' 'results' 'entry' 'front'; }
.brands-fin .b-tile { height: 40px; }
@media (min-width: 900px) { .finish .wrap { grid-template-areas: 'head head' 'front results' 'front entry'; } }
/* the pit stop leads with booking on every screen size; the lineup card keeps its button */
.game-on #cp-4 .cp-lead, .game-on #cp-2 .cp-act { display: flex; }
.game-on #cp-4 .cp-lead .btn-px { font-size: 12px; padding: 9px 12px; }
@media (max-height: 700px) { .game-on #cp-4 .pit { display: none; } .game-on #cp-2 .strip-big { grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 2px; } }
/* stacked (reduced-motion / no-canvas) page: the sections below carry the checkpoint content, so skip the duplicates */
html:not(.game-on) .cps, html:not(.game-on) .title .stage-tag { display: none; }

/* the dino mascot perched on the start card's top edge (inside the card's corner on short phones) */
.title > .mascot { position: absolute; z-index: 2; right: 18px; top: -40px; width: 64px; height: auto; image-rendering: pixelated; pointer-events: none; filter: drop-shadow(2px 0 0 var(--white)) drop-shadow(-2px 0 0 var(--white)) drop-shadow(0 -2px 0 var(--white)) drop-shadow(3px 3px 0 var(--red-deep)); }
html:not(.game-on) .title > .mascot { top: 8px; right: 8px; width: 72px; } /* stacked page: perched on the hero picture corner */
@media (max-height: 760px) and (max-width: 899px) { .game-on .title > .mascot { top: auto; bottom: 6px; right: 6px; width: 40px; } }
@media (min-width: 1100px) { .game-on .title > .mascot { width: 104px; top: 5%; right: -100px; } } /* desktop: perched on the card's right edge, clear of the HUD */

/* ================= the billboard sentence: MESSAGE ticker under the HUD + decoded on results ================= */
.ticker { display: flex; align-items: center; gap: 8px; margin: 6px 13px 0; height: 18px; font-family: var(--px); text-transform: uppercase; font-size: 10px; line-height: 1; color: var(--red); }
.ticker b { flex: none; font-weight: 400; background: var(--red); color: var(--white); padding: 3px 5px; }
.tk-w { flex: 1; min-width: 0; display: flex; justify-content: flex-end; overflow: hidden; white-space: nowrap; border-bottom: 2px dashed var(--red); padding: 2px 0; }
.night .ticker { color: var(--white); }
.night .tk-w { border-color: var(--pink); }
@media (min-width: 900px) { .ticker { font-size: 12px; height: 20px; margin-top: 8px; } }
.results .decoded { display: block; border: 2px dashed rgba(255, 253, 253, .7); padding: 10px 12px; margin: 10px 0 4px; }
.decoded .dec-k { margin: 0 0 6px; font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.decoded .dec-k b { background: var(--white); color: var(--red); padding: 2px 6px; font-size: 12px; }
.decoded .dec-t { margin: 0; font-size: clamp(12px, 1.4vw, 15px); line-height: 1.45; letter-spacing: .02em; }
.hud .ticker b { font-size: 10px; text-shadow: none; }
@media (min-width: 900px) { .hud .ticker b { font-size: 12px; } }
.game-on #cp-2.mini .cp-act, .game-on #cp-4.mini .cp-lead { display: none; } /* collapsed cards stay a slim tab */

/* Booking — the money button. Red fill everywhere; the dock hides the empty cart so Book always fits. */
.dock .dock-book { background: var(--red); color: var(--white); }
.dock #store-cart-btn[data-n="0"] { display: none; }
.res-act .res-book { flex-basis: 100%; text-align: center; }
.entry-book { font-family: var(--mono); font-size: 20px; margin: 14px 0 0; color: inherit; }
.entry-book-a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
