@font-face {
  font-family: 'Silkscreen';
  src: url('fonts/silkscreen-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Silkscreen';
  src: url('fonts/silkscreen-bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f8f5e7;
  --muted: #a8adc0;
  --page: #11131f;
  --panel: #191c2b;
  --panel-2: #20243a;
  --line: #353a52;
  --yellow: #ffd44a;
  --purple: #8c6cff;
  --mint: #76e6c2;
  --pink: #ff759f;
  --blue: #75c9ff;
  --shadow: #080910;
  --pixel-font: 'Silkscreen', ui-monospace, monospace;
  --body-font: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 31px, rgba(255,255,255,.018) 32px),
    linear-gradient(transparent 31px, rgba(255,255,255,.018) 32px),
    radial-gradient(circle at 82% 8%, rgba(140,108,255,.2), transparent 30rem),
    var(--page);
  background-size: 32px 32px, 32px 32px, auto, auto;
  font-family: var(--body-font);
}

a { color: inherit; }
button, textarea, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.site-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-family: var(--pixel-font); font-size: 17px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--page); background: var(--yellow); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--purple); }
.brand--small { font-size: 13px; }
.brand--small .brand-mark { width: 30px; height: 30px; box-shadow: 3px 3px 0 var(--purple); }
.free-pill, .sound-button { padding: 8px 11px; color: var(--muted); border: 1px solid var(--line); background: rgba(25,28,43,.75); font-size: 12px; font-weight: 700; }
.sound-button { color: var(--ink); }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; }
.back-link:hover { color: var(--ink); }

.home-shell { min-height: 100vh; display: flex; flex-direction: column; }
.home-intro { padding: clamp(54px, 10vh, 110px) 0 44px; }
.kicker { margin: 0 0 15px; color: var(--mint); font-family: var(--pixel-font); font-size: 11px; line-height: 1.5; text-transform: uppercase; letter-spacing: .06em; }
.home-intro h1, .play-heading h1, .coming-card h1 { margin: 0; font-family: var(--pixel-font); letter-spacing: -.05em; }
.home-intro h1 { max-width: 900px; font-size: clamp(39px, 7.5vw, 86px); line-height: 1.08; }
.home-intro h1 span { color: var(--yellow); }
.intro-copy { max-width: 570px; margin: 24px 0 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.65; }
.use-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 19px 0 0; padding: 0; list-style: none; }
.use-list li { padding: 7px 10px; color: var(--ink); border: 1px solid var(--line); background: rgba(25,28,43,.72); font-size: 11px; font-weight: 700; }
.use-list li::before { content: '•'; margin-right: 7px; color: var(--yellow); }

