/* Sledneckotron 26,000, the game's own painted screens (round 2): the
   main menu, the pause card, the finish card's medal, and (later) the
   cover, the help card, the pop-ups and stickers. These are the game's
   1980s box-art colours, not the shell's theme, so they live here and
   not in sledneck.css (which names no colour: sledneck-tile.test.mjs). */

.sled-ui { background-repeat: no-repeat; flex: none; }
.sled-screen-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sled-screen-pic[hidden] { display: none; }
.sled-menu { position: absolute; inset: 0; z-index: 8; overflow: hidden; background: #2a3a78; }
.sled-menu[hidden] { display: none; }
.sled-menu-logo { position: absolute; left: 0; right: 0; top: 2%; display: flex; justify-content: center; }
/* bottom is in px to clear the caption strip (sledneck-sound.css: 18px up,
   at most 110px tall), which lies over this screen while a commentator talks. */
.sled-menu-item {
  position: absolute; bottom: 142px; display: flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 8px; cursor: pointer;
  transform: scale(0.82); transform-origin: 50% 70%; transition: transform 160ms ease-out; filter: saturate(0.75);
}
.sled-menu-slopes { left: 3%; bottom: 268px; }
.sled-menu-lodge { right: 3%; flex-direction: row; bottom: 268px; }
/* BIG AIR COMPETITION: below the two, in the middle (all three read at once). */
.sled-menu-bigair { left: 50%; margin-left: -330px; bottom: 128px; }
/* The chosen one: larger, bobbing, the arrow beside it (never colour alone). */
.sled-menu-item.is-chosen { transform: scale(1); filter: none; animation: sled-bob 1.1s ease-in-out infinite; }
.sled-menu-arrow[hidden] { visibility: hidden; display: block; }
.sled-menu-arrow { width: 72px; display: flex; justify-content: center; animation: sled-nudge 0.7s ease-in-out infinite alternate; }
.sled-menu-item.is-closed { filter: grayscale(0.85) brightness(0.8); cursor: default; }
/* FLY TO HYRUM DAM: on the menu only where the host serves the fly tiles
   (.has-fly; never on Marvyn). BIG AIR moves left to share the bottom row;
   FLY is lettered by the app as an SVG in the painted words' style (no
   painted piece; sledneck-app.js flyWordSvg). */
.sled-menu.has-fly .sled-menu-bigair { left: 6%; margin-left: 0; }
.sled-menu-fly { right: 5%; bottom: 120px; }
.sled-fly-word { display: block; flex: none; }
/* The fly scene's root: over every other screen while it is up, under the
   shell's back button (which goes back to the menu from here, so the fly
   HUD's own back, in the same spot, is not shown). */
.sled-fly { position: absolute; inset: 0; z-index: 11; overflow: hidden; background: #cbd9f5; }
.sled-fly .fly-back { visibility: hidden; }
.sled-fly[hidden] { display: none; }
.sled-closed {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-7deg);
  padding: 10px 22px; background: #f6ecd4; color: #3a2414; border: 3px solid #6b4423; border-radius: 6px;
  font: 700 30px/1.1 "Comic Sans MS", "Chalkboard SE", "Segoe Print", cursive; white-space: nowrap;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
}
.sled-closed[hidden] { display: none; }
@keyframes sled-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes sled-nudge { from { translate: 0 0; } to { translate: 10px 0; } }
.sled-lodge { position: absolute; inset: 0; z-index: 8; }
.sled-lodge[hidden] { display: none; }

.sled-pause { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; background: rgba(18, 22, 54, 0.62); }
.sled-pause[hidden] { display: none; }
.sled-pause-box {
  min-width: 520px; padding: 22px 30px 26px; border-radius: 22px; background: #1d2550; color: #fff;
  border: 5px solid #111; box-shadow: 0 0 0 4px #ffd23a, 0 14px 0 rgba(0, 0, 0, 0.45);
}
.sled-pause-box h2 { margin: 0 0 12px; text-align: center; font: 900 54px/1 var(--font); letter-spacing: 2px; color: #ffd23a; -webkit-text-stroke: 2px #111; transform: rotate(-3deg); }
.sled-pause-row {
  display: flex; align-items: center; gap: 14px; width: 100%; margin: 8px 0; padding: 10px 18px;
  border: 3px solid transparent; border-radius: 14px; background: rgba(255, 255, 255, 0.08); color: inherit;
  font: 800 36px/1.1 var(--font); text-align: left; cursor: pointer;
}
.sled-pause-mark { visibility: hidden; color: #ffd23a; }
.sled-pause-what { flex: 1; }
.sled-pause-val { font-weight: 700; opacity: 0.9; }
/* The chosen row: the mark, the outline and the size (never colour alone). */
.sled-pause-row.is-chosen { border-color: #ffd23a; background: rgba(255, 210, 58, 0.18); transform: scale(1.04); }
.sled-pause-row.is-chosen .sled-pause-mark { visibility: visible; }

.sled-card-medal { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 2px 0 6px; font: 800 26px/1.1 var(--font); }
.sled-card-medal-pic[hidden] { display: none; }

/* ---- the handling: the power bar, the balance meter, the pop-ups, the
   stickers, the rocket's streaks, THE 26,000's numerals ---- */
.sled-power {
  position: absolute; left: 18px; bottom: 96px; width: 300px; height: 44px; border-radius: 12px;
  background: rgba(10, 14, 40, 0.55); border: 4px solid #111; box-shadow: 0 0 0 3px #ffd23a; overflow: visible;
}
.sled-power[hidden] { display: none; }
.sled-power.is-painted { background: none; border: 0; box-shadow: none; width: 360px; height: 74px; }
.sled-power-fill {
  position: absolute; left: 6px; top: 6px; bottom: 6px; width: 0; max-width: calc(100% - 12px); border-radius: 8px;
  background: linear-gradient(90deg, #2d7bff, #ffd23a 55%, #ff4a1c); transition: width 120ms linear;
}
.sled-power.is-painted .sled-power-fill { left: 22%; top: 34%; bottom: 30%; max-width: 70%; }
.sled-power-frame { position: absolute; inset: 0; }
.sled-power.is-painted .sled-power-label { display: none; }
.sled-power-label { position: absolute; left: 10px; top: 50%; translate: 0 -50%; font: 900 18px/1 var(--font); color: #fff; -webkit-text-stroke: 1px #111; letter-spacing: 2px; }
/* Hot: it shakes a little (shape and motion: not colour alone). */
.sled-power.is-hot { animation: sled-shake 0.12s linear infinite; }
.sled-power.is-ready { animation: sled-pulse 0.5s ease-in-out infinite alternate; }
.sled-power.is-ready::after { content: "READY!"; position: absolute; right: -6px; top: -26px; font: 900 24px/1 var(--font); color: #ffd23a; -webkit-text-stroke: 1.5px #111; rotate: 6deg; }
/* The standing how-to while the bar is full: above the bar, big and plain. */
.sled-power-how {
  position: absolute; left: 18px; bottom: 182px; max-width: 520px; margin: 0; padding: 8px 14px; border-radius: 12px;
  background: rgba(10, 14, 40, 0.75); border: 3px solid #ffd23a; color: #fff; font: 900 26px/1.15 var(--font);
}
.sled-power-how[hidden] { display: none; }
@keyframes sled-shake { 0% { translate: 0 0; } 25% { translate: 1px -1px; } 50% { translate: -1px 1px; } 75% { translate: 1px 1px; } 100% { translate: 0 0; } }
@keyframes sled-pulse { from { scale: 1; } to { scale: 1.08; } }

.sled-balance { position: absolute; left: 50%; top: 40%; translate: -50% 0; display: flex; align-items: center; gap: 14px; }
.sled-balance[hidden] { display: none; }
.sled-balance-bar { position: relative; width: 260px; height: 22px; border-radius: 11px; background: rgba(255, 255, 255, 0.85); border: 3px solid #111; }
.sled-balance-mid { position: absolute; left: 50%; top: -6px; bottom: -6px; width: 4px; translate: -50% 0; background: #111; }
.sled-balance-marker { position: absolute; top: 50%; width: 0; height: 0; translate: -50% -50%; border: 13px solid transparent; border-bottom: 22px solid #e8261f; border-top: 0; transition: left 60ms linear; }
.sled-balance.is-tipping .sled-balance-bar { animation: sled-shake 0.1s linear infinite; }
.sled-banked { margin: 0; font: 900 34px/1 var(--font); color: #ffd23a; -webkit-text-stroke: 2px #111; }

/* A pop-up: the cover's style (chunky, outlined, tilted), one at a time,
   in the band across the top (above the line ahead). */
.sled-pop { position: absolute; left: 50%; top: 19%; translate: -50% -50%; z-index: 4; text-align: center; pointer-events: none; rotate: -4deg; }
.sled-pop[hidden] { display: none; }
.sled-pop-text {
  margin: 0; font: italic 900 54px/1 var(--font); letter-spacing: 1px; white-space: nowrap;
  background: linear-gradient(#fff6b0, #ffd23a 45%, #ff8a1c 55%, #ff3c8e); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 2.5px #1a1035; filter: drop-shadow(0 4px 0 #1a1035);
}
.sled-pop-sub { margin: 4px 0 0; font: 900 34px/1 var(--font); color: #fff; -webkit-text-stroke: 2px #1a1035; }
.sled-pop-trick .sled-pop-text { font-size: 48px; }
/* A trick's pop-up hangs from where its name stands, so its combo and
   chain lines grow down, never up over the run's banner. */
.sled-pop.sled-pop-trick { top: 13%; translate: -50% 0; }
/* The in-air combo and the chain, each its own line, as tall as the name. */
.sled-pop-combo, .sled-pop-chain { margin: 4px 0 0; font: italic 900 54px/1 var(--font); letter-spacing: 1px; white-space: nowrap; color: #ffd23a; -webkit-text-stroke: 2.5px #1a1035; filter: drop-shadow(0 4px 0 #1a1035); }
.sled-pop-chain { color: #7fe8ff; }
.sled-pop-combo[hidden], .sled-pop-chain[hidden] { display: none; }

/* The chain across tricks: under the score, top right (clear of the power
   bar, bottom left, and the balance meter, middle); its words carry it,
   the bar under them drains as its clock runs. */
.sled-chain { position: absolute; right: 18px; top: 84px; z-index: 3; width: 230px; text-align: right; pointer-events: none; }
.sled-chain[hidden] { display: none; }
.sled-chain-text { display: block; font: italic 900 44px/1 var(--font); color: #7fe8ff; -webkit-text-stroke: 2px #1a1035; filter: drop-shadow(0 3px 0 #1a1035); }
.sled-chain-bar { position: relative; height: 16px; margin-top: 6px; border-radius: 8px; background: rgba(10, 14, 40, 0.55); border: 3px solid #111; overflow: hidden; }
.sled-chain-fill { position: absolute; right: 0; top: 0; bottom: 0; width: 0; background: #fff; }
.sled-chain.pop { animation: sled-settle 0.3s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.sled-pop.settle { animation: sled-settle 0.35s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes sled-settle { from { scale: 0.2; opacity: 0; } to { scale: 1; opacity: 1; } }

.sled-sticker { position: absolute; z-index: 4; translate: -50% -50%; rotate: var(--tilt, 0deg); pointer-events: none; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35)); }
.sled-sticker[hidden] { display: none; }
.sled-sticker.slap { animation: sled-slap 1.1s ease-out both; }
@keyframes sled-slap {
  0% { scale: 2.2; opacity: 0; } 12% { scale: 0.9; opacity: 1; } 22% { scale: 1.06; } 30% { scale: 1; }
  82% { scale: 1; opacity: 1; transform: none; } 100% { scale: 0.9; opacity: 0; transform: rotate(24deg) translate(30px, -40px); }
}

.sled-streaks { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.0) 0 14px, rgba(255, 255, 255, 0.4) 14px 16px, rgba(255, 255, 255, 0) 16px 40px);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 55%, transparent 60%, #000 100%); mask-image: radial-gradient(ellipse 60% 55% at 50% 55%, transparent 60%, #000 100%);
  animation: sled-streak 0.25s linear infinite; }
.sled-streaks[hidden] { display: none; }
@keyframes sled-streak { from { background-position: 0 0; } to { background-position: 40px 0; } }

.sled-big { position: absolute; left: 50%; top: 22%; translate: -50% -50%; z-index: 5; pointer-events: none;
  font: italic 900 150px/1 var(--font); color: #ffd23a; -webkit-text-stroke: 5px #1a1035; filter: drop-shadow(0 8px 0 #ff3c8e); rotate: -5deg; }
.sled-big[hidden] { display: none; }
.sled-big.settle { animation: sled-settle 0.45s cubic-bezier(0.2, 1.8, 0.4, 1) both; }
/* A still (?sledshot) holds the stickers on, mid-slap. */
.sledneck-app[data-shot] .sled-sticker.slap { animation: none; }

/* ---- the cover, attract, the keys card, the choose hint, the finish card ---- */
.sled-cover, .sled-attract { position: absolute; inset: 0; z-index: 9; overflow: hidden; }
.sled-cover { background: #111; }
.sled-cover[hidden], .sled-attract[hidden] { display: none; }
.sled-attract { pointer-events: none; }
.sled-attract-logo { position: absolute; left: 0; right: 0; top: 3%; display: flex; justify-content: center; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35)); }
.sled-press { position: absolute; left: 0; right: 0; bottom: 7%; display: flex; justify-content: center; animation: sled-blink 1.1s steps(1, end) infinite; }
@keyframes sled-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0; } }
.sledneck-app[data-shot] .sled-press { animation: none; }

.sled-help { position: absolute; inset: 0; z-index: 10; overflow: hidden; background: #2a3a78; }
.sled-help[hidden] { display: none; }
.sled-help-keys { position: absolute; left: 2%; right: 2%; top: 7.6%; height: 34%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4%; }
.sled-help-key { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6px 14px; color: #1a1035; }
/* Marv's eight keys in a row (two hands of four), this move's key lit. */
.sled-help-row { display: flex; gap: 5px; }
.sled-help-cap {
  width: 22px; height: 30px; border-radius: 5px; background: #1a1035; box-shadow: 0 3px 0 #000;
}
.sled-help-cap:nth-child(5) { margin-left: 14px; }
.sled-help-cap.is-off { opacity: 0.3; }
.sled-help-cap.is-on { background: #ffd23a; outline: 3px solid #1a1035; height: 40px; margin-top: -10px; }
.sled-help-key strong { margin-top: 8px; font: italic 900 32px/1 var(--font); letter-spacing: 1px; }
.sled-help-key span { margin-top: 6px; font: 700 18px/1.2 var(--font); }
.sled-help-lines { position: absolute; left: 4%; right: 4%; bottom: 3%; padding: 10px 18px; border-radius: 14px; background: rgba(20, 16, 53, 0.78); color: #fff; }
.sled-help-lines p { margin: 3px 0; font: 700 22px/1.25 var(--font); }
.sled-help-go { position: absolute; right: 5%; top: 44%; margin: 0; font: italic 900 26px/1 var(--font); color: #fff; -webkit-text-stroke: 1.5px #1a1035; }

/* The chair's run picker: the three runs, left to right as the top area
   has them, each its trail mark (never colour alone), its name, its best
   medal; the chosen one lifted and ringed in gold. Over the chair's view,
   above the touch layer (its buttons take taps). */
.sled-pick { position: absolute; left: 0; right: 0; top: 12%; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sled-pick[hidden] { display: none; }
.sled-pick-title { margin: 0; font: italic 900 44px/1 var(--font); color: #ffd23a; -webkit-text-stroke: 2px #1a1035; filter: drop-shadow(0 4px 0 #1a1035); }
.sled-pick-runs { display: flex; gap: 18px; }
.sled-pick-run {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: 250px; min-height: 150px; padding: 14px 10px; border-radius: 18px;
  border: 4px solid #111; background: rgba(20, 16, 53, 0.82); color: #fff; font: italic 900 26px/1.1 var(--font); cursor: pointer;
  transform: scale(0.92); filter: brightness(0.82); transition: transform 0.12s, filter 0.12s;
}
.sled-pick-run.is-chosen { transform: scale(1.04); filter: none; border-color: #ffd23a; box-shadow: 0 0 0 4px #111, 0 8px 0 rgba(0, 0, 0, 0.4); animation: sled-bob 1.1s ease-in-out infinite; }
.sled-pick-medal { min-height: 30px; }
.sled-pick-go { margin: 0; padding: 6px 16px; border-radius: 12px; background: rgba(20, 16, 53, 0.72); color: #fff; font: italic 900 24px/1.1 var(--font); }
.sled-pick-go b { color: #ffd23a; }
.sled-pick .sled-mark, .sled-going .sled-mark { font-style: normal; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: #fff; font-size: 34px; line-height: 1; }
.sled-pick .sled-mark-square, .sled-going .sled-mark-square { color: #1f55d6; }
.sled-pick .sled-mark-circle, .sled-going .sled-mark-circle { color: #1f9a4a; }
.sled-pick .sled-mark-diamond, .sled-going .sled-mark-diamond { color: #111; }
/* The chosen run, small, from the dive to its gate. */
.sled-going { position: absolute; left: 50%; top: 4%; translate: -50% 0; z-index: 3; pointer-events: none; display: flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 12px; background: rgba(20, 16, 53, 0.72); color: #fff; font: italic 900 24px/1 var(--font); }
.sled-going[hidden] { display: none; }
.sled-going .sled-mark { width: 30px; height: 30px; font-size: 22px; border-radius: 6px; }
.sled-runword { position: absolute; left: 50%; top: 22%; translate: -50% -50%; z-index: 4; pointer-events: none; animation: sled-settle 0.4s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.sled-runword[hidden] { display: none; }

/* The finish card over its painted backdrop: the lines come in one by
   one, the score counts up, the medal, NEW BEST!, the robot, the run's
   stickers round the edge. */
.sled-card .sled-card-pic, .sled-card > .sled-screen-pic { z-index: 0; }
.sled-card-box { position: relative; z-index: 1; overflow: visible; }
.sled-card-row { animation: sled-row 0.3s ease-out both; animation-delay: calc(var(--i, 0) * 0.18s + 0.3s); }
@keyframes sled-row { from { opacity: 0; translate: -18px 0; } to { opacity: 1; translate: 0 0; } }
.sledneck-app[data-shot] .sled-card-row { animation: none; }
.sled-card-newbest { font: italic 900 30px/1 var(--font); color: #ffd23a; -webkit-text-stroke: 1.5px #1a1035; rotate: -6deg; animation: sled-pulse 0.5s ease-in-out infinite alternate; }
.sled-card-newbest[hidden] { display: none; }
.sled-card-rider { position: absolute; z-index: 2; right: -270px; bottom: -10px; pointer-events: none; }
.sled-card-stickers { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.sled-card-sticker { position: absolute; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.3)); }
.sled-card-sticker-0 { left: -200px; top: 2%; rotate: -12deg; }
.sled-card-sticker-1 { left: -215px; top: 30%; rotate: 9deg; }
.sled-card-sticker-2 { left: -195px; top: 58%; rotate: -6deg; }
.sled-card-sticker-3 { right: -200px; top: 2%; rotate: 11deg; }
.sled-card-sticker-4 { right: -215px; top: 28%; rotate: -9deg; }
.sled-card-sticker-5 { left: -330px; top: 16%; rotate: 5deg; }
.sled-card-sticker-6 { right: -330px; top: 14%; rotate: -5deg; }
.sled-card-sticker-7 { left: -320px; top: 46%; rotate: 8deg; }
.sledneck-app[data-screen="attract"] .sled-buttons, .sledneck-app[data-screen="cover"] .sled-buttons { display: none; }

/* ---- the painted HUD: icons on the tallies, the robot's head, the
   count's numerals; the pop-ups' painted words ---- */
.sled-hud.is-painted .sled-icon { display: inline-block; vertical-align: middle; margin-right: 6px; }
.sled-strikes[hidden], .sled-clock[hidden] { display: none; }
.sled-head { position: absolute; left: 172px; bottom: 14px; pointer-events: none; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35)); }
.sled-hud:not(.is-painted) .sled-head { display: none; }
.sled-head.is-gray { filter: grayscale(1) drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35)); }
.sled-head.bump { animation: sled-settle 0.3s cubic-bezier(0.2, 1.8, 0.4, 1) both; }
.sled-count.is-painted { color: transparent; text-shadow: none; }
.sled-pop-text.is-art { background-clip: border-box; -webkit-background-clip: border-box; -webkit-text-stroke: 0; filter: drop-shadow(0 5px 0 rgba(26, 16, 53, 0.6)); margin: 0 auto; }
.sled-pop-crash .sled-pop-text:not(.is-art) { background: linear-gradient(#fff, #ffd0d0 45%, #ff4a3c 55%, #b0102a); -webkit-background-clip: text; background-clip: text; }
/* With four tallies (gates, rings, strikes, clock) they stack in two
   rows, clear of the run's banner in the middle. */
.sled-hud.is-painted .sled-tally { display: grid; grid-template-columns: auto auto; column-gap: 14px; row-gap: 2px; padding-top: 4px; padding-bottom: 4px; }
.sled-count.is-painted { right: auto; left: 50%; top: 30%; translate: -50% -50%; }
.sled-loading-pic .sled-loading-poster { z-index: 0; }
.sledneck-app[data-screen="loading"] .sled-loading { position: absolute; z-index: 1; left: 0; right: 0; bottom: 6%; margin: 0; text-align: center; font: italic 900 34px/1 var(--font); color: #fff; -webkit-text-stroke: 1.5px #1a1035; }
.sled-big { display: grid; place-items: center; }
.sled-big-burst { grid-area: 1 / 1; opacity: 0.9; z-index: -1; }
.sled-big-text { grid-area: 1 / 1; }
.sled-pause-box { position: relative; }
.sled-pause-checker { position: absolute; inset: -26px; z-index: -1; background-repeat: no-repeat; pointer-events: none; }

/* The run's postcard: a small picture at the top of the finish card. */
.sled-card-box > .sled-card-postcard { position: absolute; display: block; width: 150px; height: auto; left: -175px; top: 62%; rotate: -4deg; border-radius: 10px; border: 3px solid #111; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); }
.sled-card-box > .sled-card-postcard[hidden] { display: none; }
/* The finish card's box in the cover's colours, like the pause card. */
.sled-card .sled-card-box { background: #1d2550; color: #fff; border: 5px solid #111; box-shadow: 0 0 0 4px #ffd23a, 0 14px 0 rgba(0, 0, 0, 0.45); }
.sled-card .sled-card-box h2 { font-style: italic; font-weight: 900; color: #ffd23a; -webkit-text-stroke: 1.5px #111; }
.sled-card .sled-card-table tr.total td { color: #ffd23a; font-size: 1.25em; }
/* SELECT A RIDER: the stage drawn by the game's own GL under it (the
   riders turning on their stands); the title, each rider's name under
   them and the whole rider a button. The chosen one: its name bigger in a
   gold frame (the stage rings its stand and points at it). */
.sled-riders { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.sled-riders[hidden] { display: none; }
.sled-riders-title { position: absolute; left: 0; right: 0; top: 4%; margin: 0; text-align: center; font: italic 900 52px/1 var(--font); color: #ffd23a; -webkit-text-stroke: 2px #1a1035; filter: drop-shadow(0 4px 0 #1a1035); }
.sled-riders-row { position: absolute; left: 0; right: 0; top: 14%; bottom: 13%; }
.sled-riders-one {
  position: absolute; top: 0; bottom: 0; width: 22%; translate: -50% 0; pointer-events: auto;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.sled-riders-one:nth-child(1) { left: 30%; }
.sled-riders-one:nth-child(2) { left: 50%; }
.sled-riders-one:nth-child(3) { left: 70%; }
.sled-riders-name {
  padding: 4px 14px; border-radius: 12px; border: 4px solid transparent; background: rgba(20, 16, 53, 0.72);
  color: #fff; font: italic 900 26px/1.1 var(--font); transition: transform 0.12s;
}
.sled-riders-one.is-chosen .sled-riders-name { font-size: 40px; border-color: #ffd23a; box-shadow: 0 0 0 4px #111, 0 8px 0 rgba(0, 0, 0, 0.4); }
.sled-riders-one.is-chosen .sled-riders-name::before { content: "▶ "; color: #ffd23a; }
.sled-riders-go { position: absolute; left: 50%; bottom: 3%; translate: -50% 0; margin: 0; padding: 6px 16px; border-radius: 12px; background: rgba(20, 16, 53, 0.72); color: #fff; font: italic 900 24px/1.1 var(--font); }
.sled-riders-go b { color: #ffd23a; }
.sled-riders-back { position: absolute; left: 2%; bottom: 3%; pointer-events: auto; }
/* The finish card's rider, named where only Marv is painted. */
.sled-card-rider-name { display: block; margin: 0 120px 40px 0; padding: 8px 16px; border-radius: 14px; border: 4px solid #111; background: #ffd23a; color: #1a1035; font: italic 900 32px/1 var(--font); white-space: nowrap; rotate: -6deg; }
/* The ride's own controls and counters are not on this screen. */
.sledneck-app[data-screen="rider"] .sled-buttons, .sledneck-app[data-screen="rider"] .sled-hud { display: none; }

/* ---- Big Air (view/bigair-cards.js) ---- */
.sled-ba { position: absolute; inset: 0; z-index: 7; pointer-events: none; font: 700 22px/1.25 system-ui, sans-serif; color: #1d2340; }
.sled-ba[hidden], .sled-ba [hidden] { display: none !important; }
.sled-ba-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); pointer-events: auto;
  width: 1080px; max-height: 600px; padding: 16px 26px 14px; box-sizing: border-box; text-align: center;
  background: rgba(250, 248, 240, 0.95); border: 5px solid #1d2340; border-radius: 18px; box-shadow: 0 10px 0 rgba(0, 0, 0, 0.3);
}
.sled-ba-title { display: flex; justify-content: center; margin-bottom: 4px; }
.sled-ba-field { list-style: none; margin: 4px 0; padding: 0; display: flex; justify-content: center; gap: 22px; font-size: 26px; }
.sled-ba-field .is-you, .sled-ba-row.is-you { font-weight: 900; color: #b0161a; }
.sled-ba-field .is-you { text-decoration: underline; text-underline-offset: 5px; }
.sled-ba-rule { margin: 6px 0; font-size: 30px; font-weight: 900; letter-spacing: 0.02em; }
.sled-ba-judges { display: flex; justify-content: center; gap: 40px; }
.sled-ba-judge { display: flex; flex-direction: column; align-items: center; font-size: 18px; }
.sled-ba-judge span { font-size: 24px; font-weight: 900; letter-spacing: 0.06em; }
.sled-ba-keys { margin: 6px 0 2px; font-size: 17px; font-weight: 600; }
.sled-ba-best { margin: 2px 0; font-size: 20px; }
.sled-ba-go { margin: 6px 0 0; font-size: 20px; animation: sled-blink 1.1s steps(2) infinite; }
.sled-ba-who { margin: 0 0 6px; font-size: 32px; }
.sled-ba-panel { display: flex; justify-content: center; gap: 60px; align-items: flex-end; }
.sled-ba-seat { display: flex; flex-direction: column; align-items: center; }
.sled-ba-paddle { position: relative; margin-bottom: -18px; z-index: 1; }
.sled-ba-num { position: absolute; left: 0; right: 0; top: 18px; font-size: 60px; font-weight: 900; color: #111; }
.sled-ba-subject { font-size: 28px; font-weight: 900; letter-spacing: 0.08em; }
.sled-ba-sum { margin: 6px 0 0; font-size: 54px; font-weight: 900; min-height: 64px; }
.sled-ba-stickers { position: absolute; right: -20px; top: -30px; display: flex; flex-direction: column; gap: 4px; transform: rotate(8deg); }
.sled-ba-table { margin: 4px auto; border-collapse: collapse; font-size: 28px; }
.sled-ba-table td, .sled-ba-table th { padding: 4px 18px; border-bottom: 2px solid rgba(29, 35, 64, 0.2); }
.sled-ba-table th { font-size: 18px; }
.sled-ba-table td:nth-child(2) { text-align: left; min-width: 220px; }
.sled-ba-row.is-you { background: rgba(255, 214, 90, 0.5); }
.sled-ba-next { margin: 8px 0 0; font-size: 30px; font-weight: 900; }
.sled-ba-results { padding-top: 10px; }
.sled-ba-results { padding-left: 250px; }
.sled-ba-postcard img { position: absolute; left: 18px; top: 22px; width: 210px; transform: rotate(-4deg); border: 6px solid #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25); }
.sled-ba-podium { display: flex; justify-content: center; align-items: flex-end; gap: 10px; height: 230px; }
.sled-ba-step { display: flex; flex-direction: column; align-items: center; width: 190px; font-size: 26px; }
.sled-ba-step.is-you b::before { content: "▶ "; }
.sled-ba-box { display: block; width: 100%; background: #1d2340; color: #fff; font-size: 52px; font-weight: 900; }
.sled-ba-step.is-1 .sled-ba-box { height: 140px; }
.sled-ba-step.is-2 .sled-ba-box { height: 100px; }
.sled-ba-step.is-3 .sled-ba-box { height: 70px; }
.sled-ba-place { margin: 8px 0 2px; font-size: 44px; font-weight: 900; }
.sled-ba-prize { display: flex; justify-content: center; align-items: center; gap: 16px; min-height: 40px; }
.sled-ba-record { margin: 4px 0; font-size: 20px; }
.sled-ba-buttons { display: flex; justify-content: center; gap: 16px; }
.sled-ba-tv { position: absolute; left: 0; right: 0; bottom: 120px; pointer-events: none; }
.sled-ba-strip {
  position: absolute; left: 40px; bottom: 30px; display: flex; gap: 18px; align-items: center; padding: 8px 22px;
  background: rgba(16, 20, 44, 0.86); color: #fff; border-left: 10px solid #ffd23c; font-size: 32px;
}
.sled-ba-tv-live { font-style: normal; font-size: 18px; padding: 2px 8px; border: 2px solid #fff; border-radius: 4px; }
.sled-ba-tv-keys { position: absolute; right: 40px; bottom: 34px; margin: 0; padding: 6px 14px; background: rgba(16, 20, 44, 0.78); color: #fff; font-size: 22px; }
.sled-ba-line { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); margin: 0; padding: 4px 18px; background: rgba(16, 20, 44, 0.7); color: #fff; font-size: 26px; border-radius: 8px; white-space: nowrap; }
.sled-hud.is-bigair .sled-tally, .sled-hud.is-bigair .sled-score, .sled-hud.is-bigair .sled-banner, .sled-hud.is-bigair .sled-clock { display: none !important; }
/* (No Jump and Trick buttons over the competition's cards and television.) */
.sledneck-app[data-screen="bigair"] .sled-buttons { display: none; }
