/* Steal the Wheel v2: the stolen wheel rolls through the night.
   One scene, one mechanic: every theft anywhere pushes it a little further. */

:root {
  --sky-top: oklch(0.13 0.035 270);
  --sky-mid: oklch(0.17 0.045 260);
  --sky-low: oklch(0.24 0.05 250);
  --horizon: oklch(0.42 0.09 60);
  --ground-hi: oklch(0.26 0.035 75);
  --ground-lo: oklch(0.16 0.025 70);
  --ink: oklch(0.93 0.015 250);
  --muted: oklch(0.70 0.035 250);
  --amber: oklch(0.74 0.14 62);
  --cyan: oklch(0.78 0.11 220);
  --red: oklch(0.62 0.21 25);
  --wood-hi: oklch(0.48 0.095 55);
  --wood-lo: oklch(0.38 0.085 50);
  --paint: oklch(0.94 0.03 90);
  --paint-dim: oklch(0.82 0.035 88);
  --hairline: oklch(0.34 0.04 255);
  --font-display: "Chakra Petch", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --ease-out-quint: cubic-bezier(0.16, 1, 0.3, 1);
  --ground-h: clamp(64px, 11vh, 100px);
  --z-fx: 3;
  --z-toast: 4;
  --z-bubble: 5;
  --z-modal: 6;
  --odo-size: clamp(2.8rem, 7.2vmin, 4.6rem);
  --odo-line: 1.25em;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* rapid steal taps on iOS Safari trigger smart zoom; manipulation
   disables double-tap zoom while keeping pinch zoom for accessibility */
* { touch-action: manipulation; }

body {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  background: var(--sky-top);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-fx);
}

/* ---------- chrome ---------- */

.chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1rem, 4vw, 2.4rem);
  position: relative;
  z-index: 2;
}

.lockup { display: flex; align-items: center; gap: 0.75rem; }

.mark {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--amber);
  filter: drop-shadow(0 0 9px oklch(0.74 0.14 62 / 0.45));
  animation: mark-roll-in 1.1s var(--ease-out-quint) both;
}

@keyframes mark-roll-in {
  from { transform: rotate(-260deg); opacity: 0; }
  to { transform: rotate(0deg); opacity: 1; }
}

.lockup-text h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.tagline { margin: 0; color: var(--muted); font-size: 0.84rem; }


/* ---------- the scene ---------- */

.stage {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.scene {
  --wheel-w: min(46vmin, 400px);
  position: relative;
  flex: 1;
  min-height: clamp(380px, 52vh, 600px);
  overflow: hidden;
}

.sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120vmin 50vmin at 50% 100%, oklch(0.42 0.09 60 / 0.35), transparent 70%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 48%, var(--sky-low) 86%, oklch(0.30 0.06 90) 100%);
}

.stars {
  position: absolute;
  inset: 0 0 22% 0;
  background-repeat: repeat;
}

/* real SVG star fields: randomized placement in a large tile renders crisply
   on every browser (sub-pixel CSS gradient dots collapse into grids on some) */
.stars-a { background-image: url("/v2/stars-a.svg"); }
.stars-b { background-image: url("/v2/stars-b.svg"); }

.moon {
  position: absolute;
  top: 9%;
  right: 12%;
  width: clamp(40px, 5.5vmin, 60px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 32%, oklch(0.96 0.01 95), oklch(0.86 0.02 90) 60%, oklch(0.78 0.03 85)),
    oklch(0.9 0.02 90);
  box-shadow: 0 0 34px oklch(0.9 0.03 90 / 0.35), 0 0 90px oklch(0.9 0.03 90 / 0.18);
}
.moon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(8% 8% at 38% 58%, oklch(0.72 0.03 85 / 0.8) 60%, transparent 61%),
    radial-gradient(12% 12% at 62% 36%, oklch(0.72 0.03 85 / 0.7) 60%, transparent 61%),
    radial-gradient(6% 6% at 56% 66%, oklch(0.72 0.03 85 / 0.6) 60%, transparent 61%);
}

