/* Lake City Triathlon: a North Idaho postcard. Deep lake blue, pine green, huckleberry purple. Big and readable
   from the back of a room. */
:root { --lake: #1b5a94; --deep: #0f3b66; --pine: #1f5c3a; --huck: #6a3fa0; --sun: #ffd166; --snow: #f4fbff; --ink: #0b2239; --bad: #e94f4f;
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  /* Each device's own colour emoji. No emoji web font: Google's Noto Color Emoji draws blank in Safari (#23). */
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
* { box-sizing: border-box; }
/* No awkward wraps (#24): sentences break "pretty" (no one-word last line), and headings, buttons and short labels
   balance their lines. Both are inherited; Safari before 17.4 just wraps as before. tools/wrap-test.mjs checks it. */
body { text-wrap: pretty; }
h1, h2, h3, h4, button, label, dt, small, figcaption, .banner, .pop, .chip { text-wrap: balance; }
.nw { white-space: nowrap; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { font-family: var(--font); color: var(--snow); background: linear-gradient(#8ec9ee 0%, #cfe9f6 38%, #bcd9ea 52%, var(--lake) 53%, var(--deep) 100%); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.emoji { font-family: var(--emoji); }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; border-radius: 14px; padding: 12px 18px; min-height: 48px; background: rgba(255, 255, 255, .16); font-weight: 700; }
button:hover { background: rgba(255, 255, 255, .26); }
button.primary { background: var(--sun); color: var(--ink); }
button.primary.alt { background: var(--huck); color: #fff; }
button.link { background: none; text-decoration: underline; font-weight: 600; min-height: 44px; }
button:disabled { opacity: .5; }
kbd { font: inherit; font-size: .75em; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .25); margin-left: 6px; }
body.touch kbd { display: none; }
.card { background: rgba(11, 34, 57, .88); border-radius: 22px; padding: 22px; width: min(92vw, 420px); max-height: 92dvh; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }

/* title */
.screen { position: fixed; inset: 0; display: grid; place-items: center; padding: 12px; }
#title .card { text-align: center; }
.kicker { margin: 0; letter-spacing: .18em; text-transform: uppercase; font-size: 12px; opacity: .75; }
h1 { margin: 4px 0 0; font-size: clamp(30px, 9vw, 44px); line-height: 1.02; font-weight: 900; }
.tag { margin: 6px 0 0; color: var(--sun); font-weight: 800; font-size: 20px; }
.lede { margin: 8px 0 14px; opacity: .9; }
#join { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
#join label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .9; display: grid; gap: 4px; }
#join input { font: inherit; font-size: 22px; font-weight: 800; padding: 10px 12px; border-radius: 12px; border: 0; width: 100%; min-height: 48px; color: var(--ink); background: var(--snow); -webkit-user-select: text; user-select: text; text-transform: none; }
#code { letter-spacing: .2em; text-transform: uppercase; }
#join input::placeholder { color: #9bb0c2; font-weight: 600; letter-spacing: 0; }
#join button, #join-msg { grid-column: 1 / -1; }
#join button { font-size: 22px; min-height: 58px; }
#join-msg { margin: 0; min-height: 1.2em; font-size: 14px; color: var(--sun); text-align: center; }
.others { display: grid; gap: 8px; margin-top: 8px; }
body.invited .others { display: none; }
.foot { margin: 6px 0 0; font-size: 13px; opacity: .8; }
.foot a { color: inherit; }

/* the phone */
#phone { position: fixed; inset: 0; display: flex; flex-direction: column; --cold: 0; background: linear-gradient(#2a78b8, var(--deep)); transition: background .3s; }
#phone[data-mine="in"] { background: linear-gradient(color-mix(in srgb, #1e6fb0, #bfe6ff calc(var(--cold) * 55%)), color-mix(in srgb, #0c2f55, #5d9cc4 calc(var(--cold) * 60%))); }
#phone[data-mine="out"] { background: linear-gradient(#5b4a3a, #2b2520); }
#phone[data-phase="result"], #phone[data-phase="presult"], #phone[data-phase="tresult"] { background: linear-gradient(var(--huck), #2a1747); }
#phone[data-phase="tcount"], #phone[data-phase="putt"] { background: linear-gradient(#2f8f8a, #14506b); }
#phone[data-phase="putt"][data-shot="good"] { background: linear-gradient(#3fa856, #1c5a2c); }
#phone[data-phase="putt"][data-shot="bad"] { background: linear-gradient(#2a78b8, var(--deep)); }
#aim { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
#aim-line { stroke: var(--sun); stroke-width: 10; stroke-linecap: round; } #aim-dot { fill: none; stroke: #fff; stroke-width: 4; opacity: .8; }
#phone[data-phase="putt"] #pad { cursor: grab; }
#phone[data-phase="pcount"], #phone[data-phase="pick"] { background: linear-gradient(#3f8a4c, #1c4a2c); }
#phone[data-phase="pick"][data-bear="look"] { background: linear-gradient(#c23b3b, #5c1414); }
#phone[data-phase="pick"][data-mine="mauled"], #phone[data-phase="pick"][data-mine="caught"] { background: linear-gradient(#3a2a2a, #140c0c); }
#phone[data-phase="pick"][data-bear="look"] #pad { box-shadow: inset 0 0 0 10px var(--bad); }
#phone[data-phase="pick"][data-mine="pick"] #pad-big { font-size: clamp(54px, 20vw, 96px); }
#pad-big.bump { animation: bump .12s; }
@keyframes bump { 40% { transform: scale(1.14) rotate(-2deg); } }
#dead-btn, #snitch-btn { font-size: clamp(20px, 6.4vw, 24px); min-height: 76px; padding: 16px clamp(16px, 5vw, 26px); box-shadow: 0 6px 0 rgba(0, 0, 0, .35); }
#dead-btn { background: var(--sun); color: var(--ink); animation: pulse .5s infinite; } #snitch-btn { background: var(--huck); }
#dead-btn:active, #snitch-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
#phone[data-phase="pick"][data-mine="caught"] #bar-fill { background: var(--bad); }
/* SNITCH's chooser: the pickers nearest you on the big screen, in their colours, and "anyone" */
#snitch-pick { width: min(100%, 420px); background: rgba(0, 0, 0, .35); border-radius: 18px; padding: 10px; }
#snitch-pick p { margin: 0 0 8px; font-size: 20px; font-weight: 900; } #snitch-pick p b { display: inline-block; min-width: 1.4em; padding: 0 6px; background: var(--huck); border-radius: 10px; }
#snitch-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#snitch-opts button { min-height: 56px; padding: 6px 10px; font-size: 18px; font-weight: 800; background: var(--c, var(--huck)); color: var(--k, #fff); display: flex; align-items: center; gap: 8px; justify-content: flex-start; text-align: left; overflow: hidden; box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
#snitch-opts button span { font-size: 26px; line-height: 1; flex: none; } #snitch-opts button em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#snitch-opts button.any { background: rgba(0, 0, 0, .35); color: #fff; border: 3px dashed rgba(255, 255, 255, .85); justify-content: center; }
#snitch-opts button:only-child, #snitch-opts button.any:nth-child(odd) { grid-column: 1 / -1; }
#snitch-opts button:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
#phone.solo { background: none !important; }
.who { display: flex; gap: 12px; align-items: center; padding: max(10px, env(safe-area-inset-top)) 14px 10px 62px; background: rgba(11, 34, 57, .55); min-height: 64px; }
.who .emoji { font-size: 38px; line-height: 1; }
.who b { display: block; font-size: 17px; line-height: 1.15; }
.who small { display: block; font-size: 13px; opacity: .85; }
#snd-btn { margin-left: auto; flex: none; width: 48px; height: 48px; padding: 0; font-size: 22px; border-radius: 50%; background: rgba(11, 34, 57, .45); color: #fff; }
#phone.solo #snd-btn { display: none; }
#pad { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; text-align: center; touch-action: none; cursor: pointer; overflow: hidden; }
#phone.solo #pad { justify-content: flex-end; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
#pad-big { margin: 0; font-size: clamp(30px, 10vw, 54px); font-weight: 900; line-height: 1.05; text-shadow: 0 3px 0 rgba(0, 0, 0, .25); text-wrap: balance; }
#pad-sub { margin: 0; font-size: 17px; opacity: .92; max-width: 30ch; text-shadow: 0 2px 6px rgba(0, 0, 0, .4); text-wrap: balance; min-height: 1.3em; }
#phone[data-mine="in"][data-phase="plunge"] #pad-big { animation: shiver .09s infinite; }
@keyframes shiver { 50% { transform: translate(calc(var(--cold) * 3px), calc(var(--cold) * -2px)); } }
#phone[data-phase="count"][data-mine="dry"] #pad::before { content: ""; width: 150px; height: 150px; border-radius: 50%; border: 6px dashed rgba(255, 255, 255, .7); animation: pulse 1.2s infinite; flex: none; }
#phone.solo[data-mine="dry"] #pad::before { width: 96px; height: 96px; }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .6; } }
.bar { position: absolute; top: 0; left: 0; right: 0; height: 10px; background: rgba(0, 0, 0, .25); visibility: hidden; }
#phone[data-phase="plunge"] .bar, #phone[data-phase="pick"] .bar, #phone[data-phase="putt"] .bar { visibility: visible; }
#bar-fill { display: block; height: 100%; width: 100%; background: var(--sun); }
#splash-btn { font-size: clamp(20px, 6.4vw, 24px); min-height: 76px; padding: 16px clamp(16px, 5vw, 26px); background: #2a9df4; box-shadow: 0 6px 0 #1669ad; }
#splash-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #1669ad; }
#again-btn { font-size: 22px; min-height: 60px; background: var(--sun); color: var(--ink); }
#room-count { position: absolute; bottom: max(8px, env(safe-area-inset-bottom)); left: 0; right: 0; margin: 0; font-size: 13px; opacity: .8; }
#phone.solo #room-count { display: none; }
#no-host, #net { margin: 0; padding: 8px 12px; background: var(--bad); border-radius: 10px; font-weight: 700; font-size: 14px; }
#net { position: absolute; top: 76px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
/* the lies: they look like something to tap, and can't be tapped */
#fx { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; pointer-events: none; background: rgba(11, 34, 57, .93); animation: fxin .18s; z-index: 3; }
#fx .emoji { font-size: 84px; line-height: 1; }
#fx b { font-size: 40px; font-weight: 900; line-height: 1.05; }
#fx i { font-style: normal; font-size: 20px; }
#fx em { display: none; font-style: normal; font-weight: 800; background: #2fbf5b; padding: 16px 44px; border-radius: 40px; margin-top: 14px; font-size: 22px; }
#fx[data-kind="call"] { background: #101418; } #fx[data-kind="call"] em { display: block; }
#fx[data-kind="call"] .emoji { animation: pulse .5s infinite; }
#fx[data-kind="won"] { background: linear-gradient(#f7b733, #fc4a1a); }
#fx[data-kind="over"] { background: #1e8e4a; }
#fx[data-kind="battery"] { background: rgba(0, 0, 0, .9); }
#fx[data-kind="ice"], #fx[data-kind="lifeguard"] { background: var(--bad); animation: flash .25s infinite; }
@keyframes fxin { from { transform: scale(1.15); opacity: 0; } }
@keyframes flash { 50% { filter: brightness(1.5); } }
#splashed { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; background: rgba(120, 200, 255, .82); z-index: 4; animation: fxin .15s; }
#splashed .emoji { font-size: 110px; } #splashed b { font-size: 28px; color: var(--ink); }

/* the big screen */
#big { position: fixed; inset: 0; pointer-events: none; font-size: clamp(14px, 1.7vw, 30px); text-shadow: 0 2px 8px rgba(11, 34, 57, .55); }
#big button, #big [data-id], #big .qr { pointer-events: auto; }
#big [data-id] { cursor: pointer; }
.big-top { position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(rgba(6, 20, 36, .72), rgba(6, 20, 36, .45) 60%, rgba(6, 20, 36, 0)); display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 1em 1.2em 1em 4.4em; }
.big-top b { font-size: 1.5em; font-weight: 900; display: block; line-height: 1; }
.big-top em { font-style: normal; color: var(--sun); font-weight: 800; }
#ev-label { font-size: 1.15em; font-weight: 700; }
.counts { display: flex; gap: 1.2em; font-size: 1.2em; font-weight: 700; text-align: right; }
.counts b { display: inline; font-size: 2.2em; }
.qr { position: absolute; right: 1.2em; top: 5.5em; width: min(30vw, 46vh); background: var(--snow); color: var(--ink); border-radius: 1em; padding: .8em; text-align: center; text-shadow: none; box-shadow: 0 16px 50px rgba(0, 0, 0, .35); transition: width .5s, top .5s; }
.qr svg { display: block; width: 100%; height: auto; }
.qr p { margin: 0; } .scan { font-weight: 900; font-size: 1.5em; margin-bottom: .2em !important; }
.or { font-size: .8em; margin-top: .3em !important; line-height: 1.25; } .or b { font-size: 2em; letter-spacing: .12em; }
#big:not([data-phase="lobby"]) .qr { width: min(13vw, 20vh); top: 6.5em; font-size: .6em; }
#big:not([data-phase="lobby"]) .qr .scan { display: none; }
.hint { position: absolute; left: 1.2em; bottom: 4.6em; margin: 0; font-size: 1.6em; font-weight: 800; max-width: 60vw; }
#big:not([data-phase="lobby"]) .hint { display: none; }
#start-btn, #next-btn { background: var(--sun); color: var(--ink); text-shadow: none; font-size: 1em; }
#start-btn { position: absolute; left: 1.9em; bottom: 1.6em; }
#big:not([data-phase="lobby"]) #start-btn { display: none; }
.thermo { position: absolute; left: 1.2em; top: 5.6em; bottom: 1.6em; width: 6.4em; display: none; flex-direction: column; align-items: center; gap: .3em; text-shadow: none; --th-ink: #fff3e4; }
#big[data-phase="plunge"] .thermo { display: flex; }
/* The glass thermometer (#29, src/thermo.js): SVG + CSS, animating transforms, opacity and gradient stops only. */
.th-glass { position: relative; flex: 1 1 0; min-height: 0; max-width: 100%; }
.th-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.th-glowwrap, .th-bore, .th-bulbglow, .th-vap { position: absolute; }
.th-glowwrap { overflow: hidden; }
.th-colglow, .th-col, .th-bulbglow, .th-shim, .th-puff { will-change: transform; }
.th-colglow { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--th-c0) 55%, transparent), transparent); }
.th-bulbglow { border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--th-c0) 60%, transparent) 45%, transparent); }
.th-bore { overflow: hidden; border-radius: 999px 999px 0 0; }
.th-col { position: absolute; inset: 0; background: linear-gradient(90deg, var(--th-c0), var(--th-c1) 35%, var(--th-c0) 70%, var(--th-c2)); }
.th-col::before { content: ""; position: absolute; left: 0; right: 0; top: -.12em; height: .3em; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.th-shim { position: absolute; left: 0; right: 0; top: 0; height: 16%; background: linear-gradient(transparent, rgba(255, 255, 255, .5), transparent); animation: th-shim 2.4s linear infinite; }
.th-scale .th-maj { stroke: #e6f4ff; stroke-width: 2.4; } .th-scale .th-min { stroke: rgba(230, 244, 255, .6); stroke-width: 1.4; }
.th-scale .th-frz { stroke: #7fd8ff; stroke-width: 3; fill: #7fd8ff; } .th-frzline { stroke: #7fd8ff; stroke-width: 2; stroke-dasharray: 3 3; }
.th-lab { fill: #f2f8ff; font: 900 19px system-ui, sans-serif; } .th-lab.th-frz { fill: #7fd8ff; } .th-small { font-size: 15px; }
.th-shim { animation: th-shim 2.4s linear infinite; }
@keyframes th-shim { from { transform: translateY(-100%); } to { transform: translateY(560%); } }
.th-fern { fill: none; stroke: #f2fbff; stroke-width: 1.5; stroke-linecap: round; opacity: .85; }
.th-flash { pointer-events: none; }
.thermo.th-frozen .th-flash { animation: th-flash 1.4s ease-out forwards; }
@keyframes th-flash { 0% { opacity: 0; } 12% { opacity: .85; } 100% { opacity: .22; } }
.thermo.th-frozen .th-glass { animation: th-pulse .6s ease-out; transform-origin: 50% 88%; }
@keyframes th-pulse { 0% { transform: scale(1); } 30% { transform: scale(1.06); } 100% { transform: scale(1); } }
.th-icicle { transform: scaleY(0); }
.th-puff { position: absolute; left: 10%; top: 20%; width: 64%; height: 64%; border-radius: 50%; background: radial-gradient(closest-side, rgba(234, 248, 255, .55), transparent); animation: th-vap 4.2s ease-out infinite; opacity: 0; }
.th-p1, .th-p3 { left: 30%; }
.th-p1 { animation-delay: -1.05s; } .th-p2 { animation-delay: -2.1s; } .th-p3 { animation-delay: -3.15s; }
@keyframes th-vap { 0% { opacity: 0; transform: translate(0, 0) scale(.5); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(30%, -70%) scale(1.5); } }
.th-read { display: flex; align-items: flex-start; font-weight: 900; color: var(--th-ink); line-height: 1; font-variant-numeric: tabular-nums; background: rgba(11, 34, 57, .86); border: 2px solid rgba(207, 233, 255, .5); border-radius: .35em; padding: .08em .18em .1em; font-size: 2.5em; box-shadow: inset 0 .12em .3em rgba(0, 0, 0, .45), 0 .1em .3em rgba(0, 0, 0, .35); transition: text-shadow .6s; }
.th-num { display: flex; } .th-unit { font-size: .45em; margin: .12em 0 0 .08em; }
.th-dg { display: block; height: 1em; overflow: hidden; width: .62em; text-align: center; }
.th-dg i { display: block; font-style: normal; transition: transform .38s cubic-bezier(.3, 1.5, .5, 1); }
.th-dg b { display: block; height: 1em; }
.thermo.th-frosty .th-read { text-shadow: 0 0 .12em #bff0ff, 0 0 .35em #59c8ff; border-color: #bff0ff; }
.th-dial { position: relative; width: 3.6em; height: 3.6em; flex: none; }
.th-dial svg { display: block; width: 100%; height: 100%; }
.th-arc { stroke: var(--th-ink); transition: stroke-dashoffset .3s ease-out; }
.th-secs { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: .8em; } .th-secs b { font-size: 1.6em; font-weight: 900; letter-spacing: -.02em; }
.thermo.th-last .th-dial { animation: th-beat 1s ease-in-out infinite; }
@keyframes th-beat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.12); } }
#ticker { position: absolute; right: 1.2em; bottom: 1.4em; margin: 0; padding: 0; list-style: none; display: none; flex-direction: column; gap: .35em; align-items: flex-end; max-width: 46vw; }
#big[data-phase="plunge"] #ticker, #big[data-phase="pick"] #ticker, #big[data-phase="putt"] #ticker { display: flex; }
.pickhud { position: absolute; left: 1.6em; bottom: 1.4em; display: none; align-items: baseline; gap: .4em; font-weight: 800; background: rgba(11, 34, 57, .78); padding: .3em .9em; border-radius: .7em; text-shadow: none; }
#big[data-phase="pick"] .pickhud { display: flex; }
.pickhud #pick-front:not(:empty) { margin-left: .8em; color: #ffc7b8; font-size: 1.1em; }
.pickhud b { font-size: 2.4em; font-weight: 900; color: var(--sun); line-height: 1; } .pickhud .emoji { font-size: 1.8em; } .pickhud .time { margin-left: .8em; opacity: .9; } .pickhud .time b { font-size: 1.6em; color: var(--snow); }
.lakehud { position: absolute; left: 1.4em; top: 5.2em; display: none; flex-direction: column; align-items: flex-start; font-weight: 800; background: rgba(11, 34, 57, .78); padding: .4em 1em .5em; border-radius: .8em; text-shadow: none; }
#big[data-phase="putt"] .lakehud { display: flex; }
.lakehud > b { font-size: 5.2em; font-weight: 900; color: #7fd8ff; line-height: .95; font-variant-numeric: tabular-nums; } .lakehud > span:not(.time) { letter-spacing: .08em; font-size: .95em; }
.lakehud i { font-style: normal; font-weight: 700; font-size: 1em; margin-top: .5em; } .lakehud i b { color: var(--sun); } .lakehud .time { font-size: 1em; } .lakehud .time b { font-size: 1.8em; }
#pin { position: absolute; display: none; transform: translate(-50%, -100%); background: var(--bad); color: #fff; font-weight: 900; padding: .1em .5em; border-radius: .4em; font-size: 1.25em; text-shadow: none; white-space: nowrap; box-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
#big[data-ev="putt"][data-phase="putt"] #pin, #big[data-ev="putt"][data-phase="count"] #pin { display: block; }
#steer { position: absolute; left: 1.4em; bottom: 1.2em; margin: 0; font-size: .8em; font-weight: 700; background: rgba(11, 34, 57, .78); padding: .3em .7em; border-radius: .6em; text-shadow: none; } #steer kbd { margin: 0 3px 0 0; }
#big:not([data-phase="putt"]) #steer { display: none; }
#big.danger { box-shadow: inset 0 0 0 1.1em var(--bad), inset 0 0 8em rgba(233, 79, 79, .65); }
#big.tell:not(.danger) { animation: telledge .5s ease-in-out infinite alternate; }
@keyframes telledge { from { box-shadow: inset 0 0 0 .7em #ffb020, inset 0 0 5em rgba(255, 176, 32, .4); } to { box-shadow: inset 0 0 0 1.1em #ffb020, inset 0 0 8em rgba(255, 176, 32, .6); } }
#ticker li { text-wrap: balance; background: rgba(11, 34, 57, .85); padding: .3em .7em; border-radius: .6em; font-size: 1em; animation: fxin .25s; text-shadow: none; }
#ticker li b { color: var(--sun); }
#ticker li:nth-child(n+3) { opacity: .8; }
.hidden-name b, b.hidden-name { color: #9fd0ff !important; }
#pops { position: absolute; inset: 0; overflow: hidden; }
.pop { position: absolute; transform: translate(-50%, -100%); white-space: nowrap; background: var(--snow); color: var(--ink); text-shadow: none; padding: .2em .6em; border-radius: .6em; font-weight: 800; font-size: 1em; animation: popup 2.6s forwards; }
.pop.bonk { z-index: 4; background: #ffd166; color: #2a1a00; font-size: 2.1em; font-weight: 900; letter-spacing: .02em; border: .12em solid #fff; animation: bonk 1.6s forwards; }
@keyframes bonk { 0% { opacity: 0; transform: translate(-50%, -100%) scale(.3) rotate(-14deg); } 14% { opacity: 1; transform: translate(-50%, -100%) scale(1.25) rotate(6deg); } 26% { transform: translate(-50%, -100%) scale(1) rotate(-4deg); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -140%) scale(1) rotate(-4deg); } }
.pop.out { background: #ffe9c7; } .pop.splash { background: #bfe6ff; } .pop.in { background: #d7f5dc; }
@keyframes popup { 0% { opacity: 0; margin-top: 10px; } 10% { opacity: 1; margin-top: 0; } 80% { opacity: 1; } 100% { opacity: 0; margin-top: -50px; } }
.banner { z-index: 6; text-wrap: balance; position: absolute; width: max-content; left: 50%; top: 30%; transform: translate(-50%, -50%) scale(.6); opacity: 0; transition: transform .18s, opacity .18s; background: var(--ink); padding: .35em .9em; border-radius: .5em; font-size: 2.6em; font-weight: 900; text-align: center; max-width: 90vw; text-shadow: none; }
.banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.banner.lie { background: var(--bad); animation: flash .25s infinite; } .banner.go { background: #1e8e4a; } .banner.truth { background: var(--ink); font-size: 1.6em; } .banner.bad { background: var(--bad); font-size: 1.3em; }
.result { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: min(92vw, 34em); background: rgba(11, 34, 57, .9); border-radius: 1em; padding: 1em 1.4em; display: none; text-align: center; text-shadow: none; max-height: 80vh; overflow: auto; pointer-events: auto; }
#big[data-phase="result"] .result { display: block; }
.horn { margin: 0; color: var(--sun); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .8em; }
.result h2 { margin: .1em 0 .3em; font-size: 2em; font-weight: 900; }
#res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .2em; text-align: left; }
#res-list li { display: grid; grid-template-columns: 1.6em 1fr auto; gap: .5em; background: rgba(255, 255, 255, .1); padding: .2em .6em; border-radius: .4em; }
#res-list li:first-child { background: var(--sun); color: var(--ink); font-weight: 800; }
#res-list i { font-style: normal; font-weight: 800; }
/* the row's name truncates, never the chip: only .nm clips, so the chip's ring stays round */
#res-list li > span { display: flex; align-items: center; gap: .35em; min-width: 0; white-space: nowrap; }
#res-list li > span .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#res-extra p, .next { margin: .4em 0 0; font-size: .85em; } #res-extra b { color: var(--sun); } .next { opacity: .8; }
#res-list li[hidden] { display: none; }
/* the standings strip (#41): the overall top 3 after this event, big */
#res-extra .standings { margin: .5em 0 0; padding: .25em .6em; font-size: 1.15em; font-weight: 900; background: rgba(255, 255, 255, .12); border-radius: .5em; text-wrap: balance; }
#res-extra .standings small { display: block; font-size: .6em; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); }
#res-extra .standings span { display: inline-block; white-space: nowrap; margin: 0 .35em; }
#res-extra .standings b { display: inline-block; max-width: 7em; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
#next-btn { margin-top: .6em; }
/* trying it alone: the big screen behind the phone's pad, in a phone-sized column */
#big.solo { font-size: 15px; }
#big.solo .qr, #big.solo .big-top > div:first-child, #big.solo .next, #big.solo .hint { display: none; }
#big.solo .big-top { top: 70px; padding: 8px 14px; justify-content: flex-end; } #big.solo .counts { font-size: .9em; } #big.solo .counts span:last-child { display: none; }
#big.solo .thermo { left: 6px; top: 120px; bottom: 46%; width: 66px; font-size: .62em; }
#big.solo #ticker { left: 80px; right: 10px; top: 124px; bottom: auto; max-width: none; align-items: flex-end; font-size: .85em; }
#big.solo .pickhud { left: 10px; bottom: auto; top: 124px; font-size: .8em; } #big.solo .pickhud span:not(.emoji):not(.time) { display: none; }
#big.solo[data-ev="pick"] #ticker { top: 176px; left: 10px; } #big.solo[data-ev="putt"] #ticker { top: 124px; left: 150px; font-size: .75em; } #big.solo #pin { z-index: 1; }
#big.solo[data-ev="putt"] .banner { font-size: 1.15em; top: 29%; }
#big.solo .lakehud { left: 10px; top: 124px; font-size: .62em; padding: .4em .8em; } #big.solo .lakehud i { display: none; } #big.solo #pin { font-size: 1.1em; }
#big.solo .banner { font-size: 1.7em; top: 34%; }
#big.solo .result { top: 40%; padding: 12px 14px; } #big.solo .result h2 { font-size: 1.5em; }
#big.solo .pop { font-size: .75em; }
#big.solo .pop.bonk { font-size: 1.5em; }
body[data-mode="solo"] #phone { z-index: 2; } body[data-mode="solo"] .who { background: rgba(11, 34, 57, .8); }
body[data-mode="solo"] #pad-big { font-size: clamp(26px, 8vw, 44px); }
body[data-mode="solo"] #phone[data-phase="pick"][data-mine="pick"] #pad-big { font-size: clamp(44px, 15vw, 72px); }
body[data-mode="solo"] #phone[data-phase="putt"] #pad-big, body[data-mode="solo"] #phone[data-phase="tcount"] #pad-big, body[data-mode="solo"] #phone[data-phase="tresult"] #pad-big, body[data-mode="solo"] #phone[data-phase="putt"] #pad-sub, body[data-mode="solo"] #phone[data-phase="tcount"] #pad-sub, body[data-mode="solo"] #phone[data-phase="tresult"] #pad-sub { background: rgba(11, 34, 57, .78); padding: 4px 12px; border-radius: 10px; }
body[data-mode="solo"] #phone[data-phase="putt"] #pad-big { font-size: clamp(24px, 7vw, 40px); }
body[data-mode="solo"] #splashed { background: rgba(11, 34, 57, .55); } body[data-mode="solo"] #splashed b { color: #fff; }
body[data-mode="solo"] #phone[data-phase="pick"] #pad-sub, body[data-mode="solo"] #phone[data-phase="pcount"] #pad-sub { background: rgba(11, 34, 57, .7); padding: 3px 10px; border-radius: 10px; }
body[data-mode="solo"] #phone[data-phase="presult"] #pad-big, body[data-mode="solo"] #phone[data-phase="presult"] #pad-sub, body[data-mode="solo"] #phone[data-phase="result"] #pad-big, body[data-mode="solo"] #phone[data-phase="result"] #pad-sub { background: rgba(11, 34, 57, .8); padding: 4px 12px; border-radius: 10px; }
@media (min-width: 700px) { body[data-mode="solo"] #phone .who { justify-content: center; } }

/* menu, roster, how to play */
#menu-btn { position: fixed; z-index: 6; left: max(8px, env(safe-area-inset-left)); top: max(8px, env(safe-area-inset-top)); width: 48px; height: 48px; padding: 0; font-size: 22px; background: rgba(11, 34, 57, .6); }
#menu, #roster { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; background: rgba(5, 16, 28, .6); }
#menu .card, #roster .card { display: grid; gap: 8px; } #menu h2, #roster h2 { margin: 0 0 4px; } #roster p { margin: 0; font-size: 14px; opacity: .85; }
#roster-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; max-height: 50vh; overflow: auto; }
#roster-list li { background: rgba(255, 255, 255, .14); border-radius: 10px; padding: 10px 12px; cursor: pointer; } #roster-list em { color: var(--sun); font-style: normal; font-size: 12px; }
.how { position: fixed; z-index: 9; inset: 0; margin: auto; width: min(94vw, 560px); height: fit-content; max-height: 92dvh; overflow: auto; background: #0b2239; border-radius: 22px; padding: 20px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); -webkit-user-select: text; user-select: text; font-size: 15px; line-height: 1.45; }
.how h2 { margin: 0 40px 8px 0; font-size: 22px; } .how h3 { margin: 14px 0 4px; color: var(--sun); font-size: 16px; } .how p, .how ul, .how dl { margin: 0 0 8px; } .how ul { padding-left: 20px; } .how dt { font-weight: 800; margin-top: 6px; } .how dd { margin: 0; opacity: .9; }
.how-close { position: sticky; float: right; top: 0; width: 44px; height: 44px; padding: 0; font-size: 26px; line-height: 1; }
#big[data-ev="putt"]:not(.solo) #ticker li:nth-child(n+4) { display: none; }

/* ---- the podium (round 4) */
.podium { position: absolute; left: 50%; top: 53%; transform: translate(-50%, -50%); width: min(94vw, 40em); display: none; text-align: center; text-shadow: none; pointer-events: auto; }
#big[data-phase="podium"] .podium { display: block; }
/* on the big screen the boxes are the show: big enough to find yourself from the back (#45) */
#big:not(.solo) .podium { font-size: clamp(1em, 2.05vw, 3.5vh); }
.podium h2 { margin: .1em 0 .5em; font-size: 2.2em; font-weight: 900; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.steps { display: flex; align-items: flex-end; justify-content: center; gap: .5em; }
.step { flex: 1; max-width: 12em; min-width: 0; background: rgba(11, 34, 57, .92); border-radius: .8em .8em 0 0; padding: .6em .4em .3em; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; cursor: pointer; }
.step.s1 { height: 13em; background: linear-gradient(#3b2d05, rgba(11, 34, 57, .95)); box-shadow: inset 0 .3em 0 var(--sun); } .step.s2 { height: 10.4em; box-shadow: inset 0 .3em 0 #cfd8e3; } .step.s3 { height: 8.4em; box-shadow: inset 0 .3em 0 #c98a4b; }
.step .emoji { font-size: 2.6em; line-height: 1.1; } .step { container-type: inline-size; }
.step b { max-width: 100%; font-size: min(1.35em, max(9px, 165cqi / var(--n, 6))); font-weight: 900; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .step i { font-style: normal; color: var(--sun); font-weight: 800; }
.step em { font-style: normal; font-weight: 900; font-size: 2.2em; opacity: .35; line-height: 1; margin-top: auto; }
/* a box is a "?" until its place is called (#45): never an empty box */
.step:not(.on) .emoji, .step:not(.on) b, .step:not(.on) i, .step.on .q { display: none; }
.step .q { font-size: 3.6em; font-weight: 900; line-height: 1.1; color: var(--sun); animation: qpulse .9s ease-in-out infinite alternate; }
.step.s2 .q { color: #cfd8e3; } .step.s3 .q { color: #c98a4b; }
@keyframes qpulse { from { transform: scale(.88); opacity: .7; } to { transform: scale(1.08); opacity: 1; } }
.step.on .emoji, .step.on b, .step.on i { animation: stepin .45s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes stepin { from { transform: translateY(.8em) scale(.45); } }     /* never invisible: a box is never empty */
/* the drumroll: the podium pushes in and the champion's "?" rattles */
#big.roll .podium { animation: push 2.7s ease-in forwards; } @keyframes push { to { scale: 1.16; } }
#big.roll #pod-1 .q { animation: rattle .09s linear infinite; } @keyframes rattle { 0% { transform: translate(-.04em, .02em) rotate(-4deg) scale(1.15); } 50% { transform: translate(.04em, -.02em) rotate(4deg) scale(1.15); } 100% { transform: translate(-.02em, -.03em) rotate(-2deg) scale(1.15); } }
#big.roll .step.s2, #big.roll .step.s3 { opacity: .55; transition: opacity .6s; }
/* under the boxes, once the champion is named: every award of the show, one at a time, big */
#pod-awards { list-style: none; margin: 0; padding: .45em .8em; background: rgba(11, 34, 57, .92); border-radius: 0 0 .8em .8em; display: grid; align-items: center; min-height: 1em; }
#big.done #pod-awards:not(:empty) { min-height: 3.6em; }
#pod-awards li { grid-area: 1 / 1; display: none; font-size: 1.3em; font-weight: 800; line-height: 1.15; cursor: pointer; text-wrap: balance; }
#pod-awards li.on { display: block; animation: popin .3s; }
#pod-awards .t { color: var(--sun); white-space: nowrap; } #pod-awards small { display: block; font-size: .68em; font-weight: 600; opacity: .9; text-wrap: balance; }
@keyframes popin { from { opacity: 0; transform: translateY(.6em); } }
#pod-next { display: none; margin: .7em auto 0; background: var(--sun); color: var(--ink); font-size: 1em; }
#big.done #pod-next:not([hidden]) { display: inline-flex; }
#champ { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1em; text-align: center; background: radial-gradient(circle at 50% 45%, rgba(255, 209, 102, .96), rgba(233, 120, 40, .95) 70%); color: var(--ink); text-shadow: none; pointer-events: auto; overflow: hidden; animation: champin .35s cubic-bezier(.2, 1.5, .4, 1); }
#champ[hidden] { display: none; }
@keyframes champin { from { opacity: 0; transform: scale(1.3); } }
#champ p { margin: 0; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 1.1em; }
#champ .emoji { font-size: 6em; line-height: 1.1; }
/* the name on one line, shrinking to fit a long one (--n, its length, set by show.js) */
#champ-name { font-size: min(clamp(3em, 15vw, 11em), 150vw / var(--n, 6)); font-weight: 900; line-height: .95; padding: 0 .2em; white-space: nowrap; cursor: pointer; animation: champname 1s ease-in-out infinite alternate; }
@keyframes champname { to { transform: scale(1.05) rotate(-1.5deg); } }
#champ-pts { font-style: normal; font-weight: 800; font-size: 1.6em; }
/* the finale (src/finale.js): confetti behind the champion's name, on their card; then fireworks over the lake, behind the boxes */
#champ-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: none; pointer-events: none; } #champ.fx #champ-fx { display: block; }
#finale-sky { position: absolute; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; } #big.finale #finale-sky { display: block; }
#big.solo .podium { top: 124px; transform: translateX(-50%); width: 94vw; } #big.solo .podium h2, #big.solo .podium .horn { display: none; }
#big.solo .step.s1 { height: 10em; } #big.solo .step.s2 { height: 8.4em; } #big.solo .step.s3 { height: 7em; } #big.solo .step b { font-size: min(1.05em, max(9px, 165cqi / var(--n, 6))); } #big.solo .step .emoji { font-size: 2em; }
#big.solo #pod-awards { font-size: .8em; min-height: 3.6em; } #big.solo #finale-sky { height: 66%; }
/* alone, the cards cover the podium only (down to --pod-bottom, set by phone.js), and the pad sits under them */
#big.solo #champ, #big.solo #award { bottom: auto; height: var(--pod-bottom, 40%); box-sizing: border-box; padding-top: 72px; gap: 0; }
#big.solo #champ .emoji { font-size: 3.6em; } #big.solo #champ-name { font-size: min(clamp(2.4em, 12vw, 3.6em), 150vw / var(--n, 6)); } #big.solo #champ-pts { font-size: 1.2em; }
#big.solo #award-emoji { font-size: 50px; } #big.solo #award-title { font-size: 30px; } #big.solo #award-who { font-size: 24px; } #big.solo #award-why { font-size: 15px; } #big.solo #champ p { font-size: .8em; padding: 0 1em; }

/* the awards, one at a time over the whole big screen (#45): the emoji, the title, then the name and why on the name */
#award { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6vh; padding: 0 4vw; text-align: center; background: radial-gradient(circle at 50% 42%, rgba(40, 84, 138, .97), rgba(11, 34, 57, .98) 72%); color: #fff; text-shadow: none; pointer-events: auto; overflow: hidden; animation: champin .3s cubic-bezier(.2, 1.5, .4, 1); }
#award[hidden] { display: none; }
#award-kicker { margin: 0; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: clamp(13px, 2vw, 4vh); opacity: .8; }
#award-emoji { font-size: clamp(60px, 13vw, 26vh); line-height: 1.08; }
#award-title { font-size: clamp(34px, 9vw, 19vh); font-weight: 900; line-height: .98; color: var(--sun); text-wrap: balance; }
#award-who { display: flex; align-items: center; justify-content: center; gap: .25em; max-width: 100%; font-size: clamp(28px, 6.5vw, 14vh); font-weight: 900; line-height: 1.1; white-space: nowrap; cursor: pointer; }
#award-who .nm { overflow: hidden; text-overflow: ellipsis; } #award-who .chip { flex: none; font-size: .8em; }
#award-why { font-style: normal; font-weight: 700; font-size: clamp(17px, 3.6vw, 8vh); line-height: 1.15; text-wrap: balance; }
#award-who, #award-why { opacity: 0; transform: translateY(.5em) scale(.7); transition: opacity .2s, transform .3s cubic-bezier(.2, 1.6, .4, 1); }
#award.named #award-who, #award.named #award-why { opacity: 1; transform: none; }
#award-who:empty, #award-why:empty { display: none; }
#big.solo #award-kicker { font-size: 12px; }

/* the phone after the podium: your place, then one vote, one fake door, Suggest and the studio row */
#phone[data-phase="podium"] { background: linear-gradient(#b8860b, #3b2d05); }
#phone[data-phase="podium"] #pad { touch-action: pan-y; overflow-y: auto; cursor: default; justify-content: flex-start; padding-top: 28px; }
#phone[data-phase="podium"] #pad > * { flex: none; }
#phone[data-pod="wait"] #pad-big { animation: qpulse .6s ease-in-out infinite alternate; }
#fin { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 6px; }
#fin[hidden] { display: none; }
#vote { width: 100%; } #vote p { margin: 0 0 6px; font-weight: 700; font-size: 15px; }
#vote .opts { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
#vote .opts button { flex: none; font-size: 14px; min-height: 44px; padding: 8px 12px; background: rgba(255, 255, 255, .16); color: #fff; white-space: nowrap; }
#share-btn { width: 100%; font-size: 17px; font-weight: 800; min-height: 52px; background: var(--sun); color: #0b2239; }
#door { font-size: 14px; min-height: 44px; background: rgba(11, 34, 57, .6); color: #fff; border: 1px dashed rgba(255, 255, 255, .5); }
#door-msg { margin: 0; font-size: 14px; } #door-msg a { color: var(--sun); }
#fin [data-wefav-row] { width: 100%; } #fin [data-wefav-row] > a { color: var(--sun); font-size: 14px; }
#menu-suggest { display: flex; justify-content: center; }
:root { --gs-card: #0b2239; --gs-ink: #f4fbff; --gs-accent: #6a3fa0; --gs-hi: #ffd166; --gs-link: #ffd166; --gs-line: #2a4a6b; --gs-muted: #b9cfe2; }
body[data-mode="solo"] #phone[data-phase="podium"] #pad { padding-top: 10px; justify-content: flex-start; margin-top: var(--under-podium, 50vh); }
body[data-mode="solo"] #phone[data-phase="podium"] #pad-big, body[data-mode="solo"] #phone[data-phase="podium"] #pad-sub { background: rgba(11, 34, 57, .85); padding: 4px 12px; border-radius: 10px; }
body[data-mode="solo"] #phone[data-phase="podium"] #fin { background: rgba(11, 34, 57, .92); border-radius: 14px; padding: 12px; }
/* ?debug on the phone: the numbers for the first real playtest */
#debug { position: absolute; z-index: 7; left: 6px; right: 6px; bottom: calc(34px + env(safe-area-inset-bottom)); margin: 0; padding: 6px 8px; font: 11px/1.35 ui-monospace, Menlo, monospace; white-space: pre-wrap; color: #d8f3ff; background: rgba(5, 16, 28, .82); border-radius: 8px; pointer-events: none; text-shadow: none; }
/* iOS: no double-tap zoom and no callout anywhere; the pad and the buttons answer at once */
html, body, button, a, #phone { touch-action: manipulation; }
img, svg { -webkit-user-drag: none; -webkit-touch-callout: none; }
#phone, #phone * { -webkit-touch-callout: none; }

/* the unattended show (?host&auto): attract mode, the corner badge, the presenter's override */
/* Attract mode (#44): the title under the top bar and the teaser along the bottom, so nothing sits over the floating
   green or the swimmers; each event's line has its intro card's gesture looping beside it. */
#attract { position: absolute; left: 1.4em; top: 5.4em; bottom: 1.4em; max-width: 46vw; display: none; flex-direction: column; align-items: flex-start; }
#attract-line { margin-top: auto; }
#big.attract[data-phase="lobby"] #attract { display: flex; }
#big.attract .hint { display: none; }
#attract .kicker { margin: 0; font-size: 1.1em; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
#attract h2 { margin: .1em 0 0; font-size: 2.9em; line-height: 1; font-weight: 900; white-space: nowrap; }
#attract-line { display: grid; grid-template-columns: auto 1fr; column-gap: .5em; align-items: center; background: rgba(11, 34, 57, .62); border-radius: .8em; padding: .6em 1em; }
#attract-line.in { animation: attractin .6s ease-out; }
#attract-line .emoji { grid-row: span 2; font-size: 3.6em; line-height: 1; }
#attract-line .emoji .ec-anim { font-size: .17em; width: 6em; height: 9.4em; }
#attract-big u { text-decoration: none; display: inline-block; margin-left: .3em; padding: .05em .4em; border-radius: .4em; background: var(--sun); color: var(--ink); font-size: .6em; vertical-align: .22em; text-shadow: none; letter-spacing: .06em; }
#attract-big { font-size: 2.4em; font-weight: 900; color: var(--sun); line-height: 1.05; white-space: nowrap; }
#attract-sub { font-style: normal; font-size: 1.25em; font-weight: 700; }
/* The lobby's host (#44): the last 10 s of the countdown, big in the middle; the champion of the show before, under
   the QR card; and the prompt when the browser is holding the sound back. */
#big-count { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; z-index: 6; }
#big-count[hidden] { display: none; }
#big-count small { font-size: 1.5em; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; background: rgba(11, 34, 57, .8); padding: .15em .8em; border-radius: .6em; white-space: nowrap; }
#big-count b { font-size: min(34vh, 24vw); font-weight: 900; line-height: 1; color: var(--sun); font-variant-numeric: tabular-nums; text-shadow: 0 .04em 0 var(--ink), 0 .1em .5em rgba(11, 34, 57, .8); -webkit-text-stroke: .03em var(--ink); }
#big-count b.tick { animation: bctick .9s ease-out; } @keyframes bctick { from { transform: scale(1.6); opacity: .2; } 30% { transform: scale(1); opacity: 1; } }
#big-count.zero small { visibility: hidden; } #big-count.zero b.tick { animation: bczero .9s ease-in forwards; } @keyframes bczero { from { transform: scale(1); opacity: 1; } to { transform: scale(3); opacity: 0; } }
#last-champ { position: absolute; right: 1.2em; bottom: 1.2em; margin: 0; display: none; flex-direction: column; align-items: flex-end; background: rgba(11, 34, 57, .82); border: .16em solid var(--sun); border-radius: .8em; padding: .35em .9em .45em; text-shadow: none; max-width: min(30vw, 46vh); }
#big[data-phase="lobby"]:not(.solo) #last-champ:not([hidden]) { display: flex; }
#last-champ small { font-size: .8em; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); white-space: nowrap; }
#last-champ .lc-who { font-size: 1.5em; font-weight: 900; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
#last-champ em { font-style: normal; color: var(--sun); margin-left: .25em; }
#sound-ask { position: fixed; left: 50%; bottom: 7vh; transform: translateX(-50%); margin: 0; z-index: 200; pointer-events: none; background: var(--sun); color: var(--ink); font-size: clamp(22px, 3.6vw, 64px); font-weight: 900; line-height: 1.1; text-align: center; padding: .45em 1em; border-radius: .6em; border: .12em solid var(--ink); box-shadow: 0 .4em 1.4em rgba(0, 0, 0, .5); max-width: 94vw; animation: askpulse 1.4s ease-in-out infinite; }
#sound-ask[hidden], #muted-badge[hidden] { display: none; }
@keyframes askpulse { 50% { transform: translateX(-50%) scale(1.05); } }
#muted-badge { position: fixed; left: 50%; bottom: 1.2vh; transform: translateX(-50%); margin: 0; z-index: 200; pointer-events: none; background: rgba(11, 34, 57, .9); color: var(--snow); font-size: clamp(13px, 1.3vw, 24px); font-weight: 800; padding: .3em .9em; border-radius: 1em; white-space: nowrap; }
@keyframes attractin { from { opacity: 0; transform: translateX(-1.5em); } }
#big.auto:not([data-phase="lobby"]) .qr { width: min(16vw, 25vh); font-size: .62em; }
#big.presenter[data-phase="podium"] .qr { display: none; }
#big.auto:not(.presenter) #start-btn, #big.auto:not(.presenter) #next-btn, #big.auto:not(.presenter) #pod-next, #big.auto:not(.presenter) #steer { display: none !important; }
#paused-badge { display: none; position: absolute; left: 50%; top: 4.2em; transform: translateX(-50%); margin: 0; background: var(--bad); padding: .2em .9em; border-radius: .5em; font-weight: 900; font-size: 1.2em; }
#big.paused #paused-badge { display: block; }
#keys { position: absolute; left: 1.2em; bottom: 1.2em; background: rgba(11, 34, 57, .88); border-radius: .8em; padding: .6em 1.1em; font-size: .8em; pointer-events: auto; }
#keys h3 { margin: 0 0 .3em; } #keys ul { margin: 0; padding: 0; list-style: none; line-height: 1.7; }
#big:not(.auto) #keys [data-only-auto] { display: none; }
/* a phone that walked up mid-event waits for the next one */
#phone[data-wait="1"] { background: linear-gradient(#ff8f3a, #8a3a12); }
#phone[data-wait="1"] .bar, #phone[data-wait="1"] #pad::before { visibility: hidden; }
#phone[data-wait="1"] #pad { cursor: default; }

/* ---- the intro card before every event (events.js, cards.js): the same card on the big screen and on every phone */
.intro { display: none; }
#big[data-phase="count"] .intro { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; background: rgba(6, 20, 36, .35); z-index: 2; }
.ecard { display: flex; flex-direction: column; align-items: center; text-align: center; background: rgba(11, 34, 57, .93); border-radius: 1em; padding: .7em 2.2em .9em; box-shadow: 0 1em 3em rgba(0, 0, 0, .4); text-shadow: none; max-width: 94vw; animation: ecin .35s cubic-bezier(.2, 1.4, .4, 1); }
#big .ecard { font-size: min(1em, 2.6vh); }
@keyframes ecin { from { opacity: 0; transform: scale(.85); } }
.ec-kicker { margin: 0; color: var(--sun); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 1.1em; }
.ec-name { margin: .05em 0 0; font-size: 2.3em; font-weight: 900; line-height: 1.05; }
.ec-verb { font-size: 7em; font-weight: 900; line-height: .95; color: var(--sun); letter-spacing: .03em; }
.ec-stage { position: relative; width: 9em; height: 10.2em; display: flex; align-items: center; justify-content: center; margin: .2em 0; }
.ec-num { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; font-size: 8em; font-weight: 900; line-height: 1; color: var(--snow); }
.intro[data-stage="go"] .ec-num { display: flex; } .intro[data-stage="go"] .ec-anim { visibility: hidden; }
.ec-num.tick { animation: ectick .8s ease-out; } @keyframes ectick { from { transform: scale(1.7); opacity: 0; } 35% { opacity: 1; } }
.ec-goal { margin: .15em 0 0; font-size: 1.7em; font-weight: 800; line-height: 1.15; max-width: 21em; text-wrap: balance; }
.ec-you { margin: .45em 0 0; font-size: 1.25em; font-weight: 900; color: var(--ink); background: var(--sun); padding: .2em .8em; border-radius: .6em; } .ec-you:empty { display: none; }
/* the gesture: a phone, the finger's touch on it, and what the touch does */
.ec-anim { width: 9em; height: 10.2em; display: flex; align-items: flex-start; justify-content: center; padding-top: .3em; }
.ec-phone { position: relative; width: 4.6em; height: 8.2em; border: .32em solid var(--snow); border-radius: .9em; background: #123a5e; }
.ec-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-radius: 0 0 .55em .55em; background: linear-gradient(#7fd1ff, #1b6fb5); }
.ec-touch { position: absolute; left: 50%; top: 60%; width: 2.2em; height: 2.2em; margin: -1.1em 0 0 -1.1em; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 .35em rgba(255, 255, 255, .35); transform: scale(0); }
.ec-finger { position: absolute; left: 50%; top: 60%; margin-top: -.12em; font-size: 2.8em; line-height: 1; transform: translateX(-50%); font-family: var(--emoji); filter: drop-shadow(0 .08em .1em rgba(0, 0, 0, .5)); }
.ec-finger::before { content: "👆"; }
.ec-thing { position: absolute; left: 50%; top: 60%; width: 1.1em; height: 1.1em; margin: -.55em 0 0 -.55em; border-radius: 50%; opacity: 0; }
[data-gesture="hold"] .ec-finger { animation: ec-hold-f 2.6s infinite; }
[data-gesture="hold"] .ec-touch { animation: ec-hold-t 2.6s infinite; }
[data-gesture="hold"] .ec-fill { animation: ec-hold-w 2.6s infinite; }
@keyframes ec-hold-f { 0% { transform: translate(-50%, 1em) scale(1.25); opacity: 0; } 10% { opacity: 1; } 22%, 78% { transform: translate(-50%, 0) scale(1); opacity: 1; } 92%, 100% { transform: translate(-50%, 1em) scale(1.25); opacity: 0; } }
@keyframes ec-hold-t { 0%, 20% { transform: scale(0); } 26% { transform: scale(1.1); } 30%, 78% { transform: scale(1); } 84%, 100% { transform: scale(0); } }
@keyframes ec-hold-w { 0%, 24% { height: 0; } 60%, 80% { height: 100%; } 96%, 100% { height: 0; } }
[data-gesture="tap"] .ec-finger { animation: ec-tap-f .7s infinite; }
[data-gesture="tap"] .ec-touch { animation: ec-tap-t .7s infinite; }
[data-gesture="tap"] .ec-thing { background: radial-gradient(circle at 35% 35%, #c3a2ff, #4b2580); animation: ec-berry .7s infinite; --dx: 1.6em; }
[data-gesture="tap"] .ec-thing.b { --dx: -1.6em; }
@keyframes ec-tap-f { 0%, 100% { transform: translate(-50%, .8em) scale(1.12); } 42%, 55% { transform: translate(-50%, 0) scale(1); } }
@keyframes ec-tap-t { 0%, 40% { transform: scale(0); opacity: 1; } 50% { transform: scale(1); opacity: 1; } 85%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes ec-berry { 0%, 46% { opacity: 0; transform: translate(0, 0); } 55% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), -3.2em); } }
[data-gesture="flick"] .ec-finger { animation: ec-flick-f 1.8s infinite; }
[data-gesture="flick"] .ec-touch { animation: ec-flick-t 1.8s infinite; }
[data-gesture="flick"] .ec-thing { background: radial-gradient(circle at 35% 35%, #fff, #b9c9d6); animation: ec-ball 1.8s infinite; }
[data-gesture="flick"] .ec-thing.b { display: none; }
@keyframes ec-flick-f { 0% { transform: translate(-50%, 1.6em); opacity: 0; } 12% { transform: translate(-50%, 1.6em); opacity: 1; } 42% { transform: translate(-50%, -2.6em); opacity: 1; } 58%, 100% { transform: translate(-50%, -3.2em); opacity: 0; } }
@keyframes ec-flick-t { 0%, 10% { transform: translateY(1.6em) scale(0); } 14% { transform: translateY(1.6em) scale(.8); opacity: 1; } 42% { transform: translateY(-2.6em) scale(.8); opacity: 1; } 52%, 100% { transform: translateY(-2.6em) scale(0); opacity: 0; } }
@keyframes ec-ball { 0%, 40% { opacity: 0; transform: translateY(-2.6em) scale(1); } 45% { opacity: 1; } 88% { opacity: 1; transform: translateY(-9em) scale(.35); } 100% { opacity: 0; transform: translateY(-9.5em) scale(.3); } }
/* on the phone the card covers the pad, but the finger still goes through to it (holding during the Plunge's card counts) */
/* The lineup card (cards.js, mountLineup): Plunge, then two slots that spin and land. A row on the big screen, a
   column on a phone. */
.lcard { padding: 1em 2em 1.1em; }
.lcard .ec-kicker { font-size: 1.9em; white-space: nowrap; }
.lu-row { display: flex; gap: 1.2em; margin: .9em 0 .6em; }
.lu-slot { position: relative; width: 14em; height: 14.5em; border-radius: 1.1em; background: #123a5e; border: .3em solid rgba(255, 255, 255, .25); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.lu-slot > u { position: absolute; left: .45em; top: .35em; font-size: 1.5em; font-weight: 900; text-decoration: none; color: var(--sun); opacity: .9; }
.lu-reel { display: flex; flex-direction: column; align-items: center; justify-content: center; white-space: nowrap; animation: luspin .18s linear; filter: blur(.12em); opacity: .75; }
.lu-reel .emoji { font-size: 6em; line-height: 1.1; }
.lu-reel b { font-size: 2.7em; font-weight: 900; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.lu-reel i { font-style: normal; font-size: 1.7em; font-weight: 900; color: var(--sun); letter-spacing: .08em; margin-top: .25em; }
.lu-slot.landed { border-color: var(--sun); background: #0f4a7a; animation: luland .45s cubic-bezier(.2, 1.6, .4, 1); }
.lu-slot.landed .lu-reel { animation: none; filter: none; opacity: 1; }
.lu-slot:not(.landed) .lu-reel { animation: luspin .09s linear infinite; }
@keyframes luspin { from { transform: translateY(-38%); } to { transform: translateY(38%); } }
@keyframes luland { from { transform: scale(1.18); } 60% { transform: scale(.97); } to { transform: scale(1); } }
.lcard .lu-sub { font-size: 2.2em; white-space: nowrap; }
#big.solo .ecard.lcard { font-size: min(7.4px, 2vw); padding: 1.4em 1.2em 1.5em; max-width: 98vw; }
@media (min-width: 700px) { #big.solo .ecard.lcard { font-size: 12px; } }
#p-intro .lcard { padding: 14px 12px 16px; }
#p-intro .lcard .ec-kicker { font-size: clamp(15px, 5vw, 20px); }
#p-intro .lu-row { flex-direction: column; gap: 10px; width: 100%; margin: 12px 0 10px; }
#p-intro .lu-slot { width: 100%; height: 86px; border-width: 4px; border-radius: 16px; }
#p-intro .lu-slot > u { font-size: 16px; left: 9px; top: 5px; }
#p-intro .lu-reel { flex-direction: row; gap: 10px; }
#p-intro .lu-reel .emoji { font-size: 44px; }
#p-intro .lu-reel b { font-size: clamp(24px, 8.4vw, 34px); }
#p-intro .lu-reel i { font-size: clamp(13px, 4.4vw, 18px); margin: 0; align-self: center; }
#p-intro .lcard .lu-sub { font-size: clamp(17px, 5.6vw, 22px); }
@media (prefers-reduced-motion: reduce) { .lu-slot:not(.landed) .lu-reel { animation: none; } }
#phone[data-intro="1"] #p-intro { display: flex; position: absolute; inset: 0; z-index: 3; align-items: center; justify-content: center; padding: 10px; pointer-events: none; background: rgba(6, 20, 36, .3); }
#p-intro .ecard { font-size: 15px; padding: 14px 18px 16px; width: 100%; background: #0b2239; }
#phone[data-intro="1"] #pad > :not(#p-intro), #phone[data-intro="1"] #pad::before { visibility: hidden; }
#p-intro .ec-name { font-size: 30px; }
#p-intro .ec-verb { font-size: clamp(64px, 24vw, 108px); }
#p-intro .ec-goal { font-size: 20px; }
#p-intro .ec-you { font-size: 20px; }
#phone.solo #p-intro { display: none !important; }
#big.solo .ecard { font-size: 11px; margin-bottom: 34vh; }
@media (min-width: 700px) { #big.solo .ecard { font-size: 15px; margin-bottom: 30vh; } }
@media (max-height: 700px) { #p-intro .ec-stage { font-size: 12px; } #p-intro .ec-verb { font-size: clamp(56px, 20vw, 90px); } }
/* what's happening right now, at the top of the phone */
#now { margin: 0; padding: 7px 12px; font-size: 15px; font-weight: 800; letter-spacing: .04em; text-align: center; background: rgba(11, 34, 57, .82); color: var(--sun); min-height: 1.2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#phone.solo #now { display: none; }
#pad-sub { white-space: pre-line; }
#splash-btn small, #dead-btn small, #snitch-btn small { display: block; font-size: 14px; font-weight: 700; opacity: .9; margin-bottom: 2px; }
.invite-how { display: none; margin: 4px 0 0; font-size: 15px; font-weight: 700; opacity: .92; }
body.invited .invite-how { display: block; }
/* the result card: who won the event and why, big, before the list */
#res-win { display: flex; align-items: center; justify-content: center; gap: .5em; margin: .2em 0 .3em; padding: .3em .8em; background: var(--sun); color: var(--ink); border-radius: .6em; }
#res-win .emoji { font-size: 2.6em; line-height: 1; }
#res-win > div { display: flex; flex-direction: column; text-align: left; }
#res-win b { font-size: 1.9em; font-weight: 900; line-height: 1.05; text-wrap: balance; }
#res-win i { font-style: normal; font-weight: 800; font-size: 1.15em; }
.result h2 { font-size: 1.5em; }
#res-next { font-size: 1.05em; opacity: 1; } #res-next b { color: var(--sun); }
#big.solo #res-win b { font-size: 1.4em; }
/* the lobby: a finger held down on a phone, filling it with lake: holding is playing */
#pad-hint { display: none; }
#phone[data-phase="lobby"][data-mine="dry"]:not([data-wait="1"]) #pad-hint { display: block; }
#phone.solo #pad-hint .ec-anim { font-size: 11px; }

/* Looks (#15): your colour and emoji. A chip is the emoji on a disc of the colour; the big screen marks every player
   with one, and every person here wears a tag over their head in the scene. */
.chip { display: inline-grid; place-items: center; width: 1.55em; height: 1.55em; border-radius: 50%; background: var(--c, #fff); font-style: normal; line-height: 1; vertical-align: middle; text-shadow: none; box-shadow: 0 0 0 .12em rgba(11, 34, 57, .55); flex: none; }
#tags { position: absolute; inset: 0; overflow: hidden; }
.ptag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: .25em; padding: .12em .45em .12em .12em; border-radius: 1em; background: rgba(11, 34, 57, .82); border: .14em solid var(--c, #fff); font-size: 1.1em; white-space: nowrap; pointer-events: auto; cursor: pointer; will-change: transform; }
.ptag b { font-weight: 900; color: var(--snow); }
.ptag:not(:has(b)) { padding: .12em; }
#big.solo .ptag { font-size: 1.15em; }
/* Putt (#6): a tag on a ball points down at it; the balls nearest the pin keep theirs, with the feet, the first in gold */
.ptag.ball { font-size: 1.35em; background: var(--c, #fff); z-index: 2; }
.ptag.ball b { color: #0b2239; text-shadow: none; }
.ptag.ball .chip { box-shadow: 0 0 0 .12em rgba(255, 255, 255, .9); }
.ptag.ball::after { content: ''; position: absolute; left: 50%; bottom: -.5em; margin-left: -.4em; border: .4em solid transparent; border-bottom: 0; border-top-color: var(--c, #fff); }
.ptag.lead { font-size: 1.2em; background: rgba(11, 34, 57, .88); z-index: 1; }
.ptag.lead b { color: var(--snow); }
.ptag.lead small { font-weight: 800; color: var(--sun); font-size: .9em; }
.ptag.lead.first { font-size: 1.45em; border-color: var(--sun); box-shadow: 0 0 .5em rgba(255, 209, 102, .7); z-index: 3; }
.ptag.lead::after { border-top-color: rgba(11, 34, 57, .88); }
.pop { box-shadow: 0 0 0 .18em var(--c, transparent); }
.pop .chip { font-size: .95em; }
#ticker li .chip, #pod-awards .chip { font-size: .9em; margin-right: .1em; }
.step .emoji { display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--c, transparent); }
#res-win .emoji { display: grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--c, transparent); }
#champ .emoji { display: grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 50%; background: var(--c, transparent); box-shadow: 0 0 0 .08em rgba(11, 34, 57, .4); }
/* The phone: your colour frames it all show (the background keeps telling you what's happening), and the header is yours. */
#phone { --me: #ffd166; --me-ink: #0b1a2a; box-shadow: inset 0 0 0 7px var(--me); }
#phone .who { background: var(--me); color: var(--me-ink); }
#phone .who .emoji { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 3px rgba(11, 34, 57, .35); font-size: 34px; flex: none; }
#phone.solo { box-shadow: none; }
/* The join screen: pick a colour and an emoji, one tap each (a random pair is already picked). */
#look { grid-column: 1 / -1; display: grid; gap: 8px; }
.look-me { display: flex; align-items: center; gap: 10px; font-size: 13px; opacity: .95; }
.look-me .chip { font-size: 30px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); }
/* Each picker is one row that swipes sideways and snaps; the last swatch is cut off and the edges fade, so it reads as
   "there's more". The card itself scrolls vertically on a phone too short for it (main.js lets both through). */
.look-row { position: relative; display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-inline: 18px;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x pan-y; scrollbar-width: none; padding: 6px 18px; margin: 0 -10px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 26px), transparent); }
.look-row::-webkit-scrollbar { display: none; }
.look-row button { flex: 0 0 50px; min-height: 48px; min-width: 0; padding: 0; border-radius: 12px; font-size: 26px; line-height: 1; background: rgba(255, 255, 255, .12); border: 3px solid transparent; scroll-snap-align: start; touch-action: pan-x pan-y; }
#look-c button { background: var(--c); }
.look-row button[aria-checked="true"] { border-color: var(--snow); box-shadow: 0 0 0 2px var(--ink), 0 0 0 5px var(--snow); }
#look-e button[aria-checked="true"] { background: var(--c, rgba(255, 255, 255, .3)); }
#join .look-row button { grid-column: auto; min-height: 48px; font-size: 26px; }
#join .invite-how { grid-column: 1 / -1; text-align: center; }
@media (max-height: 760px) { #title .card { padding: 16px 18px; } #title .lede { margin: 4px 0 10px; font-size: 15px; } #title .tag { font-size: 18px; } #join { gap: 8px; } #look { gap: 4px; } }
#big.solo .ptag { pointer-events: none; }     /* alone, the phone's pad is under the tags: a finger on your own tag still holds */

/* Pick on the phone (#16): your bush (it empties as you tap), your bucket in your colour, and where you are in the rows */
/* Putt's chase view (#6, chase.js): your ball's flight on a little picture of the lake, framed in your colour */
#chase { display: none; flex: none; width: 100%; max-width: 460px; height: min(42vh, 340px); border-radius: 18px; border: 3px solid var(--me, #fff); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); background: #0f3b66; pointer-events: none; }
#phone[data-chase="1"] #chase { display: block; }
#phone.solo #chase { height: min(30vh, 240px); }
/* One clean loop a shot (#39). In a room the card is up all through Putt, at the top of the pad, with the thumb's room
   under it; the finger's line is cut out over the card and the yards (putt.phone.js); what somebody else did to your
   ball is one line over the top of the pad. */
@supports (height: 1dvh) { #chase { height: min(42dvh, 340px); } #phone.solo #chase { height: min(30dvh, 240px); } }
#phone[data-phase="putt"][data-chase="1"]:not(.solo) #pad { justify-content: flex-start; padding-top: 20px; }
#phone[data-phase="putt"]:not(.solo) #pad-big { font-size: clamp(28px, 9vw, 46px); }
#putt-note { position: absolute; z-index: 3; top: 12px; left: 0; right: 0; margin: 0 auto; width: fit-content; max-width: calc(100% - 24px); padding: 8px 14px; border-radius: 14px; background: rgba(11, 34, 57, .94); border: 2px solid var(--sun); font-size: 17px; font-weight: 800; line-height: 1.2; text-wrap: balance; pointer-events: none; animation: fxin .15s; }
#putt-note[hidden] { display: none; }
#pk-patch { display: none; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
#phone[data-phase="pick"]:not([data-wait="1"]) #pk-patch { display: flex; }
#phone[data-phase="pick"][data-mine="mauled"] #pk-patch { display: none; }
.pk-track { display: flex; align-items: center; gap: 10px; font-size: 26px; background: rgba(0, 0, 0, .28); padding: 4px 14px; border-radius: 99px; }
.pk-track i { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .22); font-style: normal; font-size: 19px; line-height: 30px; text-align: center; }
.pk-track i.on { background: var(--me); box-shadow: 0 0 0 3px #fff; }
.pk-track i.done { background: rgba(124, 122, 60, .9); }
.pk-here { display: flex; align-items: flex-end; gap: 18px; }
.pk-bush { position: relative; width: 150px; height: 104px; border-radius: 50% 50% 44% 44%; background: radial-gradient(circle at 40% 35%, #4caf5f, #24683a 70%); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .18), 0 4px 0 rgba(0, 0, 0, .25); }
.pk-bush b { position: absolute; width: 17px; height: 17px; margin: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #a98bff, #4b2fa6 70%); transition: transform .18s, opacity .18s; }
.pk-bush b.gone { transform: translateY(-40px) scale(.3); opacity: 0; }
.pk-bush.empty { background: radial-gradient(circle at 40% 35%, #8c8a4a, #5a5a2a 70%); }
.pk-bucket { position: relative; width: 74px; height: 84px; border: 5px solid #fff; border-top-width: 3px; border-radius: 6px 6px 22px 22px; overflow: hidden; background: rgba(0, 0, 0, .3); }
.pk-bucket i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--me); transition: height .15s; }
.pk-bucket b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 900; color: #fff; text-shadow: 0 2px 3px rgba(0, 0, 0, .7); }
.pk-note { margin: 0; font-size: 15px; font-weight: 700; min-height: 1.3em; text-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.pk-note.up { color: var(--sun); animation: bump .3s; }
#phone[data-phase="pick"][data-mine="pick"] #pk-patch ~ #pad-big { font-size: clamp(40px, 13vw, 64px); }
#phone.solo #pk-patch { gap: 4px; } #phone.solo .pk-bush { width: 96px; height: 66px; } #phone.solo .pk-bush b { width: 12px; height: 12px; margin: -6px; }
#phone.solo .pk-bucket { width: 50px; height: 56px; } #phone.solo .pk-bucket b { font-size: 16px; } #phone.solo .pk-track { font-size: 18px; padding: 2px 10px; } #phone.solo .pk-track i { width: 22px; height: 22px; font-size: 14px; line-height: 22px; }
#phone.solo .pk-note { background: rgba(11, 34, 57, .7); padding: 2px 10px; border-radius: 10px; font-size: 13px; }

/* The trickiest lies (phone.js, sysHtml): look-alikes of the phone's own call screen, notification and alert, iOS or
   Android. Drawn by us: no logos, no copied icons. They can't be tapped: the finger on the pad is what counts. */
.sysui { position: absolute; inset: 0; z-index: 30; pointer-events: none; color: #000; text-align: left; letter-spacing: 0; text-shadow: none;
  font: 400 17px/1.25 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif; }
.sysui.android { font-family: "Google Sans", Roboto, "Segoe UI", system-ui, Arial, sans-serif; }
.sysui svg { display: block; fill: currentColor; }
.sysui .sb { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: max(14px, env(safe-area-inset-top)) 30px 0 36px; font-weight: 600; font-size: 16px; color: #fff; }
.sysui .sb-r { display: flex; gap: 6px; align-items: center; } .sysui .sb-r svg { height: 11px; width: auto; } .sysui .sb-r svg:last-child { height: 12px; }
.sysui .sb small { font-size: 13px; font-weight: 500; }
.sysui.android .sb { padding: 10px 20px 0; font-weight: 500; font-size: 14px; }
.sysui.note .sb, .sysui.alert .sb { color: #fff; mix-blend-mode: difference; }
/* the incoming call */
.sysui.call { animation: sysin .25s ease-out; color: #fff; }
.sysui.call.ios { background: radial-gradient(120% 70% at 50% 15%, #5d6d78, #263038 60%, #12171c); }
.sysui.call.android { background: linear-gradient(#1f2a33, #101519); }
.sysui .call-top { position: absolute; left: 0; right: 0; top: 15%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 0 20px; }
.sysui .call-top b { font-weight: 400; font-size: 34px; letter-spacing: .2px; } .sysui .call-top i { font-style: normal; font-size: 17px; opacity: .7; }
.sysui .av { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; font-weight: 500; color: #fff; background: linear-gradient(#a6abb5, #6b717c); margin-bottom: 10px; }
.sysui .call-small { position: absolute; left: 12%; right: 12%; bottom: calc(max(30px, env(safe-area-inset-bottom)) + 150px); display: flex; justify-content: space-between; font-size: 14px; }
.sysui .call-small span { display: flex; flex-direction: column; align-items: center; gap: 6px; } .sysui .call-small u { text-decoration: none; font-size: 26px; }
.sysui .call-btns { position: absolute; left: 12%; right: 12%; bottom: max(44px, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; font-size: 15px; }
.sysui .call-btns span { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sysui .call-btns u { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; }
.sysui .call-btns u svg { width: 38px; height: 38px; }
.sysui .no u { background: #ff3b30; } .sysui .no svg { transform: translateY(2px); }
.sysui .yes u { background: #34c759; } .sysui .yes svg { transform: rotate(-135deg); }
.sysui.ios .yes u { animation: ring 1s infinite; }
.sysui.android .call-top { top: 11%; } .sysui.android .call-top small { font-size: 15px; opacity: .75; margin-bottom: 18px; }
.sysui.android .call-top b { font-size: 36px; } .sysui.android .call-top i { font-size: 16px; }
.sysui.android .av { margin: 34px 0 0; width: 112px; height: 112px; font-size: 48px; background: #7a5ab5; }
.sysui.android .call-btns u { width: 68px; height: 68px; } .sysui.android .yes u { background: #1fa855; animation: bob 1.1s infinite; } .sysui.android .no u { background: #e5483d; }
/* a notification slides down over the game */
.sysui .note { position: absolute; left: 8px; right: 8px; top: max(8px, env(safe-area-inset-top)); animation: drop .42s cubic-bezier(.2, 1.2, .4, 1); }
.sysui.ios .note { display: flex; gap: 11px; align-items: center; padding: 12px 14px; border-radius: 22px; background: rgba(242, 242, 247, .88); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); box-shadow: 0 8px 30px rgba(0, 0, 0, .22); font-size: 15px; }
.sysui.ios .note > div { flex: 1; min-width: 0; } .sysui.ios .note p { margin: 0 0 1px; display: flex; justify-content: space-between; gap: 8px; } .sysui.ios .note b { font-weight: 600; }
.sysui.ios .note small { color: rgba(60, 60, 67, .6); font-size: 13px; }
.sysui .app { flex: none; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-size: 22px; }
.sysui.android .note { padding: 14px 18px 16px; border-radius: 26px; background: #f3f5fa; box-shadow: 0 6px 24px rgba(0, 0, 0, .28); font-size: 14px; color: #1d1b20; display: flex; flex-direction: column; gap: 3px; }
.sysui.android .note p { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #49454f; }
.sysui.android .note .app { width: 22px; height: 22px; border-radius: 50%; font-size: 12px; }
.sysui.android .note b { font-size: 15px; font-weight: 500; }
/* an alert in the middle */
.sysui.alert { background: rgba(0, 0, 0, .38); animation: sysin .2s ease-out; }
.sysui .alert { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.sysui.ios .alert { width: 270px; border-radius: 14px; background: rgba(242, 242, 247, .9); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); text-align: center; padding-top: 19px; overflow: hidden; }
.sysui.ios .alert b { display: block; font-weight: 600; font-size: 17px; padding: 0 16px 2px; } .sysui.ios .alert span { display: block; font-size: 13px; padding: 0 16px 19px; }
.sysui.ios .alert p { margin: 0; display: flex; border-top: .5px solid rgba(60, 60, 67, .3); }
.sysui.ios .alert em { flex: 1; font-style: normal; color: #007aff; padding: 11px 6px; font-size: 17px; } .sysui.ios .alert em.alt { font-weight: 600; border-left: .5px solid rgba(60, 60, 67, .3); }
.sysui.android .alert { width: min(312px, 86vw); border-radius: 28px; background: #ece6f0; padding: 24px 24px 18px; color: #1d1b20; }
.sysui.android .alert b { display: block; font-size: 24px; font-weight: 400; margin-bottom: 14px; } .sysui.android .alert span { display: block; font-size: 14px; color: #49454f; line-height: 1.45; }
.sysui.android .alert p { margin: 22px 0 0; display: flex; justify-content: flex-end; gap: 26px; } .sysui.android .alert em { font-style: normal; font-weight: 500; font-size: 14px; color: #65558f; }
@keyframes sysin { from { opacity: 0; } }
@keyframes drop { from { transform: translateY(-140%); } }
@keyframes ring { 0%, 60%, 100% { transform: none; } 10%, 30%, 50% { transform: rotate(-12deg); } 20%, 40% { transform: rotate(12deg); } }
@keyframes bob { 50% { transform: translateY(-10px); } }

#sys { position: fixed; z-index: 30; }

/* the big screen: who got fooled, and a little phone with what fooled them */
#fooled { position: absolute; left: max(10vw, 8.2em); top: 52%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: .5em; z-index: 6; animation: foolin .35s cubic-bezier(.2, 1.3, .4, 1); width: 13em; }
#fooled[hidden] { display: none; }
#fooled .mini { position: relative; width: 11em; height: 22em; border-radius: 1.6em; overflow: hidden; border: .45em solid #0b0d10; box-shadow: 0 .6em 2em rgba(0, 0, 0, .5); background: linear-gradient(#2a78b8, #0b2239); }
#fooled .mini .sysui .note { top: 40px; }
#fooled .mini .sysui { width: 320px; height: 640px; inset: auto; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--sc, .5)); }
#fooled .cap { text-wrap: balance; background: var(--c, #fff); color: var(--k, #000); padding: .3em .7em; border-radius: .5em; font-weight: 900; text-align: center; line-height: 1.15; font-size: 1.05em; box-shadow: 0 .3em 1em rgba(0, 0, 0, .4); text-shadow: none; }
#fooled .cap small { display: block; font-size: .7em; font-weight: 800; opacity: .8; }
@keyframes foolin { from { transform: translateY(-50%) scale(.4) rotate(-8deg); opacity: 0; } }
#big.solo #fooled { top: 108px; left: auto; right: 8px; transform: none; font-size: 8px; width: 15em; animation: popin .3s; }
@keyframes popin { from { transform: scale(.4); opacity: 0; } }

/* Readable from the back of the room (#9). The bear's tell: an amber edge that pulses, a big "!" over its head and
   "UH-OH…"; when it looks, a thick red edge and "FREEZE!". A crowd that bails (or is mauled) at once is one big card
   with a count and the best line of the lot, not a pile of little labels. */
#bear-cue { display: none; position: absolute; left: 50%; top: 17%; transform: translateX(-50%); margin: 0; padding: .1em .7em; border-radius: .4em; font-size: 3.4em; font-weight: 900; letter-spacing: .04em; white-space: nowrap; text-shadow: none; color: var(--ink); background: #ffb020; box-shadow: 0 .12em 0 rgba(0, 0, 0, .35); z-index: 1; }
#big[data-phase="pick"].tell #bear-cue, #big[data-phase="pick"].danger #bear-cue { display: block; }
#big[data-phase="pick"].danger #bear-cue { background: var(--bad); color: #fff; animation: flash .25s infinite; }
#bear-bang { display: none; position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); font-size: 7em; font-weight: 900; line-height: 1; color: #ffb020; -webkit-text-stroke: .05em #0b2239; text-shadow: 0 .05em 0 #0b2239; will-change: transform; }
#big[data-phase="pick"].tell:not(.danger) #bear-bang { display: block; animation: bang .5s ease-in-out infinite alternate; }
@keyframes bang { from { scale: 1; } to { scale: 1.25; } }
#burst { position: absolute; left: 50%; top: 63%; transform: translate(-50%, -50%); width: max-content; display: flex; flex-direction: column; align-items: center; gap: .15em; max-width: 86vw; padding: .35em 1em .45em; border-radius: .6em; background: rgba(11, 34, 57, .9); border: .15em solid var(--sun); text-align: center; text-shadow: none; z-index: 2; animation: burstin .3s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes burstin { from { opacity: 0; scale: .5; } }
#burst.bump .n { animation: burstn .3s; } @keyframes burstn { from { scale: 1.3; } }
#burst[hidden] { display: none; }
#burst .n { font-size: 3em; font-weight: 900; line-height: 1; color: var(--sun); white-space: nowrap; }
#burst .best { font-size: 1.6em; font-weight: 800; line-height: 1.15; text-wrap: balance; }
#burst .best b { color: var(--sun); }
#burst.maul { border-color: var(--bad); } #burst.maul .n { color: #ff8f8f; }
#big.solo #burst { font-size: .7em; top: 58%; }
#big.solo #bear-cue { font-size: 1.6em; top: 26%; }
#big.solo #bear-bang { font-size: 3.5em; }
/* the ice bath (#7): its card, then SHIVER! (it is real: ice blue, not a lie's red or navy), then what your answer was worth.
   The finger goes through it to the pad. */
#shiver { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; pointer-events: none; text-align: center; color: #06223a; background: radial-gradient(circle, #e9fbff 0%, #9fe3ff 60%, #57c2f2 100%); box-shadow: inset 0 0 0 10px #fff; }
#shiver b { font-size: 46px; font-weight: 900; line-height: 1.05; }
#shiver i { font-style: normal; font-size: 21px; font-weight: 700; max-width: 320px; }
#shiver small { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
#shiver u { text-decoration: none; background: #06223a; color: #9fe3ff; padding: 0 .3em; border-radius: .3em; }
#shiver .emoji { font-size: 96px; line-height: 1; }
#shiver[data-k="go"] { animation: shiver .09s infinite, fxin .12s; }
#shiver[data-k="go"] b { font-size: 64px; }
#shiver[data-k="warm"] { background: radial-gradient(circle, #fff3c4 0%, #ffb347 70%, #ff7b2e 100%); animation: fxin .12s; }
#shiver[data-k="early"] { background: #c9d6e2; animation: fxin .12s; }
#shiver[data-k="card"] { animation: fxin .2s; }
#shiver .ec-anim { font-size: 13px; color: #fff; }
@keyframes shiver { 0% { transform: translate(-3px, 1px); } 25% { transform: translate(3px, -2px); } 50% { transform: translate(-2px, -1px); } 75% { transform: translate(2px, 2px); } }
/* the shiver gesture: one finger holds, a second one taps */
[data-gesture="shiver"] .ec-finger { animation: none; transform: translateX(-80%); }
[data-gesture="shiver"] .ec-touch { transform: scale(1); left: 35%; }
[data-gesture="shiver"] .ec-fill { height: 100%; }
[data-gesture="shiver"] .ec-thing { left: 72%; top: 34%; width: 1.8em; height: 1.8em; margin: -.9em 0 0 -.9em; background: rgba(255, 255, 255, .95); opacity: 1; animation: ec-tap-t .6s infinite; }
[data-gesture="shiver"] .ec-thing.b { display: none; }
/* the big screen's SHIVER! */
.banner.ice { background: #1b6fb5; } .banner.shiver { background: #9fe3ff; color: #06223a; font-size: 4em; animation: shiverm .09s infinite; }
@keyframes shiverm { 0% { margin: 2px 0 0 -4px; } 25% { margin: -3px 0 0 4px; } 50% { margin: -1px 0 0 -3px; } 75% { margin: 3px 0 0 3px; } }
#burst.froze { border-color: #9fe3ff; } #burst.froze .n { color: #9fe3ff; }
.banner small { display: block; font-size: .42em; font-weight: 800; margin-top: .25em; }
/* alone, the pad is laid over the big screen: the ice bath is a card at the bottom, so the lake (and its SHIVER!) shows */
#phone.solo #shiver { inset: auto 12px max(24px, env(safe-area-inset-bottom)) 12px; border-radius: 18px; padding: 14px 16px; gap: 4px; }
#phone.solo #shiver b { font-size: 34px; } #phone.solo #shiver[data-k="go"] b { font-size: 48px; } #phone.solo #shiver .emoji { font-size: 56px; }
#phone.solo #shiver i { font-size: 17px; } #phone.solo #shiver .ec-anim { font-size: 9px; }
/* the slow-mo replay before the podium (#2): letterbox bars, a red REPLAY light, what happened in big type, and the
   name over the ball */
#replay { display: none; position: absolute; inset: 0; pointer-events: none; }
#big[data-phase="replay"] #replay { display: block; }
#big[data-phase="replay"] .big-top, #big[data-phase="replay"] #ticker { display: none; }
#replay::before, #replay::after { content: ""; position: absolute; left: 0; right: 0; height: 11vh; background: #05101c; }
#replay::before { top: 0; } #replay::after { bottom: 0; height: 17vh; }
.rp-top { position: absolute; top: 2.4vh; left: 2.6em; margin: 0; z-index: 1; font-size: 2em; font-weight: 900; letter-spacing: .08em; display: flex; align-items: center; gap: .4em; }
.rp-top .rec { width: .7em; height: .7em; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 .6em #ff3b3b; animation: rec 1s steps(2) infinite; }
.rp-x { font-size: .6em; color: var(--sun); letter-spacing: .04em; opacity: 0; transition: opacity .2s; }
#big.slowmo .rp-x { opacity: 1; }
@keyframes rec { 50% { opacity: .15; } }
#rp-cap { position: absolute; left: 50%; bottom: 3vh; transform: translateX(-50%); margin: 0; z-index: 1; width: max-content; max-width: 92vw; text-align: center; font-size: 2.3em; font-weight: 900; line-height: 1.15; }
#rp-tag { font-size: 1.9em; z-index: 3; pointer-events: none; }
#rp-tag[hidden] { display: none; }
#big.solo .rp-top { top: 72px; font-size: 1.2em; } #big.solo #rp-cap { font-size: 1.2em; bottom: auto; top: 108px; } #big.solo #rp-tag { font-size: 1.3em; }
#big.solo #replay::before, #big.solo #replay::after { display: none; }
/* The spotlight shot (#1). The big screen: the card at the top ("ALL EYES ON DAVE", then the cough counter and the
   jinxer), and the lake dimmed round it. The phone: EVERYONE IS WATCHING in gold, or one big COUGH button. */
#spot { position: absolute; left: 50%; top: 11%; transform: translateX(-50%); z-index: 3; width: max-content; max-width: 92vw; text-align: center; background: rgba(11, 20, 34, .9); border: .12em solid var(--c, var(--sun)); border-radius: .6em; padding: .25em 1em .35em; text-shadow: none; box-shadow: 0 0 2.5em rgba(255, 230, 150, .35); animation: fxin .25s; }
#spot p { margin: 0; text-wrap: balance; }
#spot .sp-head { font-size: 1.7em; font-weight: 900; letter-spacing: .01em; white-space: nowrap; }
#spot .sp-head .nm { color: var(--sun); }
#spot .sp-head .chip { font-size: .8em; }
#spot .sp-sub { font-size: 1.2em; font-weight: 700; opacity: .9; }
#spot .sp-left { display: inline-block; min-width: 1.4em; margin-left: .2em; padding: 0 .25em; border-radius: .3em; background: var(--sun); color: var(--ink); font-variant-numeric: tabular-nums; }
#spot .sp-n { font-size: 3.2em; font-weight: 900; line-height: 1.02; color: #c6f26b; white-space: nowrap; font-variant-numeric: tabular-nums; }
#spot .sp-n.none { color: #fff; opacity: .55; font-size: 2.4em; }
#spot .sp-n.bump { animation: spbump .18s; }
@keyframes spbump { 40% { transform: scale(1.08) rotate(-1.5deg); } }
#spot .sp-by { font-size: 1.2em; font-weight: 800; min-height: 1.3em; white-space: nowrap; }
#spot .sp-by .nm { color: #c6f26b; }
#spot[data-part="warn"] { animation: fxin .25s, spwarn .5s 3 alternate; }
@keyframes spwarn { to { box-shadow: 0 0 4em rgba(255, 230, 150, .8); } }
#big.spotlight::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 70%, transparent 35%, rgba(0, 0, 0, .45) 100%); animation: sysin .4s; }
#big.spotlight .ptag.spot { z-index: 2; font-size: 1.5em; outline: .14em solid #fff3c4; }
#big.solo #spot { top: 118px; font-size: 11px; max-width: 96vw; }
#big.solo #spot .sp-head { font-size: 2em; }
#cough-btn { font-size: clamp(34px, 11vw, 52px); font-weight: 900; min-height: 132px; width: min(100%, 360px); padding: 14px 20px; background: #7cb342; color: #10210a; border-radius: 26px; box-shadow: 0 8px 0 #4b7a1e; touch-action: manipulation; user-select: none; -webkit-user-select: none; white-space: nowrap; }
#cough-btn small { display: block; font-size: 15px; font-weight: 800; opacity: .85; margin-bottom: 2px; white-space: nowrap; }
#cough-btn:active, #cough-btn.bump { transform: translateY(5px); box-shadow: 0 3px 0 #4b7a1e; }
#phone[data-spot="me"] { background: radial-gradient(ellipse at 50% 35%, #6b5a1c, #1a1406 75%); }
#phone[data-spot="me"] #pad-big { color: #ffe27a; text-wrap: balance; }
#phone[data-spot="me"] #pad { box-shadow: inset 0 0 0 calc(4px + var(--jinx, 0) * 10px) rgba(198, 242, 107, calc(.3 + var(--jinx, 0) * .6)); }
#phone[data-spot="other"] #pad-big { text-wrap: balance; }
#big.solo.spotlight .lakehud, #big.solo.spotlight #ticker { visibility: hidden; }
#big.solo .ptag.spot { font-size: 1.1em; }

/* The horn's look at the green (#31): the camera over the green, an emoji on every ball, the top 8 named with their
   place and feet, a dashed line from 1st to the pin, a crown for a hole in one, or nobody at all. */
#gbeat { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
#gbeat[hidden], #gb-none[hidden], .gtag[hidden], .gb-crown[hidden] { display: none; }
#gb-head { position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); width: max-content; margin: 0; text-align: center; font-size: 2.2em; font-weight: 900; letter-spacing: .02em; background: rgba(11, 34, 57, .82); padding: .15em .8em .2em; border-radius: .5em; text-shadow: none; animation: fxin .4s; max-width: 92vw; }
#gb-head small { display: block; font-size: .42em; font-weight: 700; color: var(--sun); letter-spacing: .06em; text-transform: uppercase; }
#gb-line { position: absolute; inset: 0; width: 100%; height: 100%; }
#gb-line .gb-pin, #gb-line circle { opacity: 0; transition: opacity .3s; }
#gb-line.on .gb-pin, #gb-line.on circle { opacity: 1; }
#gb-leads line { stroke: rgba(244, 251, 255, .85); stroke-width: 3; filter: drop-shadow(0 0 3px rgba(11, 34, 57, .9)); }
#gb-line .gb-pin { stroke: #fff; stroke-width: 5; stroke-dasharray: 14 10; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(11, 34, 57, .9)); animation: gbdash .8s linear infinite; }
#gb-line circle { fill: none; stroke: var(--c, var(--sun)); stroke-width: 6; transform-box: fill-box; transform-origin: center; animation: gbring 1s ease-out infinite; }
@keyframes gbdash { to { stroke-dashoffset: -24; } }
@keyframes gbring { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.gtag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: .25em; white-space: nowrap; will-change: transform; pointer-events: auto; cursor: pointer; text-shadow: none; }
.gtag.emo { font-size: 1.15em; }
.gtag.me { font-size: 1.1em; padding: .1em .45em .1em .12em; border-radius: 1em; background: rgba(11, 34, 57, .9); border: .14em solid var(--c, #fff); z-index: 1; }
.gtag.me small { color: var(--sun); font-weight: 900; }
.gtag.emo .chip { box-shadow: 0 0 0 .12em rgba(11, 34, 57, .7), 0 3px 6px rgba(0, 0, 0, .4); }
.gtag.top { font-size: 1.35em; padding: .12em .5em .12em .14em; border-radius: 1em; background: rgba(11, 34, 57, .9); border: .14em solid var(--c, #fff); animation: gbin .35s cubic-bezier(.2, 1.6, .4, 1); z-index: 1; }
.gtag.top small { color: var(--sun); font-weight: 900; font-size: .85em; }
.gtag.top.first { font-size: 1.75em; z-index: 2; box-shadow: 0 0 0 .1em var(--sun), 0 0 1.2em rgba(255, 209, 102, .7); }
.gb-place { display: inline-grid; place-items: center; min-width: 1.35em; height: 1.35em; border-radius: 50%; background: var(--snow); color: var(--ink); font-style: normal; font-weight: 900; font-size: .8em; flex: none; }
.first .gb-place, .gb-crown .gb-place { background: var(--sun); }
@keyframes gbin { 0% { opacity: 0; scale: .3; } 100% { opacity: 1; scale: 1; } }
.gb-crown { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; white-space: nowrap; text-shadow: none; z-index: 3; pointer-events: auto; cursor: pointer; animation: gbin .5s cubic-bezier(.2, 1.6, .4, 1); }
.gb-king { font-size: 2.6em; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); animation: gbbob 1s ease-in-out infinite alternate; }
@keyframes gbbob { to { transform: translateY(-.12em) rotate(4deg); } }
.gb-who { display: flex; align-items: center; gap: .25em; font-size: 1.6em; padding: .12em .55em .12em .14em; border-radius: 1em; background: rgba(11, 34, 57, .92); border: .14em solid var(--sun); }
.gb-crown small { margin-top: .2em; background: var(--sun); color: #2a1a00; font-weight: 900; font-size: 1em; padding: .05em .6em; border-radius: .4em; letter-spacing: .04em; }
#gb-none { position: absolute; left: 50%; top: 50%; margin: 0; transform: translate(-50%, -50%); text-align: center; font-size: min(4.2em, 7.5vw); font-weight: 900; background: rgba(15, 59, 102, .92); border: .08em solid #bfe6ff; padding: .25em .7em; border-radius: .4em; text-shadow: none; max-width: 92vw; }
#gb-none.in { animation: gbin .45s cubic-bezier(.2, 1.6, .4, 1); }
#big.solo #gb-head { font-size: 1.3em; bottom: auto; top: 118px; } #big.solo .gtag.top { font-size: 1.1em; } #big.solo .gtag.top.first { font-size: 1.35em; } #big.solo .gb-who { font-size: 1.3em; } #big.solo #gb-none { font-size: 2em; top: 40%; }

/* #40: nothing on the big screen covers anything else. Pick's counter keeps to the left half (the bear's-bush line on
   a tab of its own above it), so the ticker on the right never runs under it; the bear's cue sits beside the bear and Pick's
   banner on its other side, so its head shows; Putt's banners (the spotlight, the choke, the osprey) sit low over the
   lake, under the green and its leaders. */
.pickhud > span, .pickhud > b { white-space: nowrap; }
#big:not(.solo) .pickhud #pick-front:not(:empty) { position: absolute; left: 0; bottom: 100%; margin: 0 0 .25em; padding: .15em .7em; border-radius: .6em; background: rgba(11, 34, 57, .78); font-size: 1.1em; }
#big:not(.solo) #ticker { max-width: 44vw; }
#big:not(.solo) #ticker li:nth-child(n+4) { display: none; }
@media (max-height: 820px) { #big:not(.solo) #ticker li:nth-child(n+3) { display: none; } }     /* 1280×800: two lines, under the crowd card */
#big:not(.solo) #bear-cue { left: 3%; top: 26%; transform: none; }
#big[data-ev="pick"]:not(.solo) .banner { left: auto; right: 3%; top: 30%; transform: translateY(-50%) scale(.6); }
#big[data-ev="pick"]:not(.solo) .banner.show { transform: translateY(-50%) scale(1); }
#big[data-ev="putt"]:not(.solo) .banner { top: 66%; }