.game-grid { display: grid; grid-template-columns: 1.16fr 1fr 1fr; gap: 15px; }
.game-choice {
  position: relative;
  min-height: 250px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 23px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: 7px 7px 0 var(--shadow);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.game-choice:hover, .game-choice:focus-visible { transform: translate(-3px, -3px); border-color: var(--mint); box-shadow: 10px 10px 0 var(--shadow); outline: none; }
.game-choice--featured { background: linear-gradient(145deg, #29204a, var(--panel) 58%); border-color: var(--purple); }
.game-number { color: var(--muted); font-family: var(--pixel-font); font-size: 10px; }
.game-icon { align-self: center; justify-self: center; color: var(--yellow); font-family: var(--pixel-font); font-size: clamp(64px, 9vw, 105px); line-height: 1; text-shadow: 5px 5px 0 rgba(140,108,255,.8); }
.game-choice:nth-child(2) .game-icon { color: var(--blue); }
.game-choice:nth-child(3) .game-icon { color: var(--pink); }
.game-copy strong, .game-copy small { display: block; }
.game-copy strong { font-family: var(--pixel-font); font-size: clamp(15px, 1.6vw, 20px); }
.game-copy small { max-width: 270px; margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.game-arrow { position: absolute; right: 20px; bottom: 19px; font-size: 24px; }
.purpose-strip { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr); align-items: center; gap: 32px; margin-top: 30px; padding: 22px; border: 1px solid var(--line); background: rgba(25,28,43,.72); }
.purpose-strip .kicker { margin-bottom: 7px; font-size: 8px; }
.purpose-strip h2, .purpose-strip > p { margin: 0; }
.purpose-strip h2 { font-family: var(--pixel-font); font-size: clamp(13px, 1.7vw, 18px); line-height: 1.45; }
.purpose-strip > p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.support-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-top: 30px; padding: 20px 22px; border: 2px solid rgba(118,230,194,.5); background: linear-gradient(120deg, rgba(118,230,194,.12), rgba(140,108,255,.1) 68%, var(--panel)); box-shadow: 6px 6px 0 var(--shadow); }
.support-heart { width: 44px; height: 44px; display: grid; place-items: center; color: var(--page); border: 2px solid var(--ink); background: var(--pink); box-shadow: 3px 3px 0 var(--purple); font-family: var(--pixel-font); font-size: 19px; }
.support-copy p, .support-copy h2, .support-copy span { margin: 0; }
.support-copy p { margin-bottom: 5px; color: var(--mint); font-family: var(--pixel-font); font-size: 7px; text-transform: uppercase; }
.support-copy h2 { font-family: var(--pixel-font); font-size: clamp(13px, 1.7vw, 18px); line-height: 1.3; }
.support-copy span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.support-callout { padding: 10px 12px; color: var(--page); border: 2px solid var(--ink); background: var(--yellow); box-shadow: 3px 3px 0 var(--shadow); font-family: var(--pixel-font); font-size: 8px; line-height: 1.4; text-decoration: none; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.support-callout:hover { background: var(--mint); box-shadow: 5px 5px 0 var(--shadow); transform: translate(-2px, -2px); }
.support-callout:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
.support-callout span { margin-left: 5px; }
.site-footer { margin-top: auto; padding: 38px 0 24px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.creator-credit strong { color: var(--yellow); font-family: var(--pixel-font); font-size: 10px; letter-spacing: .04em; }
.text-button { padding: 0; color: var(--mint); border: 0; background: transparent; font-weight: 700; }

.play-shell { padding-bottom: 45px; }
.play-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: 34px 0 25px; }
.play-heading h1 { font-size: clamp(31px, 5vw, 55px); }
.play-heading > p { max-width: 370px; margin: 0; color: var(--muted); line-height: 1.55; }
.play-layout { display: grid; grid-template-columns: minmax(280px, .76fr) minmax(450px, 1.4fr); gap: 18px; align-items: start; }
.control-panel, .attraction-stage { border: 2px solid var(--line); background: rgba(25,28,43,.94); box-shadow: 7px 7px 0 var(--shadow); }
.control-panel { padding: 20px; }
.control-panel h2, .results-panel h2 { margin: 0; font-family: var(--pixel-font); font-size: 14px; }
.mode-picker { margin: 22px 0; padding: 0; border: 0; }
.mode-picker legend { margin-bottom: 9px; color: var(--muted); font-size: 12px; font-weight: 700; }
.mode-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mode-picker legend { grid-column: 1 / -1; }
.mode-picker label { cursor: pointer; }
.mode-picker input { position: absolute; opacity: 0; pointer-events: none; }
.mode-picker span { min-height: 44px; display: grid; place-items: center; padding: 7px; text-align: center; color: var(--muted); border: 1px solid var(--line); background: var(--page); font-size: 11px; font-weight: 700; }
.mode-picker input:checked + span { color: var(--page); border-color: var(--yellow); background: var(--yellow); }
.mode-picker input:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 2px; }
.names-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; font-size: 12px; font-weight: 700; }
.names-tools { display: inline-flex; align-items: center; gap: 6px; }
.count-badge { padding: 5px 7px; color: var(--mint); border: 1px solid rgba(118,230,194,.35); background: rgba(118,230,194,.08); font-size: 10px; }
.shuffle-button { min-height: 0; padding: 5px 8px; color: var(--blue); border: 1px solid rgba(117,201,255,.45); background: var(--page); font-size: 10px; font-weight: 800; line-height: 1.2; }
.shuffle-button:hover, .shuffle-button:focus-visible { color: var(--page); background: var(--blue); outline: none; }
textarea { width: 100%; min-height: 222px; resize: vertical; padding: 13px; color: var(--ink); border: 2px solid var(--line); border-radius: 0; outline: none; background: var(--page); font-size: 14px; line-height: 1.5; }
textarea:focus { border-color: var(--purple); box-shadow: 4px 4px 0 rgba(140,108,255,.25); }
.control-actions { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: 12px; }
.primary-button, .secondary-button, .primary-link { min-height: 48px; padding: 12px 16px; border: 2px solid var(--ink); font-weight: 800; box-shadow: 4px 4px 0 var(--shadow); }
.primary-button, .primary-link { color: var(--page); background: var(--yellow); }
.secondary-button { color: var(--ink); background: var(--panel-2); }
.primary-button:active, .secondary-button:active, .primary-link:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow); }
.primary-button:disabled { cursor: not-allowed; opacity: .45; }
.setup-message { min-height: 18px; margin: 12px 0 0; color: var(--muted); font-size: 11px; }