.layer {
  position: absolute;
  left: 0; right: 0;
  background-repeat: repeat-x;
  pointer-events: none;
}

.layer.far {
  bottom: calc(var(--ground-h) - 6px);
  height: 140px;
  background-image: url("/v2/far.svg");
  background-position: 0 bottom;
  opacity: 0.95;
}

.layer.mid {
  bottom: calc(var(--ground-h) - 14px);
  height: 190px;
  background-image: url("/v2/mid.svg");
  background-position: 0 bottom;
}

.ground {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--ground-h);
  /* the road paints over the sign poles (z1) so their bases are occluded:
     that occlusion is the depth cue that puts the signs behind the road */
  z-index: 2;
  pointer-events: none;
  background-image:
    radial-gradient(2px 1.4px at 30px 18px, oklch(0.38 0.04 75 / 0.5) 50%, transparent 51%),
    radial-gradient(1.6px 1.2px at 84px 42px, oklch(0.34 0.04 75 / 0.45) 50%, transparent 51%),
    radial-gradient(2.2px 1.5px at 132px 70px, oklch(0.36 0.04 75 / 0.4) 50%, transparent 51%),
    linear-gradient(180deg, var(--ground-hi) 0%, var(--ground-lo) 100%);
  background-size: 170px 110px, 170px 110px, 170px 110px, 100% 100%;
}

.roadline {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(var(--ground-h) - 14px);
  height: 4px;
  z-index: 2;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    oklch(0.55 0.07 75 / 0.55) 0 56px,
    transparent 56px 148px
  );
}

.light-pool {
  position: absolute;
  left: 50%;
  bottom: calc(var(--ground-h) - 26px);
  width: min(64vmin, 560px);
  height: 56px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, oklch(0.55 0.1 70 / 0.28), transparent 75%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 2;
}

/* ---------- counter in the sky ---------- */

.counter-sky {
  position: absolute;
  top: clamp(6px, 3.5vh, 34px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  z-index: 2;
}

.odometer {
  min-height: var(--odo-line);
  display: flex;
  gap: clamp(2px, 0.5vw, 6px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--odo-size);
}

.odo-cell {
  position: relative;
  width: 0.72em;
  height: var(--odo-line);
  overflow: hidden;
  /* frameless drums: the roll reveals itself only through the fade */
  mask-image: linear-gradient(180deg, transparent 0%, black 22%, black 78%, transparent 100%);
}

.odo-col { display: block; will-change: transform; }

.odo-col span {
  display: block;
  height: var(--odo-line);
  line-height: var(--odo-line);
  text-align: center;
  color: var(--amber);
  text-shadow:
    0 0 14px oklch(0.74 0.14 62 / 0.6),
    0 0 44px oklch(0.6 0.13 58 / 0.4);
}

.counter-label {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.74rem, 1.5vw, 0.9rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

.distance {
  margin: 0;
  font-size: 0.85rem;
  color: oklch(0.58 0.035 250);
  font-style: italic;
}

/* ---------- the wheel ---------- */

.wheel {
  position: absolute;
  left: 50%;
  /* tyre bottom = roadline: the svg leaves 5.6% empty below the tyre */
  bottom: calc(var(--ground-h) - 14px - var(--wheel-w) * 0.056);
  transform: translateX(-50%);
  width: var(--wheel-w);
  aspect-ratio: 1;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 3;
  animation: wheel-arrive 1.3s var(--ease-out-quint) both;
}

@keyframes wheel-arrive {
  from { transform: translateX(-50%) scale(0.86); opacity: 0; }
  to { transform: translateX(-50%) scale(1); opacity: 1; }
}

.wheel svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 220ms var(--ease-out-quint);
}
.wheel:hover svg { transform: scale(1.012); }

.wheel:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 8px;
  border-radius: 50%;
}

/* contact shadow on the dirt */
.wheel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4.2%;
  width: 72%;
  height: 6%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, oklch(0 0 0 / 0.55), transparent 75%);
  filter: blur(6px);
  z-index: -1;
  pointer-events: none;
}

