@font-face{font-family:Lalezar;src:url(/fonts/lalezar-arabic-400-normal.woff2) format("woff2");font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:Lalezar;src:url(/fonts/lalezar-latin-400-normal.woff2) format("woff2");font-display:swap}
@font-face{font-family:Readex;src:url(/fonts/readex-pro-arabic-wght-normal.woff2) format("woff2");font-weight:160 700;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:Readex;src:url(/fonts/readex-pro-latin-wght-normal.woff2) format("woff2");font-weight:160 700;font-display:swap}

:root{
  --ink:#150d33;--ink2:#1c1242;--panel:#251958;--panel2:#31226f;--line:#44338f;--text:#fff8ee;--mute:#b9add9;
  --sun:#ffc530;--coral:#ff5a5f;--teal:#19c7b0;--violet:#9b6dff;--lime:#a3e635;--sky:#38bdf8;--pink:#ff5fa2;--orange:#ff8a3d;
  --ok:#2fd67b;--bad:#ff5a5f;--t0:#38bdf8;--t1:#ff8a3d;--t2:#4ade80;--t3:#c084fc;
  --mc:var(--sun);
  --e-out:cubic-bezier(.05,.7,.1,1);--e-std:cubic-bezier(.2,0,0,1);--e-back:cubic-bezier(.34,1.56,.64,1);
  --lip:0 .38rem 0 rgba(0,0,0,.38);
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html{font-size:16px;height:100%}
body{font-family:Readex,system-ui,sans-serif;font-weight:500;color:var(--text);background:var(--ink);height:100%;overflow:hidden;line-height:1.55;-webkit-user-select:none;user-select:none;touch-action:manipulation;overscroll-behavior:none}
body.host{cursor:default}
html.host{font-size:min(.8333vw,1.4815vh)}
html.phone{font-size:clamp(14px,4.1vw,19px)}
button,input{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
img{display:block}
.num,.disp{font-family:Lalezar,Readex,sans-serif;font-weight:400;line-height:1.15}
.num{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums}
bdi{unicode-bidi:isolate}

/* ---------- background ---------- */
#bg{position:fixed;inset:0;z-index:0;background:
  radial-gradient(60rem 40rem at 85% -10%,color-mix(in srgb,var(--mc) 32%,transparent),transparent 70%),
  radial-gradient(50rem 40rem at 0% 110%,rgba(155,109,255,.30),transparent 70%),var(--ink);transition:background .6s}
#bg::after{content:"";position:absolute;inset:-10%;opacity:.07;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M48 8l12 28 28 12-28 12-12 28-12-28L8 48l28-12z'/%3E%3Crect x='28' y='28' width='40' height='40' transform='rotate(45 48 48)'/%3E%3C/g%3E%3C/svg%3E");background-size:6rem 6rem;animation:drift 80s linear infinite}
@keyframes drift{to{transform:translate3d(6rem,6rem,0)}}
#app{position:relative;z-index:1;height:100%;display:flex;flex-direction:column}
#fx{position:fixed;inset:0;z-index:40;pointer-events:none;width:100%;height:100%}
#fly{position:fixed;inset:0;z-index:35;pointer-events:none;overflow:hidden}

/* ---------- atoms ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5em;min-height:3.4rem;padding:.6rem 1.5rem;border-radius:1.15rem;background:var(--panel2);color:var(--text);font-weight:700;font-size:1.12rem;box-shadow:var(--lip);transition:transform .09s,box-shadow .09s,filter .15s;position:relative}
.btn:active:not(:disabled),.opt:active:not(:disabled),.cell:active:not(:disabled),.tile:active:not(:disabled){transform:translateY(.28rem);box-shadow:0 .1rem 0 rgba(0,0,0,.38)}
.btn:disabled{opacity:.45;cursor:default}
.btn.sun{background:var(--sun);color:#2a1a00}.btn.ok{background:var(--ok);color:#06301a}.btn.bad{background:var(--bad);color:#3a0507}.btn.sky{background:var(--sky);color:#04293a}.btn.mc{background:var(--mc);color:#1b1140}
.btn.big{min-height:4.4rem;font-size:1.45rem;border-radius:1.4rem;padding:.8rem 2rem;font-family:Lalezar,Readex;font-weight:400}
.btn.wide{width:100%}
.btn.ghost{background:transparent;box-shadow:inset 0 0 0 .14rem var(--line)}
.btn svg{width:1.4em;height:1.4em;flex:none}
.chip{display:inline-flex;align-items:center;gap:.4em;padding:.28rem .85rem;border-radius:99rem;background:var(--panel2);font-size:.92rem;font-weight:600;white-space:nowrap}
.chip.mc{background:var(--mc);color:#1b1140}.chip.sun{background:var(--sun);color:#2a1a00}.chip.line{background:transparent;box-shadow:inset 0 0 0 .12rem var(--line);color:var(--mute)}
.chip svg{width:1.1em;height:1.1em}
.av{--s:2.6rem;position:relative;display:inline-flex;flex-direction:column;align-items:center;gap:.15rem;flex:none}
.av img{width:var(--s);height:var(--s);border-radius:32%;box-shadow:0 0 0 .16rem var(--tc,#fff3),0 .22rem 0 rgba(0,0,0,.35);background:#0003}
.av b{font-size:.72rem;font-weight:600;max-width:calc(var(--s) + 1.6rem);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.av.off img{filter:grayscale(1) brightness(.6)}
.av.nob b{display:none}
.av.s{--s:1.9rem}.av.l{--s:4rem}.av.xl{--s:6.5rem}
.av.t0{--tc:var(--t0)}.av.t1{--tc:var(--t1)}
.av .bot{position:absolute;top:-.3rem;inset-inline-start:-.3rem;background:var(--panel2);border-radius:50%;width:1.1rem;height:1.1rem;display:grid;place-items:center}
.av .bot svg{width:.75rem;height:.75rem}
.avs{display:flex;flex-wrap:wrap;gap:.45rem;justify-content:center;align-items:flex-start;min-height:1rem}
.pop{animation:pop .42s var(--e-back) both}
@keyframes pop{from{transform:scale(0);opacity:0}to{transform:none;opacity:1}}
.rise{animation:rise .45s var(--e-out) both;animation-delay:calc(var(--i,0)*70ms)}
@keyframes rise{from{transform:translateY(1.6rem);opacity:0}to{transform:none;opacity:1}}
.fade{animation:fade .4s both;animation-delay:var(--d,0s)}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes pulse{50%{transform:scale(1.06)}}
@keyframes shake{10%,90%{transform:translateX(-.2rem)}20%,80%{transform:translateX(.4rem)}30%,50%,70%{transform:translateX(-.7rem)}40%,60%{transform:translateX(.7rem)}}
.shake{animation:shake .6s both}
@keyframes floaty{50%{transform:translateY(-.6rem) rotate(2deg)}}

/* ---------- frame ---------- */
#top{flex:none;display:flex;align-items:center;gap:1rem;padding:calc(.6rem + env(safe-area-inset-top)) max(1rem,env(safe-area-inset-right)) .5rem max(1rem,env(safe-area-inset-left))}
#stage{flex:1;min-height:0;position:relative;display:flex;flex-direction:column}
#bottom{flex:none}
#round-swap{flex:none;align-self:center;padding:.2rem .5rem;text-align:center}
#round-swap .btn{min-height:44px;font-size:.95rem;padding:.25rem .9rem}
.logo{font-family:Lalezar;font-size:2rem;line-height:1;color:var(--sun);text-shadow:0 .2rem 0 rgba(0,0,0,.4);letter-spacing:0}
.logo small{display:block;font-family:Readex;font-size:.62rem;font-weight:600;color:var(--mute);text-shadow:none;margin-top:.15rem}
.scr{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;gap:1rem;padding:.4rem max(1rem,env(safe-area-inset-right)) 1rem max(1rem,env(safe-area-inset-left));overflow-y:auto;overflow-x:hidden;animation:scrIn .38s var(--e-out) both}
@keyframes scrIn{from{opacity:0;transform:translateY(1rem) scale(.985)}to{opacity:1;transform:none}}
.scr.mid,.scr.land{justify-content:safe center}
.scr>*{flex:none}
.grow{flex:1 1 auto!important;min-height:0}
.row{display:flex;gap:.7rem;align-items:center;justify-content:center;flex-wrap:wrap}
.col{display:flex;flex-direction:column;gap:.7rem;align-items:stretch;width:100%}
.h1{font-family:Lalezar;font-size:2.1rem;line-height:1.2;text-align:center;font-weight:400}
.h2{font-family:Lalezar;font-size:1.45rem;line-height:1.25;text-align:center;font-weight:400}
.sub{color:var(--mute);font-size:.95rem;text-align:center}
.card{background:var(--panel);border-radius:1.5rem;padding:1.1rem 1.2rem;box-shadow:var(--lip);width:100%}
.tbar{height:.55rem;border-radius:99rem;background:#0005;overflow:hidden;width:100%;flex:none}
.tbar i{display:block;height:100%;width:100%;background:var(--mc);border-radius:99rem;transform-origin:right;will-change:transform}
.tbar.hot i{background:var(--coral)}
.tnum{font-family:Lalezar;font-size:1.5rem;min-width:2.2ch;text-align:center;direction:ltr}
.tnum.hot{color:var(--coral);animation:pulse .5s infinite}
.banner{display:flex;align-items:center;gap:.7rem;background:var(--panel);border-radius:99rem;padding-block:.4rem;padding-inline:.55rem 1.2rem;font-weight:700;box-shadow:var(--lip);max-width:100%}
.banner.me{background:var(--mc);color:#1b1140;animation:pulse 1.2s 2}
.banner .av b{display:none}
.wait{display:flex;flex-direction:column;align-items:center;gap:.6rem;text-align:center;color:var(--mute);font-weight:600}
.wait img{width:7rem;animation:floaty 3s ease-in-out infinite}
.dots i{display:inline-block;width:.5rem;height:.5rem;border-radius:50%;background:currentColor;margin:0 .18rem;animation:dot 1.1s infinite}
.dots i:nth-child(2){animation-delay:.15s}.dots i:nth-child(3){animation-delay:.3s}
@keyframes dot{0%,80%,100%{transform:scale(.5);opacity:.4}40%{transform:scale(1);opacity:1}}

/* question */
.qcard{background:var(--panel);border-radius:1.6rem;padding:1.1rem 1.3rem 1.25rem;box-shadow:var(--lip);width:100%;text-align:center;position:relative}
.qmeta{display:flex;gap:.45rem;justify-content:center;flex-wrap:wrap;margin-bottom:.6rem}
.qtext{font-size:1.32rem;font-weight:700;line-height:1.5;text-wrap:balance}
.qtext .blank{display:inline-block;min-width:4.5rem;border-bottom:.22rem dashed var(--mc);margin:0 .3rem;color:var(--mc);padding:0 .4rem}
.opts{display:grid;grid-template-columns:1fr;gap:.7rem;width:100%}
.opt{--c:var(--panel2);display:flex;align-items:center;gap:.8rem;min-height:3.7rem;padding:.6rem .9rem;border-radius:1.2rem;background:var(--c);box-shadow:var(--lip);text-align:start;font-weight:700;font-size:1.1rem;transition:transform .09s,box-shadow .09s,opacity .3s,background .3s;position:relative;width:100%}
.opt .k{flex:none;width:2.2rem;height:2.2rem;border-radius:.75rem;background:var(--kc,#fff2);color:#1b1140;display:grid;place-items:center;font-family:Lalezar;font-size:1.25rem}
.opt:nth-child(1){--kc:var(--sun)}.opt:nth-child(2){--kc:var(--sky)}.opt:nth-child(3){--kc:var(--pink)}.opt:nth-child(4){--kc:var(--lime)}.opt:nth-child(5){--kc:var(--orange)}.opt:nth-child(6){--kc:var(--violet)}
.opt .t{flex:1;min-width:0}
.opt .who{display:flex;gap:.25rem;flex-wrap:wrap;justify-content:flex-end;max-width:45%}
.opt.sel{background:var(--text);color:#1b1140;box-shadow:0 .38rem 0 var(--mc)}
.opt.ok{background:var(--ok);color:#06301a;animation:okpop .5s var(--e-back)}
.opt.bad{background:var(--bad);color:#fff}
.opt.dim{opacity:.38}
.opt.gone{opacity:.15;pointer-events:none;transform:scale(.97)}
.opt:disabled{cursor:default}
@keyframes okpop{40%{transform:scale(1.05)}}
.gain{font-family:Lalezar;font-size:1.5rem;direction:ltr;unicode-bidi:isolate;color:var(--ok)}
.gain.neg{color:var(--bad)}
.field{display:flex;gap:.6rem;width:100%}
.qadha-list{display:grid;gap:.45rem;width:100%;max-width:38rem}
.qadha-chips{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;overflow-wrap:anywhere}
.qadha-chips .chip{max-width:100%;white-space:normal}
.qadha-standing{border:2px solid #111;border-radius:.8rem;padding:.45rem .65rem;background:var(--panel);color:#111}
.qadha-standing summary{display:flex;align-items:baseline;gap:.6rem;cursor:pointer}
.qadha-standing summary::before{content:'▸'}
html[dir="rtl"] .qadha-standing:not([open]) summary::before{content:'◂'}
.qadha-standing[open] summary::before{content:'▾'}
.qadha-standing summary b:first-of-type{flex:1;overflow-wrap:anywhere}
.qadha-standing .qadha-chips{margin-top:.45rem}
.field input{flex:1;min-width:0;height:3.6rem;border-radius:1.1rem;border:.16rem solid var(--line);background:var(--ink2);padding:0 1rem;font-size:1.25rem;font-weight:700;outline:none;text-align:center;-webkit-user-select:text;user-select:text}
.field input:focus{border-color:var(--mc)}
.stamp{display:inline-block;font-family:Lalezar;font-size:1.3rem;padding:.1rem .9rem;border-radius:.7rem;border:.2rem solid currentColor;transform:rotate(-6deg);animation:stamp .45s var(--e-back) both;animation-delay:var(--d,0s)}
@keyframes stamp{from{transform:scale(3) rotate(-20deg);opacity:0}to{transform:rotate(-6deg);opacity:1}}
.stamp.ok{color:var(--ok)}.stamp.bad{color:var(--bad)}.stamp.sun{color:var(--sun)}

/* ---------- lobby ---------- */
.code{display:flex;gap:.5rem;direction:ltr;justify-content:center}
.code span{font-family:Lalezar;font-size:3rem;width:1.35em;height:1.45em;display:grid;place-items:center;background:var(--text);color:var(--ink);border-radius:.9rem;box-shadow:0 .4rem 0 var(--sun)}
.qr{background:#fff;border-radius:1.6rem;padding:.9rem;box-shadow:var(--lip)}
.qr svg{display:block;width:100%;height:100%}
.seg{display:flex;gap:.45rem;flex-wrap:wrap;justify-content:center}
.seg button{padding:.5rem 1rem;border-radius:99rem;background:var(--panel2);font-weight:700;font-size:.98rem;min-height:2.75rem;box-shadow:0 .25rem 0 rgba(0,0,0,.35);display:inline-flex;align-items:center;gap:.4rem;transition:transform .09s}
.seg button:active{transform:translateY(.2rem)}
.seg button.on{background:var(--sun);color:#2a1a00}
.seg button img{width:1.7rem;height:1.7rem}
.set{width:100%;display:flex;flex-direction:column;gap:.45rem;align-items:center}
.set>label{font-size:.8rem;color:var(--mute);font-weight:600}
.avpick{display:grid;grid-template-columns:repeat(6,1fr);gap:.5rem;width:100%}
.avpick button{border-radius:28%;overflow:hidden;aspect-ratio:1;opacity:.55;transition:transform .15s var(--e-back),opacity .15s;box-shadow:0 .2rem 0 rgba(0,0,0,.35)}
.avpick button img{width:100%;height:100%}
.avpick button.on{opacity:1;transform:scale(1.12);box-shadow:0 0 0 .2rem var(--sun)}
.avpick button.tk{opacity:.18;pointer-events:none}
.teams{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;width:100%}
.team{border-radius:1.4rem;padding:.8rem;background:var(--panel);box-shadow:var(--lip);border-top:.45rem solid var(--tc);display:flex;flex-direction:column;gap:.6rem;align-items:center;min-height:7rem}
.team.t0{--tc:var(--t0)}.team.t1{--tc:var(--t1)}
.team h3{font-family:Lalezar;font-weight:400;font-size:1.3rem;color:var(--tc)}
.team.on{background:var(--panel2);box-shadow:0 0 0 .2rem var(--tc),var(--lip)}

/* ---------- intro / scores / final ---------- */
.intro{justify-content:center;gap:1.2rem}
.intro .emb{width:11rem;animation:embIn .7s var(--e-back) both,floaty 3s ease-in-out .7s infinite}
@keyframes embIn{from{transform:scale(0) rotate(-40deg)}to{transform:none}}
.intro .h1{font-size:3rem;color:var(--mc);text-shadow:0 .25rem 0 rgba(0,0,0,.4)}
.how{display:flex;flex-direction:column;gap:.55rem;width:100%;max-width:34rem}
.how div{background:var(--panel);border-radius:1.1rem;padding:.65rem 1rem;display:flex;gap:.8rem;align-items:center;font-weight:700;box-shadow:var(--lip)}
.how div i{font-style:normal;flex:none;width:2rem;height:2rem;border-radius:50%;background:var(--mc);color:#1b1140;display:grid;place-items:center;font-family:Lalezar;font-size:1.15rem}
.lb{display:flex;flex-direction:column;gap:.55rem;width:100%;max-width:44rem}
.lbrow{display:flex;align-items:center;gap:.8rem;background:var(--panel);border-radius:1.2rem;padding:.5rem .9rem;box-shadow:var(--lip);border-inline-start:.5rem solid var(--tc,var(--line))}
.lbrow .rk{font-family:Lalezar;font-size:1.5rem;width:1.6rem;text-align:center;color:var(--mute)}
.lbrow:first-child .rk{color:var(--sun)}
.lbrow .nm{flex:1;font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start}
.lbrow .sc{font-family:Lalezar;font-size:1.6rem;direction:ltr}
.lbrow .dl{font-family:Lalezar;font-size:1.05rem;color:var(--ok);direction:ltr;min-width:3.2rem;text-align:center}
.lbrow .dl.neg{color:var(--bad)}
.lbrow.me{background:var(--panel2);box-shadow:0 0 0 .16rem var(--sun),var(--lip)}
.podium{display:flex;flex-direction:column;align-items:center;gap:.5rem}
.podium .crown{width:8rem;animation:embIn .8s var(--e-back) both,floaty 3s ease-in-out .8s infinite}
.podium .wname{font-family:Lalezar;font-size:2.8rem;color:var(--sun);text-shadow:0 .25rem 0 rgba(0,0,0,.4);line-height:1.2;text-align:center}
.awards{display:flex;gap:.7rem;flex-wrap:wrap;justify-content:center;width:100%}
.award{background:var(--panel);border-radius:1.2rem;padding:.6rem 1rem;display:flex;align-items:center;gap:.7rem;box-shadow:var(--lip);font-weight:700}
.award small{display:block;color:var(--mute);font-weight:600;font-size:.78rem}
.award img.ic{width:2.6rem}

/* ---------- board ---------- */
.board{display:grid;grid-template-columns:repeat(2,1fr);gap:.6rem;width:100%}
.cat{background:var(--panel);border-radius:1.1rem;padding:.5rem;display:flex;flex-direction:column;gap:.45rem;box-shadow:var(--lip)}
.cat h4{font-family:Lalezar;font-weight:400;font-size:1.08rem;text-align:center;color:var(--sun);line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cat .cells{display:grid;grid-template-columns:repeat(3,1fr);gap:.35rem}
.cell{position:relative;aspect-ratio:1.25;border-radius:.8rem;background:var(--panel2);font-family:Lalezar;font-size:1.25rem;box-shadow:0 .25rem 0 rgba(0,0,0,.4);display:grid;place-items:center;transition:transform .09s,background .2s;direction:ltr}
.cell.sel{background:var(--sun);color:#2a1a00}
.cell.st1,.cell.st2{background:#0003;box-shadow:none;color:transparent;pointer-events:none}
.cell.st1::after,.cell.st2::after{content:"";position:absolute;inset:26%;border-radius:50%;background:var(--tc,var(--ok));opacity:.9}
.cell.st2::after{background:none;box-shadow:inset 0 0 0 .22rem var(--tc,#fff4);opacity:.5}
.cell .v{position:absolute;top:-.45rem;inset-inline-end:-.3rem;background:var(--coral);color:#fff;border-radius:99rem;min-width:1.35rem;height:1.35rem;font-size:.85rem;display:grid;place-items:center;font-family:Lalezar}
.cell.hot{animation:pulse .5s 3;background:var(--sun);color:#2a1a00}
.board-assists .lifes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;width:100%;max-width:24rem;margin-inline:auto}
.board-assists .lifes .btn{min-width:0;min-height:max(44px,2.5rem);font-size:1rem;line-height:1.3;padding:.35em .45em;border-radius:.75rem}
.board-assists p{margin:.5rem 0 0;font-size:.92rem;font-weight:700;line-height:1.5;text-align:center}
details:not([open]) > :not(summary){display:none!important}
details > summary{-webkit-user-select:none;user-select:none}
.steal{background:var(--coral);color:#fff;animation:pulse .7s infinite}
.x2{background:var(--coral);color:#fff;animation:pop .4s var(--e-back)}

/* ---------- top ten ---------- */
.tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem;width:100%}
.tile{position:relative;min-height:3.2rem;border-radius:1rem;background:var(--panel2);box-shadow:var(--lip);padding:.45rem .6rem;font-weight:700;font-size:1rem;display:flex;align-items:center;justify-content:center;gap:.5rem;text-align:center;transition:transform .09s;line-height:1.3}
.tile:disabled{cursor:default}
.tile.ok{background:var(--ok);color:#06301a}
.tile.trap{background:var(--bad);color:#fff}
.tile.ghost{background:transparent;box-shadow:inset 0 0 0 .12rem var(--line);color:var(--mute)}
.tile.ghost.trap{box-shadow:inset 0 0 0 .14rem var(--bad);color:var(--bad)}
.tile.last{animation:flip .6s var(--e-std) both}
@keyframes flip{from{transform:rotateX(90deg)}to{transform:none}}
.tile .rk{font-family:Lalezar;font-size:.95rem;background:#0003;border-radius:.5rem;padding:0 .4rem;direction:ltr;flex:none}
.tile img{width:1.6rem;flex:none}
.pot{display:flex;align-items:center;gap:.6rem;background:var(--panel);border-radius:1.3rem;padding-block:.35rem;padding-inline:.6rem 1.2rem;box-shadow:var(--lip)}
.pot img{width:3rem}
.pot .num{font-size:2rem;color:var(--sun)}
.pot.boom{animation:shake .6s}
.pot.boom .num{color:var(--bad)}
.duo{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;width:100%}

/* ---------- bluff ---------- */
.rvlist{display:flex;flex-direction:column;gap:.6rem;width:100%}
.rvi{background:var(--panel);border-radius:1.2rem;padding:.65rem .9rem;box-shadow:var(--lip);display:flex;flex-direction:column;gap:.4rem;opacity:.35;animation:rvOn .5s var(--e-out) forwards;animation-delay:var(--d)}
@keyframes rvOn{to{opacity:1}}
.rvi .tx{font-weight:700;font-size:1.12rem}
.rvi .ln{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;min-height:2rem}
.rvi .ln>*{opacity:0;animation:pop .4s var(--e-back) forwards;animation-delay:calc(var(--d) + .7s + var(--j,0)*.18s)}
.rvi .ln .stamp{animation-name:stamp;animation-delay:calc(var(--d) + 1.7s)}
.rvi.truth{animation-name:rvTruth}
@keyframes rvTruth{to{opacity:1;background:#124a35;box-shadow:0 0 0 .2rem var(--ok),var(--lip)}}

/* ---------- percent ---------- */
.gauge{position:relative;width:100%;height:4.2rem;border-radius:1.3rem;background:var(--ink2);box-shadow:inset 0 0 0 .16rem var(--line);overflow:visible;direction:ltr;margin:2.6rem 0 1.4rem}
.gauge .fill{position:absolute;inset:0;border-radius:1.3rem;overflow:hidden}
.gauge .fill i{display:block;height:100%;width:100%;background:linear-gradient(90deg,var(--sky),var(--violet));transform-origin:left;transform:scaleX(var(--p,0));transition:transform 2.2s var(--e-out)}
.gauge .mk{position:absolute;top:-2.5rem;bottom:-.4rem;width:.3rem;background:var(--text);border-radius:99rem;left:calc(var(--x)*1%);transform:translateX(-50%);transition:left .25s}
.gauge .mk b{position:absolute;top:-.3rem;left:50%;transform:translate(-50%,-50%);background:var(--text);color:var(--ink);border-radius:.7rem;padding:0 .55rem;font-family:Lalezar;font-size:1.25rem;white-space:nowrap;font-weight:400}
.gauge .mk.truth{background:var(--sun);top:auto;bottom:-2.5rem;height:calc(100% + 2.9rem)}
.gauge .mk.truth b{top:auto;bottom:-.3rem;transform:translate(-50%,50%);background:var(--sun);color:#2a1a00}
.gauge .sc{position:absolute;inset:0;display:flex;justify-content:space-between;align-items:center;padding:0 .7rem;color:var(--mute);font-family:Lalezar;pointer-events:none}
input[type=range].sl{-webkit-appearance:none;appearance:none;width:100%;height:3.4rem;background:transparent;direction:ltr;touch-action:none}
input[type=range].sl::-webkit-slider-runnable-track{height:1.1rem;border-radius:99rem;background:linear-gradient(90deg,var(--sky),var(--violet))}
input[type=range].sl::-webkit-slider-thumb{-webkit-appearance:none;width:3rem;height:3rem;border-radius:50%;background:var(--text);margin-top:-.95rem;box-shadow:0 .3rem 0 rgba(0,0,0,.4),inset 0 0 0 .5rem var(--sun)}
input[type=range].sl::-moz-range-track{height:1.1rem;border-radius:99rem;background:linear-gradient(90deg,var(--sky),var(--violet))}
input[type=range].sl::-moz-range-thumb{width:3rem;height:3rem;border-radius:50%;background:var(--text);border:.5rem solid var(--sun)}
.bigpct{font-family:Lalezar;font-size:4.5rem;line-height:1;direction:ltr;color:var(--sun);text-shadow:0 .3rem 0 rgba(0,0,0,.4)}
.sides{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;width:100%}
.sidebox{background:var(--panel);border-radius:1.2rem;padding:.6rem;display:flex;flex-direction:column;align-items:center;gap:.4rem;box-shadow:var(--lip);min-height:5rem}
.sidebox.win{box-shadow:0 0 0 .2rem var(--ok),var(--lip)}
.sidebox h5{font-family:Lalezar;font-weight:400;font-size:1.1rem;display:flex;gap:.3rem;align-items:center}
.sidebox h5 svg{width:1.2rem;height:1.2rem}

/* ---------- majority ---------- */
.bars{display:flex;flex-direction:column;gap:.55rem;width:100%}
.bar{position:relative;background:var(--panel);border-radius:1.1rem;padding:.55rem .8rem;box-shadow:var(--lip);overflow:hidden;display:flex;align-items:center;gap:.6rem;min-height:3.3rem}
.bar i{position:absolute;inset:0;background:var(--panel2);transform-origin:right;transform:scaleX(0);animation:grow 1s var(--e-out) forwards;animation-delay:calc(.5s + var(--i)*.12s)}
@keyframes grow{to{transform:scaleX(var(--p))}}
.bar.top i{background:#1d7a52}
.bar>*{position:relative}
.bar .t{font-weight:700;flex:1;min-width:0}
.bar .n{font-family:Lalezar;font-size:1.3rem}
.sheep{width:2.2rem;animation:sheepIn 1s var(--e-back) both;animation-delay:2s}
@keyframes sheepIn{from{transform:translate(8rem,-6rem) rotate(40deg) scale(2);opacity:0}to{transform:none;opacity:1}}

/* ---------- number ---------- */
.nums{display:flex;flex-direction:column;gap:.5rem;width:100%}
.nrow{display:flex;align-items:center;gap:.7rem;background:var(--panel2);border-radius:1.1rem;padding:.45rem .8rem;box-shadow:var(--lip);min-height:3.5rem;width:100%;text-align:start;transition:transform .09s}
.nrow .num{font-size:1.6rem;flex:1}
.nrow.sel{background:var(--text);color:#1b1140}
.nrow.win{background:var(--ok);color:#06301a;animation:okpop .5s var(--e-back) 2.2s both}
.nrow .who{display:flex;gap:.2rem}
.truthnum{font-family:Lalezar;font-size:4rem;line-height:1.1;color:var(--sun);direction:ltr;text-shadow:0 .3rem 0 rgba(0,0,0,.4)}
.unit{font-size:1.1rem;color:var(--mute);font-weight:700}

/* ---------- final ---------- */
.mystery{background:linear-gradient(135deg,var(--panel2),var(--panel));border-radius:1.6rem;padding:1.4rem;text-align:center;box-shadow:var(--lip);width:100%;border:.18rem dashed var(--mc)}
.mystery .h1{color:var(--mc)}
.bids{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;width:100%}
.bids .btn{flex-direction:column;gap:0;min-height:5rem;font-family:Lalezar;font-size:1.9rem;font-weight:400}
.bids .btn small{font-family:Readex;font-size:.72rem;font-weight:600;opacity:.8}
.bids .btn.on{background:var(--text);color:#1b1140;box-shadow:0 .38rem 0 var(--mc)}
.arow{display:flex;align-items:center;gap:.6rem;background:var(--panel);border-radius:1.1rem;padding:.45rem .8rem;box-shadow:var(--lip);border-inline-start:.45rem solid var(--bad)}
.arow.ok{border-color:var(--ok)}
.arow .tx{flex:1;font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start}
.hearts{display:flex;gap:.6rem;flex-wrap:wrap;justify-content:center;width:100%}
.hbox{background:var(--panel);border-radius:1.1rem;padding:.4rem .7rem;display:flex;align-items:center;gap:.5rem;box-shadow:var(--lip);border-bottom:.3rem solid var(--tc,var(--line))}
.hbox.dead{opacity:.35;filter:grayscale(1)}
.hbox.hit{animation:shake .6s}
.hbox .hs{display:flex;gap:.15rem;direction:ltr}
.hbox svg{width:1.4rem;height:1.4rem;color:var(--coral)}
.hbox svg.x{color:#fff3}
.var{justify-content:center}
.var .flag{width:8rem;animation:embIn .6s var(--e-back) both}
.vs{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;width:100%}
.vs .card{text-align:center}
.vs .card small{color:var(--mute);font-weight:600;display:block}
.vs .card b{font-size:1.35rem}
.tally{display:flex;gap:1.2rem;font-family:Lalezar;font-size:2rem;align-items:center}
.tally .y{color:var(--ok)}.tally .n{color:var(--bad)}

/* ---------- phone chrome ---------- */
body.phone #top{padding-left:max(.8rem,env(safe-area-inset-left));padding-right:max(.8rem,env(safe-area-inset-right));gap:.6rem}
.me{display:flex;align-items:center;gap:.55rem;flex:1;min-width:0}
.me .nm{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.95rem;line-height:1.2}
.me .sm{font-size:.72rem;color:var(--mute);font-weight:600}
.myscore{font-family:Lalezar;font-size:1.6rem;background:var(--panel);border-radius:.9rem;padding:.05rem .8rem;direction:ltr;box-shadow:0 .2rem 0 rgba(0,0,0,.35)}
.ibtn{width:2.6rem;height:2.6rem;border-radius:.85rem;background:var(--panel);display:grid;place-items:center;flex:none;box-shadow:0 .2rem 0 rgba(0,0,0,.35)}
.ibtn svg{width:1.3rem;height:1.3rem}
.reacts{display:flex;gap:.5rem;justify-content:center;padding:.45rem max(.8rem,env(safe-area-inset-right)) calc(.5rem + env(safe-area-inset-bottom)) max(.8rem,env(safe-area-inset-left));touch-action:pan-x}
.reacts button{flex:1;max-width:5rem;height:2.9rem;border-radius:1rem;background:var(--panel);display:grid;place-items:center;box-shadow:0 .22rem 0 rgba(0,0,0,.35);transition:transform .09s}
.reacts button:active{transform:scale(.86)}
.reacts svg{width:1.6rem;height:1.6rem}
.r-fire{color:var(--orange)}.r-laugh{color:var(--sun)}.r-shock{color:var(--sky)}.r-clap{color:var(--pink)}
body.phone .scr{max-width:34rem;margin:0 auto;width:100%}
body.kb .reacts{display:none}
.adminbar{display:flex;gap:.4rem;justify-content:center}
.adminbar .ibtn{background:var(--panel2)}

/* ---------- reactions flying ---------- */
.flyr{position:absolute;bottom:-4rem;display:flex;flex-direction:column;align-items:center;gap:.1rem;animation:flyUp 2.6s var(--e-out) forwards;font-weight:700;font-size:.9rem;text-shadow:0 .1rem .2rem #000}
.flyr svg{width:3.2rem;height:3.2rem;filter:drop-shadow(0 .2rem 0 rgba(0,0,0,.4))}
@keyframes flyUp{0%{transform:translateY(0) scale(.4);opacity:0}15%{opacity:1;transform:translateY(-8rem) scale(1.15)}100%{transform:translateY(-34rem) scale(1) rotate(var(--r));opacity:0}}
.toast{position:fixed;top:18%;left:50%;z-index:50;transform:translateX(-50%);background:var(--text);color:var(--ink);font-family:Lalezar;font-size:1.8rem;line-height:1.25;padding:.35rem 1.4rem;border-radius:1.2rem;box-shadow:0 .4rem 0 var(--mc);animation:toast 2.2s var(--e-out) both;max-width:calc(100vw - 2rem);white-space:normal;text-align:center;overflow-wrap:anywhere;display:flex;gap:.6rem;align-items:center;justify-content:center;pointer-events:none}
.toast img{width:2.6rem}
@keyframes toast{0%{transform:translate(-50%,-2rem) scale(.6);opacity:0}12%{transform:translate(-50%,0) scale(1.06);opacity:1}18%{transform:translate(-50%,0) scale(1)}85%{opacity:1}100%{opacity:0;transform:translate(-50%,-1rem)}}
.overlay{position:fixed;inset:0;z-index:60;background:rgba(10,5,30,.86);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;text-align:center;padding:2rem}

/* ---------- host (big screen) ---------- */
body.host #app{padding:2.6rem 4.5rem 2.2rem}
body.host #top{padding:0 0 1.2rem;gap:2rem}
body.host .logo{font-size:3.6rem}
body.host .logo small{font-size:.95rem}
body.host .hcode{display:flex;align-items:center;gap:.8rem;background:var(--panel);border-radius:1.2rem;padding:.4rem 1.2rem;font-weight:700;color:var(--mute);font-size:1.2rem}
body.host .hcode b{font-family:Lalezar;font-size:2.2rem;color:var(--text);direction:ltr;letter-spacing:.12em;font-weight:400}
body.host .prog{flex:1;display:flex;gap:.8rem;justify-content:center;align-items:center}
body.host .prog .pm{display:flex;align-items:center;gap:.5rem;padding-block:.3rem;padding-inline:.5rem 1rem;border-radius:99rem;background:var(--panel);font-weight:700;font-size:1.15rem;opacity:.45}
body.host .prog .pm img{width:2.4rem}
body.host .prog .pm.on{opacity:1;background:var(--mc);color:#1b1140}
body.host .prog .pm.done{opacity:.8}
body.host .tnum{font-size:3.4rem;min-width:5rem;background:var(--panel);border-radius:1.2rem;padding:0 .8rem}
body.host .scr{padding:.5rem 0 1.5rem;gap:1.6rem;overflow:hidden}
body.host .qcard{padding:2rem 2.6rem 2.3rem;border-radius:2.4rem;max-width:92rem}
body.host .qtext{font-size:3.3rem;line-height:1.4}
body.host .chip{font-size:1.5rem;padding:.4rem 1.4rem}
body.host .h1{font-size:4.2rem}
body.host .h2{font-size:2.6rem}
body.host .sub{font-size:1.7rem}
body.host .opts{grid-template-columns:1fr 1fr;gap:1.3rem;max-width:92rem}
body.host .opt{min-height:6.6rem;font-size:2.2rem;padding:1rem 1.6rem;border-radius:1.8rem;gap:1.3rem}
body.host .opt .k{width:4rem;height:4rem;font-size:2.3rem;border-radius:1.2rem}
body.host .av{--s:4.2rem}
body.host .av b{font-size:1.15rem}
body.host .av.s{--s:2.9rem}
body.host .av.l{--s:6rem}
body.host .av.xl{--s:11rem}
body.host .banner{font-size:1.9rem;padding-block:.6rem;padding-inline:.8rem 2rem}
body.host .banner .av{--s:3.6rem}
body.host .gain{font-size:3rem}
body.host .tbar{height:.9rem;max-width:92rem}
body.host .intro .emb{width:22rem}
body.host .intro .h1{font-size:7rem}
body.host .how{flex-direction:row;max-width:none;justify-content:center;gap:1.2rem}
body.host .how div{font-size:1.8rem;padding:1rem 1.8rem;border-radius:1.6rem}
body.host .how div i{width:3.2rem;height:3.2rem;font-size:1.9rem}
body.host .board{grid-template-columns:repeat(6,1fr);gap:1.1rem;max-width:104rem}
body.host .cat{padding:1rem;border-radius:1.6rem;gap:.9rem}
body.host .cat h4{font-size:2rem}
body.host .cat .cells{grid-template-columns:1fr;gap:.8rem}
body.host .cell{aspect-ratio:auto;height:6.6rem;font-size:3.2rem;border-radius:1.3rem}
body.host .cell .v{font-size:1.5rem;min-width:2.4rem;height:2.4rem}
body.host .tiles{grid-template-columns:repeat(4,1fr);gap:1rem;max-width:100rem}
body.host .tile{min-height:6rem;font-size:1.9rem;border-radius:1.4rem}
body.host .tile .rk{font-size:1.6rem}
body.host .tile img{width:3rem}
body.host .pot img{width:5.5rem}
body.host .pot .num{font-size:4rem}
body.host .rvlist{max-width:80rem;gap:.9rem}
body.host .rvi{padding:.9rem 1.6rem;border-radius:1.6rem;flex-direction:row;align-items:center;gap:1.4rem}
body.host .rvi .tx{font-size:2.1rem;flex:1}
body.host .stamp{font-size:1.9rem}
body.host .gauge{height:7rem;max-width:84rem;margin:5.5rem 0 4.6rem;border-radius:2rem}
body.host .gauge .fill{border-radius:2rem}
body.host .gauge .mk{top:-4.6rem;width:.5rem}
body.host .gauge .mk b{font-size:2.6rem;padding:0 1rem;border-radius:1rem}
body.host .gauge .mk.truth{bottom:-4.6rem;height:calc(100% + 5.2rem)}
body.host .gauge .sc{font-size:1.8rem;padding:0 1.4rem}
body.host .bigpct{font-size:9rem}
body.host .sides{max-width:84rem;gap:1.4rem}
body.host .sidebox h5{font-size:2rem}
body.host .bars{max-width:78rem;gap:.9rem}
body.host .bar{min-height:5.4rem;padding:.8rem 1.6rem;border-radius:1.6rem;gap:1rem}
body.host .bar .t{font-size:2.1rem}
body.host .bar .n{font-size:2.6rem}
body.host .sheep{width:4rem}
body.host .nums{flex-direction:row;flex-wrap:wrap;justify-content:center;max-width:100rem;gap:1.1rem}
body.host .nrow{width:auto;flex-direction:column;min-width:13rem;padding:1.1rem 1.4rem;border-radius:1.6rem;gap:.6rem}
body.host .nrow .num{font-size:3.2rem}
body.host .truthnum{font-size:8rem}
body.host .unit{font-size:2rem}
body.host .mystery{max-width:70rem;padding:3rem}
body.host .mystery .h1{font-size:6rem}
body.host .arow{font-size:1.7rem;padding:.7rem 1.4rem;border-radius:1.5rem;gap:1rem}
body.host .lb{max-width:70rem;gap:.9rem}
body.host .lbrow{padding:.7rem 1.6rem;border-radius:1.6rem;gap:1.4rem;font-size:1.8rem}
body.host .lbrow .rk{font-size:2.6rem;width:3rem}
body.host .lbrow .sc{font-size:3rem}
body.host .lbrow .dl{font-size:2rem;min-width:6rem}
body.host .hbox{font-size:1.6rem;padding:.6rem 1.2rem;border-radius:1.4rem}
body.host .hbox svg{width:2.4rem;height:2.4rem}
body.host .podium .crown{width:15rem}
body.host .podium .wname{font-size:6.5rem}
body.host .award{font-size:1.6rem;padding:.9rem 1.6rem;border-radius:1.6rem}
body.host .award small{font-size:1.15rem}
body.host .award img.ic{width:4.2rem}
body.host .vs{max-width:70rem}
body.host .vs .card b{font-size:2.8rem}
body.host .vs .card small{font-size:1.4rem}
body.host .tally{font-size:4rem}
body.host .var .flag{width:13rem}
body.host .flyr{font-size:1.5rem}
body.host .flyr svg{width:6rem;height:6rem}
body.host .toast{font-size:3.6rem;padding:.6rem 3rem;border-radius:2rem}
body.host .toast img{width:5rem}
body.host .wait img{width:12rem}
body.host .wait{font-size:1.8rem}
body.host .code span{font-size:7.5rem;border-radius:1.6rem}
body.host .seg button{font-size:1.45rem;padding:.6rem 1.5rem;min-height:3.6rem}
body.host .seg button img{width:2.6rem;height:2.6rem}
body.host .set>label{font-size:1.2rem}
body.host .btn.big{font-size:2.6rem;min-height:6rem;padding:1rem 4rem;border-radius:2rem}
body.host .team{min-height:14rem;padding:1.3rem;border-radius:2rem}
body.host .team h3{font-size:2.2rem}
/* host scoreboard strip */
.strip{display:flex;gap:1rem;justify-content:center;align-items:flex-end;min-height:7.4rem}
.pc{display:flex;flex-direction:column;align-items:center;gap:.2rem;background:var(--panel);border-radius:1.4rem;padding:.6rem 1.1rem .5rem;min-width:8rem;box-shadow:var(--lip);border-top:.4rem solid var(--tc,var(--line));position:relative;transition:transform .3s var(--e-back)}
.pc.t0{--tc:var(--t0)}.pc.t1{--tc:var(--t1)}
.pc .sc{font-family:Lalezar;font-size:2rem;direction:ltr;line-height:1}
.pc.done{transform:translateY(-.7rem)}
.pc.done::after{content:"";position:absolute;top:-.9rem;inset-inline-end:-.5rem;width:2rem;height:2rem;border-radius:50%;background:var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306301a' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/60% no-repeat;animation:pop .35s var(--e-back)}
.pc.turn{box-shadow:0 0 0 .28rem var(--sun),var(--lip)}
.tbox{display:flex;align-items:center;gap:1.2rem;background:var(--panel);border-radius:1.6rem;padding:.7rem 1.6rem;box-shadow:var(--lip);border-top:.5rem solid var(--tc);flex:1;max-width:46rem}
.tbox.t0{--tc:var(--t0)}.tbox.t1{--tc:var(--t1)}
.tbox h3{font-family:Lalezar;font-weight:400;font-size:1.9rem;color:var(--tc);white-space:nowrap}
.tbox .sc{font-family:Lalezar;font-size:3.2rem;direction:ltr;margin-inline-start:auto}
.tbox.turn{box-shadow:0 0 0 .28rem var(--sun),var(--lip)}
.tbox .avs{flex-wrap:nowrap;gap:.5rem}
.tbox .av{--s:3rem!important}.tbox .av b{font-size:.85rem!important}
.tbox .av.done img{box-shadow:0 0 0 .22rem var(--ok)}
.lobbygrid{display:grid;grid-template-columns:34rem 1fr;gap:3rem;width:100%;flex:1;min-height:0;align-items:center}
.joinbox{display:flex;flex-direction:column;align-items:center;gap:1.4rem}
.joinbox .qr{width:24rem;height:24rem}
.joinbox .lnk{font-size:1.5rem;font-weight:700;direction:ltr;color:var(--mute)}
.lobbyR{display:flex;flex-direction:column;gap:1.6rem;align-items:center;height:100%;justify-content:center}
.pgrid{display:flex;flex-wrap:wrap;gap:1.2rem;justify-content:center;min-height:9rem;align-items:center}
.hostctl{position:fixed;bottom:.8rem;inset-inline-start:1rem;z-index:30;display:flex;gap:.5rem;opacity:.25;transition:opacity .2s}
.hostctl:hover{opacity:1}
.hostctl .ibtn{width:3rem;height:3rem}
.paused{position:fixed;inset:0;z-index:55;background:rgba(10,5,30,.8);display:grid;place-items:center;font-family:Lalezar;font-size:5rem}

/* landing */
.land{max-width:30rem;margin:0 auto;width:100%;justify-content:center;gap:1.1rem}
.land .hero{width:11rem;animation:floaty 3.5s ease-in-out infinite}
.land .logo{font-size:5rem}
.land .btn{width:100%}
.mini{font-size:.8rem;color:var(--mute);text-align:center}
@keyframes gfill{from{transform:scaleX(0)}to{transform:scaleX(var(--p))}}
@keyframes hideAfter{to{visibility:hidden;height:0;min-height:0;padding:0;margin:0;overflow:hidden;box-shadow:none}}
#app{height:100dvh}
a.btn,a.ibtn{text-decoration:none;color:inherit}
button:disabled{color:inherit}
.noanim .rise,.noanim .fade,.noanim .pop,.noanim.rise,.noanim .tile.last{animation:none!important}
body.host .scr{justify-content:safe center}
body.host .code span{font-size:5.4rem}
body.host .team{min-height:9.5rem;padding:1rem}
body.host .seg button{font-size:1.3rem;min-height:3.3rem;padding:.5rem 1.3rem}
.chip.val{font-family:Lalezar;font-size:1.25em;padding-block:.05rem}
.sticky{position:sticky;bottom:0;z-index:5;padding:.6rem 0 .2rem;background:linear-gradient(transparent,var(--ink) 45%)}
.notimer .tnum{visibility:hidden}
.strip:empty{min-height:0}
/* host density pass */
body.host .scr{gap:1.2rem}
body.host .qcard{padding:1.2rem 2.4rem 1.5rem}
body.host .qtext{font-size:2.8rem}
body.host .tiles{grid-template-columns:repeat(5,1fr);gap:.8rem;max-width:108rem}
body.host .tile{min-height:5rem;font-size:1.7rem}
body.host .gauge{margin:4.4rem 0 3.8rem;height:6rem}
body.host .bigpct{font-size:6.5rem}
body.host .sidebox{flex-direction:row;min-height:4.5rem;padding:.6rem 1.4rem;gap:1rem}
body.host .bar{min-height:4.3rem;padding:.5rem 1.4rem}
body.host .bars{gap:.65rem}
body.host .bar .t{font-size:1.9rem}
body.host .truthnum{font-size:6.5rem}
body.host .intro .emb{width:18rem}
body.host .intro .h1{font-size:6rem}
body.host .podium .crown{width:11rem}
body.host .podium .wname{font-size:5rem}
.gauge .mk b bdi{font-family:Readex;font-weight:700;font-size:.7em}
.tally svg{width:1em;height:1em}
.pgrid{min-height:0!important}
.pgrid:empty{display:none}
.lobbyR{gap:1.1rem!important}
.gain .sub{font-family:Readex;font-size:.6em}
.gain:has(.sub),.gain.zero{color:var(--mute)}
body.phone .ibtn{width:2.35rem;height:2.35rem}
body.phone #top{gap:.45rem}

/* =====================  NEO-BRUTALISM SKIN  ===================== */
:root{--ink:#fff4d6;--ink2:#fff;--panel:#fff;--panel2:#fff;--line:#111;--text:#111;--mute:#5d5a66;--ok:#2fd67b;--bad:#ff5a5f;
  --bw:.2rem;--lip:.32rem .32rem 0 var(--sh);--okd:#0a7d40;--badd:#cf2a31;--sh:#111;--page:#fff4d6}
body{font-weight:600}
#bg{background:color-mix(in srgb,var(--mc) 16%,#fff4d6);transition:background .5s}
#bg::after{opacity:.09;background-image:radial-gradient(#111 1.5px,transparent 1.6px);background-size:1.6rem 1.6rem;animation:none;inset:0}
.btn,.chip,.card,.qcard,.banner,.cat,.team,.how div,.lbrow,.award,.pot,.rvi,.bar,.nrow,.arow,.hbox,.sidebox,.mystery,.pc,.tbox,.myscore,.ibtn,.reacts button,.seg button,.cell,.tile,.opt,.field input,.qr,.code span,.toast,.gauge,.tbar,.avpick button{border:var(--bw) solid #111}
.btn,.card,.qcard,.banner,.cat,.team,.how div,.lbrow,.award,.pot,.rvi,.bar,.nrow,.arow,.hbox,.sidebox,.mystery,.pc,.tbox,.opt,.tile,.qr,.code span,.toast,.field input{box-shadow:var(--lip)}
.chip,.myscore,.ibtn,.reacts button,.seg button,.cell,.avpick button{box-shadow:.2rem .2rem 0 var(--sh)}
.btn{background:#fff;color:#111}
.btn:active:not(:disabled),.opt:active:not(:disabled),.cell:active:not(:disabled),.tile:active:not(:disabled),.seg button:active,.nrow:active:not(:disabled){transform:translate(.26rem,.26rem);box-shadow:0 0 0 var(--sh)}
.btn.sun{background:var(--sun)}.btn.ok{background:var(--ok);color:#111}.btn.bad{background:var(--bad);color:#111}.btn.sky{background:var(--sky);color:#111}.btn.mc{background:var(--mc);color:#111}
.btn.ghost{background:transparent;box-shadow:none}
.chip{background:#fff;color:#111}.chip.mc{background:var(--mc);color:#111}.chip.sun{background:var(--sun)}.chip.line{background:#fff;box-shadow:none;color:#111}
.x2{background:var(--coral);color:#111}
.av img{border:.17rem solid #111;box-shadow:.2rem .2rem 0 var(--tc,#111);background:#fff}
.av .bot{background:#fff;border:.12rem solid #111}
.logo{display:inline-block;color:#111;background:var(--sun);border:var(--bw) solid #111;border-radius:.9rem;padding:.2rem 1.05rem .24rem;line-height:1.06;box-shadow:var(--lip);text-shadow:none;transform:rotate(-3deg)}
.logo small{display:none}
.h1,.h2{color:#111}
.intro .h1,.podium .wname{display:inline-block;color:#111;background:var(--mc);border:var(--bw) solid #111;border-radius:1.2rem;padding:.1rem 1.6rem .3rem;box-shadow:var(--lip);text-shadow:none;transform:rotate(-2deg)}
.podium .wname{background:var(--sun)}
.tbar{background:#fff;height:1rem}.tbar i{background:var(--mc);border-radius:0}.tbar.hot i{background:var(--coral)}
.tnum{color:#111}.tnum.hot{color:var(--badd)}
.banner.me{background:var(--mc);color:#111}
.wait{color:#111}
.qcard{background:var(--mc);color:#111}
.qtext .blank{border-bottom-color:#111;color:#111}
.opt{background:#fff;color:#111}
.opt .k{border:.16rem solid #111;color:#111}
.opt.sel{background:var(--sun);color:#111;box-shadow:var(--lip)}
.opt.ok{background:var(--ok);color:#111;transform:rotate(-1deg)}
.opt.bad{background:var(--bad);color:#111}
.opt.dim{opacity:.5}
.gain{color:var(--okd)}.gain.neg{color:var(--badd)}
.field input{background:#fff;color:#111}.field input:focus{border-color:#111;background:#fffbe9}
.field input::placeholder{color:#9a96a6}
.stamp{background:#fff;border-width:.22rem;box-shadow:.2rem .2rem 0 currentColor}
.stamp.ok{color:var(--okd)}.stamp.bad{color:var(--badd)}.stamp.sun{color:#111;background:var(--sun);box-shadow:.2rem .2rem 0 var(--sh)}
.code span{background:#fff;color:#111;box-shadow:var(--lip)}
.seg button{background:#fff;color:#111}.seg button.on{background:var(--sun)}
.seg button:disabled{opacity:1}
.set>label{color:#111;font-weight:700}
.avpick{grid-template-columns:repeat(6,1fr)}
.avpick button{opacity:.6;border-radius:24%}.avpick button.on{opacity:1;box-shadow:.25rem .25rem 0 var(--sh);transform:scale(1.1) rotate(-3deg)}
.team{background:var(--tc);border-top:var(--bw) solid #111}.team h3{color:#111}
.team.on{background:var(--tc);box-shadow:.5rem .5rem 0 var(--sh);transform:rotate(-1.5deg)}
.how div i{border:.14rem solid #111;color:#111}
.lbrow{border-inline-start:var(--bw) solid #111;background:#fff}.lbrow .rk{color:#111}.lbrow:first-child{background:var(--sun)}.lbrow:first-child .rk{color:#111}
.lbrow.me{background:#d9f3ff;box-shadow:var(--lip)}.lbrow .dl{color:var(--okd)}.lbrow .dl.neg{color:var(--badd)}
.award small{color:var(--mute)}
.cat{background:#fff}.cat h4{color:#111;background:var(--sun);border:.14rem solid #111;border-radius:.6rem;padding:.05rem .3rem}
.cell{background:#fff;color:#111}.cell.sel,.cell.hot{background:var(--sun)}
.cell.st1,.cell.st2{background:#0000000d;border-style:dashed;box-shadow:none;color:transparent}
.cell.st1::after{border:.14rem solid #111}
.cell.st2::after{box-shadow:inset 0 0 0 .2rem #111;opacity:.35}
.cell .v{border:.12rem solid #111;color:#111}
.steal{background:var(--coral);color:#111}
.tile{background:#fff;color:#111}.tile.ok{background:var(--ok);color:#111}.tile.trap{background:var(--bad);color:#111}
.tile.ghost{background:transparent;border-style:dashed;box-shadow:none;color:var(--mute)}.tile.ghost.trap{box-shadow:none;border-color:var(--badd);color:var(--badd)}
.tile .rk{background:#fff;border:.1rem solid #111;color:#111}
.pot .num{color:#111}.pot.boom .num{color:var(--badd)}
.rvi{background:#fff}.rvi.truth{animation-name:rvTruthN}
@keyframes rvTruthN{to{opacity:1;background:#b9f5d3}}
.gauge{background:#fff;box-shadow:var(--lip)}
.gauge .fill{border-radius:1.05rem}.gauge .fill i{background:var(--sky)}
.gauge .mk{background:#111}.gauge .mk b{background:#fff;color:#111;border:.16rem solid #111}
.gauge .mk.truth{background:#111}.gauge .mk.truth b{background:var(--sun);color:#111}
.gauge .sc{color:#111}
input[type=range].sl::-webkit-slider-runnable-track{background:var(--sky);border:.18rem solid #111;height:1.3rem}
input[type=range].sl::-webkit-slider-thumb{background:var(--sun);border:.2rem solid #111;box-shadow:.2rem .2rem 0 var(--sh);margin-top:-1.05rem}
input[type=range].sl::-moz-range-track{background:var(--sky);border:.18rem solid #111}
input[type=range].sl::-moz-range-thumb{background:var(--sun);border:.2rem solid #111}
.bigpct,.truthnum{color:#111;text-shadow:.22rem .22rem 0 var(--mc)}
.sidebox{background:#fff}.sidebox.win{background:#b9f5d3;box-shadow:var(--lip)}
.bar{background:#fff}.bar i{background:color-mix(in srgb,var(--mc) 45%,#fff)}.bar.top i{background:var(--ok)}
.nrow{background:#fff;color:#111}.nrow.sel{background:var(--sun);color:#111}.nrow.win{background:var(--ok);color:#111}
.unit{color:#111}
.mystery{background:#fff;border:var(--bw) dashed #111}.mystery .h1{color:#111;background:var(--mc);display:inline-block;padding:0 1rem .2rem;border:var(--bw) solid #111;border-radius:.9rem;transform:rotate(-2deg);margin-top:.3rem}
.bids .btn.on{background:var(--sun);color:#111;box-shadow:var(--lip)}
.arow{border-inline-start:var(--bw) solid #111;background:#ffd9da}.arow.ok{background:#b9f5d3}
.hbox{border-bottom:var(--bw) solid #111;background:#fff}.hbox.t0{background:var(--t0)}.hbox.t1{background:var(--t1)}
.hbox svg{color:var(--badd)}.hbox svg.x{color:#0003}
.vs .card small{color:var(--mute)}
.tally .y{color:var(--okd)}.tally .n{color:var(--badd)}
.ans{display:inline-block;background:var(--sun);border:var(--bw) solid #111;border-radius:1rem;padding:0 1.4rem .25rem;box-shadow:var(--lip);transform:rotate(-1.5deg)}
.me .sm{color:#111!important;font-weight:700}.me .nm{color:#111}
.myscore{background:var(--sun)}
.ibtn{background:#fff;color:#111}
.reacts button{background:#fff}
.r-fire{color:#f26a1b}.r-laugh{color:#e0a500}.r-shock{color:#1594d6}.r-clap{color:#e63c86}
.flyr{text-shadow:none}.flyr span{background:#fff;color:#111;border:.14rem solid #111;border-radius:.6rem;padding:0 .5rem}
.flyr svg{filter:drop-shadow(.18rem .18rem 0 var(--sh))}
.toast{background:#fff;color:#111}
.toast.ok{background:var(--ok);color:#111}
.toast.bad{background:var(--bad);color:#111}
body.phone .toast{font-size:1.35rem;padding:.4rem 1.1rem}
.overlay,.paused{background:rgba(255,244,214,.93);color:#111}
.sticky{background:linear-gradient(transparent,var(--page) 45%)}
.land .logo{font-size:4.6rem}
.mini,.sub{color:var(--mute)}
/* host */
body.host{--bw:.28rem;--lip:.45rem .45rem 0 var(--sh)}
body.host .hcode{background:#fff;border:var(--bw) solid #111;box-shadow:.2rem .2rem 0 var(--sh);color:#111}
body.host .hcode b{color:#111}
body.host .prog .pm{background:#fff;border:.16rem solid #111;color:#111;opacity:.5}
body.host .prog .pm.on{background:var(--mc);opacity:1;box-shadow:.2rem .2rem 0 var(--sh)}
body.host .tnum{background:var(--coral);border:var(--bw) solid #111;box-shadow:var(--lip);color:#111}
.pc{border-top:var(--bw) solid #111;background:#fff}.pc.t0{background:var(--t0)}.pc.t1{background:var(--t1)}
.pc.turn{background:var(--sun);box-shadow:.5rem .5rem 0 var(--sh);transform:rotate(-2deg)}
.pc.done.turn{transform:translateY(-.7rem) rotate(-2deg)}
.pc.done::after{border:.14rem solid #111}
.tbox{border-top:var(--bw) solid #111;background:var(--tc)}.tbox h3{color:#111}
.tbox.turn{box-shadow:.55rem .55rem 0 var(--sh);transform:rotate(-1deg)}
.tbox .av.done img{box-shadow:.2rem .2rem 0 var(--okd)}
.hostctl{opacity:.35}
.joinbox .lnk{color:#111}
body.host .logo{font-size:3rem}
body.host .seg button{font-size:1.15rem;min-height:2.8rem;padding:.3rem 1rem}
body.host .seg button img{width:2rem;height:2rem}
body.host .seg{gap:.5rem .45rem}
body.host .set{gap:.3rem}
body.host .set>label{font-size:1.05rem}
body.host .team{min-height:7.5rem;padding:.7rem}
body.host .lobbyR .av.l{--s:4.6rem}
body.host .joinbox .qr{width:21rem;height:21rem}
.banner{flex-wrap:nowrap;height:auto;align-self:center}
body.host .podium .crown{width:8rem}
body.host .podium{gap:.2rem}
body.host .lb{gap:.6rem}
body.host .lbrow{padding:.35rem 1.4rem;font-size:1.6rem}
body.host .lbrow .sc{font-size:2.4rem}

/* ---- tidy settings ---- */
.set{align-items:stretch;background:#fff;border:var(--bw) solid #111;border-radius:1.2rem;padding:.65rem .75rem .8rem;box-shadow:var(--lip);gap:.5rem}
.set>label{text-align:start;font-size:.92rem;display:flex;align-items:center;gap:.4rem}
.set>label .chip{padding:0 .55rem;box-shadow:none;border-width:.12rem;font-size:.95rem}
.seg{display:grid;gap:.5rem;justify-content:stretch}
.seg.g2,.seg.games{grid-template-columns:1fr 1fr}
.seg.aud{grid-template-columns:repeat(4,1fr)}
.seg.aud .full{grid-column:1/-1}
.seg.audience-options{grid-template-columns:repeat(4,minmax(0,1fr))}
.seg.audience-options button:first-child{grid-column:1/-1}
@media(max-width:420px){.seg.audience-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
body.host .seg.audience-options{grid-template-columns:repeat(5,minmax(0,1fr))}
body.host .seg.audience-options button:first-child{grid-column:auto}
.audience-countries{display:grid;gap:.35rem;margin-top:.5rem;padding-top:.5rem;border-top:2px dashed rgba(17,17,17,.28)}
.audience-countries-label{font-size:.88rem;font-weight:800;color:inherit;opacity:.82}
.seg.audience-country-options{grid-template-columns:repeat(2,minmax(0,1fr))}
.seg.audience-country-options button:first-child{grid-column:1/-1}
.seg.audience-country-options button:not(:first-child):last-child:nth-child(even){grid-column:1/-1}
.seg.audience-country-options button{min-height:2.55rem;font-size:.9rem;padding:.28rem .45rem}
body.host .seg.audience-country-options{grid-template-columns:repeat(auto-fit,minmax(7.5rem,1fr))}
body.host .seg.audience-country-options button:first-child,body.host .seg.audience-country-options button:not(:first-child):last-child:nth-child(even){grid-column:auto}
body.host .seg.audience-country-options button{font-size:1.02rem;min-height:2.65rem}
.list-source{display:inline-flex;align-items:center;justify-content:center;gap:.3rem;align-self:center;justify-self:center;width:fit-content;max-width:max-content;margin-inline:auto;padding:.18rem .72rem;color:#111;background:#fff;border:.14rem solid #111;border-radius:99rem;box-shadow:.14rem .14rem 0 var(--sh);font-size:.86rem;font-weight:700;line-height:1.3;text-decoration:none}
.list-source:active{transform:translate(.1rem,.1rem);box-shadow:none}
html.dark .list-source{background:#251f38;color:#f6f1ff;border-color:#8f88a8}
html.dark .topic-question{color:#f6f1ff}
body.host .list-source{font-size:1.15rem;padding:.26rem .95rem}
.seg button{width:100%;border-radius:.85rem;justify-content:center;min-height:3rem;padding:.35rem .5rem;background:#fff4d6;font-size:.95rem;line-height:1.25}
.seg.games button{justify-content:flex-start;padding-inline:.55rem;gap:.5rem;text-align:start}
.seg.games button:last-child:nth-child(odd){grid-column:1/-1;justify-content:center}
.seg button.on{background:var(--sun)}
.seg button:disabled{color:#111}
body.host .set{padding:.5rem .8rem .7rem;gap:.35rem;border-radius:1.2rem}
body.host .seg.games{grid-template-columns:repeat(4,1fr)}
body.host .seg.games button:last-child:nth-child(odd){grid-column:auto;justify-content:flex-start}
body.host .seg.aud{grid-template-columns:repeat(5,1fr)}
body.host .seg.aud .full{grid-column:auto}
body.host .seg button{font-size:1.15rem;min-height:2.9rem}
body.host .lobbyR [data-dyn=set]{display:grid!important;grid-template-columns:1fr 1fr;gap:.75rem;width:100%;align-items:stretch!important}
body.host .lobbyR [data-dyn=set]>:is(.room-games,.room-audience,.bundle-list){grid-column:1/-1}
body.host .lobbyR [data-dyn=set]>.sub{grid-column:1/-1;font-size:1.08rem;line-height:1.35}

/* ---- round 2: pictures, more reactions, no clipping ---- */
.qimg{display:block;margin:0 auto .6rem;max-width:100%;max-height:11rem;border:var(--bw) solid #111;border-radius:.8rem;background:#fff;box-shadow:.2rem .2rem 0 var(--sh)}
body.host .qimg{max-height:22rem;margin-bottom:1rem}
.gauge{width:88%;align-self:center;margin:2.8rem 0 3.1rem}
body.host .gauge{margin:4.6rem 0 4.6rem}
.reacts{justify-content:flex-start;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;gap:.45rem}
.reacts::-webkit-scrollbar{display:none}
.reacts button{flex:none;width:3.3rem;max-width:none}
.reacts button.r-txt{width:auto;padding:0 .8rem;font-family:Lalezar;font-size:1.15rem;color:#111;background:var(--sun)}
.r-heart{color:#e63c50}.r-cry{color:#1594d6}.r-like{color:#0a7d40}
.flyr .rt{font-family:Lalezar;font-weight:400;font-size:2.2rem;line-height:1.1;background:var(--sun);color:#111;border:.18rem solid #111;border-radius:.8rem;padding:0 .8rem;box-shadow:.2rem .2rem 0 var(--sh);transform:rotate(-4deg)}
body.host .flyr .rt{font-size:3.6rem}
.scr{padding-bottom:1.4rem}
.banner.me{flex:none!important;min-width:auto}

/* ---- round 3: typed top-ten, lengths, donkey ears, motion ---- */
.tile.hid{background:#fff4d6;color:var(--mute);justify-content:space-between}
.tile.hid .rk:last-child{background:var(--sun)}
.seg.g3{grid-template-columns:repeat(3,1fr)}
.seg button small{display:block;font-family:Lalezar;font-size:.8em;opacity:.7}
.seg.g3 button{flex-direction:column;gap:0;min-height:3.4rem}
.ears{position:relative;display:inline-flex}
.ears::before,.ears::after{content:"";position:absolute;bottom:72%;width:26%;height:95%;background:#b9b3a6;border:.16rem solid #111;border-radius:50% 50% 40% 40%;z-index:0;animation:ear 1.6s ease-in-out infinite}
.ears::before{left:8%;transform-origin:bottom center;--r:-16deg}.ears::after{right:8%;transform-origin:bottom center;--r:16deg;animation-delay:.2s}
.ears .av{position:relative;z-index:1}
@keyframes ear{0%,100%{transform:rotate(var(--r))}50%{transform:rotate(calc(var(--r) * 1.9))}}
.award:has(.ears){padding-top:1.6rem}
body.host .award:has(.ears){padding-top:2.6rem}
.wipe{position:fixed;inset:-5% -20%;z-index:45;background:var(--mc);border-inline:.5rem solid #111;display:grid;place-items:center;pointer-events:none;animation:wipe .85s cubic-bezier(.7,0,.2,1) both}
.wipe img{width:min(34vw,14rem);animation:wipeIc .85s both}
@keyframes wipe{0%{transform:translateX(120%) skewX(-10deg)}38%,58%{transform:translateX(0) skewX(-10deg)}100%{transform:translateX(-120%) skewX(-10deg)}}
@keyframes wipeIc{0%{transform:scale(.3) rotate(-30deg)}40%,60%{transform:scale(1) rotate(0)}100%{transform:scale(1.3) rotate(20deg)}}
.scr{animation-delay:0s}
body:has(.wipe) .scr{animation-delay:.26s}
.qcard.rise{animation:drop .5s var(--e-back) both;animation-delay:.04s}
body:has(.wipe) .qcard.rise{animation-delay:.28s}
@keyframes drop{from{transform:translateY(-2.5rem) rotate(-3deg) scale(.9);opacity:0}to{transform:none;opacity:1}}
.opt.rise{animation:slideR .38s var(--e-out) both;animation-delay:calc(.08s + var(--i,0)*55ms)}
body:has(.wipe) .opt.rise{animation-delay:calc(.32s + var(--i,0)*65ms)}
.opt.rise:nth-child(even){animation-name:slideL}
@keyframes slideR{from{transform:translateX(3rem);opacity:0}to{transform:none;opacity:1}}
@keyframes slideL{from{transform:translateX(-3rem);opacity:0}to{transform:none;opacity:1}}
.opt.ok{animation:okpop .5s var(--e-back),wig .5s .5s 2}
@keyframes wig{25%{transform:rotate(-2.5deg)}75%{transform:rotate(1deg)}}
.cell:not(:disabled):not(.st1):not(.st2){animation:cellIn .4s var(--e-back) both}
@keyframes cellIn{from{transform:scale(.4) rotate(-12deg);opacity:0}to{transform:none;opacity:1}}
.noanim .cell{animation:none!important}
.lbrow.rise{animation-name:slideR}
.gain{display:inline-block;animation:gainUp .6s var(--e-back) both;animation-delay:var(--gd,.3s)}
@keyframes gainUp{from{transform:translateY(1.2rem) scale(.4);opacity:0}to{transform:none;opacity:1}}
.pc.done{animation:hop .4s var(--e-back)}
@keyframes hop{40%{transform:translateY(-1.6rem) rotate(-4deg)}}
.logo{animation:logoWob 4s ease-in-out infinite}
@keyframes logoWob{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(2deg) scale(1.04)}}
.btn.big.sun:not(:disabled){animation:breathe 1.8s ease-in-out infinite}
@keyframes breathe{50%{transform:scale(1.03)}}
.tile.ok.last{animation:flip .6s var(--e-std) both,wig .5s .6s 2}

/* ---- round 4: impostor + consistent sizes ---- */
.secret{width:100%;background:#fff;border:var(--bw) solid #111;border-radius:1.6rem;box-shadow:var(--lip);padding:1.6rem 1rem;text-align:center;display:flex;flex-direction:column;align-items:center;gap:.5rem}
.secret .h1{font-size:2.8rem;background:var(--sun);border:var(--bw) solid #111;border-radius:1rem;padding:0 1.2rem .3rem;transform:rotate(-2deg)}
.secret.bad{background:#ffd9da}.secret.bad .h1{background:var(--coral)}
.secret img{width:8rem}
.nrow .cl{flex:1;display:flex;flex-wrap:wrap;gap:.3rem;font-weight:700;min-width:0;text-align:start}
.nrow .cl .chip{box-shadow:none;border-width:.12rem;padding:.05rem .6rem;background:#fff4d6}
body.host .nums:has(.cl){flex-direction:column;max-width:70rem;gap:.6rem}
body.host .nums:has(.cl) .nrow{flex-direction:row;width:100%;min-width:0;padding:.5rem 1.2rem;font-size:1.7rem}
body.host .secret .h1{font-size:5rem}
/* neighbours share one size */
[data-dyn=st]{align-items:stretch!important;gap:.6rem}
[data-dyn=st] .banner,[data-dyn=st] .pot,.row>.award{min-height:3.5rem;border-radius:1.1rem;padding:.3rem 1rem;display:flex;align-items:center;gap:.6rem;font-size:1.05rem}
[data-dyn=st] .pot img{width:2.4rem}[data-dyn=st] .pot .num{font-size:1.6rem}
body.host [data-dyn=st] .banner,body.host [data-dyn=st] .pot{min-height:5.4rem;font-size:1.9rem;padding:.4rem 1.6rem;border-radius:1.5rem}
body.host [data-dyn=st] .pot img{width:4rem}body.host [data-dyn=st] .pot .num{font-size:3rem}
.banner{border-radius:1.1rem}
.row{align-items:stretch}
.row>.chip,.qmeta .chip{min-height:2.1rem;font-size:.92rem;padding:.2rem .85rem;align-items:center}
.qmeta{align-items:stretch}
.chip.val{font-size:1.05rem}
body.host .row>.chip,body.host .qmeta .chip{min-height:3.2rem;font-size:1.5rem;padding:.3rem 1.3rem}
body.phone #top>*{height:2.5rem}
body.phone #top .me{height:auto}
body.phone .ibtn{width:2.5rem;height:2.5rem;border-radius:.8rem}
body.phone .myscore{display:flex;align-items:center;font-size:1.35rem;padding:0 .8rem;border-radius:.8rem}
body.phone .tnum{display:flex;align-items:center;justify-content:center;font-size:1.35rem;min-width:2.5rem;background:#fff;border:var(--bw) solid #111;border-radius:.8rem;box-shadow:.2rem .2rem 0 var(--sh)}
.duo .btn,.bids .btn{min-height:4.2rem;font-size:1.25rem}
.field input,.field .btn{height:3.6rem;min-height:3.6rem;border-radius:1.1rem}
.awards .award,.row>.award{min-height:4rem}
.land .btn{min-height:4.2rem;font-size:1.3rem;font-family:Lalezar,Readex;font-weight:400;border-radius:1.3rem}
.nrow .chip.num{flex:none!important;font-size:1rem!important;min-width:2.2rem;justify-content:center}
body.host .nrow .chip.num{font-size:1.5rem!important}

/* ---- dark mode ---- */
.themefab{position:fixed;top:calc(.7rem + env(safe-area-inset-top));left:max(.8rem,env(safe-area-inset-left));z-index:80}
.home-music{position:fixed;top:calc(.7rem + env(safe-area-inset-top));right:max(.8rem,env(safe-area-inset-right));z-index:80}
html.dark{--sh:#7a6cf0;--page:#16131f;--ink:#16131f}
html.dark .scr>div>.sub,html.dark .land>.sub{color:#b8b2cc!important}
html.dark .wait b{color:#fff}
html.dark #bg{background:color-mix(in srgb,var(--mc) 13%,#16131f)}
html.dark #bg::after{background-image:radial-gradient(#fff 1.5px,transparent 1.6px);opacity:.09}
html.dark .h1,html.dark .h2,html.dark .wait,html.dark #top .me .nm,html.dark #top .me .sm,html.dark .unit,html.dark .joinbox .lnk,html.dark .bigpct,html.dark .truthnum,html.dark .tally,html.dark .scr>.sub,html.dark .wait div{color:#f6f1ff!important}
html.dark .scr>.sub,html.dark .mini{color:#b8b2cc!important}
html.dark .intro .h1,html.dark .podium .wname,html.dark .mystery .h1,html.dark .secret .h1,html.dark .h1.ans,html.dark .card .h2,html.dark .toast,html.dark .secret .sub,html.dark .mystery .sub{color:#111!important}
html.dark .scr>div>.gain,html.dark .scr>.row>.gain{color:#4be08f}
html.dark .scr>div>.gain.neg,html.dark .scr>.row>.gain.neg{color:#ff8a8f}
html.dark .gain.zero,html.dark .gain:has(.sub){color:#b8b2cc}
html.dark .tally .y{color:#4be08f}html.dark .tally .n{color:#ff8a8f}
html.dark .sticky{background:linear-gradient(transparent,#16131f 45%)}
html.dark .overlay,html.dark .paused{background:rgba(22,19,31,.94);color:#f6f1ff}
html.dark .tile.ghost,html.dark .cell.st1,html.dark .cell.st2{border-color:#8f88a8;color:#b8b2cc}
html.dark .cell.st1,html.dark .cell.st2{background:#ffffff14;color:transparent}
html.dark .btn.ghost{color:#f6f1ff;border-color:#f6f1ff}
html.dark .tbar{background:#2b2640}
html.dark .hostctl .ibtn{color:#111}

/* ---- captain badge ---- */
.capb{position:absolute;top:-.55rem;inset-inline-end:-.45rem;width:1.35rem;height:1.35rem;border-radius:50%;background:var(--sun);border:.12rem solid #111;display:grid;place-items:center;color:#111;z-index:2}
.capb svg{width:.85rem;height:.85rem}
body.host .capb{width:2rem;height:2rem;top:-.8rem}body.host .capb svg{width:1.25rem;height:1.25rem}
.capv{background:none;border:0;padding:.15rem;border-radius:.8rem}
.capv:active{transform:scale(.92)}
.caph{font-size:.75rem;font-weight:700;color:#111;opacity:.75}
.team .btn{min-height:2.6rem;font-size:.95rem;padding:.3rem 1.2rem}
.team{justify-content:flex-start}
.chip svg{width:1.05em;height:1.05em}

/* ---- category picker + locked-in marks ---- */
.catlist{display:flex;flex-direction:column;gap:.7rem;width:100%}
.catlist .seg button{min-height:2.7rem;font-size:.9rem;justify-content:center;text-align:center}
.catlist .seg button:disabled:not(.on){opacity:.75}
body.host .catlist{display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem;max-width:112rem}
body.host .catlist .seg.games{grid-template-columns:1fr 1fr}
body.host .catlist .seg button{font-size:.95rem;min-height:2.2rem;padding:.15rem .4rem}
body.host .catlist .set{padding:.4rem .6rem .5rem}
.lk{position:relative;display:inline-flex;opacity:.4}
.lk.in{opacity:1}
.lk i{position:absolute;bottom:-.35rem;inset-inline-end:-.35rem;width:1.15rem;height:1.15rem;border-radius:50%;background:var(--ok);border:.11rem solid #111;display:grid;place-items:center;color:#111}
.lk i svg{width:.7rem;height:.7rem}
body.host .lk i{width:1.7rem;height:1.7rem}body.host .lk i svg{width:1rem;height:1rem}

body.host .bigslots .chip{font-size:2.2rem;min-height:4.6rem;padding:.4rem 2rem;min-width:5rem;justify-content:center}

/* ---- category icons ---- */
.cic{width:1.9rem;height:1.9rem;flex:none;object-fit:contain}
.chip .cic{width:1.5rem;height:1.5rem}
.catlist .seg.games{grid-template-columns:1fr 1fr 1fr}
.catlist .seg.games button{flex-direction:column;gap:.2rem;min-height:5.2rem;padding:.4rem .25rem;font-size:.8rem;justify-content:center;line-height:1.2}
.catlist .seg.games button .cic{width:2.7rem;height:2.7rem}
.catlist .seg.games button:last-child:nth-child(odd){grid-column:auto}
.cat .cic.big{width:3rem;height:3rem;align-self:center}
.cat h4{font-size:.92rem;white-space:normal;line-height:1.2;min-height:2.3em;display:flex;align-items:center;justify-content:center;text-align:center}
body.host .cat .cic.big{width:5.4rem;height:5.4rem}
body.host .cat h4{font-size:1.6rem}
body.host .chip .cic{width:2.4rem;height:2.4rem}
body.host .bigslots .chip .cic{width:3.2rem;height:3.2rem}

/* ---- install sheet ---- */
.inst{position:fixed;left:max(.7rem,env(safe-area-inset-left));right:max(.7rem,env(safe-area-inset-right));bottom:calc(.7rem + env(safe-area-inset-bottom));z-index:90;background:#fff;color:#111;border:var(--bw) solid #111;border-radius:1.4rem;box-shadow:var(--lip);padding:1rem 1rem .9rem;display:flex;flex-direction:column;gap:.7rem;animation:instIn .45s var(--e-back) both;max-width:30rem;margin:0 auto}
.inst.out{animation:instOut .3s ease-in forwards}
@keyframes instIn{from{transform:translateY(120%)}to{transform:none}}
@keyframes instOut{to{transform:translateY(130%);opacity:0}}
.inst .ih{display:flex;align-items:center;gap:.7rem;padding-inline-end:2.4rem}
.inst .ih img{width:3.2rem;height:3.2rem;border-radius:.9rem;border:.16rem solid #111}
.inst .ih b{display:block;font-family:Lalezar;font-weight:400;font-size:1.35rem;line-height:1.2}
.inst .ih small{color:#5d5a66;font-weight:600;font-size:.82rem}
.inst ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.45rem}
.inst li{display:flex;align-items:center;gap:.6rem;background:#fff4d6;border:.14rem solid #111;border-radius:.9rem;padding:.45rem .7rem;font-weight:700;font-size:.95rem}
.inst li i{flex:none;font-style:normal;width:1.7rem;height:1.7rem;border-radius:50%;background:var(--sun);border:.14rem solid #111;display:grid;place-items:center;font-family:Lalezar;font-size:1rem}
.inst li svg{width:1.3em;height:1.3em;vertical-align:-.3em;color:#1594d6;display:inline-block}
.inst li small{color:#5d5a66;font-weight:600}
.inst .ix{position:absolute;top:.6rem;inset-inline-end:.6rem;width:2.3rem;height:2.3rem;border-radius:.7rem;border:.14rem solid #111;background:#fff;display:grid;place-items:center;color:#111}
.inst .ix svg{width:1.1rem;height:1.1rem}
.inst .btn{min-height:3rem;font-size:1rem}
.inst [hidden]{display:none!important}

/* ---- streak dots ---- */
.pot.streak{flex-direction:column;gap:.15rem;padding:.25rem .9rem}
.pot.streak small{font-size:.7rem;font-weight:700;color:#5d5a66;white-space:nowrap}
.dots3{display:flex;gap:.35rem;direction:ltr}
.dots3 i{width:1.15rem;height:1.15rem;border-radius:50%;border:.16rem solid #111;background:#fff}
.dots3 i.on{background:var(--ok);animation:pop .35s var(--e-back)}
body.host .dots3 i{width:1.9rem;height:1.9rem}
body.host .pot.streak small{font-size:1.1rem}

/* ---- impostor rows ---- */
.irows{display:flex;flex-direction:column;gap:.55rem;width:100%}
.irow{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.7rem;background:#fff;color:#111;border:var(--bw) solid #111;border-radius:1rem;box-shadow:var(--lip);padding:.45rem .75rem;min-height:3.5rem;width:100%;text-align:start;font:inherit}
.irow .ihd{display:flex;align-items:center;gap:.45rem;min-width:5.5rem}
.irow .ihd b{font-weight:700;font-size:.95rem;max-width:6rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.irow .cl{display:flex;flex-wrap:wrap;gap:.3rem}
.irow .cl .chip{box-shadow:none;border-width:.12rem;padding:.05rem .65rem;background:#fff4d6;font-size:.95rem}
.irow .ph{color:#9a96a6;font-weight:700;letter-spacing:.2em}
.irow .iex{display:flex;align-items:center;gap:.5rem}
.irow .iex .chip{box-shadow:none;border-width:.12rem;font-size:.85rem;padding:.05rem .6rem}
.irow.turn{background:var(--sun)}
.irow.sel{background:var(--sun);box-shadow:var(--lip)}
.irow.imp{background:#ffd9da}
button.irow:disabled{cursor:default}
button.irow:active:not(:disabled){transform:translate(.26rem,.26rem);box-shadow:none}
.improle{align-items:center;gap:1rem;margin-top:1.2rem}
body.host .irows{max-width:76rem;gap:.7rem}
body.host .irow{min-height:4.6rem;padding:.5rem 1.2rem;border-radius:1.3rem;gap:1rem}
body.host .irow .ihd b{font-size:1.5rem;max-width:12rem}
body.host .irow .cl .chip{font-size:1.6rem;padding:.1rem 1rem}
body.host .irow .iex .chip{font-size:1.3rem}
#homeSheet .h2{display:flex;align-items:center;justify-content:center;gap:.5rem}
#homeSheet .h2 svg{width:1.6rem;height:1.6rem}
/* ---- big rooms: smaller cards on the TV ---- */
.strip:has(.pc:nth-child(11)) .pc{min-width:6rem;padding:.4rem .6rem}
.strip:has(.pc:nth-child(11)) .pc .sc{font-size:1.5rem}
.strip:has(.pc:nth-child(11)){flex-wrap:wrap;gap:.6rem;min-height:0}
.tbox .avs:has(.av:nth-child(7)){flex-wrap:wrap;gap:.3rem;max-width:30rem}
.tbox .avs:has(.av:nth-child(7)) .av{--s:2.3rem!important}
.tbox .avs:has(.av:nth-child(7)) .av b{display:none}

/* phone: in a game the top bar shows the avatar only, so the buttons fit */
body.phone.ingame .me > div{display:none}
body.phone .irow{grid-template-columns:1fr auto;row-gap:.35rem}
body.phone .irow .cl{grid-column:1/-1;order:3}
body.phone .irow .cl:has(.ph){display:none}

/* ---- general category chooser ---- */
.catpick{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem;width:100%}
.catpick button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;min-height:9rem;background:#fff;color:#111;border:var(--bw) solid #111;border-radius:1.2rem;box-shadow:var(--lip);font:inherit;font-weight:800;font-size:1rem;padding:.6rem .3rem;text-align:center;line-height:1.25}
.catpick button .cic{width:4rem;height:4rem}
.catpick button:active:not(:disabled){transform:translate(.26rem,.26rem);box-shadow:none}
.catpick button:disabled{opacity:.85}
body.host .catpick{max-width:80rem;gap:1.4rem}
body.host .catpick button{min-height:18rem;font-size:2.2rem;border-radius:1.8rem}
body.host .catpick button .cic{width:8rem;height:8rem}

/* ---- 3-4 teams, team names, team members board ---- */
.av.t2{--tc:var(--t2)}.av.t3{--tc:var(--t3)}.team.t2{--tc:var(--t2)}.team.t3{--tc:var(--t3)}
.pc.t2{--tc:var(--t2)}.pc.t3{--tc:var(--t3)}.tbox.t2{--tc:var(--t2)}.tbox.t3{--tc:var(--t3)}
.hbox.t2{background:var(--t2)}.hbox.t3{background:var(--t3)}
.teams.n3,.teams.n4{display:grid;grid-template-columns:repeat(2,1fr);gap:.6rem}
body.host .teams.n3{grid-template-columns:repeat(3,1fr)}body.host .teams.n4{grid-template-columns:repeat(4,1fr)}
.tnedit{margin-inline-start:.4rem;background:#fff;border:2px solid #111;border-radius:.5rem;width:1.8rem;height:1.8rem;display:inline-grid;place-items:center;font-size:1rem;cursor:pointer;color:#111}
.tmem{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:.6rem;width:100%;margin-top:.6rem}
.tm{background:#fff;border:var(--bw) solid #111;border-top:.6rem solid var(--tc);border-radius:1rem;padding:.5rem .6rem;display:flex;flex-direction:column;gap:.3rem;color:#111}
.tm>b{font-size:1rem}.tmr{display:flex;align-items:center;gap:.4rem}.tmr .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tmr .num{font-weight:800}
.adopt{display:flex;flex-direction:column;gap:.4rem;width:100%}.adopt small{font-weight:800}.adopt .btn{justify-content:flex-start;gap:.5rem}
.tmr .chip{font-size:.72rem;padding:.08rem .45rem;min-height:0;box-shadow:none}.tmr .num{font-size:1rem}
body.host .tm>b{font-size:1.3rem}body.host .tmr .num{font-size:1.3rem}

/* flat message under the input (no tilt, never overlaps) */
.note{display:flex;flex-direction:column;align-items:center;gap:.15rem;max-width:100%;background:#fff;color:#111;border:var(--bw) solid #111;border-radius:1rem;box-shadow:var(--lip);padding:.5rem 1rem;text-align:center;font-weight:700;animation:pop .3s var(--e-back) both}
.note b{font-family:Lalezar;font-weight:400;font-size:1.3rem;color:#b45309}
html.dark .note{background:#1e1e24;color:#f4f4f5;border-color:#444}
html.dark .note b{color:#fbbf24}
#top-guess-status:empty{display:none}
#top-guess-status{margin:.35rem 0 0;padding:.4rem .75rem;border-radius:.75rem;border:2px solid #111;background:#fef3c7;color:#78350f;font-weight:700;font-size:.9rem;text-align:center}
html.dark #top-guess-status{background:#3b2a0a;color:#fde68a;border-color:#78350f}
a.chip[href]{text-decoration:none;cursor:pointer;font-weight:800;justify-content:center;align-self:center;box-shadow:.16rem .16rem 0 var(--sh)}
a.chip[href]:active{transform:translate(.12rem,.12rem);box-shadow:none}
html.dark a.chip.line[href]{background:#262630;color:#f4f4f5;border-color:#555}
body.host .note{font-size:1.5rem}body.host .note b{font-size:2rem}
/* percent source: wraps inside the screen, never cut */
.srcline{width:fit-content;max-width:100%;align-self:center;justify-self:center;margin-inline:auto;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;text-align:center;font-size:.85rem;font-weight:600;line-height:1.5;color:#333;background:#fff;border:2px solid #111;border-radius:.8rem;padding:.32rem .75rem}
.srcline b{font-weight:800;margin-inline-end:.3rem}
html.dark .srcline{background:#1d1d1d;color:#ddd;border-color:#444}
body.host .srcline{font-size:1.15rem;max-width:60rem}

.start-pair{display:flex;gap:.6rem;align-items:stretch;width:100%;justify-content:center}
.start-pair .btn{flex:1;width:auto;min-width:0;padding-inline:.65em}
.moments,.reveal-rows{width:min(100%,45rem);display:grid;gap:.55rem}
.moments h3,.moments p,.bluff-reveal h2{margin:0}
.moments p,.reveal-card,.miss{padding:.55em .8em;border:var(--bw) solid #111;border-radius:.7rem;background:var(--panel);color:#111;box-shadow:var(--lip)}
.bluff-reveal.misses .reveal-rows{display:flex;flex-wrap:wrap;justify-content:center}
.reveal-card{display:grid;gap:.5rem;text-align:center;overflow-wrap:anywhere}
.reveal-card strong{font-family:Lalezar,Readex;font-size:1.7em}
.bluff-author{font-weight:700;animation:pop .35s 1.7s both}
.spotlight .bluff-voters{animation:pop .35s .65s both}
.bluff-voters .avs{justify-content:center;flex-wrap:wrap}
body.host .reveal-rows{max-width:80rem;width:100%;font-size:1.7rem}
body.host .moments{font-size:1.6rem}
@media(max-width:600px){
  body.phones-only #stage .scr{gap:.55rem;padding:.35rem .65rem .8rem;scroll-padding-block:.6rem}
  body.phones-only .qcard{padding:.65rem .8rem}
  body.phones-only .qtext{font-size:clamp(18px,5.2vw,24px);line-height:1.4}
  body.phones-only .qimg{max-height:clamp(75px,19dvh,145px);object-fit:contain}
  body.phones-only .opts{gap:.45rem}
  body.phones-only .opt{min-height:44px;padding:.4rem .65rem;gap:.5rem;font-size:1rem}
  body.phones-only .btn{min-height:44px}
  body.phones-only .field input{font-size:max(16px,1rem);min-width:0}
  body.phones-only .wait img,body.phones-only .intro .emb{max-height:15dvh;width:auto}
  body.phones-only .reveal-rows,body.phones-only .note{max-width:100%;overflow-wrap:anywhere}
  body.phones-only .sticky{padding:.3rem 0}
  body.phones-only .sticky .btn{font-size:1rem}
  body.phones-only .reacts{padding-block:.25rem;gap:.35rem}
  body.phones-only #top .ibtn{min-width:44px}
  body.phones-only .qmeta{flex-wrap:wrap}
  body.phones-only .chip{max-width:100%;white-space:normal}
  .reveal-card strong{font-size:1.35em}
}

.entry-mascot{position:relative;display:grid;place-items:center;width:11rem;max-width:48vw;aspect-ratio:1;flex-shrink:0}
.entry-mascot .hero{width:100%}
.entry-motion{position:absolute;left:50%;top:50%;width:228%;max-width:none;transform:translate(-51%,-52%);opacity:0;pointer-events:none}
.entry-mascot.playing .hero{visibility:hidden}
.entry-mascot.playing .entry-motion{opacity:1}
body:has(.mode-bumper) :is(#top,#bottom,.hostctl){display:none}
.mode-bumper{position:relative;flex:1;min-height:0;overflow:hidden}
.mode-bumper img,.mode-film{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.mode-film{opacity:0}
.mode-film.playing{opacity:1}
.rules-heading{display:flex;flex-direction:column;align-items:center;gap:.5rem;min-width:0;max-width:100%}
.mode-rules .h1{max-width:100%;overflow-wrap:anywhere}
.mode-rules .how>div,.mode-rules .how span{min-width:0;overflow-wrap:anywhere}
details.set{display:block;min-width:0}
details.set summary{cursor:pointer;line-height:1.6}
details.set ol{margin-block:.4em .1em;padding-inline-start:1.75em;list-style-type:arabic-indic}
details.set li{padding-inline-start:.2em;line-height:1.65;overflow-wrap:anywhere}
body.host .mode-rules .how>div{flex:1 1 0}
body.phone .mode-rules .emb{width:auto;max-height:min(16dvh,6.5rem);max-width:100%;object-fit:contain}
body.phone .mode-rules .h1{font-size:clamp(1.6rem,7vw,2.4rem);line-height:1.35;padding-inline:1rem}
body.phone .mode-rules .how div{padding:.4rem .7rem;gap:.55rem}
body.phone .mode-rules .how{gap:.45rem}
@media (orientation:landscape) and (max-height:480px){
  body.phone .mode-rules{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.8fr);align-items:center;align-content:safe center;justify-items:center}
  body.phone .mode-rules .emb{max-height:20dvh}
  body.phone #stage .mode-rules{column-gap:.65rem;padding:.35rem .65rem .6rem;grid-template-columns:minmax(0,.75fr) minmax(0,1.8fr)}
  body.phone .mode-rules .h1{font-size:1.4rem}
  body.phone .mode-rules .how{gap:5px}
  body.phone .mode-rules .how div{padding:4px 8px;font-size:15px;line-height:1.4;gap:7px}
  body.phone .mode-rules .how i{width:25px;height:25px;font-size:16px}
  body.phone .mode-rules .rules-heading{gap:.2rem}
}
.home-modes{flex-wrap:wrap;justify-content:center;max-width:100%}
.party{gap:.55rem}
.party-meta,.party-chips{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:.4rem}
.scr.spot-play{animation:none}
.spot-wrap{display:contents}
.spot-scene,.spot-shutter{position:relative;isolation:isolate;flex:none;width:min(100%,55dvh,32rem);aspect-ratio:1;background-size:cover;border:3px solid #171715;border-radius:.8rem;overflow:hidden;box-shadow:var(--lip);box-sizing:border-box}
.spot-scene[role=button]{cursor:crosshair;touch-action:manipulation}
.spot-scene[role=button]:focus-visible::after{content:'+';position:absolute;left:var(--aim-x,50%);top:var(--aim-y,50%);transform:translate(-50%,-50%);color:white;background:#111;border-radius:50%;padding:0 .25em}
spot-picture,spot-picture canvas{display:block;width:100%;height:100%;pointer-events:none}
.spot-answer,.spot-pin{position:absolute;transform:translate(-50%,-50%);pointer-events:none}
.spot-answer{outline:3px dashed white;box-shadow:0 0 0 5px #182423;border-radius:4px}
.spot-pin{display:grid;place-items:center;line-height:1;border-radius:50%;width:1.25rem;height:1.25rem;font-size:.84rem;border:2px solid #111;color:#111;background:var(--coral)}
.spot-pin.yes{background:var(--lime)}
.spot-shutter{display:grid;place-items:center;background:#342d36;color:#ffedbb;font-size:2.2rem}
.spot-shutter.blackout{background:#17151b}
.spot-caption{text-align:center}.party-chips{font-size:.85em}
.sync-pairs{width:min(100%,44rem);display:grid;gap:.6rem}
body.host .sync-pairs:has(.sync-pair:nth-child(2)){width:100%;grid-template-columns:repeat(auto-fit,minmax(min(21rem,44%),1fr))}
.sync-pair{padding:.65rem .8rem;border:var(--bw) solid #151416;box-shadow:var(--lip);border-radius:1rem;background:var(--panel);text-align:center;min-width:0}
.sync-pair.matched{border-color:#298452}
.sync-count{font:5rem Lalezar,sans-serif;color:var(--violet);line-height:1.2}
.sync-pair b,.sync-pair small{overflow-wrap:anywhere}
.sync-cards{display:flex;gap:.6rem;justify-content:center;align-items:stretch;margin:.45rem auto}
.sync-cards span{flex:1;min-width:0;overflow-wrap:anywhere;background:#ffcd64;color:#20192b;border:3px solid #221b29;border-radius:.65rem;font:1.7rem Lalezar,sans-serif;padding:.35em .5em;box-shadow:0 3px #221b29}
.sync-cards span+span{background:#cfb1ff}
@media(max-height:650px){.spot-scene,.spot-shutter{width:min(100%,48dvh,29rem)}.party{gap:.25rem}}
body.host .spot-play .spot-scene,body.host .spot-play .spot-shutter{width:min(100%,54dvh)}

.ibtn.nav-back,body.phone .ibtn.nav-back{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;width:auto;min-width:44px;min-height:44px;padding:0 .65rem;background:var(--sun);color:#171411;font:400 1.15rem Lalezar,sans-serif;line-height:1}
.nav-back::before{content:"";width:1.1em;height:1.1em;background:currentColor;clip-path:polygon(0 42%,68% 42%,43% 17%,55% 5%,100% 50%,55% 95%,43% 83%,68% 58%,0 58%)}
.nav-back:active{transform:translate(1px,2px);box-shadow:none}
.nav-back:focus-visible{outline:3px solid currentColor;outline-offset:3px}
@media (max-width:400px){
  body.phone #top:has([role="timer"]){gap:4px}
  body.phone #top:has([role="timer"]) .nav-back{width:44px;padding:0}
  #top:has([role="timer"]) .nav-back span{display:none}
  #top [role="timer"],body.phone #top:has([role="timer"]) .myscore{padding-inline:.35rem}
}
#homeSheet .card{max-height:100%;overflow-y:auto}
@media(max-width:460px){
  body.phone.ingame #top .room-back{width:44px;padding:0}
  body.phone.ingame #top .room-back span{display:none}
}
[data-step-skip][hidden]{display:none}
.raq .qcard,.raq-input,.raq-grid,.raq-questions{width:min(100%,40rem);margin:0 auto}
.raq-input{text-align:center}.raq-input:empty{display:none}
.raq-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(8rem,42%),1fr));gap:.5rem;padding:0;border:0;min-width:0}
.raq-choice{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.3rem;min-width:0;min-height:44px;padding:.4rem .7rem}
.raq-choice span{overflow-wrap:anywhere}.raq-choice strong{font-variant-numeric:tabular-nums;color:#171417;background:#ffd061;border-radius:.45rem;padding:0 .38rem}
.raq-choice small{flex-basis:100%;text-align:start}.raq fieldset:disabled .raq-choice,.raq .raq-choice:disabled{opacity:1}
.raq-questions{display:grid;gap:.5rem}.raq-questions>div{background:var(--panel);border:var(--bw) solid #171417;border-radius:.8rem;padding:.45rem .8rem}
.raq-questions p{margin:0;font-weight:bold}
.start-pair .btn:disabled,.seg.games button:disabled{background:#d4d4d4;color:#575757;border-color:#686868;box-shadow:.15rem .15rem 0 #777;opacity:1;cursor:not-allowed;transform:none}
.seg.games button:disabled img{filter:grayscale(1);opacity:.65}
.start-help{display:block;margin-top:.3rem;text-align:center}
#score-flag{align-self:center;flex:none;min-height:44px;padding:.2rem .85rem;font-size:1rem}
#score-flag svg,.appeal-card>svg{color:#d92837}
#score-flag svg path,.appeal-card>svg path{fill:#ef3443}
#score-appeal,#trap-burst{position:fixed;inset:0;display:grid;place-items:center;padding:1rem}
#score-appeal{z-index:100;background:#171022bb;overflow:auto}
.appeal-card,.trap-flash{color:#201321;background:#fff0cd;border:4px solid #171117;border-radius:1.2rem;box-shadow:4px 5px 0 #171117;text-align:center}
.appeal-card{width:min(100%,28rem);padding:1rem;max-height:95dvh;overflow:auto}
.appeal-card>svg{width:2.1rem;height:2.1rem;margin:auto}
.appeal-card h2{font-family:Lalezar,Readex;font-weight:400}
.appeal-card form,.appeal-card label{display:grid;gap:.45rem}
.appeal-card p,.appeal-card .duo{margin-block:.65rem}
.appeal-card label{text-align:start}
.appeal-card select,.appeal-card input{background:white;color:#171117;border:2px solid #171117;border-radius:.55rem;padding:.4rem;font:inherit;width:100%;min-width:0;min-height:44px}
.appeal-amount{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}
.appeal-card .btn.ghost{background:white;color:#171117}
#trap-burst{pointer-events:none;z-index:45}
.trap-flash{display:grid;justify-items:center;padding:.7rem 1.3rem;max-width:min(90vw,28rem);transform-origin:center;animation:trap-pop .5s ease-out both}
.trap-flash img{height:clamp(64px,16dvh,175px);max-width:100%;object-fit:contain;animation:trap-bomb .6s ease-out both}
.trap-flash strong{font:1.8rem/1.2 Lalezar,Readex;overflow-wrap:anywhere}
.trap-flash span{color:#a51c31;font-weight:700}
@keyframes trap-pop{0%{transform:scale(.45);opacity:0}60%{transform:scale(1.12)}100%{transform:scale(1);opacity:1}}
@keyframes trap-bomb{0%{transform:translateY(-24px) rotate(-28deg)}60%{transform:rotate(12deg)}100%{transform:rotate(0)}}
@media(prefers-reduced-motion:reduce){.trap-flash,.trap-flash img{animation:none}}
#round-swap{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.35rem}
body.passed-answer #stage :is(form,button[data-act],button[data-range],button[data-spot-board]){display:none}

/* Keep the room actions and all four trivia answers visible on short phones. */
@media (orientation:landscape) and (max-height:440px){
  body.phone #stage .land:has(.entry-mascot){
    display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,2.7fr);
    grid-template-areas:"mascot create" "logo join" "tagline more" "modes modes";
    align-content:safe center;justify-items:center;gap:6px 14px;
    padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right));
  }
  body.phone[data-theme-btn] #stage .land:has(.entry-mascot){
    padding-left:max(60px,calc(env(safe-area-inset-left) + 52px));
    padding-right:max(60px,calc(env(safe-area-inset-right) + 52px));
  }
  .land .entry-mascot{grid-area:mascot;width:min(19vh,78px)}
  .land:has(.entry-mascot) .logo{grid-area:logo;font-size:2.6rem}
  .land:has(.entry-mascot) .sub{grid-area:tagline;font-size:14px}
  .land:has(.entry-mascot)>a:first-of-type{grid-area:create}
  .land:has(.entry-mascot)>a:nth-of-type(2){grid-area:join}
  .land:has(.entry-mascot) .duo{grid-area:more}
  .land:has(.entry-mascot) .btn,.land:has(#jf) .btn{min-height:44px;padding:.15rem .6rem;font-size:18px}
  .land .home-modes{grid-area:modes;gap:4px}
  .land .home-modes img{max-width:24px}
  body.phone #stage .land:has(#jf){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-content:safe center;justify-items:center;gap:8px 12px}
  .land:has(#jf) .logo{font-size:2.8rem}
  .land:has(#jf) .stamp{grid-column:1/-1;grid-row:1}
  #jf{gap:7px}
  #jf input{min-height:44px;height:44px}
  body.phone #stage .trivia-question{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);grid-template-rows:auto 1fr auto;gap:4px 9px;align-items:center;padding:3px 12px 6px}
  .trivia-question>.tbar,.trivia-question>[data-dyn="done"]{grid-column:1/-1}
  body.phone .trivia-question .qcard{padding:6px}
  body.phone .trivia-question .qmeta{margin:0 0 3px;gap:2px}
  body.phone .trivia-question .chip{font-size:12px;padding:1px 5px}
  body.phone .trivia-question .qtext{font-size:17px;line-height:1.25}
  body.phone .trivia-question .opts{grid-template-columns:repeat(2,minmax(0,1fr));align-content:center;gap:4px}
  body.phone .trivia-question .opt{font-size:15px;line-height:1.2;padding:4px;min-height:44px;gap:3px;overflow-wrap:anywhere}
  .trivia-question .opt .k{min-width:20px;width:20px;height:20px;font-size:13px}
}

.fold{width:100%;min-width:0;text-align:start}
.fold>summary{width:fit-content;max-width:100%;min-height:44px;align-content:center;padding:.35rem .8rem;border:2px solid #171515;border-radius:.6rem;background:#fff9eb;color:#211b17;font-weight:750;cursor:pointer}
.fold[open]>summary{margin-bottom:.5rem}
.fold .set{margin-block:.75rem}
.room-heading{flex:1;min-width:0;align-content:center;font-family:Lalezar,Readex,sans-serif;font-size:1.45rem;line-height:1.15}
.room-context{align-content:center;max-width:40%;line-height:1.25;font-size:.82rem;overflow-wrap:anywhere}
body.phone.ingame:not(.racing) .scr>.tbar{display:none}
.room-menu-button{font:bold 1rem system-ui;letter-spacing:.1em}
body.phone .btn.big.sun{animation:none}
.room-setup>.col,.room-setup>.sticky,.room-setup>.lobby-roster{width:100%}
.room-setup .avpick{margin-inline:auto}
.intro-prompt{max-width:32ch;text-align:center;font-size:1.35em;font-weight:750;text-wrap:balance}
body.phone .scr>.qcard:has(.qmeta:empty) .qmeta,body.phone .scr>[data-dyn="done"],#round-swap[hidden]{display:none}
body.phone .scr>[data-dyn="life"]{align-self:stretch}
body.phone .scr:has(.tbar) .opt .k{width:1.85rem;height:1.85rem;font-size:1.05rem;border-radius:.55rem;flex:none}
@media (orientation:landscape) and (max-height:440px){body.phone .trivia-question .opt .k{min-width:20px;width:20px;height:20px;font-size:13px;border-radius:6px}}
body.phone .opt{min-height:44px}
body.phone .spot-play .spot-scene,body.phone .spot-play .spot-shutter{width:min(100%,calc(100dvh - 15rem),32rem)}
.game-menu{margin:auto;width:min(22rem,calc(100vw - 2rem));max-height:82dvh;overflow:auto;overscroll-behavior:contain;background:#fff4d6;color:#211b17;border:3px solid #171515;border-radius:.9rem;padding:1rem;box-shadow:4px 5px #171515}
.game-menu[open]{display:grid;gap:.7rem}
.game-menu::backdrop{background:#161016ae}
.game-menu .btn,.game-menu .ibtn{min-height:44px;box-shadow:2px 3px #211b17}
.game-menu .menu-score{font-weight:750}
.game-menu ul{padding-inline-start:1.3rem}
.menu-reacts{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.menu-reacts .ibtn{min-width:44px}
@media(orientation:landscape) and (max-height:550px){
  body.phone .spot-play .spot-scene,body.phone .spot-play .spot-shutter{width:min(100%,56dvh)}
  body.phone .intro-prompt{align-self:center}
}
.judge #top {display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:3.4rem}
.judge #bottom {display:none}
.judge .judge-screen {animation:none;align-items:stretch}
.judge .judge-inner {width:100%;max-width:38rem;margin-inline:auto;display:grid;gap:.8rem;padding:.4rem .2rem 1rem}
.judge-inner h1 {font:1.85rem/1.25 Lalezar,Readex,sans-serif;text-align:center}
.judge-inner .sub,.judge-inner [data-clock] {text-align:center}
.judge-inner .btn {min-height:2.95rem;white-space:normal;overflow-wrap:anywhere}
.judge-inner .btn[aria-pressed=true] {background:var(--teal);color:#111}
.judge-inner .btn:disabled,.judge-inner .seg.games button:disabled {background:#d1cfc9;color:#4d4b47;box-shadow:none}
.judge-inner label {display:grid;gap:.3rem;font-weight:700}
.judge-inner input,.judge-inner textarea,.judge-inner select {font:inherit;color:#151515;background:#fffaf0;width:100%;min-width:0;padding:.55rem;border:2px solid #171717;border-radius:.65rem}
.judge-inner textarea {resize:vertical}
.judge-inner .judge-team,.judge-inner .judge-options,.judge-inner .judge-table {padding:.75rem;border:3px solid #151515;border-radius:.85rem;background:var(--judge-paper,#fff4d6);color:#171717;display:grid;gap:.55rem}
.judge-team legend {font-weight:800;background:var(--sun);color:#171717;padding:0 .4rem;border-radius:.25rem}
.judge-team details[open]>label {margin-top:.5rem}
.judge-inner .judge-choices,.judge-inner .judge-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}
.judge-options span {overflow-wrap:anywhere}
.judge-options b {color:#444}
.judge-table>div,.judge-inner .judge-line {display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.judge-table>div span {flex:1}
.judge-live-score,.judge-values{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.35rem .65rem}
.judge-live-score span,.judge-values span{border:1px solid currentColor;border-radius:.6rem;padding:.15rem .5rem}
.judge-inner .judge-line select {width:auto}
.judge-mark {display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:.35rem}
.judge-mark strong {overflow-wrap:anywhere}
.judge .judge-inner #judge-note:empty {display:none}
.judge .judge-inner #judge-note {color:var(--text);text-align:center;font-weight:700}

.bundle-list {display:flex;flex-wrap:wrap;gap:.4rem;width:100%}
.bundle-list button {flex:1;min-height:2.85rem}
.topic-panel {width:100%;min-width:0}
.topic-panel>summary {display:flex;align-items:center;gap:.45rem;width:100%;list-style:none}
.topic-panel>summary::-webkit-details-marker {display:none}
.topic-panel>summary::after {content:"";width:.5rem;height:.5rem;border-right:2px solid;border-bottom:2px solid;transform:rotate(45deg)}
.topic-panel[open]>summary::after {transform:rotate(225deg)}
.topic-panel>summary img {width:1.8rem;height:1.8rem;object-fit:contain;vertical-align:middle;margin-inline-end:.4rem}
.topic-panel>summary bdi {margin-inline-start:auto;font-size:.85em}
.topic-panel summary {cursor:pointer}
.topic-panel .topic-section {border-top:2px solid currentColor;margin-top:.55rem;padding:.4rem 0}
.topic-section summary,.topic-section-title {padding:.4rem;font-weight:700}
.topic-panel .topic-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,6rem),1fr));gap:.4rem;margin-top:.45rem}
.topic-panel[data-rules="topics-top"] {container-type:inline-size}
.topic-panel .top-grid-fifteen {grid-template-columns:repeat(3,minmax(0,1fr))}
@container (min-width: 34rem) {
  .topic-panel :is(.top-grid-fifteen,.top-grid-five) {grid-template-columns:repeat(5,minmax(0,1fr))}
}
.topic-grid button {min-height:2.8rem;min-width:0;flex-direction:column;line-height:1.2;overflow-wrap:anywhere;padding:.4rem}
.topic-grid .cic {width:2.4rem;height:2.4rem;object-fit:contain}
.topic-grid .scene-thumb {width:100%;height:3rem;object-fit:cover;border-radius:.4rem}
.topic-grid button:disabled {opacity:.55}
.topic-picked,.topic-question {display:flex;align-items:center;flex-wrap:wrap;gap:.35rem;margin:.5rem 0}
.topic-picked button {display:inline-flex;align-items:center;gap:.25rem;border:2px solid #171717;background:var(--sun);color:#171717;font:inherit;font-size:.8rem;border-radius:.5rem;padding:.25rem .4rem;min-height:2.5rem}
.topic-picked .cic,.topic-question .cic {width:1.5rem;height:1.5rem;object-fit:contain}
.topic-question {justify-content:center;font-weight:700}
.all-topics {margin-top:.55rem}
.judge .board,.judge .cat {min-width:0}
.judge .board .cell {min-height:2.75rem}
.judge .judge-inner {min-width:0}
.judge .cat .cells {grid-template-columns:repeat(3,minmax(0,1fr))}
.judge .cat h4 {white-space:normal}
.judge .cat .cell {width:100%;min-width:0;aspect-ratio:auto;line-height:1}
body.host .lobbyR {overflow-y:auto;overflow-x:hidden;min-height:0;justify-content:safe center;scrollbar-gutter:stable;padding:.4rem}
body.host .lobbyR>div {flex-shrink:0;max-width:100%}
body.host .lobbyR [data-dyn=set]>.topic-panel {grid-column:1/-1}

.points-receipt {width:100%;max-width:38rem;min-width:0;margin-inline:auto;border:2px solid #171717;border-radius:.8rem;background:#fff4d6;color:#171717;padding:.45rem .7rem;text-align:start}
.points-receipt>b:only-child {display:block;text-align:center}
.points-line {display:flex;align-items:baseline;justify-content:space-between;gap:.65rem;padding:.22rem 0}
.points-line strong {overflow-wrap:anywhere;min-width:0}
.points-amount {flex:none;background:var(--teal);color:#171717;border:2px solid #171717;border-radius:.45rem;padding:.05rem .4rem;font-weight:800}
.points-amount.deducted {background:var(--coral)}

.host-setup {display:grid;gap:.85rem;width:min(100%,30rem);margin-inline:auto}
.host-setup h1 {font:2.2rem/1.2 Lalezar,Readex,sans-serif;text-align:center}
.host-setup [role=status]:empty {display:none}
.play-method .btn {min-width:0;min-height:44px;padding:.4rem .55rem;font-size:1rem;line-height:1.3;text-align:center;white-space:normal}
.play-method [aria-current] {cursor:default}
/* ================== PRO UX, HIERARCHY & GAME-FEEL POLISH ================== */
:root {
  --lip-card: .18rem .18rem 0 var(--sh);
  --bw-soft: .14rem;
}

body.phone #bg::after { opacity: .05; }

body.phone :is(.card, .how div, .lbrow, .pot, .rvi, .nrow, .arow, .hbox, .sidebox, .tbox):not([data-act]):not([role="button"]) {
  border-width: var(--bw-soft);
  box-shadow: none;
}
body.phone .lbrow {
  border-inline-start-width: .34rem;
}
body.phone .lbrow:first-child,
body.phone .lbrow.me {
  box-shadow: .16rem .16rem 0 var(--sh);
}
body.phone :is(.chip:not([data-act]):not([data-react]), .myscore) {
  border-width: .13rem;
  box-shadow: none;
}
body.phone .qcard {
  border-width: .18rem;
  box-shadow: var(--lip-card);
}
body.phone :is(.btn:not(.ghost):not(:disabled), .opt:not(:disabled):not(.dim):not(.gone), .cell:not(:disabled):not(.st1):not(.st2), .tile:not(:disabled), .nudge-pill) {
  box-shadow: .26rem .26rem 0 var(--sh);
  transition: transform .09s var(--e-std), box-shadow .09s var(--e-std), background-color .15s;
}
body.phone :is(.btn:not(.ghost):not(:disabled), .opt:not(:disabled):not(.dim):not(.gone), .cell:not(:disabled):not(.st1):not(.st2), .tile:not(:disabled), .nudge-pill):active {
  transform: translate(.2rem, .2rem);
  box-shadow: .05rem .05rem 0 var(--sh);
}
body.phone .opt.sel {
  transform: translate(.08rem, .08rem);
  box-shadow: .16rem .16rem 0 var(--sh);
}

body.phone:not(.phones-only) #top {
  border-bottom: 2px solid rgba(17, 17, 17, .08);
  padding-bottom: .4rem;
}
html.dark body.phone:not(.phones-only) #top {
  border-bottom-color: rgba(255, 255, 255, .1);
}
body.phone:not(.phones-only) #stage .scr {
  gap: .68rem;
}

.nudge-dock {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
  margin-top: .55rem;
  padding: .65rem .75rem .75rem;
  background: var(--panel);
  border: var(--bw-soft) solid #111;
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.nudge-who {
  font-size: .88rem;
  font-weight: 700;
  color: var(--mute);
  text-align: center;
}
html.dark .nudge-dock {
  background: #231e33;
  border-color: var(--sh);
}
html.dark .nudge-who {
  color: #d8d0f0;
}
.nudge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
  width: 100%;
}
.nudge-pill {
  appearance: none;
  cursor: pointer;
  min-height: max(44px, 2.75rem);
  min-width: max(44px, 2.85rem);
  padding: .3rem .75rem;
  border-radius: .95rem;
  border: .16rem solid #111;
  background: #fff;
  color: #111 !important;
  font-family: Lalezar, Readex, sans-serif;
  font-size: 1.08rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: .2rem .2rem 0 var(--sh);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.nudge-pill.sun { background: var(--sun); }
.nudge-pill.coral { background: var(--coral); color: #111 !important; }
.nudge-pill.teal { background: var(--teal); }
.nudge-pill.lime { background: var(--lime); }
.nudge-pill.icon { font-size: 1.22rem; padding-inline: .6rem; background: #fff; }
.nudge-pill.popped { animation: nudgePop .28s var(--e-back); }

@keyframes nudgePop {
  0% { transform: scale(.86); }
  55% { transform: scale(1.12) rotate(-3deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes nudgeWobble {
  0%, 100% { transform: translateX(0) rotate(0); }
  20% { transform: translateX(-.32rem) rotate(-1.2deg); }
  45% { transform: translateX(.32rem) rotate(1.2deg); }
  70% { transform: translateX(-.18rem) rotate(-.6deg); }
}
.nudge-wobble { animation: nudgeWobble .38s var(--e-std); }

body.phone .flyr {
  pointer-events: none;
  z-index: 45;
  transform-origin: center bottom;
}
body.phone .flyr svg {
  width: 2.35rem;
  height: 2.35rem;
}
body.phone .flyr .rt {
  font-size: 1.25rem;
  padding: .12rem .55rem;
}
body.phone .flyr span {
  font-size: .78rem;
}

#stage.in-suspense {
  position: relative;
}
#stage.in-suspense > .scr {
  filter: blur(11px) saturate(.85);
  opacity: .24;
  transform: scale(.965);
  pointer-events: none;
  user-select: none;
  transition: none;
}
#stage.suspense-pop > .scr {
  animation: suspenseReveal .44s var(--e-back) both;
}
.suspense-stamp {
  position: absolute;
  inset-inline: 1rem;
  top: 50%;
  max-height: calc(100% - 1.5rem);
  transform: translateY(-50%) rotate(-2deg);
  z-index: 35;
  max-width: 28rem;
  margin-inline: auto;
  padding: 1.15rem 1.4rem 1.3rem;
  background: var(--sun);
  color: #111 !important;
  border: .22rem solid #111;
  border-radius: 1.5rem;
  box-shadow: .36rem .36rem 0 #111;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  pointer-events: none;
  animation: suspenseTremble .14s infinite alternate ease-in-out;
}
body.host .suspense-stamp {
  max-width: 48rem;
  padding: 2rem 2.8rem 2.2rem;
  border-width: .3rem;
  border-radius: 2.2rem;
  box-shadow: .55rem .55rem 0 #111;
}
.suspense-stamp.tone-coral { background: var(--coral); color: #111 !important; }
.suspense-stamp.tone-teal { background: var(--teal); }
.suspense-stamp.tone-pink { background: var(--pink); color: #111 !important; }
.suspense-stamp .suspense-tag {
  display: inline-block;
  padding: .15rem .75rem;
  border-radius: 99rem;
  background: #111;
  color: #fff !important;
  font-size: .88rem;
  font-weight: 700;
}
body.host .suspense-stamp .suspense-tag {
  font-size: 1.45rem;
  padding: .25rem 1.2rem;
}
.suspense-stamp b {
  font-family: Lalezar, Readex, sans-serif;
  font-weight: 400;
  font-size: clamp(1.65rem, 6vw, 2.3rem);
  line-height: 1.15;
}
body.host .suspense-stamp b {
  font-size: 3.6rem;
}

@keyframes suspenseTremble {
  0% { transform: translateY(-50%) rotate(-2.4deg) scale(1); }
  100% { transform: translateY(calc(-50% - 3px)) rotate(-1.1deg) scale(1.025); }
}
@keyframes suspenseReveal {
  0% { filter: blur(4px); opacity: .55; transform: scale(.94); }
  100% { filter: blur(0); opacity: 1; transform: scale(1); }
}

.recap-bar {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
  margin-top: .35rem;
}
.btn.teal {
  background: var(--teal);
  color: #111 !important;
}
.neo-ic, .nudge-pill.icon svg {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.nudge-who {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.nudge-who svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}
body.phone .tnedit {
  min-width: 2.5rem;
  min-height: 2.5rem;
}
html[dir="ltr"] .tbar i,
html[dir="ltr"] .bar i {
  transform-origin: left;
}
html[dir="ltr"] .nav-back::before {
  transform: scaleX(-1);
}
#stage.suspense-done > .scr {
  animation: none !important;
  opacity: 1;
  transform: none;
  filter: none;
}
body.phone .ibtn,
.themefab {
  min-width: 44px;
  min-height: 44px;
}
body.phone #top > .ibtn {
  height: max(2.5rem, 44px);
}
@media (min-height: 441px) {
  body.phone .land .home-modes {
    display: grid;
    grid-template-columns: repeat(6, auto);
    gap: .5rem .65rem;
    justify-content: center;
    justify-items: center;
  }
}
.land .home-modes img {
  filter: drop-shadow(.1rem .12rem 0 rgba(17, 17, 17, .24));
}
body.phone .cell .v {
  top: -.55rem;
  inset-inline-end: -.4rem;
  z-index: 2;
  font-size: .8rem;
}
.room-setup > .sticky {
  padding: .7rem .1rem calc(.35rem + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--page) 22%);
}
html.dark .room-setup > .sticky {
  background: linear-gradient(transparent, #16131f 22%);
}
.nudge-pill.icon[data-react="fire"] svg { color: #f26a1b; }
.nudge-pill.icon[data-react="shock"] svg { color: #0ea5e9; }
body.host:not(.ingame) #app {
  padding: .9rem 3.2rem .8rem;
}
body.host:not(.ingame) #top {
  padding-bottom: .45rem;
}
body.host .lobbygrid {
  grid-template-columns: 27rem 1fr;
  gap: 2rem;
}
body.host .joinbox {
  gap: .8rem;
}
body.host .joinbox .qr {
  width: 17rem;
  height: 17rem;
}
body.host .code span {
  font-size: 4.1rem;
}
body.host .team {
  min-height: 3.9rem;
  padding: .35rem .6rem;
}
body.host .lobbyR {
  gap: .42rem !important;
  justify-content: flex-start;
}
body.host .lobbyR [data-dyn=set] {
  gap: .48rem;
}
body.host .lobbyR .av.l {
  --s: 3.3rem;
}
body.host .lobbyR .set {
  padding: .28rem .65rem .38rem;
  gap: .25rem;
}
body.host .lobbyR .seg button {
  min-height: 2.1rem;
  font-size: .98rem;
  padding: .18rem .7rem;
}
body.host .lobbyR .bundle-list button {
  min-height: 2.15rem;
}
body.host .lobbyR .room-games .seg button {
  font-size: clamp(16px, 1.15rem, 20px);
  line-height: 1.15;
}
body.host .lobbyR [data-dyn="go"] .btn {
  min-height: 3.35rem;
}
body.host .lobbyR [data-dyn="go"] .btn.big {
  min-height: 3.35rem;
  font-size: 1.65rem;
  padding: .4rem 1.8rem;
}
html.dark [data-dyn="set"] > .sub {
  color: #cdc6e4 !important;
}
html.dark .lbrow :is(.nm, .sc, .rk) {
  color: #111 !important;
}
html.dark .judge #top,
html.dark .judge-inner > label,
html.dark .judge-mark strong,
html.dark .pgrid .av b,
html.dark .lobby-roster :not(.team) .av b,
html.dark .scr > .row > .av b,
html.dark .board-assists p,
html.dark .secret-reminder,
html.dark .fold > small,
html.dark .party-chips,
html.dark .qadha-list > b,
html.dark .raq-input,
html.dark .raq [data-raq-status],
html.dark .raq [data-dyn="raq-progress"],
html.dark .room-heading,
html.dark .room-context,
html.dark .intro-prompt,
html.dark .spot-caption,
html.dark .moments h3,
html.dark .bluff-reveal h2,
html.dark .host-setup h1,
html.dark .host-setup [role=status],
html.dark .start-help,
html.dark .judge-inner h1,
html.dark .judge-inner .sub,
html.dark .judge-inner [data-clock],
html.dark .judge .judge-inner #judge-note,
html.dark .topic-panel > .topic-section > :is(summary, .topic-section-title) {
  color: #f6f1ff;
}
html.dark .topic-panel > .topic-section {
  border-top-color: rgba(246, 241, 255, .45);
}
html.dark :is(.moments p, .reveal-card, .miss, .qadha-standing, .raq-questions > div, .sync-pair) {
  border-color: #111;
  box-shadow: .2rem .2rem 0 var(--sh);
}
html.dark .points-receipt {
  border-color: var(--sh);
  box-shadow: .2rem .2rem 0 var(--sh);
}

/* ================== IPAD / TABLET / KEYBOARD RESPONSIVE PASS ================== */
html.host:has(.host-entry) {
  font-size: clamp(15px, 2.2vmin, 20px);
}
body.host-entry #app {
  padding: calc(.7rem + env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) calc(.8rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}
body.host-entry #stage .scr {
  padding: 1rem;
  overflow: auto;
  gap: .85rem;
}
body.host-entry #stage .btn {
  min-height: 48px;
  font-size: 1.12rem;
}
body.host-entry #stage .btn.big {
  min-height: 56px;
  font-size: 1.45rem;
  padding: .75rem 1.8rem;
}
body.host .lobbyR [data-dyn="set"] > .set {
  justify-content: space-between;
}

/* Virtual keyboard reachability across phones, landscape, and iPad/tablets */
.judge-inner :is(input, textarea, select) {
  font-size: max(16px, 1rem);
  min-height: 44px;
}
.judge-inner .btn,
.judge .board .cell {
  min-height: max(2.95rem, 44px);
}
body.kb #app,
body.kb .overlay {
  height: min(100dvh, var(--keyboard-height, 100dvh));
  bottom: auto;
}
.overlay {
  overflow-y: auto;
  justify-content: safe center;
}
body.kb #bottom,
body.kb .reacts,
body.kb .nudge-dock {
  display: none !important;
}
body.kb #stage .scr {
  justify-content: flex-start;
  scroll-padding-block: .75rem 1.25rem;
  padding-bottom: max(.85rem, env(safe-area-inset-bottom));
}
body.kb .field {
  scroll-margin-block: .75rem;
}
body.kb .field .btn {
  flex: none;
  min-width: 4.8rem;
}
@media (max-height: 520px) {
  body.kb #top {
    padding-top: calc(.25rem + env(safe-area-inset-top));
    padding-bottom: .25rem;
  }
  body.kb #stage .scr {
    gap: .35rem;
    padding-top: .2rem;
  }
  body.kb .land .hero,
  body.kb .land .entry-mascot {
    display: none;
  }
  body.kb .land .h1 {
    font-size: 1.45rem;
  }
  body.kb .qcard {
    padding: .45rem .75rem;
  }
  body.kb .qtext {
    font-size: clamp(1rem, 3.8vmin, 1.2rem);
    line-height: 1.3;
  }
  body.kb .field input,
  body.kb .field .btn,
  body.kb .btn,
  body.kb .btn.big,
  body.kb .land .btn {
    height: auto;
    min-height: 44px;
    padding-block: .35rem;
    font-size: 1.1rem;
  }
}

/* Spacious tablet layout for player screens */
@media (min-width: 700px) and (min-height: 600px) {
  body.phone .scr {
    max-width: 44rem;
  }
  body.phone .scr:not(.land) .opts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.phone .qadha-choices,
  body.phone .judge-inner {
    max-width: 44rem;
  }
}

/* Touch landscape host (e.g. iPad 1024x768 / 1180x820 / Android tablets) */
@media (pointer: coarse) and (min-width: 961px) and (min-aspect-ratio: 11/10) {
  html.host {
    font-size: max(13px, min(.95vw, 1.55vh));
  }
  body.host #app {
    padding: calc(.75rem + env(safe-area-inset-top)) max(1.6rem, env(safe-area-inset-right)) calc(.65rem + env(safe-area-inset-bottom)) max(1.6rem, env(safe-area-inset-left));
  }
  body.host #top {
    padding-bottom: .55rem;
    gap: 1rem;
  }
  body.host .cat { padding: .6rem; gap: .5rem; }
  body.host .cat .cic.big { width: 3.6rem; height: 3.6rem; }
  body.host .cat h4 { font-size: 1.3rem; }
  body.host .cat .cells { gap: .5rem; }
  body.host .cell { height: 4.7rem; font-size: 2.2rem; }
  body.host .strip { padding-inline-start: 16.5rem; }
  body.host.ingame .scr {
    overflow-y: auto;
  }
  body.host:not(.ingame) .scr {
    overflow: hidden;
  }
  body.host .lobbyR .seg button,
  body.host .lobbyR .room-games .seg button,
  body.host .lobbyR .bundle-list button,
  body.host :is(.btn, .ibtn, .hostctl .ibtn, .seg button, .bundle-list button, .topic-grid button, .topic-picked button, .fold > summary) {
    min-height: 44px;
    min-width: 44px;
  }
  body.host .hostctl {
    opacity: .88;
  }
  body.host .lobbyR {
    padding-bottom: 0;
  }
  body.host .lobbyR .seg.aud {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  body.host .lobbyR .seg.aud .full {
    grid-column: 1 / -1;
  }
  body.host .lobbyR [data-dyn="go"] {
    width: 100% !important;
    position: sticky;
    bottom: 0;
    z-index: 6;
    padding: .6rem 0 .5rem;
    background: linear-gradient(transparent, var(--page) 22%);
  }
  body.host .lobbyR [data-dyn="go"] .start-pair {
    max-width: 34rem;
    margin-inline: auto;
  }
  html.dark body.host .lobbyR [data-dyn="go"] {
    background: linear-gradient(transparent, #16131f 30%);
  }
}

/* Portrait & compact shared-screen host (iPad portrait 768x1024, 820x1180, 1024x1366, tablets, phones) */
@media (max-aspect-ratio: 11/10), (max-width: 960px) {
  html.host {
    font-size: clamp(14px, 2vw, 18px);
  }
  body.host {
    --bw: .18rem;
    --lip: .28rem .28rem 0 var(--sh);
  }
  body.host #app,
  body.host:not(.ingame) #app {
    padding: calc(.65rem + env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) calc(.75rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  }
  body.host #top,
  body.host:not(.ingame) #top {
    gap: .6rem;
    flex-wrap: wrap;
    padding-bottom: .5rem;
  }
  body.host .logo {
    font-size: 1.85rem;
  }
  body.host .hcode {
    font-size: .95rem;
    padding: .25rem .75rem;
    border-radius: .9rem;
    margin-inline-start: auto;
  }
  body.host .hcode b {
    font-size: 1.45rem;
  }
  body.host .tnum {
    font-size: 1.6rem;
    min-width: 3rem;
    border-radius: .9rem;
    padding: 0 .55rem;
  }
  body.host .prog {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
    overflow-x: auto;
    gap: .4rem;
    scrollbar-width: none;
  }
  body.host .prog::-webkit-scrollbar { display: none; }
  body.host .prog:empty { display: none; }
  body.host .prog .pm {
    font-size: .88rem;
    padding: .2rem .65rem;
    flex: none;
  }
  body.host .prog .pm img { width: 1.45rem; }

  body.host .scr {
    overflow-y: auto;
    overflow-x: hidden;
    justify-content: safe center;
    gap: .85rem;
    padding: .3rem .15rem 4rem;
  }
  body.host:not(.ingame) .scr {
    justify-content: flex-start;
    padding-bottom: 0;
  }
  body.host :is(.btn, .ibtn, .hostctl .ibtn, .seg button, .bundle-list button, .topic-grid button, .topic-picked button, .fold > summary) {
    min-height: 44px;
  }
  body.host :is(.ibtn, .hostctl .ibtn) {
    min-width: 44px;
  }
  body.host .hostctl {
    opacity: .9;
    bottom: calc(.5rem + env(safe-area-inset-bottom));
  }

  /* Stacked tablet lobby */
  body.host .lobbygrid {
    grid-template-columns: 1fr;
    gap: .9rem;
    align-items: stretch;
    flex: none;
  }
  body.host .joinbox {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .35rem 1.1rem;
    align-items: center;
    justify-items: center;
    background: #fff;
    color: #111;
    border: var(--bw) solid #111;
    border-radius: 1.25rem;
    padding: .8rem 1rem;
    box-shadow: var(--lip);
  }
  body.host .joinbox .h2 {
    font-size: 1.35rem;
    color: #111 !important;
  }
  body.host .joinbox .qr {
    grid-row: 1 / span 4;
    width: 8.4rem;
    height: 8.4rem;
    padding: .45rem;
    border-radius: 1rem;
  }
  body.host .code span {
    font-size: 2.1rem;
    border-radius: .7rem;
  }
  body.host .joinbox .lnk {
    font-size: .95rem;
    color: #333 !important;
  }
  body.host .joinbox [data-meplay] {
    margin-top: .2rem !important;
    font-size: 1rem;
    min-height: 44px;
  }
  @media (max-width: 500px) {
    body.host .joinbox {
      grid-template-columns: 1fr;
    }
    body.host .joinbox .qr {
      grid-row: auto;
      width: 9.5rem;
      height: 9.5rem;
    }
  }
  body.host .lobbyR {
    overflow: visible;
    height: auto;
    gap: .75rem !important;
    padding: 0;
  }
  body.host .lobbyR [data-dyn="set"] {
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
  }
  @media (max-width: 620px) {
    body.host .lobbyR [data-dyn="set"] {
      grid-template-columns: 1fr;
    }
  }
  body.host .lobbyR .set {
    padding: .55rem .7rem .65rem;
    gap: .4rem;
  }
  body.host .set > label {
    font-size: .95rem;
  }
  body.host .seg.games,
  body.host .lobbyR .room-games .seg.games {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body.host .seg.aud {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  body.host .seg.aud .full {
    grid-column: 1 / -1;
  }
  @media (max-width: 620px) {
    body.host .seg.games,
    body.host .lobbyR .room-games .seg.games {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  body.host .lobbyR .seg button,
  body.host .lobbyR .room-games .seg button {
    font-size: 1rem;
    min-height: 46px;
    padding: .35rem .6rem;
  }
  body.host .seg button img {
    width: 1.8rem;
    height: 1.8rem;
  }
  body.host .team {
    min-height: 5.2rem;
    padding: .6rem;
    border-radius: 1.2rem;
  }
  body.host .team h3 {
    font-size: 1.35rem;
  }
  body.host .lobbyR .av.l {
    --s: 2.9rem;
  }
  body.host .av b {
    font-size: .85rem;
  }
  body.host .lobbyR [data-dyn="go"] {
    width: 100% !important;
    max-width: none;
    margin-inline: auto;
    position: sticky;
    bottom: 0;
    z-index: 6;
    padding: .65rem 0 3.4rem;
    background: linear-gradient(transparent, var(--page) 18%);
  }
  body.host .lobbyR [data-dyn="go"] .start-pair {
    max-width: 36rem;
    margin-inline: auto;
  }
  html.dark body.host .lobbyR [data-dyn="go"] {
    background: linear-gradient(transparent, #16131f 18%);
  }
  body.host .lobbyR [data-dyn="go"] .btn,
  body.host .lobbyR [data-dyn="go"] .btn.big {
    min-height: 50px;
    font-size: 1.3rem;
    padding: .5rem 1.2rem;
    border-radius: 1.2rem;
  }

  /* Portrait host in-game scaling */
  body.host .qcard { padding: 1rem 1.25rem; border-radius: 1.5rem; }
  body.host .qtext { font-size: clamp(1.3rem, 3.2vw, 1.8rem); }
  body.host .chip, body.host .row > .chip, body.host .qmeta .chip { font-size: .95rem; min-height: 2.2rem; padding: .2rem .85rem; }
  body.host .h1 { font-size: 2.2rem; }
  body.host .h2 { font-size: 1.5rem; }
  body.host .sub { font-size: 1.05rem; }
  body.host .opts { grid-template-columns: 1fr 1fr; gap: .7rem; }
  @media (max-width: 560px) { body.host .opts { grid-template-columns: 1fr; } }
  body.host .opt { min-height: 3.6rem; font-size: 1.12rem; padding: .6rem .85rem; border-radius: 1.15rem; gap: .7rem; }
  body.host .opt .k { width: 2.2rem; height: 2.2rem; font-size: 1.2rem; border-radius: .7rem; }
  body.host .board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
  @media (max-width: 560px) { body.host .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  body.host .cat { padding: .55rem; border-radius: 1.1rem; gap: .45rem; }
  body.host .cat .cic.big { width: 2.8rem; height: 2.8rem; }
  body.host .cat h4 { font-size: 1.05rem; }
  body.host .cat .cells { grid-template-columns: repeat(3, 1fr); gap: .35rem; }
  body.host .cell { height: 3.2rem; min-height: 44px; font-size: 1.35rem; border-radius: .8rem; }
  body.host .catlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (max-width: 560px) { body.host .catlist { grid-template-columns: 1fr; } }
  body.host .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  body.host .tile { min-height: 3.3rem; font-size: 1.05rem; border-radius: 1rem; }
  body.host .tile .rk { font-size: .95rem; }
  body.host .intro .emb { width: 9rem; }
  body.host .intro .h1 { font-size: 2.8rem; }
  body.host .how { flex-direction: column; }
  body.host .how div { font-size: 1.08rem; padding: .65rem 1rem; }
  body.host .bigpct, body.host .truthnum { font-size: 4rem; }
  body.host .gauge { height: 4rem; margin: 2.6rem 0 2.4rem; }
  body.host .gauge .mk { top: -2.5rem; }
  body.host .gauge .mk b { font-size: 1.25rem; }
  body.host .gauge .mk.truth { bottom: -2.5rem; height: calc(100% + 2.9rem); }
  body.host .podium .crown { width: 6.5rem; }
  body.host .podium .wname { font-size: 2.6rem; }
  body.host .lbrow { font-size: 1.15rem; padding: .45rem 1rem; border-radius: 1.15rem; }
  body.host .lbrow .sc { font-size: 1.65rem; }
  body.host .lbrow .rk { font-size: 1.45rem; width: 1.8rem; }
  body.host .strip { min-height: 4.2rem; gap: .55rem; flex-wrap: wrap; padding-inline-start: 0; padding-bottom: 3.3rem; }
  body.host .tbox { padding: .45rem .9rem; border-radius: 1.1rem; gap: .65rem; }
  body.host .tbox h3 { font-size: 1.15rem; }
  body.host .tbox .sc { font-size: 1.7rem; }
  body.host .pc { min-width: 4.8rem; padding: .35rem .6rem; border-radius: 1rem; }
  body.host .pc .sc { font-size: 1.25rem; }
  body.host .banner { font-size: 1.1rem; padding: .35rem .8rem; }
  body.host .catpick button { min-height: 8.5rem; font-size: 1.15rem; }
  body.host .catpick button .cic { width: 3.8rem; height: 3.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .logo,
  .wait img,
  .dots i,
  .tnum.hot,
  .steal,
  .intro .emb,
  .podium .crown,
  .land .hero,
  .btn.big.sun,
  .ears::before,
  .ears::after,
  .suspense-stamp,
  .nudge-pill.popped,
  .nudge-wobble,
  .shake,
  #bg::after {
    animation: none !important;
  }
  .wipe {
    display: none !important;
  }
  .toast {
    animation: none !important;
    opacity: 1 !important;
  }
  #stage.in-suspense > .scr {
    filter: none;
    opacity: 1;
    transform: none;
  }
  .judge-turn {
    animation: none !important;
  }
}

@keyframes judgeTurnPop {
  0% { transform: scale(.96); }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
.judge-turn {
  background: var(--tc, var(--sun));
  color: #111;
  border: 3px solid #111;
  border-radius: .95rem;
  padding: .55rem .8rem .6rem;
  box-shadow: .26rem .26rem 0 #111;
  display: grid;
  gap: .18rem;
  text-align: center;
  animation: judgeTurnPop .22s var(--e-back);
}
.judge-turn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 800;
  color: #171717;
}
.judge-turn-top:not(:has(.judge-prev)) {
  justify-content: center;
}
.judge-prev {
  background: #171717;
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  padding: .1rem .5rem;
  border-radius: 99rem;
}
.judge-prev.bad {
  background: #b91c1c;
  color: #fff;
}
.judge-turn strong {
  font: 1.65rem/1.15 Lalezar, Readex, sans-serif;
  color: #111;
  overflow-wrap: anywhere;
}
.judge-turn small {
  font-size: .88rem;
  font-weight: 700;
  color: #1f1f1f;
}
.judge-order {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .32rem;
  margin-top: .25rem;
}
.judge-order span {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  font-size: .76rem;
  font-weight: 700;
  padding: .12rem .52rem;
  border-radius: 99rem;
  border: 2px solid #111;
  background: rgba(255, 255, 255, .82);
  color: #111;
}
.judge-order span::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--tc, var(--sun));
  border: 1.5px solid #111;
  flex: none;
}
.judge-order span.on {
  background: #111;
  color: #fff;
  transform: scale(1.04);
}
.judge-order span.on::before {
  border-color: #fff;
}
.judge .judge-inner {
  gap: .58rem;
}
.judge-live-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .34rem .45rem;
  padding: .42rem .6rem;
  border: 2.5px solid #111;
  border-radius: .85rem;
  background: var(--judge-paper, #fff4d6);
  color: #111;
  box-shadow: .18rem .18rem 0 #111;
}
.judge-live-score > b {
  background: #111;
  color: var(--sun);
  font-size: .76rem;
  font-weight: 800;
  padding: .1rem .52rem;
  border-radius: 99rem;
}
.judge-live-score > span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: #fff;
  color: #111;
  border: 2px solid #111;
  border-radius: 99rem;
  padding: .1rem .52rem;
  font-size: .82rem;
  font-weight: 700;
}
.judge-live-score > span > b {
  font: .98rem/1.05 Lalezar, Readex, sans-serif;
  background: var(--sun);
  color: #111;
  padding: .04rem .36rem;
  border-radius: .36rem;
}
.judge-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .3rem;
}
.judge-values span {
  font: .94rem/1.05 Lalezar, Readex, sans-serif;
  background: var(--sun);
  color: #111;
  border: 2px solid #111;
  border-radius: .52rem;
  padding: .16rem .46rem;
  box-shadow: .12rem .12rem 0 #111;
}
.judge-inner .btn[data-j="skipQuestion"] {
  background: #dbeafe;
  color: #0c4a6e;
  border-color: #111;
}
.judge-inner .btn[data-j="numberPass"],
.judge-inner .btn[data-i="-1"]:is([data-j="boardAnswer"],[data-j="rank"],[data-j="nominate"],[data-j="captainPick"]) {
  background: #e9d5ff;
  color: #4c1d95;
  border-color: #111;
}
.judge-inner .btn:is([data-j="endQuestion"], [data-j="boardNone"]) {
  background: #fef3c7;
  color: #78350f;
  border-color: #111;
}
.judge-inner .btn[data-j="rank"]:disabled {
  background: #dcfce7;
  color: #14532d;
  border-color: #15803d;
  border-style: dashed;
  font-weight: 800;
}
.judge-inner .btn[data-j="rank"].trap:disabled {
  background: #fee2e2;
  color: #991b1b;
  border-color: #dc2626;
}
.judge .board .cell.st1,
.judge .board .cell.st2 {
  pointer-events: none;
}
.judge .board .cell.st1::after,
.judge .board .cell.st2::after {
  content: none;
}
.judge .board .cell.st1,
html.dark .judge .board .cell.st1 {
  background: #bbf7d0;
  color: #064e3b;
  border-color: #15803d;
  border-style: solid;
}
.judge .board .cell.st2,
html.dark .judge .board .cell.st2 {
  background: #e7e5e4;
  color: #57534e;
  border-color: #78716c;
  border-style: dashed;
  text-decoration: line-through;
}

/* Referee mode on a TV (/tv): public view only. It is a room screen (html.host/body.host), built from the
   same components; these rules only arrange the pieces the room screen does not have. */
.tv-cast .tv-screen {overflow:hidden;animation:none;padding-top:.2rem}
.tv-cast .tv-screen .judge-inner {width:100%;max-width:108rem;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:1.2rem}
.tv-cast #top {display:flex;justify-content:space-between;align-items:center;gap:1rem}
.tv-cast #top>b {font-family:Lalezar;font-size:2.2rem}
.tv-scores {display:flex;flex-wrap:wrap;gap:.8rem;justify-content:center}
.tv-scores .tv-score {position:relative;font-size:1.9rem;padding:.4rem 1.2rem;gap:.7rem;display:inline-flex;align-items:center}
.tv-scores .tv-score b {font-family:Lalezar;font-size:1.15em}
.tv-meta {display:flex;gap:.8rem;justify-content:center}
.tv-body {display:flex;flex-direction:column;align-items:center;gap:1.2rem;width:100%}
.tv-body>* {width:100%;max-width:100rem}
.tv-body>.sub,.tv-body>.stamp,.tv-body>.h1,.tv-body>.chip {width:auto}
.tv-cast .qcard .qmeta {display:flex;gap:.8rem;flex-wrap:wrap}
.tv-cast .banner strong {color:var(--mc,var(--sun))}
.tv-cast .stamp.tv-answer {font-size:4rem;transform:none}
.tv-cast .h1.tv-title {text-align:center}
.tv-cast .sub.tv-msg {font-size:2rem;margin:0}
.tv-cast .board .cell {display:grid;place-items:center}
.tv-cast .tiles.n15 {grid-template-columns:repeat(5,1fr)}
.tv-cast .tv-table {max-width:60rem}
.tv-cast .tv-wait {margin:auto}
.tv-qr {width:min(30rem,70vw);margin:0 auto;background:#fff;padding:.8rem;border-radius:1.4rem}
.tv-qr svg {width:100%;height:auto;display:block}
.tv-code {letter-spacing:.3em}
.tv-clock {font-variant-numeric:tabular-nums}
/* Top 10 values stay on one line; scroll sideways on narrow phones. */
.judge-inner .judge-values {flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;padding-bottom:.2rem}
.judge-inner .judge-values span {flex:0 0 auto;font-size:.82rem;padding:.12rem .36rem}

/* TV animations (tv.js marks what changed since the last update) */
.tv-cast #top .tv-corner {display:flex;align-items:center;gap:.6rem}
.tv-cast .tv-sound {width:auto;padding:0 .7rem;gap:.4rem;display:inline-flex;align-items:center;font-size:1.1rem}
.tv-cast .tv-sound small {font-size:.85rem;font-weight:700}
.tv-in .judge-inner>*,.tv-in .tv-body>* {animation:rise .5s var(--e-out) both;animation-delay:calc(var(--i,0)*70ms)}
.tv-cast .tiles {perspective:1200px}
.tv-flip {animation:flip .55s var(--e-back) both;animation-delay:calc(var(--i,0)*110ms);transform-origin:50% 0}
.tv-trap {animation:trap-pop .5s var(--e-back) both,shake .6s .45s both}
.tv-ok {animation:okpop .55s var(--e-back) both;box-shadow:0 0 0 .35rem #22c55e66}
.tv-pick {animation:pulse .7s ease-in-out 2}
.tv-shake {animation:shake .6s both}
.tv-pop {animation:pop .4s var(--e-back) both}
.tv-rise {animation:rise .45s var(--e-out) both;animation-delay:calc(var(--i,0)*90ms)}
.tv-reveal {animation:suspenseReveal .9s var(--e-out) both}
@keyframes tvStamp{from{transform:scale(2.2) rotate(-10deg);opacity:0}70%{transform:scale(.96) rotate(1deg);opacity:1}to{transform:none;opacity:1}}
.tv-stamp {animation:tvStamp .5s var(--e-out) both}
.tv-turnpop strong {display:inline-block;animation:judgeTurnPop .5s var(--e-back)}
.tv-scores>div {position:relative}
.tv-bump {animation:okpop .5s var(--e-back)}
.tv-gain {position:absolute;inset-inline:0;top:-1.3em;text-align:center;font-style:normal;font-family:Lalezar,inherit;font-size:1.3em;color:var(--ok,#15803d);pointer-events:none;animation:gainUp .45s var(--e-back) both,fade .5s 1.4s reverse forwards}
.tv-gain.neg {color:var(--bad,#b91c1c)}
.tv-hearts {font-style:normal;font-size:.8em;letter-spacing:-.1em}
.tv-hurry {color:var(--bad,#b91c1c);display:inline-block;animation:pulse 1s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.tv-in .judge-inner>*,.tv-in .tv-body>*,.tv-flip,.tv-trap,.tv-ok,.tv-pick,.tv-shake,.tv-pop,.tv-rise,.tv-reveal,.tv-stamp,.tv-bump,.tv-gain,.tv-hurry,.tv-turnpop strong{animation:none}}

/* Referee phone header: the screen code sits beside the TV icon, and the title gives way instead of overlapping */
#top .ibtn.cast-on {width:auto;min-width:2.5rem;padding:0 .55rem;display:inline-flex;align-items:center;gap:.3rem;font-size:.85rem;white-space:nowrap}
#top:has([data-j="cast"])>b {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1 auto}
#top:has([data-j="cast"])>span {flex:none;white-space:nowrap}
.tv-podium {display:grid;gap:1.4rem;width:min(80rem,100%);margin:0 auto;text-align:center}
.tv-podium .h1 {font-size:6rem!important;animation:tvStamp .6s .2s var(--e-out) both}
.tv-podium .lbrow {font-size:2.4rem;animation:rise .5s var(--e-out) both;animation-delay:calc(.5s + var(--i,0)*.25s)}
.tv-podium .lbrow:first-child {font-size:3rem}
@media (prefers-reduced-motion:reduce){.tv-podium .h1,.tv-podium .lbrow{animation:none}}

/* TV big moments (tv.js moment()): sized by the screen, not by the fitted view */
.tv-moment {position:fixed;inset:0;z-index:60;display:grid;place-items:center;pointer-events:none;overflow:hidden;animation:tvMomentIn .18s ease-out both,tvMomentOut .45s ease-in calc(var(--hold,1.5s) + .1s) forwards}
.tv-moment.m-wait {background:#0b0b0f}
.tv-moment .m-card {position:relative;display:grid;justify-items:center;gap:1.5vmin;text-align:center;padding:0 4vw}
.tv-moment .m-big {font-size:30vmin;line-height:1;animation:tvSlam .6s var(--e-back) both;filter:drop-shadow(0 1.2vmin 0 #0006)}
.tv-moment .m-text {font-family:Lalezar,inherit;font-size:13vmin;line-height:1.05;color:#fff;-webkit-text-stroke:.5vmin #111;paint-order:stroke fill;text-shadow:0 1.2vmin 0 #111;animation:tvSlam .6s .12s var(--e-back) both;max-width:92vw;overflow-wrap:anywhere}
.tv-moment .m-sub {font-family:Lalezar,inherit;font-size:5.5vmin;color:#fff;background:#111;border-radius:2vmin;padding:.4vmin 3vmin;animation:rise .5s .35s var(--e-out) both}
.tv-moment .m-rays {position:absolute;inset:-50%;opacity:0;pointer-events:none}
.tv-moment.m-go .m-rays {opacity:.55;background:repeating-conic-gradient(from 0deg,#fff6 0 9deg,transparent 9deg 22deg);animation:tvSpin 9s linear infinite}
.m-wrong {background:radial-gradient(circle,#ef4444f0 0,#7f1d1dfa 70%)}
.m-wrong .m-big {color:#fff;-webkit-text-stroke:1vmin #111;font-family:Lalezar,inherit}
.m-ok {background:radial-gradient(circle,#4ade80f0 0,#14532dfa 70%)}
.m-ok .m-big {color:#fff;-webkit-text-stroke:1vmin #111;font-family:Lalezar,inherit}
.m-trap {background:radial-gradient(circle,#f97316 0,#450a0a 65%)}
.m-trap .m-big {animation:trap-bomb .5s var(--e-back) both,tvBoom .5s .5s ease-out both}
.m-pass {background:radial-gradient(circle,#94a3b8f0 0,#1e293bfa 70%)}
.m-steal {background:radial-gradient(circle,#facc15f0 0,#713f12fa 70%)}
.m-reveal {background:radial-gradient(circle,#38bdf8f0 0,#0c1f3afa 70%)}
.m-reveal .m-text {font-size:15vmin}
.m-win {background:radial-gradient(circle,#fde047 0,#b45309 45%,#1c0a00 80%)}
.m-win .m-big {font-size:34vmin;animation:tvSlam .7s var(--e-back) both,floaty 2.4s .7s ease-in-out infinite}
.m-win .m-text {font-size:16vmin;color:#fde047}
.m-win.m-go .m-rays {opacity:.7}
.tv-moment .m-dots {display:flex;gap:4vmin}
.tv-moment .m-dots i {width:6vmin;height:6vmin;border-radius:50%;background:#fff;animation:tvDot 1s ease-in-out infinite}
.tv-moment .m-dots i:nth-child(2) {animation-delay:.15s}.tv-moment .m-dots i:nth-child(3) {animation-delay:.3s}
#app.tv-quake {animation:tvQuake .55s both}
@keyframes tvMomentIn {from{opacity:0}to{opacity:1}}
@keyframes tvMomentOut {to{opacity:0;visibility:hidden}}
@keyframes tvSlam {0%{transform:scale(3.2) rotate(-8deg);opacity:0}55%{transform:scale(.88) rotate(2deg);opacity:1}75%{transform:scale(1.06)}100%{transform:none;opacity:1}}
@keyframes tvSpin {to{transform:rotate(360deg)}}
@keyframes tvBoom {0%{transform:scale(1)}40%{transform:scale(1.5)}100%{transform:scale(1.15)}}
@keyframes tvDot {0%,100%{transform:scale(.6);opacity:.4}50%{transform:scale(1.15);opacity:1}}
@keyframes tvQuake {0%,100%{transform:none}15%{transform:translate(-1.4vmin,.6vmin) rotate(-.6deg)}30%{transform:translate(1.6vmin,-.8vmin) rotate(.7deg)}45%{transform:translate(-1.2vmin,.4vmin)}60%{transform:translate(1vmin,.6vmin) rotate(-.4deg)}80%{transform:translate(-.5vmin,-.3vmin)}}
@media (prefers-reduced-motion:reduce){.tv-moment .m-big,.tv-moment .m-text,.tv-moment .m-sub,.tv-moment.m-go .m-rays,.tv-moment .m-dots i,#app.tv-quake{animation:none}}

/* Moment tags: place and points as two clear badges (owner 5 Dec 2026: «المركز والنقاط مو واضح») */
.tv-moment .m-tags {display:flex;gap:3vmin;justify-content:center;animation:rise .5s .3s var(--e-out) both}
.tv-moment .m-tag {display:grid;justify-items:center;background:#fff;color:#111;border:.6vmin solid #111;border-radius:3vmin;box-shadow:0 1vmin 0 #111;padding:1vmin 4vmin;min-width:20vmin;font-family:Lalezar,inherit;line-height:1}
.tv-moment .m-tag small {font-size:4vmin;opacity:.7}
.tv-moment .m-tag b {font-size:11vmin;font-weight:400}
.tv-moment .m-tag.pos {background:#bbf7d0}
.tv-moment .m-tag.neg {background:#fecaca;color:#991b1b}
/* Top 10 tiles on the TV: rank and points readable from the sofa */
.tv-cast .tv-slots .tile {justify-content:space-between;font-size:1.6rem;min-height:4.2rem}
.tv-cast .tv-slots .tile .rk {font-size:2.1rem;line-height:1.15;padding:.15rem .7rem;border-radius:.6rem;min-width:2.2rem;text-align:center}
.tv-cast .tv-slots .tile .rk:first-child {background:#111;color:#fff}
.tv-cast .tv-slots .tile .rk:last-child {background:#fff;color:#111;box-shadow:inset 0 0 0 .12rem #111}
.tv-cast .tv-slots .tile.ok .rk:last-child {background:#14532d;color:#fff;box-shadow:none}
.tv-cast .tv-slots .tile.trap .rk:last-child {background:#7f1d1d;color:#fff;box-shadow:none}
/* Old smart-TV browsers (Chromium < 84) ignore flex gap: space things with margins there (html.tv-legacy, set in tv.html). */
html.tv-legacy .tv-cast .judge-inner>*+*, html.tv-legacy .tv-cast .tv-body>*+* {margin-top:.7rem}
html.tv-legacy .tv-cast .tv-scores>*, html.tv-legacy .tv-cast .qmeta>*, html.tv-legacy .tv-cast .tv-chips>*, html.tv-legacy .tv-cast .tv-corner>*, html.tv-legacy .tv-moment .m-tags>*, html.tv-legacy .tv-moment .m-dots>* {margin:.2rem .35rem}
html.tv-legacy .tv-cast .opt>*+*, html.tv-legacy .tv-cast .tile>*+*, html.tv-legacy .tv-cast .chip>*+*, html.tv-legacy .tv-cast .banner>*+*, html.tv-legacy .tv-cast .award>*+*, html.tv-legacy .tv-cast .lbrow>*+* {margin-inline-start:.6rem;-webkit-margin-start:.6rem}
html.tv-legacy .tv-cast .tv-screen {padding-left:1rem;padding-right:1rem}
html.tv-legacy .tv-cast .field>*+* {margin-inline-start:.6rem;-webkit-margin-start:.6rem}
html.tv-legacy .tv-cast .chip>b, html.tv-legacy .tv-cast .tv-score>b {margin:0 .35rem}
/* TV tables (votes, answers) are not rankings: no "winner" colour on the first row. */
.tv-cast .tv-table .lbrow:first-child {background:#fff}
.tv-cast .tv-table .lbrow:first-child .rk {color:inherit}
/* TV turn banner: roomy frame, text never near the edge (owner 5 Dec 2026) */
.tv-cast .banner.tv-turn {padding:.75rem 2.6rem;font-size:2.2rem;border-radius:1.4rem;min-height:4.6rem;justify-content:center;line-height:1.25;gap:0}
.tv-cast .banner.tv-turn strong {margin-inline-start:.45rem;-webkit-margin-start:.45rem}
/* The TV page on an upright phone or tablet: fewer columns so nothing runs off the side. */
@media (max-aspect-ratio:1/1) {
  .tv-cast .tiles.n15, .tv-cast .tiles {grid-template-columns:repeat(3,minmax(0,1fr))}
  .tv-cast .board.tv-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
  .tv-cast .opts.tv-opts {grid-template-columns:minmax(0,1fr)}
  .tv-cast .tile, .tv-cast .opt {min-width:0}
  .tv-cast #top .tv-corner .ibtn {height:auto;align-self:center}
}
/* Pictures never take more than about a third of the screen height (sideways phones, short screens). */
.tv-cast .qimg {max-height:22rem;max-height:min(22rem,34vh)}
@media (max-aspect-ratio:1/1) {
  .tv-cast .tv-slots .tile .rk {font-size:1.6rem;padding:.1rem .4rem;min-width:0}
  .tv-cast .tv-slots .tile {padding-inline:.4rem;gap:.3rem}
  .tv-cast #top .tv-corner .ibtn small {display:none}
}
.tv-cast #top .tv-corner .ibtn {height:auto;min-height:0;align-self:center}
/* Minus points (Top 10 traps) are red on the TV */
.tv-cast .tv-slots .tile .rk.neg {background:#fee2e2;color:#b91c1c;box-shadow:inset 0 0 0 .14rem #b91c1c}
.tv-cast .tv-slots .tile.trap .rk.neg {background:#7f1d1d;color:#fff;box-shadow:none}
/* Upright phone: place and points on top, the answer on its own full-width line under them. */
@media (max-aspect-ratio:1/1) {
  .tv-cast .tv-slots .tile {flex-wrap:wrap;justify-content:space-between;align-content:center;row-gap:.25rem;padding:.45rem .5rem;min-width:0}
  .tv-cast .tv-slots .tile>span:nth-child(2) {order:3;flex:1 1 100%;min-width:0;text-align:center;font-size:1.35rem;line-height:1.2;overflow-wrap:anywhere}
  .tv-cast .tv-slots .tile .rk {font-size:1.35rem}
}
/* Referee's answer key (phone only) */
.judge-key {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.5rem;margin:.4rem 0;padding:.45rem .8rem;border:.14rem dashed #15803d;border-radius:.9rem;background:#dcfce7;color:#14532d;font-weight:800;text-align:center}
.judge-key span {font-size:.8rem;opacity:.8}
.judge-key b {font-size:1.15rem}

/* ---- Owner 6 Dec 2026 round ---- */
/* Board with each value repeated per team: two (or three) columns of 200 / 400 / 600. */
.board.per6 .cat .cells, .judge .board.per6 .cat .cells {grid-template-columns:repeat(2,minmax(0,1fr))}
.board.per9 .cat .cells, .judge .board.per9 .cat .cells {grid-template-columns:repeat(3,minmax(0,1fr))}
.tv-cast .board.per6 .cell {font-size:2.6rem;height:5rem}
.tv-cast .board.per9 .cell {font-size:2.1rem;height:4.2rem}
/* As many columns as categories (up to six), so a short board sits in the middle of the TV. */
.tv-cast .board.tv-grid {grid-template-columns:repeat(var(--n,6),minmax(0,1fr));max-width:calc(var(--n,6) * 17rem);margin-inline:auto}
@media (max-aspect-ratio:1/1) {.tv-cast .board.tv-grid {grid-template-columns:repeat(min(3,var(--n,6)),minmax(0,1fr))}}
[data-count-row][hidden] {display:none}

/* The referee clock: centred, readable, not huge. */
.judge-clock {display:block;width:max-content;min-width:7.5rem;margin:0 auto .2rem;padding:.15rem 1.1rem;text-align:center;font:2.1rem/1.15 Lalezar,Readex,sans-serif;color:#111;background:var(--sun);border:2.5px solid #111;border-radius:1rem;box-shadow:.18rem .18rem 0 #111;font-variant-numeric:tabular-nums}
.judge-clock.hurry {background:var(--coral,#ff6b6b);animation:pulse .6s infinite}
.judge-clock:empty {display:none}

/* TV clock: its own centred row above the turn banner. */
.tv-timer {display:flex;justify-content:center;margin:.2rem 0}
.tv-timer .tv-clock {display:inline-block;min-width:11rem;text-align:center;font:3.4rem/1.1 Lalezar,Readex,sans-serif;color:#111;background:var(--sun);border:.25rem solid #111;border-radius:1.4rem;box-shadow:0 .35rem 0 #111;padding:.1rem 1.6rem}
.tv-timer .tv-clock.tv-hurry {background:var(--coral,#ff6b6b)}
.tv-timer .tv-clock:empty {display:none}

/* Phones mode: the countdown is a clear pill in the middle of the header. */
body.phone #top {position:relative}
body.phone .tnum[data-timer="num"] {font-size:1.7rem;min-width:4.4rem;padding:0 .6rem;line-height:1.35}
@media (min-width:340px) {body.phone .tnum[data-timer="num"] {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2}}

/* Team colours on the TV match the referee phone. */
.tv-cast .tv-score.toned {border-bottom:.45rem solid var(--tc)}
.tv-cast .tv-score.toned::before {content:"";width:.9rem;height:.9rem;border-radius:50%;background:var(--tc);border:.15rem solid #111;flex:none}
.tv-cast .banner.tv-turn.toned {background:var(--tc);color:#111}
.judge-live-score > span[style*="--tc"] {box-shadow:inset 0 -.28rem 0 var(--tc)}
button.judge-live-score {width:100%;font:inherit;cursor:pointer}
button.judge-live-score:active {transform:translateY(1px)}

/* Score editor. */
.judge-score-row {display:grid;grid-template-columns:minmax(0,1fr) auto 6rem auto;align-items:center;gap:.4rem;margin:.35rem 0}
.judge-score-row strong {overflow-wrap:anywhere}
.judge-score-row input {width:100%;text-align:center;font:1.5rem Lalezar,Readex,sans-serif;padding:.2rem;border:2.5px solid #111;border-radius:.7rem;background:#fff;color:#111}
.judge-score-row .btn {min-width:0;padding:.35em .5em;font-size:.95rem}

/* TV pairing: the QR with the code beside it. */
.tv-pair {display:flex;align-items:center;justify-content:center;gap:2.5rem;flex-wrap:wrap}
.tv-pair .tv-qr {margin:0;width:min(26rem,60vh)}
.tv-pair-code {display:grid;justify-items:center;gap:.4rem}
.tv-pair-code b {font:6rem/1 Lalezar,Readex,sans-serif;letter-spacing:.12em;background:#fff;color:#111;border:.3rem solid #111;border-radius:1.4rem;box-shadow:0 .4rem 0 #111;padding:.6rem 1.6rem .2rem}
html.tv-legacy .tv-pair>* {margin:0 1.2rem}
.cast-site {font-size:1.6rem;overflow-wrap:anywhere}

/* The drumroll build-up: same for right and wrong. Beams sweep, the ring tightens, the bar fills. */
.tv-moment.m-wait {background:radial-gradient(circle at 50% 50%,#2a1f4d 0,#0b0b0f 70%);animation:tvMomentIn .18s ease-out both,tvMomentOut .45s ease-in calc(var(--hold,1.5s) + .1s) forwards,tvWaitShake var(--sus,2.2s) ease-in both}
.tv-moment .m-beam {position:absolute;top:-20%;left:50%;width:30vmin;height:140%;background:linear-gradient(#fff3,#fff0 80%);transform-origin:50% 0;animation:tvBeam 1.1s ease-in-out infinite alternate;filter:blur(1vmin)}
.tv-moment .m-beam.b2 {animation-delay:-.55s;animation-direction:alternate-reverse;background:linear-gradient(#ffc53033,#ffc53000 80%)}
.tv-moment .m-ring {position:absolute;width:62vmin;height:62vmin;border-radius:50%;border:1.6vmin solid #ffc530;box-shadow:0 0 6vmin #ffc530aa,inset 0 0 6vmin #ffc53066;animation:tvRing var(--sus,2.2s) cubic-bezier(.6,0,.9,.6) both}
.tv-moment .m-q {position:relative;font:40vmin/1 Lalezar,Readex,sans-serif;color:#fff;-webkit-text-stroke:1vmin #111;paint-order:stroke fill;text-shadow:0 1.5vmin 0 #111,0 0 8vmin #ffc530;animation:tvBeat .42s ease-in-out infinite}
.tv-moment .m-bar {position:absolute;bottom:9vh;left:15vw;right:15vw;height:2.4vmin;border-radius:9rem;background:#ffffff22;overflow:hidden;border:.4vmin solid #ffffff55}
.tv-moment .m-bar i {display:block;height:100%;width:100%;background:linear-gradient(90deg,#ffc530,#ff5fa2);transform-origin:right;animation:tvFill var(--sus,2.2s) linear both}
@keyframes tvBeam {from{transform:translateX(-50%) rotate(-38deg)}to{transform:translateX(-50%) rotate(38deg)}}
@keyframes tvRing {from{transform:scale(1.35);opacity:.3}to{transform:scale(.55);opacity:1}}
@keyframes tvBeat {0%,100%{transform:scale(1) rotate(-4deg)}50%{transform:scale(1.14) rotate(4deg)}}
@keyframes tvFill {from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes tvWaitShake {0%,70%{transform:none}75%{transform:translate(.4vmin,-.3vmin)}80%{transform:translate(-.5vmin,.4vmin)}85%{transform:translate(.6vmin,.2vmin)}90%{transform:translate(-.6vmin,-.5vmin)}95%{transform:translate(.5vmin,.5vmin)}100%{transform:none}}
.tv-moment.m-go.m-wrong, .tv-moment.m-go.m-trap {animation:tvMomentIn .18s ease-out both,tvMomentOut .45s ease-in calc(var(--hold,1.5s) + .1s) forwards,tvFlashRed .5s ease-out both}
.tv-moment.m-go.m-ok {animation:tvMomentIn .18s ease-out both,tvMomentOut .45s ease-in calc(var(--hold,1.5s) + .1s) forwards,tvFlashGreen .5s ease-out both}
@keyframes tvFlashRed {0%{box-shadow:inset 0 0 0 100vmax #ff3b3bcc}100%{box-shadow:inset 0 0 0 100vmax #ff3b3b00}}
@keyframes tvFlashGreen {0%{box-shadow:inset 0 0 0 100vmax #22c55ecc}100%{box-shadow:inset 0 0 0 100vmax #22c55e00}}
@media (prefers-reduced-motion:reduce){.tv-moment .m-beam,.tv-moment .m-ring,.tv-moment .m-q,.tv-moment .m-bar i,.tv-moment.m-wait{animation:none}}
.tv-cast .banner.tv-turn.toned strong {color:#fff;-webkit-text-stroke:.14rem #111;paint-order:stroke fill;text-shadow:0 .15rem 0 #111}
.tv-moment .m-tags {flex-wrap:wrap;max-width:94vw}

/* No emoji (owner 6 Dec 2026): game-style art on the TV moments, line icons on buttons. */
.tv-moment img.m-big.m-art {width:36vmin;height:36vmin;object-fit:contain;filter:drop-shadow(0 1.2vmin 0 #0006)}
.ico {display:inline-flex;width:1.15em;height:1.15em;vertical-align:-.18em;font-style:normal}
.ico svg, .tv-inline-ico svg {width:100%;height:100%}
.judge-undo .ico {width:1.25em;height:1.25em;margin-inline-end:.25rem}
.judge-key .ico {color:#15803d}
#top .ibtn svg {width:1.35rem;height:1.35rem}
#top .ibtn.cast-on {display:inline-flex;align-items:center;gap:.3rem}
.tv-inline-ico {display:inline-flex;width:1.3em;height:1.3em;vertical-align:-.25em;color:#111}
.tv-sound svg {width:1.5rem;height:1.5rem}
.tv-hearts {display:inline-flex;gap:.15rem;font-style:normal}
.tv-hearts .hrt {display:inline-flex;width:1.3rem;height:1.3rem;color:#d4d4d8}
.tv-hearts .hrt.on {color:#ef4444}
.tv-hearts .hrt svg {width:100%;height:100%;stroke:#111;stroke-width:1.6}
.tv-podium .medal {display:inline-grid;place-items:center;width:2.6rem;height:2.6rem;border-radius:50%;border:.2rem solid #111;font:1.5rem Lalezar,Readex,sans-serif;background:#fff;color:#111}
.tv-podium .medal.m0 {background:#ffc530}.tv-podium .medal.m1 {background:#d4d4d8}.tv-podium .medal.m2 {background:#e7a86b}
.tv-podium .tv-trophy {width:9rem;height:9rem;object-fit:contain;margin:0 auto -.5rem;display:block}
html.tv-legacy .tv-hearts>* {margin:0 .08rem}

/* Referee score bar (owner 6 Dec 2026): tiles, number first, name small under it; no «السكور» label. */
button.judge-live-score.jls {position:relative;display:grid;grid-template-columns:repeat(min(var(--n,2),4),minmax(0,1fr));gap:.4rem;padding:.4rem;padding-inline-end:2rem}
.jls .jls-side {display:grid;justify-items:center;gap:0;background:#fff;border:2px solid #111;border-radius:.7rem;padding:.2rem .3rem .25rem;box-shadow:inset 0 .3rem 0 var(--tc,#ffc530);min-width:0}
.jls .jls-side b {font:1.45rem/1.1 Lalezar,Readex,sans-serif;background:none;padding:.15rem 0 0;color:#111}
.jls .jls-side small {font-size:.72rem;font-weight:700;color:#444;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jls .jls-edit {position:absolute;inset-inline-end:.5rem;top:50%;transform:translateY(-50%);width:1.1rem;height:1.1rem;opacity:.55}

/* Drumroll: a drum in the house style, two sticks taking turns (owner 6 Dec 2026). */
.tv-moment .m-drum {position:relative;width:46vmin;height:46vmin;animation:tvDrumIn .3s var(--e-back,ease-out) both}
.tv-moment .m-drum-body {position:absolute;inset:14vmin 4vmin 0;width:38vmin;height:32vmin;object-fit:contain;filter:drop-shadow(0 1.2vmin 0 #0008);animation:tvDrumHit .16s ease-out infinite}
.tv-moment .m-stick {position:absolute;top:-2vmin;width:26vmin;height:26vmin;object-fit:contain;filter:drop-shadow(0 .8vmin 0 #0008);animation:tvStick .32s ease-in-out infinite}
.tv-moment .m-stick.s2 {right:-6vmin;transform-origin:85% 15%}
.tv-moment .m-stick.s1 {left:-6vmin;transform-origin:15% 15%;--flip:-1;animation-delay:-.16s}
@keyframes tvStick {0%,100%{transform:scaleX(var(--flip,1)) rotate(-26deg)}45%{transform:scaleX(var(--flip,1)) rotate(8deg)}}
@keyframes tvDrumHit {0%{transform:scale(1.05,.95)}100%{transform:scale(1)}}
@keyframes tvDrumIn {from{transform:scale(.4) translateY(10vmin);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.tv-moment .m-drum,.tv-moment .m-drum-body,.tv-moment .m-stick{animation:none}}

/* Name card under a verdict: a sticker in the team's colour, not a black strip. */
.tv-moment .m-sub {background:#fff;color:#111;border:.7vmin solid #111;border-radius:3vmin;box-shadow:0 1.2vmin 0 #111,inset 0 -1.6vmin 0 var(--tc,#ffc530);padding:1vmin 5vmin 2.4vmin;font-size:7vmin;line-height:1.15;max-width:86vw;overflow-wrap:anywhere}

/* Drumroll v2 (owner 6 Dec 2026): no progress bar; the sticks visibly land on the drum head. */
.tv-moment .m-drum {width:46vmin;height:50vmin}
.tv-moment .m-drum-body {inset:auto;left:5vmin;top:14vmin;width:36vmin;height:36vmin;transform-origin:50% 30%;animation:tvDrumHit .15s ease-out infinite}
.tv-moment .m-stick {width:24vmin;height:24vmin;top:-2.3vmin;animation:tvStickR .3s ease-in-out infinite;z-index:1}
.tv-moment .m-stick.s2 {left:30.3vmin;right:auto;transform-origin:97% 6%}
.tv-moment .m-stick.s1 {left:-9.3vmin;transform-origin:3% 6%;animation-name:tvStickL;animation-delay:-.15s}
@keyframes tvStickR {0%,100%{transform:rotate(34deg)}50%{transform:rotate(0)}}
@keyframes tvStickL {0%,100%{transform:rotate(-34deg)}50%{transform:rotate(0)}}
@keyframes tvDrumHit {0%{transform:scale(1.06,.94)}60%,100%{transform:scale(1)}}
.tv-moment .m-bar {display:none}

/* Right and wrong art at the same size; the answer under «صح!» on its own clear card. */
.tv-moment .m-ans {font-family:Lalezar,inherit;font-size:9vmin;line-height:1.15;background:#fff;color:#111;border:.7vmin solid #111;border-radius:3vmin;box-shadow:0 1.2vmin 0 #111;padding:1vmin 5vmin;max-width:88vw;overflow-wrap:anywhere;animation:rise .45s .2s var(--e-out) both}
.tv-moment.m-ok .m-text, .tv-moment.m-reveal .m-text {font-size:12vmin}

/* Drumroll v3: hits are driven from tv.js in time with the sound; sticks rest raised between hits. */
.tv-moment .m-stick, .tv-moment .m-drum-body {animation:none}
.tv-moment .m-stick.s2 {transform:rotate(34deg)}
.tv-moment .m-stick.s1 {transform:rotate(-34deg)}
.tv-moment .m-drum {--glow:.2}
.tv-moment .m-drum::before {content:"";position:absolute;left:50%;top:62%;width:70vmin;height:70vmin;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(#ffc530 0,#ff5fa200 62%);opacity:var(--glow);transition:opacity .12s}
.tv-moment .m-pow {position:absolute;left:30%;top:36%;width:14vmin;height:14vmin;pointer-events:none;background:conic-gradient(from 0deg,#fff 0 6%,#0000 6% 12.5%,#fff 12.5% 18.5%,#0000 18.5% 25%,#fff 25% 31%,#0000 31% 37.5%,#fff 37.5% 43.5%,#0000 43.5% 50%,#fff 50% 56%,#0000 56% 62.5%,#fff 62.5% 68.5%,#0000 68.5% 75%,#fff 75% 81%,#0000 81% 87.5%,#fff 87.5% 93.5%,#0000 93.5%);-webkit-mask:radial-gradient(#0000 30%,#000 32% 60%,#0000 62%);mask:radial-gradient(#0000 30%,#000 32% 60%,#0000 62%);animation:tvPow .35s ease-out both}
.tv-moment .m-pow.r {left:70%}
.tv-moment .m-pow.big {left:50%;top:40%;width:40vmin;height:40vmin;animation-duration:.4s}
@keyframes tvPow {from{transform:translate(-50%,-50%) scale(.3);opacity:1}to{transform:translate(-50%,-50%) scale(1.3);opacity:0}}
.tv-moment .m-tag[style*="--tc"] {box-shadow:0 1vmin 0 #111,inset 0 -1.4vmin 0 var(--tc)}
/* Last-15-seconds countdown on the TV (owner 6 Dec 2026): a corner badge, never over the question. */
.tv-final {position:fixed;inset-inline-end:3vmin;bottom:4vmin;z-index:30;width:23vmin;height:23vmin;border-radius:50%;display:grid;place-items:center;pointer-events:none;
  background:#fff;border:.9vmin solid #111;box-shadow:0 1.2vmin 0 #111;animation:tvfIn .35s cubic-bezier(.2,.9,.3,1.3) both}
.tv-final .tvf-ring {position:absolute;inset:1.3vmin;border-radius:50%;
  background:conic-gradient(var(--sun,#ffd23f) calc(var(--p,1)*360deg),#eee 0);-webkit-mask:radial-gradient(circle,transparent 62%,#000 63%);mask:radial-gradient(circle,transparent 62%,#000 63%)}
.tv-final .tvf-n {position:relative;font:13vmin/1 Lalezar,Readex,sans-serif;color:#111;font-variant-numeric:tabular-nums}
.tv-final.hot {background:var(--coral,#ff6b6b);animation:tvfIn .35s cubic-bezier(.2,.9,.3,1.3) both,tvfPulse 1s ease-in-out infinite}
.tv-final.hot .tvf-ring {background:conic-gradient(#fff calc(var(--p,1)*360deg),rgba(0,0,0,.18) 0)}
.tv-final.hot .tvf-n {color:#fff;-webkit-text-stroke:.5vmin #111;paint-order:stroke fill}
.tv-final.zero {background:#111}
.tv-final.zero .tvf-n {color:var(--coral,#ff6b6b);-webkit-text-stroke:0}
@keyframes tvfIn {from{transform:scale(0) rotate(-20deg)}to{transform:none}}
@keyframes tvfPulse {0%,100%{box-shadow:0 1.2vmin 0 #111,0 0 0 0 rgba(255,107,107,.55)}50%{box-shadow:0 1.2vmin 0 #111,0 0 0 3vmin rgba(255,107,107,0)}}
body:has(.tv-final) .tv-timer {visibility:hidden}
@media (prefers-reduced-motion: reduce) {.tv-final,.tv-final.hot {animation:none}}
/* Board with a column per side (owner 6 Dec 2026): 2, 3 or 4 columns, each in its side's colour; a missed cell gets a big ✗. */
.board.per12 .cat .cells, .judge .board.per12 .cat .cells {grid-template-columns:repeat(4,minmax(0,1fr))}
.tv-cast .board.per12 .cell {font-size:1.7rem;height:3.6rem}
.judge .board.per12 .cell {font-size:.85rem;padding-inline:0}
.board .cell.col:not(.st1):not(.st2), .judge .board .cell[style*="--tc"]:not(.st1):not(.st2) {box-shadow:inset 0 -.35rem 0 var(--tc)}
.judge .board .cell.notmine {opacity:.4}
.tv-cast .board .cell.st1.col {background:var(--tc);color:#111;border:.2rem solid #111}
.tv-cast .board .cell.st1.col::after {content:none}
.board .cell.miss, .judge .board .cell.miss, html.dark .judge .board .cell.miss {background:#f1efed;border:.14rem dashed #a8a29e;box-shadow:none;color:#111;text-decoration:none;opacity:1}
.board .cell.miss::after, .judge .board .cell.miss::after {content:none}
.cell .cell-x {position:absolute;inset:0;margin:auto;height:68%;width:auto;aspect-ratio:1;display:grid;place-items:center;border-radius:50%;background:#e5484d;color:#fff;border:.12rem solid #111}
.cell .cell-x svg {width:58%;height:58%}
.tv-cast .board .cell.miss {border-width:.2rem}
.tv-cast .board .cell .cell-x {height:66%;border-width:.18rem;box-shadow:0 .2rem 0 #111}
.tv-cast .banner.tv-turn.with-cap {flex-direction:column}
.tv-cast .banner.tv-turn .tv-cap {display:block;font:1.5rem/1.2 Readex,sans-serif;font-weight:700;color:#111;opacity:.85;margin-top:.15rem}
.tv-cast .banner.tv-turn .tv-cap b {font-family:Lalezar,Readex,sans-serif;font-weight:400;font-size:1.9rem}
