/* Up the Creek: sun-bleached holiday-brochure inflatables. Cream paper, pool blue, raft yellow, coral patch, deep teal. */
@font-face { font-family: 'Fredoka'; font-weight: 500; font-display: swap; src: url('../fonts/fredoka-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('../fonts/fredoka-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url('../fonts/fredoka-700-latin.woff2') format('woff2'); }
:root {
  --cream: #f6ecd6; --paper: #fbf5e7; --pool: #2fa3c6; --pool-dk: #1d7f9e; --yellow: #ffcf3a; --yellow-dk: #e3a91c;
  --coral: #ee5a3c; --coral-dk: #c43f25; --teal: #10454f; --ink: #1f2a30; --foam: #ffffff;
  --r: 18px; --shadow: 0 6px 0 rgba(16, 69, 79, .22);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--teal); color: var(--ink); font: 500 17px/1.35 'Fredoka', system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
html.tv { font-size: min(calc(100vh / 108), calc(100vw / 192)); }
.ic { width: 1.2em; height: 1.2em; flex: none; }
button { font: inherit; color: inherit; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 54px; padding: .7em 1.4em;
  border: 3px solid var(--teal); border-radius: 999px; background: var(--yellow); color: var(--teal); font-weight: 700;
  font-size: 1.1rem; text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 var(--teal); transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--teal); }
.btn.alt { background: var(--paper); }
.btn.hot { background: var(--coral); color: var(--foam); }
.btn:focus-visible { outline: 4px solid var(--pool); outline-offset: 3px; }