#wheel-rot {
  transform-box: view-box;
  transform-origin: 50% 50%;
  transform: rotate(var(--wheel-angle, 0deg));
}

#stripe { transition: filter 500ms ease; }
#stripe.flash {
  filter: brightness(2.1) drop-shadow(0 0 12px oklch(0.78 0.11 220 / 0.9));
  transition: filter 60ms ease;
}
/* your own steals glow amber, matching your confetti and chips */
#stripe.flash-mine {
  filter: brightness(2.1) drop-shadow(0 0 12px oklch(0.74 0.14 62 / 0.9));
  transition: filter 60ms ease;
}

/* ---------- roadside sign ---------- */

.signpost {
  position: absolute;
  right: clamp(0.8rem, 5vw, 4.5rem);
  /* pole plants deep behind the road band (z2 occludes the z1 base) */
  bottom: calc(var(--ground-h) - 24px);
  width: clamp(200px, 17vw, 248px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sign-board {
  width: 100%;
  background:
    repeating-linear-gradient(180deg, transparent 0 26px, oklch(0.30 0.07 50 / 0.5) 26px 27.5px),
    linear-gradient(174deg, var(--wood-hi), var(--wood-lo));
  border: 3px solid oklch(0.26 0.05 48);
  border-radius: 6px;
  padding: 0.55rem 0.7rem 0.5rem;
  box-shadow: 0 14px 26px oklch(0 0 0 / 0.5), inset 0 1px 0 oklch(1 0 0 / 0.15);
  transform: rotate(-1.4deg);
  position: relative;
}

/* nails */
.sign-board::before, .sign-board::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, oklch(0.6 0.02 250), oklch(0.3 0.02 250));
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.5);
}
.sign-board::before { left: 8px; }
.sign-board::after { right: 8px; }

.sign-post {
  width: 13px;
  /* longer pole: ~18px of it hides behind the road band */
  height: clamp(54px, 8vh, 78px);
  background: linear-gradient(90deg, var(--wood-hi), var(--wood-lo));
  border-inline: 2px solid oklch(0.26 0.05 48);
  margin-top: -3px;
}

.wanted-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: var(--paint);
  text-shadow: 0 1px 2px oklch(0 0 0 / 0.35);
}

.wanted-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.wanted-list li {
  display: grid;
  /* minmax(0,1fr): a bare 1fr floors at the nowrap name's full width and
     inflates the body grid track past the viewport on narrow screens */
  grid-template-columns: 1.3em minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: baseline;
  padding: 0.08rem 0.15rem;
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--paint);
  text-shadow: 0 1px 1px oklch(0 0 0 / 0.3);
}

.wanted-list li.me { background: oklch(0.20 0.045 48 / 0.6); }

.wanted-list .w-rank {
  font-family: var(--font-display);
  font-weight: 600;
  text-align: right;
  color: var(--paint-dim);
}

.wanted-list .w-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wanted-list .w-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--paint);
}

.wanted-list li.me .w-name,
.wanted-list li.me .w-count { color: oklch(0.88 0.1 78); }

.wanted-list li.flash { animation: wanted-flash 700ms ease-out; }
@keyframes wanted-flash { from { background: oklch(0.95 0.05 90 / 0.4); } }

.wanted-empty {
  color: var(--paint-dim);
  font-style: italic;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.4rem 0;
}

.wanted-board-mobile { display: none; }

/* ---------- actions ---------- */

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1rem 0.4rem;
  background: linear-gradient(180deg, var(--ground-lo), oklch(0.12 0.02 70));
}

.steal-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.3vw, 1.3rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(0.18 0.04 55);
  text-shadow: 0 1px 0 oklch(1 0 0 / 0.18);
  background: linear-gradient(180deg, oklch(0.76 0.14 60), oklch(0.65 0.14 58));
  border: 1px solid oklch(0.50 0.10 55);
  border-radius: 14px;
  padding: 0.9rem 2.8rem;
  cursor: pointer;
  margin-top: -2.4rem;
  box-shadow:
    0 6px 0 oklch(0.42 0.09 52),
    0 16px 32px oklch(0 0 0 / 0.5),
    inset 0 1px 0 oklch(1 0 0 / 0.25);
  transition: transform 90ms ease, box-shadow 90ms ease, filter 160ms ease;
  z-index: 4;
}

