/* The public welcome booth and signed-in paper cards share the same ink, coral and yellow. */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=Fraunces:opsz,wght@9..144,560;9..144,680&family=Manrope:wght@500;600;700;800&family=Noto+Sans+Hebrew:wght@500;600;700;800&display=swap");

:root {
  --navy:#10182b; --paper:#f6efe3; --soft:#fffaf3; --ink:#171713;
  --purple:#3048d8; --green:#f2c94c; --coral:#fb6246; --line:#ada79c; --muted:#514d44;
  font-family:Manrope,"Noto Sans Hebrew",Arial,sans-serif;
  background:var(--navy);
}
body {
  background:
    radial-gradient(ellipse 13rem 13rem at 103% 88%,var(--coral) 0 99%,transparent 100%) fixed,
    radial-gradient(ellipse 7rem 7rem at -3% 16%,var(--green) 0 99%,transparent 100%) fixed,
    var(--navy);
}
body::before { display:none; }
.masthead,main,.connection { width:min(calc(100% - 2rem),73rem); }
main { padding-block:clamp(1rem,3vw,2.5rem) 3rem; }
.masthead { padding-block:1.05rem .7rem; gap:.65rem; border-block-end:1px solid #ffffff3d; }
.brand { display:inline-flex; align-items:center; gap:.55rem; color:#fffaf3; direction:ltr; white-space:nowrap; }
.brand img { width:clamp(28px,5vw,40px); height:auto; }
.brand b { font:800 clamp(1.2rem,4.2vw,1.9rem)/1 Manrope,Arial,sans-serif; letter-spacing:-.065em; }
.brand b span { color:var(--coral); }
.brand small { color:var(--green); letter-spacing:0; font:700 clamp(.8rem,2vw,1.15rem)/1 Manrope,Arial,sans-serif; }
.masthead>div { display:flex; align-items:center; gap:.45rem; flex-wrap:wrap; justify-content:end; }
.masthead .quiet { color:var(--soft); border-color:#b4bac6; background:transparent; box-shadow:none; }
#room-view { display:flow-root; }
#room-view>.panel + .panel,#room-view>.layout + .panel { margin-block-start:1.05rem; }
#room-view>.recovery { color:var(--soft); }
.connection { color:var(--soft); }
.panel {
  min-width:0; padding:clamp(1rem,3vw,2rem); color:var(--ink); background:var(--soft);
  border:2px solid var(--ink); border-radius:8px 22px 8px 9px; box-shadow:5px 5px 0 var(--coral);
}
.panel> :last-child { margin-block-end:0; }
.show-entry { max-width:42rem; }
details.panel>summary { min-height:44px; display:list-item; }
details.panel:not([open]) { padding-block:.4rem; }
.hero,.winner { color:var(--ink); background:var(--green); }
.hero { position:relative; isolation:isolate; }
.hero p { max-width:53ch; font-size:clamp(1rem,1.8vw,1.25rem); }
.hero h1,h1,h2 { color:inherit; }
h1,h2,h3,.show-clock bdi,.code,.winner-names {
  font-family:"Bricolage Grotesque","Noto Sans Hebrew",Manrope,Arial,sans-serif;
}
.panel:has(.meta)>h1,.show-round h1 { font:560 clamp(1.9rem,4.5vw,3.8rem)/1.12 Fraunces,"Noto Sans Hebrew",Georgia,serif; letter-spacing:-.023em; }
[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] h3 { letter-spacing:normal; }
.show-home,.player-welcome { display:grid; grid-template-columns:minmax(0,1.23fr) minmax(0,.82fr); column-gap:1rem; align-content:center; }
.show-home { min-height:clamp(17rem,33vw,24rem); padding:clamp(1.3rem,4.1vw,3.8rem); }
.show-home h1 { max-width:13ch; margin:0 0 .2em; font-size:clamp(3.3rem,6.8vw,6.1rem); line-height:.95; letter-spacing:-.055em; overflow-wrap:normal; }
.show-home>h1,.show-home>p,.player-welcome>h1,.player-welcome>h2,.player-welcome>p { grid-column:1; }
.show-home .show-art,.player-welcome .show-art { grid-column:2; grid-row:1 / span 3; align-self:center; }
.show-home .actions { grid-column:1 / -1; }
.show-art { display:block; pointer-events:none; }
.show-art svg { display:block; width:100%; height:auto; overflow:visible; }
.show-art g { transform-box:fill-box; }
.show-art-welcome { width:min(100%,25rem); justify-self:center; }
.hero:not(.show-home):not(.player-welcome)>.show-art-welcome { max-width:14rem; float:inline-end; }
.player-welcome { grid-template-columns:minmax(0,1fr) minmax(4rem,.38fr); align-items:start; }
.player-welcome>p { grid-column:1 / -1; }
/* Four short rules should read as one clear sequence on every screen size. */
.player-welcome>.show-intro-steps { grid-column:1 / -1; }
.show-intro-steps { display:grid; gap:.38rem; padding-inline-start:1.5rem; margin:.5rem 0 .8rem; }
.show-intro-steps li { padding-inline-start:.2rem; font-size:clamp(.93rem,1.5vw,1.05rem); line-height:1.45; }
.show-intro-steps strong { font-weight:800; }

.player-welcome h1 { font-size:clamp(2.7rem,6vw,4.2rem); }
.player-welcome h2 { margin-block:0 .4em; }
.player-welcome .show-art { grid-row:1 / span 2; }
button,.button,.hero button,.hero .quiet {
  color:var(--soft); background:var(--ink); border:2px solid var(--ink);
  border-radius:6px 10px 6px 6px; box-shadow:3px 3px 0 var(--coral);
  line-height:1.28; font-weight:800;
}
button.quiet,.button.quiet,.hero button.quiet {
  background:var(--soft); color:var(--ink); border:2px solid var(--ink); box-shadow:2px 2px 0 var(--ink);
}
.show-modes { display:grid; align-items:stretch; gap:.65rem; grid-template-columns:repeat(3,minmax(0,1fr)); }
.show-modes button { min-height:3.15rem; box-shadow:3px 3px 0 var(--ink); }
.show-modes button:nth-child(2) { background:var(--soft); color:var(--ink); }
.show-modes button:nth-child(3) { background:#3048d8; }
.masthead button.quiet,.recovery>button.quiet,#room-view>p>.button.quiet { background:var(--soft); color:var(--ink); border-color:var(--ink); }
button:disabled { cursor:default; }
input:not([type="checkbox"]),select,textarea { border:2px solid #766f65; border-radius:6px; }
.call-options input[type="radio"],.crown-sides input[type="radio"] {
  appearance:auto; flex:0 0 1.15rem; width:1.15rem; height:1.15rem; min-height:0; padding:0; accent-color:#3048d8;
}
.crown-sides { grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)); }
.crown-sides label { border:2px solid var(--ink); border-radius:8px; box-shadow:2px 2px 0 var(--ink); align-items:start; }
.crown-sides label:has(:checked) { background:#fff1ac; border-color:var(--ink); box-shadow:3px 3px 0 #3048d8; }
.crown-sides label strong { display:inline-block; border-block-end:3px solid var(--coral); }
.crown-sides label:nth-of-type(2) strong { border-block-end:3px double var(--ink); }
.call-options { position:relative; padding:.75rem; margin-block:.5rem; border:2px solid var(--ink); border-radius:8px; background:#fff4cd; }
.call-options legend { padding-inline:.3rem; font-weight:800; }
.call-options label { display:flex; align-items:center; gap:.5rem; min-height:44px; cursor:pointer; }
.call-options .show-art { float:inline-end; }
.show-art-call,.show-art-mic { float:inline-end; width:clamp(3rem,8vw,5rem); margin-inline-start:.55rem; }
.move { display:flow-root; color:var(--ink); background:#ffeec0; border:2px solid var(--ink); border-radius:9px 17px 9px 9px; padding:.8rem 1rem; }
[data-show-move="mic"] { background:#ffe5d8; }
.choice { min-height:3rem; background:var(--soft); color:var(--ink); border:2px solid var(--ink); box-shadow:3px 3px 0 var(--coral); }
.choice:hover { background:#fff0ae; filter:none; }
.note { color:var(--ink); background:#fff1b6; border-inline-start:4px solid #d0a322; border-radius:0 6px 6px 0; }
.meta,.constraints,.pool-card small { color:var(--muted); }
.chips li { background:#f7efda; border:1px solid #c5b9a7; border-radius:1rem; }
.code { color:var(--ink); background:#fff1b6; border:2px solid var(--ink); padding:.12em .2em; border-radius:8px; }
.qr { border:2px solid var(--ink); padding:.35rem; }
.panel:has(>.qr) { container-type:inline-size; }
.panel:has(>.qr) .code,body[data-role="screen"] .panel:has(>.qr) .code {
  font-size:clamp(1.8rem,16cqi,4.9rem); letter-spacing:.09em;
}
.show-clock { display:inline-flex; align-items:baseline; gap:.35em; font-weight:700; background:var(--ink); color:var(--soft); border-radius:.45rem; padding:.35rem .75rem; font-variant-numeric:tabular-nums; }
.show-clock bdi { display:inline-block; min-width:2ch; text-align:center; font-size:1.5em; line-height:1; color:var(--green); }
.show-room-name { display:inline-block; margin-block-end:.65rem; font-weight:800; overflow-wrap:anywhere; color:inherit; }
.reveal-list { gap:.8rem; }
.track { border-radius:4px; border:1px solid var(--ink); background:#eee5d5; height:1rem; }
.bar { background:#3048d8; animation:none; }
.reveal-list>div:nth-child(2n) .bar { background:#ce4a32; }
.reveal-list>div:nth-child(3n) .bar { background:#ae840a; }
.winner-names { animation:none; font-weight:800; }
.winner .show-art-call { width:clamp(4rem,10vw,8rem); background:var(--soft); border:2px solid var(--ink); border-radius:50%; box-shadow:3px 3px 0 var(--ink); }
.winner[data-award="weird"] .show-art-call { background:var(--coral); border-radius:42% 61% 48% 59%; rotate:-7deg; }
.winner[data-award="normal"] .show-art-call { border-radius:12%; background:repeating-linear-gradient(0deg,#fffaf3 0 11px,#cad4f0 11px 13px); }
.winner[data-award="read"] .show-art-call { border-radius:48% 48% 48% 9%; background:#b7c6ff; }
.layout.finale:has(.coronation)>.coronation { grid-row:1; }
.totals { padding-inline-start:1.5rem; font-variant-numeric:tabular-nums; }
.totals li:first-child { background:#fff0af; border-block-end:2px solid var(--ink); }
.live-picker [data-pool-results] { display:grid; gap:.6rem; }
.pool-card { border:1px solid #bfb6a8; padding:.65rem .8rem; border-radius:6px; }
.pool-card .actions:empty { display:none; }
.connection:empty { margin:0; min-height:0; }
:focus-visible { outline:3px solid #3048d8; outline-offset:3px; }
.masthead :focus-visible,.recovery>button:focus-visible { outline-color:var(--green); }
body[data-role="screen"] .meta { font-size:clamp(1.1rem,2.3vw,2.5rem); }
body[data-role="screen"] .panel:has(.meta)>h1,body[data-role="screen"] .show-round h1 { font-size:clamp(2.5rem,5.6vw,6rem); }
body[data-role="screen"] .reveal-list { gap:clamp(.6rem,1.4vh,1.5rem); }
body[data-role="screen"] .track { height:clamp(.85rem,1.8vh,1.5rem); }
@media(min-width:760px) {
  .layout.finale:has(.coronation) { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .layout.finale:has(.coronation)>.coronation { grid-column:2; align-self:stretch; display:grid; place-content:center; }
  .layout.finale:has(.coronation)>.coronation .crown-emblem { justify-self:center; }
  .layout.finale:has(.coronation)>.winner { grid-row:1; grid-column:1; }
  .layout.finale:has(.coronation)>:nth-child(n+3) { grid-column:1 / -1; }
  body[data-role="screen"] .layout.finale:has(.coronation) .winner h1 { font-size:clamp(2rem,4vw,4.5rem); }
  body[data-role="screen"] .layout.finale:has(.coronation) .winner-names { font-size:clamp(2rem,4.6vw,5rem); margin-block:.25em; }
  body[data-role="screen"] .masthead { padding-block:.45rem; font-size:1rem; }
  body[data-role="screen"] main { padding-block:1rem; }
  body[data-role="screen"] .panel { padding:clamp(1rem,1.8vw,2rem); }
  body[data-role="screen"] .show-round .meta { font-size:clamp(1.2rem,1.6vw,1.8rem); margin-block-end:.4rem; }
  body[data-role="screen"] .show-round h1 { font-size:clamp(2.25rem,4.15vw,4.8rem); margin-block-end:.38em; }
  body[data-role="screen"] .show-round .move { margin-block:.5rem 0; font-size:clamp(1.05rem,1.65vw,2rem); }
  body[data-role="screen"] .move h2 { font-size:1.18em; margin-block-end:.2em; }
  body[data-role="screen"] .show-tools { font-size:1rem; margin-block-start:.5rem; }
  body[data-role="screen"] .panel:has(>[data-scoreboard]) {
    display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.4rem 1.1rem;
  }
  body[data-role="screen"] .panel:has(>[data-scoreboard]) > * { grid-column:1 / -1; }
  body[data-role="screen"] .panel > section[data-scoreboard] {
    grid-column:auto; min-width:0; border-block-start:4px solid var(--purple); font-size:clamp(1rem,1.75vw,2rem);
  }
  body[data-role="screen"] [data-scoreboard] h3 { font-size:1.12em; line-height:1.16; margin-block:.42em; }
  body[data-role="screen"] #room-view[data-phase="standings"] .reveal-list { display:none; }
}
@media(min-width:900px) {
  .live-picker [data-pool-results] { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .live-picker [data-pool-results]>:not(.pool-card) { grid-column:1 / -1; }
}
@media(max-width:650px) {
  body { background:var(--navy); }
  .masthead,main,.connection { width:calc(100% - 1.5rem); }
  .show-home { grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); gap:0; min-height:0; }
  .show-home h1 { max-width:12ch; font-size:clamp(2.25rem,8.5vw,3.65rem); }
  .show-home .show-art { grid-row:1; width:120%; max-width:14rem; }
  .show-home>p { grid-column:1 / -1; margin-block:.6rem .2rem; }
  .show-modes { grid-template-columns:1fr; }
  .show-modes button { min-height:2.8rem; }
  .show-art-call,.show-art-mic { width:3rem; }
}
@media(max-width:420px) {
  .brand { gap:.3rem; }
  .masthead>div { gap:.2rem; }
  .masthead button { padding-inline:.55rem; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { transition:none!important; animation:none!important; scroll-behavior:auto!important; }
}


/* Event show: readable rules first, a living stage second. */
.player-welcome { align-items:start; }
.player-welcome>.show-rules-intro { grid-column:1 / -1; grid-row:2; }
.player-welcome>.show-art-welcome { grid-column:2; grid-row:1; max-width:10rem; justify-self:end; }
.show-rules-intro h2 { font-size:clamp(1.6rem,3.3vw,2.45rem); line-height:1.12; margin:.1em 0 .55em; }
.show-rules-intro .show-intro-lead { max-width:68ch; font-weight:800; font-size:clamp(1.05rem,2vw,1.25rem); line-height:1.45; }
.show-intro-steps { list-style:none; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; margin:1rem 0; }
.show-intro-steps li { position:relative; padding:.8rem .9rem; background:#fff9e8; border:2px solid var(--ink); border-radius:9px; box-shadow:3px 3px 0 #3048d8; font-size:clamp(.94rem,1.6vw,1.04rem); line-height:1.5; }
.show-intro-steps li:nth-child(2) { box-shadow:3px 3px 0 var(--coral); }
.show-intro-steps li:nth-child(3) { box-shadow:3px 3px 0 #cfa11c; }
.show-intro-steps li:nth-child(4) { box-shadow:3px 3px 0 var(--ink); }
.show-intro-steps li strong { display:block; font-size:1.04em; margin-block-end:.22em; font-weight:850; }
.show-intro-steps li span { display:block; }
.show-double-hook { display:inline-block; max-width:100%; font-weight:850; border-radius:.5rem; background:#ffecad; padding:.45rem .75rem; margin:.65rem 0; }
.show-ready-hook { font-weight:800; margin:.5rem 0; }
.player-welcome .show-rules-intro p { max-width:70ch; }
#rules-sheet { width:min(48rem,94vw); max-height:86dvh; border:3px solid var(--ink); border-radius:12px 22px 12px 12px; box-shadow:6px 6px 0 var(--coral); }
#rules-sheet .show-rules-intro h2 { margin-block-start:.5rem; }
#rules-sheet .show-rules-details { border-block-start:2px solid var(--ink); padding-block-start:.6rem; margin-block-start:1.1rem; }
#rules-sheet .show-rules-details h3 { font-size:clamp(1.12rem,2vw,1.38rem); margin-block:1.1rem .35rem; }
#rules-sheet .show-rules-details p { line-height:1.55; }
.rules-tip,.prediction-hint { display:block; padding:.55rem .75rem; border-inline-start:4px solid var(--coral); border-radius:.4rem; background:#fff1c6; color:var(--ink); font-weight:750; }
.rules-math { border:1px solid var(--ink); border-radius:8px; padding:.4rem .85rem; background:#f5eedf; margin-block:1.1rem; }
.rules-math summary { font-weight:800; }
.prediction-hint { font-size:.88rem; line-height:1.45; }
.call-help { font-size:.92rem; color:var(--ink); line-height:1.5; margin-block:.35rem .6rem; }
.show-lobby { position:relative; isolation:isolate; min-height:14rem; overflow:hidden; }
.show-lobby>.show-art-welcome { position:absolute; width:clamp(7rem,20vw,12rem); inset-inline-end:.5rem; inset-block-start:.7rem; opacity:.84; }
.show-lobby>.show-art-welcome ~ * { position:relative; z-index:1; }
.show-lobby>.show-room-name { max-width:calc(100% - 10rem); }
.show-lobby::after { content:""; position:absolute; width:13rem; aspect-ratio:1; border:3px dashed #3048d8; border-radius:50%; inset-inline-end:-4rem; inset-block-start:-4rem; opacity:.33; pointer-events:none; }
[data-show-move="mic"] { position:relative; overflow:hidden; isolation:isolate; background:#fce5d4; box-shadow:6px 6px 0 #3048d8; border:3px solid var(--ink); }
[data-show-move="mic"]>* { position:relative; z-index:1; }
[data-show-move="mic"]>.show-art { position:relative; z-index:2; width:clamp(4rem,9vw,7.3rem); }
[data-show-move="mic"]::before { content:""; position:absolute; width:18rem; aspect-ratio:1; border-radius:50%; inset-block-start:-6rem; inset-inline-end:-4rem; background:repeating-conic-gradient(from 0deg,#f2c94c88 0deg 14deg,#fb624633 14deg 30deg); opacity:.8; }
[data-show-move="call"] { position:relative; }
.motion-winner,.motion-double { position:relative; overflow:hidden; isolation:isolate; }
.motion-winner>*:not(.show-confetti),.motion-double>*:not(.show-confetti) { position:relative; z-index:1; }
.show-confetti { position:absolute; inset:0; pointer-events:none; overflow:hidden; z-index:0; }
.show-confetti i { position:absolute; left:50%; top:42%; width:12px; height:22px; background:#3048d8; border:2px solid var(--ink); transform-origin:center; opacity:0; }
.show-confetti i:nth-child(3n) { background:#fb6246; width:18px; height:10px; }
.show-confetti i:nth-child(3n + 1) { background:#f2c94c; border-radius:50%; }
.show-confetti i:nth-child(4n) { background:#fffaf3; }
.winner .winner-names { position:relative; font-size:clamp(3rem,8vw,6.1rem); text-shadow:3px 4px 0 #fffaf3; }
.winner .show-art-call { width:clamp(6rem,14vw,11rem); }
.motion-double .crown-emblem { width:clamp(8rem,20vw,13rem); height:clamp(6rem,13vw,9rem); transform:scale(1.2); margin-block:.8rem; }
@media (max-width:650px) {
  .show-intro-steps { grid-template-columns:1fr; gap:.65rem; }
  .show-lobby>.show-art-welcome { width:7rem; opacity:.6; }
  .show-lobby>.show-room-name { max-width:calc(100% - 5.2rem); }
  #rules-sheet { padding:.8rem 1rem 1rem; }
}
@media (prefers-reduced-motion:no-preference) {
  .show-art-welcome .art-front { animation:event-hover 4.5s ease-in-out infinite; }
  .show-art-welcome .art-middle { animation:event-drift 5.8s ease-in-out infinite; }
  .show-art-welcome .art-sticker { animation:event-sticker-bob 2.3s ease-in-out infinite; }
  .show-art-welcome .art-sparks { animation:event-sparkle 1.4s ease-in-out infinite alternate; }
  .show-lobby::after { animation:event-turn 16s linear infinite; }
  .show-home .actions button,.crown-sides label,.choice,.show-modes button { transition:transform 180ms ease,box-shadow 180ms ease,background 180ms ease; }
  .choice:hover,.show-modes button:hover,.crown-sides label:hover { transform:translateY(-3px) rotate(-.7deg); box-shadow:5px 6px 0 var(--ink); }
  .choice:active,.show-modes button:active,.crown-sides label:active { transform:translateY(1px) scale(.98); }
  .motion-welcome { animation:event-stage-in 700ms cubic-bezier(.2,.8,.25,1) both; }
  .motion-question { animation:event-question-enter 840ms cubic-bezier(.15,.83,.25,1.08) both; }
  .motion-answer { animation:event-call-pop 480ms cubic-bezier(.2,.8,.2,1.2) both; }
  .motion-reveal .bar { animation:event-fill 950ms cubic-bezier(.18,.82,.25,1) both; animation-delay:var(--bar-delay,0ms); transform-origin:left; }
  [dir="rtl"] .motion-reveal .bar { transform-origin:right; }
  .motion-reveal .bar-label bdi { animation:event-number-reveal 580ms cubic-bezier(.15,.8,.2,1.1) both; }
  .motion-reveal>div:nth-child(2) .bar-label bdi { animation-delay:100ms; }
  .motion-reveal>div:nth-child(3) .bar-label bdi { animation-delay:200ms; }
  .motion-call-hit { animation:event-call-pop 680ms cubic-bezier(.12,.8,.18,1.25) both; box-shadow:0 0 0 5px #f2c94c,5px 5px 0 var(--ink); }
  .motion-call-miss { animation:event-call-miss 580ms ease-out both; }
  .motion-mic { animation:event-mic-entrance 950ms cubic-bezier(.12,.8,.18,1.12) both; }
  .motion-mic::before { animation:event-turn 18s linear infinite; }
  .motion-winner { animation:event-winner-enter 950ms cubic-bezier(.17,.82,.28,1.2) both; }
  .motion-winner .winner-names { animation:event-title-bounce 1100ms cubic-bezier(.1,.85,.3,1.1) both; }
  .motion-double { animation:event-winner-enter 900ms ease-out both; }
  .motion-double h2 { animation:event-title-bounce 1500ms cubic-bezier(.12,.8,.25,1) both; }
  .motion-double .crown-emblem { animation:event-crown-glow 1700ms ease-in-out 2 alternate; }
  .show-confetti i { animation:event-confetti 1700ms ease-out both; animation-delay:calc(var(--i) * 40ms); }
  .show-confetti-double i { animation-duration:2400ms; }
  @keyframes event-hover { 0%,100% { translate:0 0; } 50% { translate:0 -10px; } }
  @keyframes event-drift { 0%,100% { translate:0 0; } 50% { translate:5px 8px; } }
  @keyframes event-sticker-bob { 0%,100% { translate:0 0; rotate:-4deg; } 50% { translate:0 -16px; rotate:8deg; } }
  @keyframes event-sparkle { from { opacity:.5; } to { opacity:1; } }
  @keyframes event-turn { to { transform:rotate(360deg); } }
  @keyframes event-stage-in { from { opacity:.2; translate:0 18px; } to { opacity:1; translate:0 0; } }
  @keyframes event-question-enter { 0% { opacity:0; translate:0 46px; rotate:-2deg; scale:.94; } 78% { opacity:1; translate:0 -6px; rotate:1deg; scale:1.03; } 100% { translate:0 0; rotate:0deg; scale:1; } }
  @keyframes event-fill { from { scale:0 1; } to { scale:1 1; } }
  @keyframes event-number-reveal { from { opacity:0; scale:.6; } to { opacity:1; scale:1; } }
  @keyframes event-call-pop { 0% { opacity:.4; scale:.76; rotate:-4deg; } 70% { opacity:1; scale:1.07; rotate:2deg; } 100% { scale:1; rotate:0deg; opacity:1; } }
  @keyframes event-call-miss { 0%,100% { translate:0 0; } 28% { translate:-6px 0; } 58% { translate:6px 0; } 82% { translate:-3px 0; } }
  @keyframes event-mic-entrance { 0% { opacity:0; scale:.85; translate:0 32px; rotate:2deg; } 72% { opacity:1; scale:1.06; translate:0 -5px; rotate:-1deg; } 100% { scale:1; translate:0 0; rotate:0deg; } }
  @keyframes event-winner-enter { 0% { opacity:0; scale:.72; rotate:-3deg; } 70% { opacity:1; scale:1.055; rotate:1deg; } 100% { scale:1; rotate:0deg; opacity:1; } }
  @keyframes event-title-bounce { 0% { opacity:0; translate:0 48px; scale:.72; } 70% { opacity:1; translate:0 -8px; scale:1.12; } 100% { opacity:1; translate:0 0; scale:1; } }
  @keyframes event-crown-glow { from { filter:drop-shadow(0 0 0 #f2c94c); } to { filter:drop-shadow(0 0 16px #f2c94c); } }
  @keyframes event-confetti { 0% { opacity:0; transform:rotate(var(--angle)) translateX(0) scale(.3); } 15% { opacity:1; } 72% { opacity:1; } 100% { opacity:0; transform:rotate(var(--angle)) translateX(clamp(6rem,22vw,17rem)) rotate(180deg); } }
}

@media (prefers-reduced-motion:no-preference) {
  .masthead .brand img { transform-origin:50% 70%; animation:event-logo-cheer 5.2s ease-in-out infinite; }
  @keyframes event-logo-cheer {
    0%,78%,100% { rotate:0deg; scale:1; }
    83% { rotate:-9deg; scale:1.14; }
    90% { rotate:8deg; scale:1.08; }
    95% { rotate:-3deg; scale:1.02; }
  }
}


/* One explicit numeric prediction control instead of a competing dial and slider. */
[data-form="predict"] .count-choice {
  display:flex; align-items:center; gap:.8rem; padding:.5rem .65rem;
  background:#fffaf3; border:2px solid var(--ink); border-radius:12px;
  box-shadow:4px 4px 0 var(--coral);
  max-width:22rem;
}
[data-form="predict"] .count-choice select {
  flex:1; min-width:6rem; max-width:10rem; font-size:clamp(1.5rem,4vw,2.3rem);
  font-weight:900; text-align:center; padding:.2rem .65rem;
  border:2px solid var(--ink); border-radius:9px;
  background:white; color:var(--ink); cursor:pointer; font-variant-numeric:tabular-nums;
}
[data-form="predict"] .count-choice bdi { font-size:1rem; font-weight:800; }
.guess-reveal { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; margin:1rem 0; }
.guess-reveal>div { display:grid; justify-items:center; gap:.35rem; border:3px solid var(--ink); border-radius:12px; padding:.7rem;
  background:#dbe4ff; box-shadow:4px 4px 0 var(--ink); }
.guess-reveal>div:nth-child(2) { background:#ffe3d9; }
.guess-reveal span { font-weight:800; font-size:.94rem; text-align:center; }
.guess-reveal strong { font-size:clamp(2.2rem,7vw,4.7rem); line-height:1.1; font-variant-numeric:tabular-nums; }
@media (prefers-reduced-motion:no-preference) {
  .guess-reveal>div { animation:event-count-result 680ms cubic-bezier(.15,.8,.23,1.08) backwards; }
  .guess-reveal>div:nth-child(2) { animation-delay:190ms; }
  @keyframes event-count-result {
    from { opacity:0; translate:0 30px; scale:.75; }
    80% { opacity:1; translate:0 -5px; scale:1.07; }
    to { opacity:1; translate:0 0; scale:1; }
  }
}


/* Core value first: place in the crowd, personal declaration, proof through play. */
.show-home>h1 { max-width:15ch; font-size:clamp(2.4rem,6vw,5.8rem); }
.show-home>.show-home-explainer { max-width:58ch; font-size:clamp(1.05rem,1.8vw,1.25rem); line-height:1.5; font-weight:700; }
.show-home>.show-example { grid-column:1 / -1; margin-block:1.1rem 1.3rem; }
.show-home>.show-art-welcome { align-self:start; grid-row:1 / 3; max-width:19rem; }
.show-game-pitch { grid-column:1 / -1; grid-row:2; }
.show-game-pitch h2 { font-size:clamp(1.65rem,3.5vw,2.45rem); margin-block:.2rem .5rem; }
.show-game-pitch>.show-pitch-explainer { max-width:69ch; line-height:1.55; font-weight:750; }
.show-pitch-promise { font-weight:800; margin-block:.95rem 0; }
.player-welcome>.show-art-welcome { grid-column:2; grid-row:1; }
.player-welcome>.show-game-pitch { position:relative; z-index:1; }
.player-welcome>h1 .room-intro-label { display:inline-block; max-width:100%; font-size:clamp(1.5rem,3.4vw,2.35rem); line-height:1.2; }
.show-crown-eyebrow { font-weight:850; font-size:.91rem; letter-spacing:.03em; color:var(--ink); opacity:.8; }
.show-example { position:relative; border:2px solid var(--ink); background:#fffaf3; border-radius:12px; padding:.85rem 1rem 1rem; box-shadow:4px 4px 0 var(--purple); color:var(--ink); }
.show-example .example-tag { display:inline-block; font-size:.72rem; line-height:1.2; letter-spacing:.05em; text-transform:uppercase; font-weight:850; padding:.3rem .6rem; color:#fff; background:var(--purple); border-radius:100px; }
.show-example .example-question { font-size:clamp(1rem,1.8vw,1.25rem); font-weight:800; margin:.6rem 0 .8rem; }
.example-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.6rem; }
.example-steps>span { position:relative; display:grid; gap:.1rem; min-width:0; padding:.6rem .7rem; border:2px solid var(--ink); border-radius:8px; background:#ffecad; }
.example-steps>span:nth-child(2) { background:#dbe4ff; }
.example-steps>span:nth-child(3) { background:#ffe1d7; }
.example-steps small { display:block; font-size:clamp(.74rem,1.4vw,.9rem); line-height:1.35; font-weight:700; color:var(--ink); }
.example-steps strong { font-size:clamp(1.35rem,2.5vw,2rem); line-height:1.2; font-weight:900; }
.show-example .example-insight { font-size:clamp(.91rem,1.5vw,1.06rem); line-height:1.4; font-weight:850; margin:.7rem 0 0; padding:.25rem 0; color:var(--ink); }
.declaration-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; margin:0; }
.declaration-choices legend { font-size:clamp(1.3rem,2.7vw,1.9rem); font-weight:900; }
.declaration-choices>.declaration-prompt,.declaration-choices>.declaration-lock { grid-column:1/-1; font-weight:750; margin:.15rem 0 .35rem; }
.declaration-choices .declaration-option { display:flex; gap:.65rem; align-items:start; margin:0; padding:1rem; background:#fffaf3; cursor:pointer; }
.declaration-choices .declaration-option:has(:checked) { background:#ffebae; box-shadow:5px 5px 0 var(--purple); }
.declaration-choices .declaration-option>span { display:grid; gap:.35rem; }
.declaration-choices .declaration-option strong { font-size:clamp(1.12rem,2vw,1.4rem); }
.declaration-statement { font-size:clamp(1.02rem,1.8vw,1.2rem); font-weight:800; line-height:1.35; }
.declaration-choices small { line-height:1.4; color:var(--muted); }
.declaration-choices>.declaration-lock { font-size:.89rem; font-weight:700; color:var(--muted); }
.declaration-feedback { font-size:1.05rem; line-height:1.4; font-weight:850; padding:.6rem .75rem; border-inline-start:4px solid var(--purple); border-radius:5px; background:#fff0be; }
@media(max-width:700px) {
  .show-home>.show-art-welcome { max-width:8rem; }
  .show-home>h1 { font-size:clamp(2.1rem,9vw,3.6rem); }
  .show-home>.show-example { margin-block:.75rem 1rem; }
  .declaration-choices { grid-template-columns:1fr; }
}
@media(max-width:480px) {
  .example-steps { grid-template-columns:1fr; }
  .example-steps>span { grid-template-columns:minmax(0,1fr) auto; align-items:center; }
  .example-steps>span small { font-size:.83rem; }
  .example-steps strong { font-size:1.3rem; }
}
@media(prefers-reduced-motion:no-preference) {
  .show-example .example-steps>span { animation:example-card-enter .52s cubic-bezier(.15,.8,.25,1.1) both; }
  .show-example .example-steps>span:nth-child(2) { animation-delay:.15s; }
  .show-example .example-steps>span:nth-child(3) { animation-delay:.3s; }
  @keyframes example-card-enter { from { opacity:0; transform:translateY(15px) scale(.94); } to { opacity:1; transform:none; } }
}

/* Call the Crowd — choice and crown are independent, with no extra screen. */
.crowd-help { border:2px solid #171713; background:#f2c94c; padding:.7rem 1rem; border-radius:12px; color:#171713; }
.crowd-help p { margin:.3rem 0 0; font-size:.9rem; }
.crowd-choice { display:flex; gap:.5rem; align-items:stretch; }
.crowd-answer,.crowd-call-option { position:relative; cursor:pointer; display:flex; align-items:center; border:2px solid #171713; border-radius:10px; padding:.7rem; background:#fffaf3; color:#171713; }
.crowd-answer { flex:1; min-width:0; gap:.5rem; font-weight:700; }
.crowd-answer input,.crowd-call-option input { position:absolute; width:1px; height:1px; opacity:0; }
.crowd-answer:has(input:checked) { background:#3048d8; color:#fffaf3; box-shadow:3px 3px 0 #171713; }
.crowd-call-option { min-width:48px; min-height:48px; justify-content:center; font-size:1.65rem; color:#7d6a48; }
.crowd-call-option:has(input:checked) { background:#f2c94c; color:#171713; box-shadow:3px 3px 0 #171713; }
.crowd-answer:focus-within,.crowd-call-option:focus-within { outline:3px solid #3048d8; outline-offset:2px; }
.crowd-skip { font-size:.9rem; }
.reveal-row { position:relative; }
.crowd-reveal-crown { position:absolute; inset-inline-end:1rem; bottom:0; font-size:1.8rem; z-index:2; line-height:1; pointer-events:none; filter:drop-shadow(1px 2px 0 #171713); }
.crowd-reveal-crown[data-crowd-crown="miss"] { opacity:.45; }
.crowd-reveal-crown[data-crowd-crown="hit"] { color:#f2c94c; }
.crowd-verdict { font-weight:800; }
.reveal-row .show-confetti { pointer-events:none; }
@media (prefers-reduced-motion: reduce) { .crowd-reveal-crown { animation:none!important; transition:none!important; } }