/* home: a holiday brochure on the water */
.home { min-height: 100%; display: grid; align-content: start; justify-items: center; gap: 0; padding: 0 16px 40px;
  background: radial-gradient(120% 70% at 50% 0%, #3fb6d8 0%, var(--pool) 45%, var(--pool-dk) 100%); }
.hm-art { position: relative; width: min(980px, 100% + 32px); margin: 0 -16px; display: grid; place-items: center; padding: 28px 0 0; }
.hm-key { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 4px solid var(--teal); }
.hm-key + .logo { position: absolute; bottom: -30px; }
.hm-body { width: min(560px, 100%); margin-top: 22px; background: var(--paper); border: 3px solid var(--teal); border-radius: 28px;
  padding: 26px 22px 22px; box-shadow: 0 10px 0 var(--teal); text-align: center; }
.hm-art:has(.hm-key) + .hm-body { margin-top: 50px; }
.hm-tag { margin: 0 0 8px; font-size: 1.08rem; }
.hm-facts { margin: 0 0 18px; color: #4a5a60; font-size: .95rem; }
.hm-join { position: relative; display: flex; flex-direction: column; gap: 12px; }
.hm-join h1 { margin: 4px 0; font-weight: 700; font-size: 1.6rem; color: var(--teal); }
.hm-join label { display: grid; gap: 6px; text-align: left; font-weight: 600; color: var(--teal); }
.hm-join input { min-height: 54px; border: 3px solid var(--teal); border-radius: 16px; padding: 0 16px; font: 600 1.15rem 'Fredoka', sans-serif;
  background: var(--foam); color: var(--ink); width: 100%; }
.hm-join input[name="code"], .hm-join #code { text-transform: uppercase; letter-spacing: .2em; text-align: center; }
.hm-join input:focus { outline: 4px solid var(--yellow); outline-offset: 2px; }
.clip { display: none; }
.btn.go { font-size: 1.3rem; min-height: 62px; }
.hm-host { margin-top: 22px; padding-top: 18px; border-top: 3px dashed rgba(16, 69, 79, .25); display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hm-host h2 { width: 100%; margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--teal); }
.hm-host p { width: 100%; margin: 0 0 6px; font-size: .9rem; color: #4a5a60; }
.hm-err { color: var(--coral-dk); font-weight: 600; min-height: 1.3em; margin: 0; }
.hm-chip:empty { display: none; }
.hm-chip { margin-top: 16px; }

/* logo: a scalloped luggage sticker with the title riding a rubber ring */
.logo { position: relative; display: inline-grid; justify-items: center; padding: 22px 34px 18px; color: var(--teal); line-height: .9; }
.logo .lg-stamp { position: absolute; inset: 0; border-radius: 36px; background: var(--yellow); border: 4px solid var(--teal);
  box-shadow: 0 6px 0 var(--teal), inset 0 0 0 5px var(--yellow), inset 0 0 0 8px rgba(16, 69, 79, .9), inset 0 -16px 0 rgba(227, 169, 28, .55); }
.logo .lg-stamp::before { content: ''; position: absolute; inset: 12px; border-radius: 26px; border: 2px dashed rgba(16, 69, 79, .35); }
.logo .lg-stamp::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: 26%; height: 14px; border-radius: 99px;
  background: repeating-linear-gradient(90deg, var(--pool) 0 22px, #5cc6e0 22px 44px); opacity: .85; }
.logo > span:not(.lg-stamp) { position: relative; }
.logo .lg-up { font: 600 1.1rem 'Fredoka', sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.logo .lg-creek { font: 700 3.6rem 'Fredoka', sans-serif; color: var(--coral); -webkit-text-stroke: 3px var(--teal); paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--teal); transform: rotate(-3deg); }
.logo .lg-sub { margin-top: 8px; font: 600 .8rem 'Fredoka', sans-serif; letter-spacing: .18em; text-transform: uppercase; background: var(--teal);
  color: var(--yellow); padding: 4px 10px; border-radius: 99px; }
html.tv .logo .lg-creek { font-size: 9rem; }

.tv-wait, .pad-wait { min-height: 100%; display: grid; place-items: center; color: var(--cream); font-weight: 600; font-size: 1.4rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- the phone ------------------------------------------------------------------------------------------------ */
body.is-phone { background: var(--pool-dk); overscroll-behavior: none; }
body.is-phone[data-phase="play"] { overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ph { min-height: var(--vh, 100dvh); padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: radial-gradient(130% 80% at 50% 0%, #46bcdc 0%, var(--pool) 40%, var(--pool-dk) 100%); color: var(--ink); }
.ph h1, .ph h2, .ph h3 { font-weight: 700; margin: 0; color: var(--teal); }
.ph .note { margin: 0; color: #37525a; font-size: .95rem; display: flex; align-items: center; justify-content: center; gap: .4em; }
.ph .warn { margin: 0; color: var(--coral-dk); font-weight: 600; font-size: .92rem; }
.ph .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ph .btn[disabled] { opacity: .45; cursor: default; transform: none; box-shadow: 0 5px 0 var(--teal); }
.ic.big { width: 54px; height: 54px; color: var(--teal); }
.pt { width: 56px; height: 56px; flex: none; filter: drop-shadow(0 3px 0 rgba(16, 69, 79, .35)); }
.pt.big { width: 120px; height: 120px; }

.ph-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--foam); }
.ph-top h1 { color: var(--foam); font-size: 1.25rem; text-align: center; text-shadow: 0 2px 0 rgba(16, 69, 79, .5); }
.ph-code { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; justify-self: start; background: rgba(16, 69, 79, .35); padding: 4px 12px 4px 8px; border-radius: 99px; }
.ph-code b { letter-spacing: .14em; color: var(--yellow); }
.ph-leave { justify-self: end; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(16, 69, 79, .35); color: var(--foam); display: grid; place-items: center; cursor: pointer; }

/* lobby: the brochure page; landscape puts the cast beside the trip */
.lob { display: grid; gap: 14px; }
@media (orientation: landscape) and (min-width: 640px) { .lob { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 420px) { .pick { grid-template-columns: repeat(2, 1fr); } }
.tile { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 6px 9px; border: 3px solid var(--teal); border-radius: 20px;
  background: var(--paper); box-shadow: 0 4px 0 var(--teal); cursor: pointer; text-align: center; min-height: 118px; transition: transform .08s; }
.tile b { font-size: 1rem; color: var(--teal); }
.tile small { font-size: .74rem; line-height: 1.15; color: #4a5a60; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--teal); }
.tile.mine { background: var(--yellow); box-shadow: 0 4px 0 var(--teal), inset 0 0 0 3px var(--foam); }
.tile.mine small { color: var(--teal); font-weight: 700; }
.tile.taken { background: #d8d2c2; cursor: default; }
.tile.taken .pt { filter: grayscale(.85) opacity(.6); }
.tile.taken small { color: var(--teal); font-weight: 600; }
.tile.taken:active { transform: none; box-shadow: 0 4px 0 var(--teal); }

.trip { display: grid; gap: 12px; padding: 16px; background: var(--paper); border: 3px solid var(--teal); border-radius: 24px; box-shadow: 0 6px 0 var(--teal); text-align: center; }
.trip h2 { font-size: 1.15rem; }
.trip.wait { align-content: center; min-height: 140px; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; background: rgba(16, 69, 79, .1); border-radius: 18px; }
.mode { display: grid; justify-items: center; gap: 3px; min-height: 64px; padding: 8px 4px; border: 0; border-radius: 14px; background: transparent; color: var(--teal); font-weight: 600; cursor: pointer; }
.mode .ic { width: 26px; height: 26px; }
.mode.sel { background: var(--yellow); box-shadow: 0 3px 0 var(--teal), inset 0 0 0 2.5px var(--teal); }
.toggle { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border: 3px solid var(--teal); border-radius: 16px; background: var(--foam); color: var(--teal); font-weight: 600; cursor: pointer; }
.toggle span { flex: 1; text-align: left; }
.toggle i { font-style: normal; padding: 3px 12px; border-radius: 99px; background: #d8d2c2; }
.toggle.sel i { background: var(--coral); color: var(--foam); }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: left; font-size: .82rem; }
.board h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.board ol { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.board li { display: flex; justify-content: space-between; gap: 4px; }
.board li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board li.none { color: #6a7a80; }

/* teams: two rafts side by side */
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.team { display: grid; align-content: start; gap: 8px; min-height: 180px; padding: 14px; border: 3px solid var(--teal); border-radius: 26px; cursor: pointer; text-align: center; box-shadow: 0 6px 0 var(--teal); }
.team.t0 { background: #ffb36b; } .team.t1 { background: #8fd3ea; }
.team.mine { box-shadow: 0 6px 0 var(--teal), inset 0 0 0 4px var(--foam); }
.team ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.team li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.team li .pt { width: 36px; height: 36px; }
.team .join { margin-top: auto; font-weight: 700; color: var(--teal); }

/* briefing, waiting, result */
.brief, .res { display: grid; justify-items: center; align-content: center; gap: 12px; min-height: calc(var(--vh, 100dvh) - 40px); text-align: center; }
.brief h1, .res h1 { color: var(--foam); font-size: 1.9rem; text-shadow: 0 3px 0 var(--teal); }
.brief p { margin: 0; max-width: 30em; color: var(--foam); font-size: 1.05rem; }
.brief .ic.big { color: var(--foam); }
.res h1.t0 { color: #ffb36b; } .res h1.t1 { color: #bfe8f5; }
.bog { margin: 0; max-width: 32em; font-size: 1.05rem; color: var(--foam); }
.bog i { display: block; font-size: .85rem; opacity: .8; }
.scores { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.score { display: grid; justify-items: center; min-width: 200px; padding: 12px 18px; background: var(--paper); border: 3px solid var(--teal); border-radius: 22px; box-shadow: 0 6px 0 var(--teal); }
.score.t1 h3 { color: var(--pool-dk); } .score.t0 h3 { color: var(--coral-dk); }
.score.mine { background: var(--yellow); }
.score .big { font-size: 3rem; font-weight: 700; line-height: 1; color: var(--teal); }
.score .lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #4a5a60; }
.score dl { display: grid; grid-template-columns: auto auto; gap: 2px 14px; margin: 8px 0 0; font-size: .9rem; }
.score dt { color: #4a5a60; text-align: left; } .score dd { margin: 0; font-weight: 700; text-align: right; }
.rank { margin: 0; color: var(--foam); }
.awards { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.awards li { display: grid; padding: 6px 14px; background: rgba(16, 69, 79, .4); color: var(--foam); border-radius: 14px; font-size: .9rem; }
.awards b { color: var(--yellow); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---- the pad: inflatable vinyl buttons floating on pool water ---- */
.ph[data-ph="play"] { position: fixed; inset: 0; padding: 0; min-height: 0; overflow: hidden; }
.pad { position: absolute; inset: 0; isolation: isolate; display: grid; grid-template-columns: 42% 1fr; grid-template-rows: auto 1fr; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: repeating-radial-gradient(circle at 30% 120%, rgba(255, 255, 255, .07) 0 18px, transparent 18px 46px), linear-gradient(180deg, #3bb2d4, var(--pool-dk)); }
.ph.rot .pad, .ph.rot .ov { inset: auto; left: var(--vw, 100vw); top: 0; width: var(--vh, 100vh); height: var(--vw, 100vw); transform-origin: 0 0; transform: rotate(90deg); }
.pad.solo { grid-template-columns: 1fr 26% 1fr; }
.pad-top { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; min-height: 52px; }
.seat-tag { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--foam); }
.seat-tag .pt { width: 48px; height: 48px; }
.seat-tag > span { display: grid; min-width: 0; line-height: 1.15; }
.seat-tag b { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 0 rgba(16, 69, 79, .45); }
.seat-where { font-size: .88rem; color: #e3f6fb; white-space: nowrap; }
.b-pause { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--teal); background: var(--paper); color: var(--teal); display: grid; place-items: center;
  box-shadow: 0 4px 0 var(--teal); cursor: pointer; touch-action: manipulation; }
.b-pause:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--teal); }
.chips { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.chip { padding: 4px 12px; border-radius: 99px; background: var(--yellow); color: var(--teal); font-weight: 700; font-size: .82rem; border: 2px solid var(--teal); }
.chip.tm.t0 { background: #ffb36b; } .chip.tm.t1 { background: #8fd3ea; }

.pad-l { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; min-height: 0; }
.pb { position: relative; min-height: 0; padding: 0; border: 4px solid var(--teal); border-radius: 34px; cursor: pointer; touch-action: none; color: var(--teal);
  background: var(--fill, var(--yellow)); box-shadow: 0 8px 0 var(--teal), inset 0 -14px 0 var(--shade, rgba(227, 169, 28, .75)), inset 0 0 0 7px var(--fill, var(--yellow)), inset 0 0 0 9px rgba(16, 69, 79, .25);
  transition: transform .05s, box-shadow .05s; overflow: hidden; }
/* the vinyl shine and the welded seam */
.pb::before { content: ''; position: absolute; left: 9%; top: 9%; width: 34%; height: 22%; border-radius: 50%; background: rgba(255, 255, 255, .55); transform: rotate(-12deg); filter: blur(1px); pointer-events: none; }
.pb::after { content: ''; position: absolute; inset: 15px; border-radius: 24px; border: 2px dashed rgba(16, 69, 79, .22); pointer-events: none; }
.pb.on { transform: translateY(6px) scale(.985); box-shadow: 0 2px 0 var(--teal), inset 0 -6px 0 var(--shade, rgba(227, 169, 28, .75)), inset 0 0 0 7px var(--fill, var(--yellow)), inset 0 0 0 9px rgba(16, 69, 79, .25); }
.pb-face { position: relative; z-index: 1; display: grid; justify-items: center; align-content: center; gap: 4px; height: 100%; pointer-events: none; }
.pb-face .ic { width: 46px; height: 46px; stroke-width: 2.4; }
.pb-face b { font-size: 1.5rem; letter-spacing: .04em; text-transform: uppercase; }
.pb-face small { font-size: .78rem; font-weight: 600; opacity: .75; }
.b-paddle .pb-face .ic { width: 78px; height: 78px; }
.b-paddle .pb-face b { font-size: 2.3rem; }
.b-duck { --fill: #7fd0ea; --shade: rgba(29, 127, 158, .45); }
.b-grab { --fill: #ff8a6b; --shade: rgba(196, 63, 37, .45); }
.b-duck.lit { --fill: var(--foam); }
.pad.solo .b-paddle .pb-face b { font-size: 1.8rem; }
.pad.solo .pad-l .pb-face b { font-size: 1.1rem; }
.pad.solo .pad-l .pb-face .ic { width: 34px; height: 34px; }

/* the river knocks: a shake and a coral flash round the edge for phones that cannot vibrate */
.edge { position: absolute; inset: 0; pointer-events: none; }
.pad.shake { animation: shake .18s linear; }
.pad.shake .edge { animation: edge .18s ease-out; }
.pad.shake-big { animation-name: shake-big; }
@keyframes shake { 0%, 100% { translate: 0 0; } 25% { translate: -5px 1px; } 50% { translate: 4px -1px; } 75% { translate: -3px 0; } }
@keyframes shake-big { 0%, 100% { translate: 0 0; } 20% { translate: -10px 3px; } 45% { translate: 9px -2px; } 70% { translate: -6px 1px; } }
@keyframes edge { from { box-shadow: inset 0 0 0 14px rgba(238, 90, 60, .85); } to { box-shadow: inset 0 0 0 0 rgba(238, 90, 60, 0); } }
.dizzy { position: absolute; left: 50%; top: 50%; translate: -50% -50%; padding: 8px 22px; border-radius: 99px; background: var(--paper); border: 3px solid var(--teal);
  font-weight: 700; font-size: 1.4rem; color: var(--coral-dk); pointer-events: none; animation: wob 1s ease-in-out infinite; }
.pad.is-dizzy .pb { filter: saturate(.55); }
@keyframes wob { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }

/* pause, countdown and drink cards sit over the pad */
.ov { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none; }
.ov:empty { display: none; }
.ph.frozen .ov { background: rgba(16, 69, 79, .55); pointer-events: auto; }
.card { display: grid; justify-items: center; gap: 10px; width: min(520px, calc(100% - 32px)); max-height: calc(100% - 24px); overflow: auto; padding: 18px 20px; text-align: center;
  background: var(--paper); border: 3px solid var(--teal); border-radius: 26px; box-shadow: 0 8px 0 var(--teal); }
.card h2 { font-size: 1.3rem; }
.card .bog { color: var(--ink); }
.card p { margin: 0; }
.card .ic.big { width: 40px; height: 40px; }
.row.small .btn { min-height: 46px; font-size: .95rem; padding: .5em 1.1em; }
.count b { display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; background: var(--yellow); border: 5px solid var(--teal); box-shadow: 0 8px 0 var(--teal);
  font-size: 5rem; color: var(--teal); animation: pop .35s ease-out; }
@keyframes pop { from { scale: 1.4; opacity: 0; } to { scale: 1; opacity: 1; } }
@media (max-height: 340px) { .b-paddle .pb-face .ic { width: 54px; height: 54px; } .pb-face small { display: none; } .pad-top { min-height: 44px; } }

/* ---- the big screen: the river fills it, holiday paperwork lies on top (1rem = 1/108 of the height) ------------ */
body.is-tv { overflow: hidden; background: #0d3a43; cursor: none; }
.tv-stage { position: fixed; inset: 0; overflow: hidden; }
.tv-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tv-ui, .tv-hud, .tv-say, .tv-ov { position: absolute; inset: 0; pointer-events: none; }
.tv-stage .pt { width: 6rem; height: 6rem; }
.tv-stage .ic { width: 1.1em; height: 1.1em; }
.tv-stage .ic.big { width: 9rem; height: 9rem; }
.tv-note { margin: 0; font-size: 2.4rem; font-weight: 600; color: var(--foam); text-shadow: 0 .3rem 0 rgba(16, 69, 79, .6); text-align: center; }
.t0 { --tc: #ff8a2a; } .t1 { --tc: #3fa9e0; }
html.tv .tv-logo { transform: rotate(-2deg) scale(.62); transform-origin: top left; }

/* lobby: the logo top-left, a boarding pass bottom-left, the crew list on the right, the float behind */
.tv-lobby { position: absolute; inset: 0; padding: 5rem 6rem; display: grid; grid-template-columns: 78rem 1fr; grid-template-rows: auto 1fr auto; gap: 3rem 6rem; }
.tv-lobby::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 58, 67, .55), rgba(13, 58, 67, 0) 55%, rgba(13, 58, 67, .45)); }
.tv-lobby > * { position: relative; }
.lb-head { grid-column: 1; grid-row: 1; height: 26rem; }
.lb-card { grid-column: 1; grid-row: 3; display: grid; grid-template-columns: 30rem 1fr; gap: 3.4rem; align-items: center; padding: 3.2rem 3.6rem 3.2rem 3.2rem;
  background: var(--paper); border: .5rem solid var(--teal); border-radius: 3.6rem; box-shadow: 0 1.2rem 0 var(--teal); transform: rotate(-1.2deg); }
.lb-punch { position: absolute; left: 35rem; top: -.5rem; bottom: -.5rem; border-left: .5rem dashed rgba(16, 69, 79, .25); }
.lb-qr { background: var(--paper); border-radius: 2rem; padding: .6rem; border: .4rem solid var(--teal); }
.lb-qr svg { display: block; width: 100%; height: auto; }
.lb-join small { font-size: 1.9rem; text-transform: uppercase; letter-spacing: .2em; font-weight: 700; color: var(--coral); }
.lb-join h2 { margin: .6rem 0 0; font-size: 3.4rem; line-height: 1.1; color: var(--teal); font-weight: 600; }
.lb-join h2 b { font-weight: 700; color: var(--pool-dk); }
.lb-code-l { margin: 1.6rem 0 .6rem; font-size: 2.2rem; color: #4a5a60; }
.lb-code { margin: 0; display: flex; gap: 1.2rem; }
.lb-code span { display: grid; place-items: center; width: 9rem; height: 11rem; border-radius: 2rem; background: var(--yellow); border: .45rem solid var(--teal);
  box-shadow: 0 .7rem 0 var(--teal); font-size: 8rem; font-weight: 700; color: var(--teal); }
.lb-mode { margin: 2.4rem 0 0; display: flex; align-items: center; gap: .8rem; font-size: 2.3rem; font-weight: 600; color: var(--teal); }
.lb-mode span + .ic { margin-left: 1.4rem; }
.lb-crew { grid-column: 2; grid-row: 1 / 4; align-self: center; justify-self: end; width: 62rem; padding: 3rem 3.2rem; background: rgba(251, 245, 231, .96);
  border: .5rem solid var(--teal); border-radius: 3.6rem; box-shadow: 0 1.2rem 0 var(--teal); transform: rotate(1deg); }
.lb-crew h3 { margin: 0 0 2rem; font-size: 3.6rem; color: var(--teal); display: flex; align-items: baseline; gap: 1rem; }
.lb-crew h3 b { background: var(--coral); color: var(--foam); border-radius: 99rem; padding: 0 1.8rem; }
.lb-crew h3 small { font-size: 2.4rem; color: #6b7a80; }
.lb-crew ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.lb-crew li { display: flex; align-items: center; gap: 1.4rem; padding: 1rem 1.4rem; border-radius: 2.4rem; background: var(--foam); border: .35rem solid var(--teal);
  box-shadow: inset 1rem 0 0 var(--c); animation: lb-in .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.lb-crew li span { display: grid; min-width: 0; }
.lb-crew li b { font-size: 2.7rem; color: var(--teal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-crew li small { font-size: 1.9rem; color: #5a6a70; }
.lb-crew .pt { width: 7.4rem; height: 7.4rem; }
.lb-empty, .lb-hint { margin: 0; font-size: 2.4rem; color: #4a5a60; }
.lb-hint { margin-top: 2.2rem; }
@keyframes lb-in { from { transform: scale(.4) rotate(-8deg); opacity: 0; } }
.lb-board { position: absolute !important; left: 6rem; top: 34rem; width: 78rem; padding: 2rem 2.6rem; background: rgba(16, 69, 79, .85); border-radius: 2.6rem; color: var(--foam); }
.lb-board h3 { margin: 0 0 1rem; font-size: 2.6rem; display: flex; gap: .8rem; align-items: center; color: var(--yellow); }
.lb-board > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.lb-board h4 { margin: 0; font-size: 1.8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.lb-board ol, .rs-daily ol { margin: .6rem 0 0; padding: 0; list-style: none; display: grid; gap: .3rem; font-size: 2rem; }
.lb-board li, .rs-daily li { display: flex; justify-content: space-between; gap: 1rem; }
.lb-board li span, .rs-daily li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-board .none { opacity: .6; }

/* teams */
.tv-teams { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 4rem; background: rgba(13, 58, 67, .5); }
.tv-teams h1 { margin: 0; font-size: 7rem; color: var(--foam); text-shadow: 0 .7rem 0 var(--teal); }
.tm-cols { display: flex; align-items: center; gap: 5rem; }
.tm-col { width: 64rem; min-height: 50rem; padding: 3rem; background: var(--paper); border: .6rem solid var(--teal); border-radius: 4rem; box-shadow: 0 1.2rem 0 var(--teal), inset 0 2.4rem 0 var(--tc); }
.tm-col h2 { margin: 1.6rem 0 2rem; font-size: 5rem; color: var(--teal); }
.tm-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.4rem; }
.tm-col li { display: flex; align-items: center; gap: 1.6rem; font-size: 3.2rem; color: var(--teal); }
.tm-col .none { color: #8a969a; }
.tm-vs { font-size: 9rem; font-weight: 700; color: var(--yellow); -webkit-text-stroke: .5rem var(--teal); paint-order: stroke fill; }

/* intro: Bogdan's briefing card */
.tv-intro { position: absolute; inset: 0; display: grid; align-items: end; justify-items: center; padding-bottom: 8rem; background: linear-gradient(0deg, rgba(13, 58, 67, .6), transparent 50%); }
.in-card { width: 140rem; padding: 3.4rem 4.4rem 3rem; background: var(--paper); border: .6rem solid var(--teal); border-radius: 4.4rem; box-shadow: 0 1.4rem 0 var(--teal); }
.in-who { display: flex; align-items: center; gap: 2rem; }
.tv-stage .in-who .pt { width: 13rem; height: 13rem; margin-top: -9rem; }
.in-who span { display: grid; }
.in-who b { font-size: 3.6rem; color: var(--coral); }
.in-who small { font-size: 2.1rem; color: #5a6a70; }
.in-line { min-height: 17rem; display: grid; align-items: center; }
.in-line p { margin: 0; font-size: 5.6rem; line-height: 1.18; font-weight: 600; color: var(--teal); }
.in-line.in p, .tv-say.in .bubble { animation: pop-in .45s cubic-bezier(.2, 1.5, .4, 1) both; }
.in-foot { margin: 0; display: flex; gap: 1rem; align-items: center; font-size: 2rem; color: #6b7a80; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
@keyframes pop-in { from { transform: translateY(2rem) scale(.94); opacity: 0; } }

/* the run: score tag top-left, river ribbon along the top, Bogdan's bubble bottom-left */
.hud-l { position: absolute; left: 4rem; top: 4rem; display: flex; gap: 2.4rem; align-items: start; }
.sc-tag { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 1rem; padding: 2rem 2.8rem 2.2rem; min-width: 32rem;
  background: var(--paper); border: .5rem solid var(--teal); border-radius: 3.2rem; box-shadow: 0 1rem 0 var(--teal); transform: rotate(-1.5deg); }
.sc-tag.t0, .sc-tag.t1 { box-shadow: 0 1rem 0 var(--teal), inset 0 1.6rem 0 var(--tc); padding-top: 2.8rem; }
.sc-tag.t1 { transform: rotate(1.5deg); }
.sc-tag h3 { grid-column: 1 / -1; margin: 0; font-size: 2.4rem; color: var(--teal); text-transform: uppercase; letter-spacing: .1em; }
.sc-big { font-size: 8.4rem; font-weight: 700; line-height: 1; color: var(--teal); font-variant-numeric: tabular-nums; }
.sc-lbl { font-size: 2.4rem; font-weight: 600; color: #5a6a70; }
.sc-row { grid-column: 1 / -1; display: flex; gap: 2.4rem; margin-top: 1rem; font-size: 2.6rem; color: var(--teal); }
.sc-row i { display: flex; align-items: center; gap: .5rem; font-style: normal; }
.sc-row small { font-size: 1.8rem; color: #6b7a80; }
.sc-pw { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.sc-pw i { display: flex; align-items: center; gap: .5rem; font-style: normal; font-size: 2.1rem; font-weight: 700; padding: .3rem 1.4rem; border-radius: 99rem; background: var(--yellow); color: var(--teal); border: .3rem solid var(--teal); }
.sc-fin { position: absolute; right: -2rem; top: -2rem; padding: .5rem 1.6rem; border-radius: 99rem; background: var(--coral); color: var(--foam); font-size: 2.2rem; font-weight: 700; transform: rotate(8deg); }
.rb { position: absolute; right: 12rem; top: 5rem; width: 80rem; height: 3.4rem; }
.rb-track { position: absolute; inset: 0; display: flex; border-radius: 99rem; overflow: hidden; border: .45rem solid var(--teal); box-shadow: 0 .7rem 0 var(--teal); }
.rb-track i { display: block; height: 100%; }
.rb-river { background: #3fb6c8; } .rb-toxic { background: #9bd33a; } .rb-lava { background: #ff7a2a; } .rb-ice { background: #bfeaf6; }
.rb-track i + i { border-left: .35rem solid var(--teal); }
.rb-raft { position: absolute; top: 50%; width: 5rem; height: 5rem; margin: -2.5rem 0 0 -2.5rem; border-radius: 50%; background: var(--teal); border: .5rem solid var(--teal);
  box-shadow: inset 0 0 0 1.2rem var(--yellow); transition: left .25s linear; }
.rb-raft.t0 { box-shadow: inset 0 0 0 1.2rem #ff8a2a; }
.rb-raft.t1 { box-shadow: inset 0 0 0 1.2rem #3fa9e0; }
.rb-flag { position: absolute; right: -6.4rem; top: 50%; width: 5rem; height: 5rem; margin-top: -2.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: var(--foam); border: .45rem solid var(--teal); font-size: 2.8rem; }
.tv-stretch { position: absolute; left: 50%; top: 16rem; display: grid; justify-items: center; padding: 2rem 5rem 2.4rem; background: var(--paper); border: .6rem solid var(--teal); border-radius: 3rem;
  box-shadow: 0 1.2rem 0 var(--teal); transform: translateX(-50%) rotate(-2deg); animation: stretch 4.2s cubic-bezier(.2, 1.4, .4, 1) both; pointer-events: none; }
.tv-stretch small { font-size: 2.2rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--coral); }
.tv-stretch b { font-size: 7rem; color: var(--teal); line-height: 1.05; }
.tv-stretch.th-toxic b { color: #4f7d12; } .tv-stretch.th-lava b { color: #c43f25; } .tv-stretch.th-ice b { color: #1d7f9e; }
@keyframes stretch { 0% { transform: translate(-50%, -30rem) rotate(-2deg); } 12%, 85% { transform: translate(-50%, 0) rotate(-2deg); opacity: 1; } 100% { transform: translate(-50%, -4rem) rotate(-2deg); opacity: 0; } }
.tv-say { display: grid; align-items: end; justify-items: start; padding: 0 0 5rem 4rem; }
.tv-say[hidden] { display: none; }
.bubble { position: relative; display: flex; align-items: center; gap: 2rem; max-width: 96rem; padding: 2rem 3.4rem 2rem 2rem; background: var(--paper); border: .5rem solid var(--teal);
  border-radius: 3.4rem 3.4rem 3.4rem .8rem; box-shadow: 0 1rem 0 var(--teal); }
.tv-stage .bubble .pt { width: 10rem; height: 10rem; }
.bubble p { margin: 0; font-size: 3.6rem; line-height: 1.2; font-weight: 600; color: var(--teal); }

/* pause / drink / countdown */
.tv-ov:empty { display: none; }
.tv-ov { display: grid; place-items: center; background: rgba(13, 58, 67, .55); }
.ov-card { width: 110rem; display: grid; justify-items: center; gap: 2rem; padding: 5rem 6rem; text-align: center; background: var(--paper); border: .7rem solid var(--teal); border-radius: 5rem;
  box-shadow: 0 1.6rem 0 var(--teal); animation: pop-in .4s cubic-bezier(.2, 1.5, .4, 1) both; }
.ov-card h2 { margin: 0; font-size: 7rem; line-height: 1.05; color: var(--teal); }
.ov-card p { margin: 0; font-size: 3rem; color: #4a5a60; }
.ov-card .tv-note { color: #4a5a60; text-shadow: none; font-size: 2.4rem; }
.ov-card.drink { background: var(--yellow); }
.ov-card.drink .ic.big { color: var(--coral); }
.ov-bog { display: flex; align-items: center; gap: 2rem; text-align: left; }
.tv-stage .ov-bog .pt { width: 11rem; height: 11rem; }
.ov-bog p { font-size: 3.6rem; font-weight: 600; color: var(--teal); }
.ov-count b { display: block; font-size: 34rem; font-weight: 700; line-height: 1; color: var(--yellow); -webkit-text-stroke: 1.4rem var(--teal); paint-order: stroke fill; text-shadow: 0 2.4rem 0 var(--teal); }
.ov-count b.pop { animation: pop-in .35s cubic-bezier(.2, 1.6, .4, 1) both; }
.tv-ov:has(.ov-count) { background: none; }

/* result: the bill on the left, awards and the daily board on the right */
.tv-result { position: absolute; inset: 0; padding: 5rem 7rem; display: grid; grid-template-rows: auto auto 1fr auto; gap: 2.4rem; background: rgba(13, 58, 67, .62); }
.tv-result h1 { margin: 0; font-size: 9rem; color: var(--yellow); -webkit-text-stroke: .6rem var(--teal); paint-order: stroke fill; text-shadow: 0 .9rem 0 var(--teal); }
.tv-result h1.t0 { color: #ff8a2a; } .tv-result h1.t1 { color: #6fc4f0; }
.rs-bog { display: flex; align-items: center; gap: 2rem; }
.rs-bog p { margin: 0; font-size: 3.6rem; font-weight: 600; color: var(--foam); text-shadow: 0 .3rem 0 var(--teal); }
.tv-stage .rs-bog .pt { width: 10rem; height: 10rem; }
.rs-body { display: flex; gap: 5rem; align-items: start; min-height: 0; }
.rs-bills { display: flex; gap: 3.4rem; }
.rc { position: relative; width: 56rem; padding: 3rem 3.4rem 3.2rem; background: #fffdf6; color: var(--ink); border-radius: 1rem; box-shadow: 0 1.2rem 0 rgba(0, 0, 0, .25);
  transform: rotate(-1.5deg); font-variant-numeric: tabular-nums; }
.rc::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1.6rem; height: 1.6rem; background: radial-gradient(circle at 1.7rem 0, #fffdf6 1.2rem, transparent 1.3rem) 0 0 / 3.4rem 1.6rem repeat-x; }
.rc.t1 { transform: rotate(1.5deg); }
.rc.t0 header, .rc.t1 header { border-top: 1.4rem solid var(--tc); padding-top: 1.4rem; }
.rc header { text-align: center; border-bottom: .35rem dashed #b9b2a2; padding-bottom: 1.6rem; }
.rc header small { font-size: 1.8rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--coral); }
.rc h3 { margin: .4rem 0; font-size: 4.4rem; color: var(--teal); }
.rc header p { margin: 0; font-size: 2rem; color: #5a6a70; }
.rc dl { margin: 1.8rem 0; display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; font-size: 2.8rem; }
.rc dt { color: #4a5a60; } .rc dd { margin: 0; font-weight: 700; color: var(--teal); text-align: right; }
.rc dd.neg { color: var(--coral-dk); }
.rc footer { display: flex; justify-content: space-between; align-items: baseline; border-top: .5rem double var(--teal); padding: 1.4rem 0 0; }
.rc footer span { font-size: 3rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .08em; }
.rc footer b { font-size: 8rem; line-height: 1; color: var(--teal); }
.rc-stamp { position: absolute; right: 3rem; top: 13rem; padding: .6rem 2.2rem; border: .6rem solid var(--coral-dk); border-radius: 1.4rem; color: var(--coral-dk); font-size: 3.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; transform: rotate(-14deg); opacity: .85; }
.rc-stamp.ok { border-color: #2d8a4e; color: #2d8a4e; }
.rs-side { flex: 1; display: grid; gap: 2.4rem; align-content: start; }
.rs-awards { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
.rs-awards li { display: flex; align-items: center; gap: 1.6rem; padding: 1.6rem 2rem; background: var(--paper); border: .45rem solid var(--teal); border-radius: 2.8rem; box-shadow: 0 .8rem 0 var(--teal); }
.rs-awards li span { display: grid; min-width: 0; }
.rs-awards b { font-size: 2.1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--coral); }
.rs-awards em { font-style: normal; font-size: 3.2rem; font-weight: 700; color: var(--teal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-awards small { font-size: 2rem; color: #5a6a70; }
.rs-daily { padding: 2.4rem 3rem; background: rgba(16, 69, 79, .9); border-radius: 2.8rem; color: var(--foam); }
.rs-daily h3 { margin: 0; display: flex; gap: 1rem; align-items: center; font-size: 2.8rem; color: var(--yellow); }
.rs-daily p { margin: .8rem 0; font-size: 2.6rem; }
.rs-daily li { font-size: 2.4rem; padding: .2rem 1rem; border-radius: 1rem; }
.rs-daily li.me { background: var(--yellow); color: var(--teal); font-weight: 700; }