.steal-btn:hover { filter: brightness(1.07); }
.steal-btn:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 oklch(0.42 0.09 52), 0 8px 18px oklch(0 0 0 / 0.4), inset 0 1px 0 oklch(1 0 0 / 0.25);
}
.steal-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.statline {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.stat-strong {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

#watchers { min-width: 2ch; text-align: right; }
#rate-value { min-width: 3ch; text-align: right; }
#last-theft { min-width: 4.6em; text-align: left; }


.sep { color: oklch(0.45 0.03 250); }

/* ---------- toast & chips ---------- */

/* the wheel speaks: comic bubble popping from its upper right shoulder */
.toast {
  position: absolute;
  left: calc(50% + var(--wheel-w) * 0.26);
  bottom: calc(var(--ground-h) + var(--wheel-w) * 0.88);
  max-width: min(240px, 60vw);
  background: oklch(0.95 0.012 95);
  color: oklch(0.22 0.02 250);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 10px 24px oklch(0 0 0 / 0.45);
  opacity: 0;
  transform: scale(0.6);
  transform-origin: 14px calc(100% + 12px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 260ms var(--ease-out-quint);
  /* the wheel gets the last word: above chips and confetti */
  z-index: var(--z-bubble);
}

/* tail pointing back at the wheel */
.toast::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 12px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 16px 0 4px;
  border-color: oklch(0.95 0.012 95) transparent transparent transparent;
}

.toast.show { opacity: 1; transform: scale(1); }

.steal-chip.mine {
  border-color: oklch(0.74 0.14 62 / 0.5);
  color: var(--amber);
}

.steal-chip {
  position: absolute;
  bottom: calc(var(--ground-h) + var(--wheel-w) * 0.78);
  /* centered on the random anchor; the WAAPI keyframes repeat this */
  transform: translateX(-50%);
  background: oklch(0.20 0.04 250 / 0.92);
  border: 1px solid oklch(0.78 0.11 220 / 0.45);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
  z-index: var(--z-toast);
}

/* ---------- exhibit ---------- */

/* exhibit A as a missing-poster stapled to a roadside pole */
.exhibit {
  position: absolute;
  left: clamp(1rem, 6vw, 5.5rem);
  /* pole plants deep behind the road band (z2 occludes the z1 base) */
  bottom: calc(var(--ground-h) - 24px);
  width: clamp(148px, 13vw, 190px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  z-index: 1;
}

/* the pole it is stapled to */
.exhibit::after {
  content: "";
  width: 11px;
  /* longer pole: ~18px of it hides behind the road band */
  height: clamp(48px, 7vh, 70px);
  background: linear-gradient(90deg, var(--wood-hi), var(--wood-lo));
  border-inline: 2px solid oklch(0.24 0.05 48);
  margin-top: -3px;
}

.flyer-paper {
  display: block;
  width: 100%;
  background: oklch(0.93 0.012 95);
  padding: 7px 7px 6px;
  border-radius: 2px;
  box-shadow: 0 12px 26px oklch(0 0 0 / 0.55);
  transform: rotate(-2deg);
  transition: transform 260ms var(--ease-out-quint);
  position: relative;
}

/* staples */
.flyer-paper::before, .flyer-paper::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 10px;
  height: 3px;
  border-radius: 1px;
  background: oklch(0.55 0.02 250);
  box-shadow: 0 1px 1px oklch(0 0 0 / 0.4);
}
.flyer-paper::before { left: 10px; transform: rotate(-12deg); }
.flyer-paper::after { right: 10px; transform: rotate(9deg); }

.exhibit:hover .flyer-paper,
.exhibit:focus-visible .flyer-paper { transform: rotate(0deg) scale(1.05); }
.exhibit:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.flyer-head {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: oklch(0.22 0.02 250);
  padding: 1px 0 5px;
}

.exhibit img { display: block; width: 100%; height: auto; }

.exhibit-caption {
  display: block;
  padding-top: 4px;
  text-align: center;
  font-style: italic;
  font-size: 0.68rem;
  color: oklch(0.36 0.02 250);
}

body.modal-open header,
body.modal-open main,
body.modal-open footer {
  opacity: 0.25;
  transition: opacity 380ms ease;
}

.exhibit-hidden { visibility: hidden; }

/* narrow-width replacement for the roadside poster */
.exhibit-mobile {
  display: none;
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.exhibit-mobile:hover, .exhibit-mobile:focus-visible { color: var(--ink); }
.exhibit-mobile:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.exhibit-modal { position: fixed; inset: 0; z-index: var(--z-modal); }
.exhibit-backdrop { position: absolute; inset: 0; background: oklch(0.08 0.02 255 / 0.72); }

.exhibit-frame {
  position: absolute;
  margin: 0;
  background: oklch(0.96 0.005 90);
  padding: 10px 10px 12px;
  border-radius: 4px;
  box-shadow: 0 40px 90px oklch(0 0 0 / 0.6);
  transform-origin: top left;
  will-change: transform;
}

.exhibit-frame img { display: block; width: 100%; height: auto; }

.exhibit-frame figcaption {
  padding-top: 9px;
  text-align: center;
  font-style: italic;
  font-size: 0.95rem;
  color: oklch(0.32 0.02 250);
}

.exhibit-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: oklch(0.24 0.04 255);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px oklch(0 0 0 / 0.4);
}
.exhibit-close:hover { background: var(--hairline); }
.exhibit-close:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- footer ---------- */

.noscript {
  margin: 1rem auto;
  text-align: center;
  color: var(--amber);
  font-style: italic;
}

footer {
  padding: 0.35rem 1rem 0.6rem;
  text-align: center;
  background: oklch(0.12 0.02 70);
}

.attr { margin: 0; color: oklch(0.55 0.03 80); font-size: 0.84rem; font-style: italic; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  :root { --odo-size: clamp(2.1rem, 10.5vw, 2.8rem); --ground-h: clamp(54px, 9vh, 80px); }
  .scene { min-height: clamp(360px, 48vh, 480px); }
  .counter-sky { top: 6px; gap: 0.2rem; }
  .counter-label { font-size: 0.68rem; letter-spacing: 0.2em; }
  .distance { font-size: 0.78rem; }
  .moon { top: 5%; right: 5%; width: 36px; }
  .signpost { display: none; }
  .wanted-board-mobile {
    display: block;
    width: min(92vw, 420px);
    background:
      repeating-linear-gradient(180deg, transparent 0 26px, oklch(0.30 0.07 50 / 0.5) 26px 27.5px),
      linear-gradient(174deg, var(--wood-hi), var(--wood-lo));
    border: 3px solid oklch(0.26 0.05 48);
    border-radius: 6px;
    padding: 0.55rem 0.8rem 0.5rem;
    box-shadow: 0 10px 22px oklch(0 0 0 / 0.45);
    margin-top: 0.4rem;
  }
  /* the poster has no roadside to live on once the signpost goes;
     a plain link in the actions block opens the same modal */
  .exhibit { display: none; }
  .exhibit-mobile { display: inline-block; }
  .tagline { display: none; }
  .scene { --wheel-w: min(58vmin, 250px); }
}

@media (max-height: 830px) and (min-width: 901px) {
  :root { --odo-size: clamp(2.3rem, 5vmin, 3.2rem); }
  .counter-sky { top: 8px; }
  .scene { --wheel-w: min(40vmin, 37vh); }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .mark, .wheel { animation: none; }
  .status-dot { animation: none !important; }
  .odo-col { transition: none !important; }
  .wheel svg, .exhibit, .exhibit:hover { transition: none; }
}