.attraction-stage { position: relative; min-height: 660px; padding: 17px; overflow: hidden; background: linear-gradient(#171b34 0 55%, #151828 55%); }
.marquee { min-height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 11px 16px; text-align: center; border: 3px solid var(--yellow); background: var(--page); box-shadow: inset 0 0 0 3px #3d3151; transition: border-color 180ms ease, box-shadow 180ms ease; }
.marquee-label { color: var(--muted); font-family: var(--pixel-font); font-size: 8px; text-transform: uppercase; }
.marquee strong { margin-top: 7px; font-family: var(--pixel-font); font-size: clamp(14px, 2vw, 21px); }
.wheel-wrap { position: relative; width: min(100%, 540px); aspect-ratio: 1 / .91; margin: 7px auto 0; }
.ferris-wheel-shell { position: absolute; z-index: 2; left: 50%; top: 48%; width: 72%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.ferris-wheel { --wheel-radius: 43%; --counter-rotation: 0deg; position: relative; width: 100%; height: 100%; transform: rotateZ(0deg); transform-origin: 50% 50%; will-change: transform; backface-visibility: hidden; }
.ferris-wheel::before, .ferris-wheel::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 8px solid var(--purple); box-shadow: 0 0 0 3px var(--ink), inset 0 0 0 3px var(--ink); }
.ferris-wheel::after { inset: 12%; border-width: 3px; border-color: var(--blue); box-shadow: none; }
.wheel-spokes { --segment-angle: 45deg; --segment-divider: 1deg; --active-start: -22.5deg; --active-fill: rgba(117,201,255,.42); --active-edge: rgba(117,201,255,.9); position: absolute; inset: 7%; border-radius: 50%; overflow: hidden; }
.wheel-spokes::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: conic-gradient(from var(--active-start), var(--active-edge) 0 var(--segment-divider), var(--active-fill) var(--segment-divider) calc(var(--segment-angle) - var(--segment-divider)), var(--active-edge) calc(var(--segment-angle) - var(--segment-divider)) var(--segment-angle), transparent var(--segment-angle) 360deg); }
.wheel-hub-anchor { position: absolute; z-index: 3; left: 50%; top: 50%; width: 0; height: 0; display: flex; align-items: center; justify-content: center; }
.wheel-hub { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; transform: rotateZ(var(--counter-rotation)); transform-origin: center; color: var(--page); border: 3px solid var(--ink); background: var(--yellow); font-family: var(--pixel-font); font-size: 15px; }
.seat-layer { position: absolute; inset: 0; z-index: 4; }
.wheel-seat-anchor { position: absolute; width: 0; height: 0; display: flex; align-items: center; justify-content: center; transform: translate(-50%, -50%); }
.wheel-seat { flex: 0 0 86px; width: 86px; min-height: 38px; display: grid; place-items: center; box-sizing: border-box; padding: 6px 8px; transform: rotateZ(var(--counter-rotation)); transform-origin: center; scale: 1; color: var(--page); border: 2px solid var(--ink); background: var(--seat-color, var(--mint)); box-shadow: 3px 3px 0 var(--shadow); font-size: 9px; font-weight: 800; text-align: center; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; transition: scale 100ms ease, box-shadow 100ms ease, filter 100ms ease; }
.wheel-seat.is-compact { flex-basis: 32px; width: 32px; min-height: 26px; padding: 3px; font-family: var(--pixel-font); font-size: 7px; }
.wheel-seat-anchor.is-approaching { z-index: 5; }
.wheel-seat-anchor.is-approaching .wheel-seat { scale: 1.1; filter: brightness(1.18); box-shadow: 0 0 0 4px var(--blue), 4px 4px 0 var(--shadow); }
.wheel-seat-anchor.is-winner { z-index: 6; }
.wheel-seat-anchor.is-winner .wheel-seat { background: var(--yellow); box-shadow: 0 0 0 4px var(--pink), 4px 4px 0 var(--shadow); }
.pick-marker { position: absolute; z-index: 7; left: 50%; bottom: 43px; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); color: var(--yellow); text-shadow: 0 0 10px rgba(255,212,74,.85); pointer-events: none; }
.pick-marker span { font-size: 26px; line-height: .8; }
.pick-marker small { margin-top: 7px; padding: 4px 6px; color: var(--page); background: var(--yellow); font-family: var(--pixel-font); font-size: 6px; line-height: 1; white-space: nowrap; }
.boarding-platform { position: absolute; z-index: 5; left: 50%; bottom: 0; transform: translateX(-50%); padding: 8px 14px; color: var(--page); border: 3px solid var(--ink); background: var(--pink); font-family: var(--pixel-font); font-size: 8px; box-shadow: 4px 4px 0 var(--shadow); }
.attraction-stage.is-spinning .pick-marker { animation: pick-pulse 700ms steps(2, end) infinite; }
.attraction-stage.is-final-approach .pick-marker { animation-duration: 260ms; }
.attraction-stage.is-final-approach .marquee { border-color: var(--pink); box-shadow: inset 0 0 0 3px #3d3151, 0 0 0 3px rgba(255,117,159,.2); }
@keyframes pick-pulse { 50% { transform: translateX(-50%) translateY(-4px); filter: brightness(1.35); } }
.celebration-popup { position: absolute; z-index: 20; left: 50%; top: 46%; width: min(390px, calc(100% - 28px)); padding: 26px 22px 22px; transform: translate(-50%, -50%); text-align: center; border: 3px solid var(--ink); background: var(--panel-2); box-shadow: 9px 9px 0 var(--shadow), 0 0 0 4px var(--yellow); animation: celebration-pop 230ms steps(4, end) both; }
.celebration-popup > p { margin: 0 0 10px; color: var(--mint); font-family: var(--pixel-font); font-size: 8px; text-transform: uppercase; }
.celebration-popup h2 { margin: 0; color: var(--yellow); font-family: var(--pixel-font); font-size: clamp(18px, 4vw, 28px); overflow-wrap: anywhere; }
.celebration-actions { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: 22px; }
.celebration-actions button { min-height: 44px; font-size: 12px; }
.celebration-bits i { position: absolute; width: 7px; height: 7px; background: var(--pink); animation: celebration-bit 650ms steps(5, end) both; }
.celebration-bits i:nth-child(1) { left: 8%; top: 20%; background: var(--mint); --bit-x: -18px; --bit-y: -30px; }
.celebration-bits i:nth-child(2) { left: 22%; top: 5%; background: var(--yellow); --bit-x: -8px; --bit-y: -25px; animation-delay: 60ms; }
.celebration-bits i:nth-child(3) { right: 9%; top: 18%; background: var(--blue); --bit-x: 20px; --bit-y: -28px; animation-delay: 100ms; }
.celebration-bits i:nth-child(4) { right: 25%; top: 3%; background: var(--pink); --bit-x: 8px; --bit-y: -31px; animation-delay: 35ms; }
.celebration-bits i:nth-child(5) { left: 11%; bottom: 18%; background: var(--purple); --bit-x: -22px; --bit-y: 20px; animation-delay: 120ms; }
.celebration-bits i:nth-child(6) { right: 11%; bottom: 20%; background: var(--yellow); --bit-x: 23px; --bit-y: 18px; animation-delay: 85ms; }
@keyframes celebration-pop { from { opacity: 0; transform: translate(-50%, -44%) scale(.92); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes celebration-bit { from { opacity: 1; transform: translate(0, 0) rotate(0); } to { opacity: 0; transform: translate(var(--bit-x), var(--bit-y)) rotate(180deg); } }
.results-panel { margin-top: 14px; padding: 15px; border: 1px solid var(--line); background: var(--page); }
.results-heading { display: flex; align-items: center; justify-content: space-between; }
.result-list { margin: 13px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.result-list li, .team-column li { display: flex; gap: 9px; padding: 7px 9px; border-left: 3px solid var(--purple); background: var(--panel); font-size: 12px; }
.result-list b { color: var(--yellow); }
.team-results { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.team-column { padding: 10px; background: var(--panel); }
.team-column h3 { margin: 0 0 8px; color: var(--mint); font-family: var(--pixel-font); font-size: 9px; }
.team-column ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.team-column li { border-left-color: var(--mint); }

.ski-layout { grid-template-columns: minmax(280px, .7fr) minmax(540px, 1.55fr); }
.ski-stage { min-height: 0; padding: 14px; background: linear-gradient(180deg, #17263d, #151828); }
.ski-marquee { min-height: 68px; }
.ski-course-wrap { position: relative; width: 100%; aspect-ratio: 25 / 18; margin-top: 12px; overflow: hidden; border: 3px solid var(--ink); background: #bde9ff; box-shadow: 4px 4px 0 var(--shadow); }
#ski-canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.ski-race-hud { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 7px; margin-top: 11px; }
.ski-race-hud > div { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); background: var(--page); }
.ski-race-hud span, .ski-race-hud strong { display: block; }
.ski-race-hud span { margin-bottom: 5px; color: var(--muted); font-family: var(--pixel-font); font-size: 6px; text-transform: uppercase; }
.ski-race-hud strong { overflow: hidden; color: var(--blue); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ski-race-hud > div:nth-child(2) strong { color: var(--yellow); }
.ski-race-hud > div:nth-child(3) strong { color: var(--pink); }
.ski-stage.is-racing .ski-marquee { border-color: var(--blue); box-shadow: inset 0 0 0 3px #263f5a, 0 0 0 3px rgba(117,201,255,.15); }
.ski-stage.is-finished .ski-marquee { border-color: var(--mint); box-shadow: inset 0 0 0 3px #214a43, 0 0 0 3px rgba(118,230,194,.16); }
.ski-celebration { top: 43%; }
.ski-stage .results-panel { max-height: 360px; overflow: auto; }
.ski-result-note { margin-left: auto; color: var(--pink); font-size: 9px; }
.ski-result-progress { margin-left: 5px; color: var(--muted); font-size: 9px; }

.horse-layout { grid-template-columns: minmax(280px, .7fr) minmax(540px, 1.55fr); }
.horse-stage { min-height: 0; padding: 14px; background: linear-gradient(180deg, #35233a, #171928); }
.horse-marquee { min-height: 68px; }
.horse-track-wrap { position: relative; width: 100%; aspect-ratio: 20 / 13; margin-top: 12px; overflow: hidden; border: 3px solid var(--ink); background: #2e7453; box-shadow: 4px 4px 0 var(--shadow), inset 0 0 0 4px rgba(255,212,74,.16); }
.horse-track-wrap::after { content: ''; position: absolute; inset: 0; border: 2px solid rgba(255,255,255,.08); pointer-events: none; }
#horse-canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.horse-race-hud { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 7px; margin-top: 11px; }
.horse-race-hud > div { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); background: var(--page); }
.horse-race-hud span, .horse-race-hud strong { display: block; }
.horse-race-hud span { margin-bottom: 5px; color: var(--muted); font-family: var(--pixel-font); font-size: 6px; text-transform: uppercase; }
.horse-race-hud strong { overflow: hidden; color: var(--pink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.horse-race-hud > div:nth-child(2) strong { color: var(--yellow); }
.horse-race-hud > div:nth-child(3) strong { color: var(--mint); }
.horse-stage.is-racing .horse-marquee { border-color: var(--pink); box-shadow: inset 0 0 0 3px #51283c, 0 0 0 3px rgba(255,117,159,.15); }
.horse-stage.is-finished .horse-marquee { border-color: var(--mint); box-shadow: inset 0 0 0 3px #214a43, 0 0 0 3px rgba(118,230,194,.16); }
.horse-celebration { top: 43%; }
.horse-stage .results-panel { max-height: 360px; overflow: auto; }

.preview-shell { min-height: 100vh; }
.coming-card { max-width: 760px; margin: clamp(45px, 10vh, 100px) auto 0; padding: clamp(30px, 7vw, 72px); text-align: center; border: 2px solid var(--line); background: var(--panel); box-shadow: 9px 9px 0 var(--shadow); }
.coming-card--ski { background: linear-gradient(145deg, #173248, var(--panel) 68%); }
.coming-card--horse { background: linear-gradient(145deg, #462438, var(--panel) 68%); }
.coming-symbol { display: block; margin: 8px 0 23px; color: var(--blue); font-family: var(--pixel-font); font-size: clamp(80px, 20vw, 150px); text-shadow: 7px 7px 0 var(--purple); }
.coming-card--horse .coming-symbol { color: var(--pink); }
.coming-card h1 { font-size: clamp(33px, 7vw, 64px); }
.coming-card > p:not(.kicker) { max-width: 540px; margin: 24px auto 30px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.primary-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

@media (max-width: 850px) {
  .game-grid { grid-template-columns: 1fr; }
  .game-choice { min-height: 160px; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 20px; }
  .game-icon { grid-row: 1 / 3; align-self: center; font-size: 65px; }
  .game-number { grid-column: 2; }
  .game-copy { grid-column: 2; align-self: center; }
  .play-layout { grid-template-columns: 1fr; }
  .ski-layout { grid-template-columns: 1fr; }
  .horse-layout { grid-template-columns: 1fr; }
  .purpose-strip { grid-template-columns: 1fr; gap: 10px; }
  .attraction-stage { min-height: 610px; }
  .ski-stage { min-height: 0; }
  .horse-stage { min-height: 0; }
}

@media (max-width: 560px) {
  .site-shell { width: min(100% - 20px, 1180px); }
  .topbar { min-height: 65px; }
  .brand--small span:last-child { display: none; }
  .free-pill { font-size: 10px; }
  .home-intro { padding-top: 45px; }
  .game-choice { min-height: 142px; padding: 17px; }
  .game-copy small { padding-right: 20px; }
  .site-footer { flex-direction: column; }
  .support-card { grid-template-columns: auto 1fr; padding: 17px; }
  .support-callout { grid-column: 1 / -1; justify-self: start; }
  .play-heading { align-items: start; flex-direction: column; padding-top: 25px; }
  .play-heading > p { font-size: 13px; }
  .control-panel, .attraction-stage { box-shadow: 4px 4px 0 var(--shadow); }
  .mode-picker { grid-template-columns: 1fr; }
  .control-actions { grid-template-columns: 1fr; }
  .attraction-stage { min-height: 510px; padding: 10px; }
  .wheel-wrap { margin-top: 13px; }
  .wheel-seat { flex-basis: 62px; width: 62px; min-height: 30px; padding: 4px 6px; font-size: 8px; }
  .wheel-seat.is-compact { flex-basis: 26px; width: 26px; min-height: 22px; padding: 2px; }
  .ferris-wheel::before { border-width: 5px; }
  .team-results { grid-template-columns: 1fr; }
  .celebration-actions { grid-template-columns: 1fr; }
  .ski-stage { min-height: 0; padding: 8px; }
  .ski-race-hud { gap: 4px; }
  .ski-race-hud > div { padding: 7px 6px; }
  .ski-race-hud strong { font-size: 10px; }
  .horse-stage { min-height: 0; padding: 8px; }
  .horse-race-hud { gap: 4px; }
  .horse-race-hud > div { padding: 7px 6px; }
  .horse-race-hud strong { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
