:root{color-scheme:dark;--bg:#303139;--panel:#1a1a1a;--card:#2c2c2e;--line:#414145;--text:#fff;--muted:#bdbdc3;--green:#16b43b;--gold:#ffcf37;--purple:#7740bf;--pink:#d500ec;--red:#eb263a}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 15%,#3e3e49 0%,var(--bg) 60%,#19191a 100%);color:var(--text);font:18px/1.55 Arial,Tahoma,sans-serif;min-height:100vh}h1,h2,h3,h4,strong,b,label,a,p,button{color:var(--text)}h1,h2,h3,p{margin:0 0 16px}h1{font-size:clamp(30px,4vw,50px);line-height:1.25}h2{font-size:28px;line-height:1.35}h3{font-size:22px}a{overflow-wrap:anywhere}.top{padding:18px 4vw;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);background:#19191ae8}.brand{display:flex;align-items:center;gap:12px;font-size:27px;font-weight:800;text-decoration:none}.brand>span{line-height:1.15}.brand small{display:block;font-size:11px;letter-spacing:2px;color:var(--muted);margin-top:7px}.brand:first-letter{color:var(--gold)}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.spread{justify-content:space-between}.muted,.hint{color:var(--muted)}small{font-size:14px}.hint{font-size:15px;margin-top:14px}main{max-width:1360px;margin:0 auto;padding:16px 4vw 40px}.entry{max-width:680px;margin:30px auto}.panel{background:var(--panel);border:1px solid var(--line);border-radius:22px;padding:26px;box-shadow:0 8px 20px #0003;margin-bottom:20px}.hero{background:radial-gradient(ellipse at 90% 10%,#9a55e060,transparent 60%),linear-gradient(130deg,#17112b,#35204d);border:1px solid #8b56bf}.hero .kicker,.kicker{color:var(--gold);font-size:15px;font-weight:700;letter-spacing:.04em}.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px}.layout>*,.grid>*{min-width:0}.room-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:10px 0 24px}.room-code{font:800 26px/1.2 monospace;letter-spacing:4px;color:var(--gold)}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border:1px solid #7c7c82;border-radius:12px;background:linear-gradient(#707077,#44444c);box-shadow:0 3px 0 #101010;color:#fff;padding:11px 20px;font:700 17px/1.3 Arial,Tahoma,sans-serif;text-decoration:none;cursor:pointer}@media(hover:hover) and (pointer:fine){button:hover,.button:hover{filter:brightness(1.12)}}button:disabled{cursor:default;opacity:.5}.primary{background:linear-gradient(#16b43b,#087326);border-color:#169737}.compact{font-size:14px;min-height:40px;padding:8px 12px}.danger{background:#5a2028;border-color:#a04050}.wide{width:100%}.ghost{background:transparent;box-shadow:none;border-color:var(--line)}input,select{display:block;width:100%;padding:14px;margin:7px 0 18px;border-radius:11px;border:1px solid #5b5b61;background:#101012;color:#fff;font:18px Arial,Tahoma,sans-serif;min-height:50px}input::placeholder{color:#aaa}label{display:block;font-size:17px;font-weight:700}input:focus,select:focus,button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}#status{min-height:28px;color:var(--gold);margin:8px 4vw;font-size:16px}footer{padding:12px 4vw 24px;color:var(--muted);text-align:center;font-size:14px}.avatar{display:inline-flex;flex:none;width:48px;height:48px;border-radius:50%;background:linear-gradient(#77777c,#343437);border:2px solid #939398;align-items:center;justify-content:center;color:#fff;font-size:23px;font-weight:800;object-fit:cover}.players{list-style:none;padding:0;margin:0}.players li{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #39393d}.players li:last-child{border:0}.player-name{display:block;color:#fff;font-weight:700;overflow-wrap:anywhere}.player-info{flex:1;min-width:0}.score{color:var(--gold);font-size:25px;font-weight:800;font-variant-numeric:tabular-nums}.rank{font-weight:700;color:var(--muted);width:24px}.badge{border:1px solid #b19448;color:var(--gold);padding:2px 8px;border-radius:20px;font-size:12px}.qr-card{text-align:center}.qr-card svg{width:100%;max-width:240px;height:auto;border-radius:8px;background:#fff}.qr-card .room-code{margin:12px 0}.timer{border:2px solid var(--gold);border-radius:50%;width:76px;height:76px;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--gold);flex:none}.question{font-size:clamp(24px,3vw,40px);line-height:1.6;white-space:pre-line}.option{justify-content:flex-start;text-align:start;min-height:80px;font-size:21px;background:#333338;border-color:#62626a}.question-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.answer-letter{display:inline-grid;place-items:center;background:#5e398a;border-radius:8px;width:36px;height:36px;flex:none}.secret{border:2px solid #c68cf5;background:#29173c;padding:18px;border-radius:12px;font-size:26px;font-weight:800;color:#fff}.board{width:100%;aspect-ratio:10/7;background:#fff;border:3px solid #85858b;border-radius:16px;display:block;touch-action:none;user-select:none}.drawing-toolbar{margin:16px 0}.color-black{background:#151515}.color-red{background:#e03143}.color-blue{background:#166dd9}.color-green{background:#148a3c}.color-choice{width:45px;height:45px;border:2px solid #ddd;padding:0}.color-choice.selected{outline:3px solid var(--gold);outline-offset:2px}.big-letter{font-size:70px;font-weight:900;color:var(--gold);line-height:1.2}.success{color:#7fed9b}.result-stage{background:radial-gradient(ellipse at 50% 0%,#64338a66,transparent 70%),var(--panel)}.podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:16px;margin:26px 0}.podium-card{background:linear-gradient(#37353d,#222125);border:1px solid #5d5268;border-radius:18px;padding:22px 12px;text-align:center}.podium-card:first-child{border:2px solid var(--gold);background:linear-gradient(#5e472b,#28201d);padding-top:35px}.podium-card .avatar{width:72px;height:72px;font-size:32px;margin:12px 0}.podium-card .score{font-size:40px;display:block}.podium-card .player-name{font-size:24px}.podium-card .position{color:var(--gold);font-weight:800}.gain{color:#7fed9b;font-size:16px;font-weight:700}.score-row{animation:arrive .5s ease-out both}.team-scores{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}.team-score{padding:30px;text-align:center;background:#33213f;border:2px solid #78509b;border-radius:18px}.team-score:nth-child(2){background:#1d3b27;border-color:#438e5b}.team-score strong{display:block;font-size:70px;color:var(--gold)}details{margin:18px 0}summary{cursor:pointer;color:var(--muted)}pre{white-space:pre-wrap;overflow-wrap:anywhere}body.tv main{max-width:none;padding:12px 3vw 32px}body.tv .layout{grid-template-columns:minmax(0,1fr) 300px}body.tv .question{font-size:clamp(32px,3.1vw,64px)}body.tv .result-stage h1{font-size:clamp(36px,4vw,72px)}body.tv .result-layout{grid-template-columns:minmax(0,1fr)}body.tv .result-layout>aside{display:none}body.tv .result-stage{min-height:calc(100vh - 230px);padding:32px 5vw}body.tv .result-stage .podium-card .avatar{width:96px;height:96px}body.tv .result-stage .podium-card .player-name{font-size:clamp(24px,2.4vw,44px)}body.tv .result-stage .score{font-size:clamp(32px,3.3vw,64px)}body.tv .result-stage .players{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 32px}body.tv .result-stage .players .score{font-size:30px}body.tv .result-stage .players li{font-size:22px}body.tv .top{padding-block:12px}body.tv .result-stage .gain{font-size:22px}body.tv .timer{width:96px;height:96px;font-size:38px}.empty{padding:25px 0;color:var(--muted)}.photo-label{display:inline-block;position:relative;overflow:hidden;cursor:pointer}.photo-label input{position:absolute;width:1px;height:1px;opacity:0;min-height:0;padding:0;margin:0}.photo-label:focus-within{outline:3px solid var(--gold)}@keyframes arrive{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}@media(max-width:850px){.layout,body.tv .layout{grid-template-columns:1fr}.top{align-items:flex-start;flex-wrap:wrap}.top .row{gap:6px}.grid{grid-template-columns:1fr}.panel{padding:20px}.room-heading{align-items:flex-start}.podium{gap:8px}.podium-card{padding:14px 8px}.podium-card .player-name{font-size:18px}.podium-card .avatar{width:52px;height:52px}.podium-card .score{font-size:30px}body.tv .result-stage .players{grid-template-columns:1fr}.brand{font-size:23px}}

#status:empty{display:none}
@media(min-width:851px){body.tv.show-results .room-heading,body.tv.show-results footer{display:none}body.tv.show-results main{padding:12px 24px}body.tv.show-results .result-stage{height:calc(100dvh - 112px);min-height:0;overflow:auto;margin:0;padding:18px 4vw}body.tv.show-results .result-stage h1{font-size:clamp(30px,3.4vw,58px);margin-bottom:8px;line-height:1.2}body.tv.show-results .result-stage>.kicker{margin-bottom:8px}body.tv.show-results .podium{margin:12px 0;gap:18px}body.tv.show-results .podium-card{padding:8px 12px;line-height:1.2}body.tv.show-results .podium-card .avatar{width:clamp(40px,6vh,72px);height:clamp(40px,6vh,72px);margin:5px 0}body.tv.show-results .podium-card .player-name{font-size:clamp(22px,2vw,34px);line-height:1.2}body.tv.show-results .podium-card .score{font-size:clamp(34px,4.5vh,64px);line-height:1.2}body.tv.show-results .podium-card .gain{font-size:16px;line-height:1.2}body.tv.show-results .podium-card .position{font-size:15px}body.tv.show-results .result-stage .players{gap:0 28px}body.tv.show-results .result-stage .players li{padding:8px 0;font-size:20px;min-height:66px}body.tv.show-results .result-stage .players .gain{font-size:14px}body.tv.show-results .result-stage .players .avatar{width:42px;height:42px}body.tv.show-results .result-stage details,body.tv.show-results .result-stage>.hint{display:none}}

.team-members{display:grid;gap:12px;text-align:start}.team-members .row{justify-content:center}.team-members .player-name{font-size:22px}
/* Rank movement: arrow + number, colour is only a second cue. */
.move{display:inline-flex;align-items:center;gap:2px;font-weight:800;font-size:.8em;padding:1px 8px;border-radius:999px;border:1px solid currentColor;margin-inline:6px;font-variant-numeric:tabular-nums}.move.up{color:#7fed9b}.move.down{color:#ff8a96}.move.same{color:var(--muted)}
/* TV stage (lobby + results): one screen, no scrolling, sized in viewport units so 720p, 1080p and 4K look the same. */
body.tv-stage{height:100dvh;overflow:hidden;display:flex;flex-direction:column}
body.tv-stage .top{padding:1vh 3vw;flex:none}body.tv-stage #status{position:fixed;inset-inline-start:3vw;bottom:1vh;margin:0;min-height:0;z-index:5}body.tv-stage footer#footnote{display:none}
body.tv-stage main{flex:1;min-height:0;max-width:none;width:100%;margin:0;padding:2vh 3vw 2.5vh;display:flex}
.tv-screen{flex:1;min-height:0;display:flex;flex-direction:column;gap:2vh;border-radius:2.4vh;border:1px solid #5d4a72;padding:2.5vh 3vw;background:radial-gradient(ellipse at 50% -10%,#7740bf55,transparent 65%),var(--panel)}
.tv-screen h1{font-size:6vh;line-height:1.15;margin:0}.tv-screen .kicker{font-size:2.3vh;margin:0 0 .6vh}.tv-sub{font-size:2.8vh;color:var(--muted);margin:0}
.tv-head{display:flex;justify-content:space-between;align-items:flex-end;gap:3vw;flex:none}.tv-tag{display:flex;flex-direction:column;align-items:flex-end;gap:.5vh;font-size:2.4vh;color:var(--muted)}.tv-tag .room-code{font-size:3.4vh}
/* Podium: 1st in the centre and tallest. Grid areas follow dir, so RTL still centres 1st. */
.tv-podium{flex:1;min-height:0;display:grid;grid-template-rows:minmax(0,1fr);grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"p2 p1 p3";align-items:end;gap:2.5vw}





.tv-rest{flex:none;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2vh 2vw}
.tv-rest li{display:flex;align-items:center;gap:1vw;background:#26252b;border:1px solid #444049;border-radius:1.6vh;padding:.6vh 1.2vw;font-size:2.7vh;min-width:0}.tv-rest .rank{width:auto;color:var(--muted);font-weight:800}.tv-rest .avatar{width:5.5vh;height:5.5vh;font-size:2.8vh}.tv-rest .player-name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tv-rest .gain{font-size:2.2vh}.tv-rest .score{font-size:3.6vh}
.tv-foot{flex:none;display:flex;justify-content:space-between;align-items:center;gap:3vw;font-size:2.4vh}.tv-foot p{margin:0}.tv-reveal{font-size:2.8vh}.tv-reveal strong{color:var(--gold)}
/* Charades: two big team panels. */
.tv-teams{flex:1;min-height:0;display:grid;grid-template-columns:1fr 1fr;gap:3vw}
.tv-team{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2vh;border-radius:2.4vh;padding:3vh 2vw;background:#33213f;border:3px solid #78509b;min-height:0;overflow:hidden}.tv-team.team-1{background:#1d3b27;border-color:#438e5b}.tv-team.lead{border-color:var(--gold);box-shadow:0 0 6vh #ffcf3733}
.tv-team h2{font-size:5vh;margin:0}.tv-team .score{font-size:22vh;line-height:1}
/* Lobby: QR on one side, player wall on the other. */
.tv-lobby{flex-direction:row;align-items:stretch;gap:4vw}
.tv-qr{flex:none;width:min(42vh,36vw);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5vh;text-align:center}.tv-qr svg{width:100%;height:auto;background:#fff;border-radius:2vh}.tv-qr .room-code{font-size:6vh;letter-spacing:.6vh}.tv-qr p{font-size:2.8vh;margin:0}
.tv-lobby-main{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:2vh}
.tv-roster{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:1.5vh 1.5vw}.tv-roster li{display:flex;align-items:center;gap:1vw;background:#00000040;border:1px solid #ffffff22;border-radius:999px;padding-block:.8vh;padding-inline:.8vh 2vw;font-size:3.2vh}.tv-roster .avatar{width:7vh;height:7vh;font-size:3.4vh}
.tv-team .tv-roster{justify-content:center}.tv-team .tv-roster li{font-size:2.8vh}
@media(max-aspect-ratio:1/1){.tv-lobby{flex-direction:column}.tv-qr{width:min(60vw,40vh);margin:0 auto}.tv-rest{grid-template-columns:1fr}}

/* Podium cards size their content from the card itself (container units), so nothing clips on any screen shape. */
.tv-card{container-type:size;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2cqh;text-align:center;border-radius:2.4vh;padding:4cqh 1.2vw;background:linear-gradient(#37353d,#222125);border:2px solid #5d5268;min-height:0;min-width:0;overflow:hidden}
.tv-card.place-1{grid-area:p1;height:100%;border-color:var(--gold);background:linear-gradient(#6a4f2c,#28201d);box-shadow:0 0 6vh #ffcf3733}.tv-card.place-2{grid-area:p2;height:88%}.tv-card.place-3{grid-area:p3;height:78%}
.tv-card .position{font-size:min(8cqh,9cqw);line-height:1;font-weight:800;color:var(--gold);display:flex;align-items:center;gap:4px}
.tv-card .avatar{width:min(30cqh,45cqw);height:min(30cqh,45cqw);font-size:min(15cqh,22cqw);border-width:max(2px,.6cqh);margin:0}
.tv-card .player-name{font-size:min(10cqh,11cqw);line-height:1.1;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tv-card .score{font-size:min(22cqh,26cqw);line-height:1}
.tv-card .gain{font-size:min(6.5cqh,7cqw);line-height:1}
.tv-card .move{font-size:.75em}
/* Rest-of-field rows: names win. Columns adapt to width; tight rows drop the "+gain" label first. */
.tv-rest{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}
.tv-rest li{container-type:inline-size}
.tv-rest .player-name{min-width:4em}
@container (max-width:330px){.tv-rest li .gain{display:none}.tv-rest li .move{padding:0 5px;margin-inline:2px}}
.tv-rest{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:.8vh 1.2vw}
@media(max-height:820px){.tv-rest li{padding:.3vh .8vw;font-size:clamp(13px,2.4vh,22px)}.tv-rest .avatar{width:4.6vh;height:4.6vh;font-size:2.2vh}.tv-rest .score{font-size:clamp(15px,3vh,26px)}.tv-screen{gap:1.2vh;padding:1.8vh 2.5vw}.tv-screen h1{font-size:5vh}}
/* Fixed column counts by width (auto-fit made tiny cells on wide TVs). */
.tv-rest{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:900px){.tv-rest{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.tv-rest{grid-template-columns:1fr}}
/* Portrait / narrow screens (phone or iPad held upright showing the TV view):
   stack the header, give the podium a real height, and let the page scroll instead of squeezing. */
@media (max-aspect-ratio: 4/5), (max-width: 700px) {
  body.tv-stage{height:auto;min-height:100dvh;overflow:auto}
  body.tv-stage main{display:block;padding:12px 16px 24px}
  .tv-screen{display:flex;gap:16px;padding:18px 16px;border-radius:18px}
  .tv-screen h1{font-size:clamp(26px,7vw,48px)}
  .tv-screen .kicker{font-size:clamp(13px,3.4vw,18px)}
  .tv-head{flex-direction:column;align-items:flex-start;gap:8px}
  .tv-tag{flex-direction:row;align-items:center;gap:12px;font-size:clamp(13px,3.4vw,18px)}
  .tv-tag .room-code{font-size:clamp(18px,5vw,28px)}
  .tv-podium{flex:none;height:clamp(240px,42vh,520px);gap:10px}
  .tv-rest{grid-template-columns:1fr;gap:8px}
  .tv-rest li{padding:8px 12px;font-size:clamp(15px,4.2vw,22px)}
  .tv-rest .avatar{width:40px;height:40px;font-size:18px}
  .tv-rest .score{font-size:clamp(18px,5vw,28px)}
  .tv-foot{flex-direction:column;align-items:flex-start;gap:8px;font-size:clamp(14px,3.8vw,18px)}
  .tv-reveal{font-size:clamp(15px,4vw,20px)}
  .tv-teams{grid-template-columns:1fr;flex:none}
  .tv-team .score{font-size:clamp(64px,18vw,140px)}
  .tv-team h2{font-size:clamp(22px,6vw,36px)}
  .tv-lobby{flex-direction:column;align-items:center}
  .tv-qr{width:min(70vw,360px)}
  .tv-qr .room-code{font-size:clamp(28px,8vw,48px)}
  .tv-roster li{font-size:clamp(15px,4.2vw,22px)}
  .tv-roster .avatar{width:40px;height:40px;font-size:18px}
}
@media (max-aspect-ratio: 4/5), (max-width: 700px) {
  .tv-podium{height:clamp(230px,36vh,480px)}
  .tv-card{padding:3cqh 6px;gap:2.5cqh}
  .tv-card .position{font-size:min(8cqh,13cqw)}
  .tv-card .avatar{width:min(28cqh,60cqw);height:min(28cqh,60cqw);font-size:min(14cqh,28cqw)}
  .tv-card .player-name{font-size:min(10cqh,16cqw)}
  .tv-card .score{font-size:min(20cqh,32cqw)}
  .tv-card .gain{font-size:min(6cqh,10cqw);white-space:nowrap}
}
.tv-help{text-align:start;margin-top:16px;padding:16px;border-radius:14px;background:#26213a;border:1px solid #6b4fa0}.tv-help h3{margin-bottom:10px}.tv-help ol{padding-inline-start:20px;margin:0 0 12px}.tv-help li{margin-bottom:10px;font-size:15px;line-height:1.5}.tv-help code{display:inline-block;max-width:100%;overflow-wrap:anywhere;font-size:12px;background:#0006;padding:4px 6px;border-radius:6px;margin-top:4px}
/* Connect Colours board */
.cc-rules{font-size:17px;margin-bottom:12px}.cc-rules b{color:var(--gold)}
.cc-wrap{direction:ltr;position:relative;width:min(100%,520px);aspect-ratio:1;margin:8px auto 14px;border-radius:14px;background:#111114;border:2px solid #4a4a52;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none}
.cc-live{cursor:crosshair;box-shadow:0 0 0 3px #16b43b33}
.cc-grid{position:absolute;inset:0;display:grid;grid-template-columns:repeat(var(--n),1fr);grid-template-rows:repeat(var(--n),1fr)}
.cc-cell{border:1px solid #2c2c33;display:flex;align-items:center;justify-content:center;position:relative;z-index:2}
.cc-dot{width:66%;height:66%;border-radius:50%;background:var(--c);color:#111;display:flex;align-items:center;justify-content:center;font:900 clamp(13px,4.2vw,26px)/1 Arial,sans-serif;box-shadow:0 0 0 3px #0008}
.cc-lines{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;opacity:.92}
.cc-legend{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:0 0 6px}.cc-legend span{border:2px solid var(--c,#666);border-radius:999px;padding:2px 10px;font-weight:800;font-size:15px}.cc-legend .cc-cover{border-color:#666;color:var(--muted)}
.cc-count{font-size:28px;font-weight:800;color:var(--gold);text-align:center;margin:6px 0}
details .cc-wrap{width:min(100%,320px)}
body.tv .cc-wrap{width:min(100%,62vh)}body.tv .cc-dot{font-size:clamp(16px,3vh,40px)}body.tv .cc-rules{font-size:clamp(18px,2.4vh,30px);text-align:center}
/* Account panel */
#account-panel{max-width:560px;margin:0 auto;padding:0 16px}
.acct .phone-row{display:flex;gap:8px}.acct .phone-row select{width:auto;flex:none;max-width:45%}.acct .phone-row input{flex:1}
.acct .code-input{font:800 28px/1 monospace;letter-spacing:10px;text-align:center}
.acct .dev-code{background:#3a2f0b;border:1px dashed var(--gold);padding:10px;border-radius:10px}
.acct .socials{display:flex;flex-direction:column;gap:10px;align-items:stretch}.acct .social.apple{background:#000;border-color:#555}
.acct .or{text-align:center;color:var(--muted);margin:14px 0 6px}
/* Codebreaker */
.code-clues{width:100%;max-width:520px;margin:10px auto 14px;border-collapse:separate;border-spacing:0 6px;font-size:18px}
.code-clues th{font-size:14px;color:var(--muted);font-weight:700;text-align:center}.code-clues td{text-align:center;background:#232328;padding:8px 6px}
.code-clues td:first-child{border-radius:10px 0 0 10px}.code-clues td:last-child{border-radius:0 10px 10px 0}.code-clues small{color:var(--muted)}
.code-guess span{display:inline-grid;place-items:center;width:36px;height:40px;margin:0 2px;border-radius:8px;background:#5e398a;font:800 22px/1 monospace}
.code-form{justify-content:center}.code-form input{max-width:200px;margin:0;font:800 26px/1 monospace;letter-spacing:8px;text-align:center}
.code-reveal{font:800 20px monospace;letter-spacing:4px;color:var(--gold)}
body.tv .code-clues{max-width:900px;font-size:clamp(18px,2.6vh,32px)}body.tv .code-guess span{width:clamp(36px,5vh,64px);height:clamp(40px,5.5vh,70px);font-size:clamp(22px,3.4vh,44px)}
/* Memory Grid */
.mem-grid{display:grid;grid-template-columns:repeat(var(--n),1fr);gap:8px;width:min(100%,420px);aspect-ratio:1;margin:10px auto 14px;direction:ltr}
.mem-cell{min-height:0;padding:0;border-radius:12px;background:#26252b;border:2px solid #444049;box-shadow:none}
.mem-cell.lit{background:var(--gold);border-color:#fff3;box-shadow:0 0 18px #ffcf3755}
.mem-live .mem-cell{cursor:pointer}.mem-live .mem-cell.lit{background:var(--green);box-shadow:0 0 14px #16b43b66}
.mem-countdown{text-align:center;font-size:22px;color:var(--gold)}.mem-countdown b{font-size:34px}
body.tv .mem-grid{width:min(100%,60vh)}
/* The hidden attribute must always win over component display rules (e.g. .compact is inline-flex). */
[hidden]{display:none!important}
/* TV active view: boards must fit a 720p screen without scrolling. */
body.tv .mem-grid{width:min(100%,40vh)}body.tv .cc-wrap{width:min(100%,46vh)}
/* Legal / support pages */
body.legal .top nav a{color:var(--muted);text-decoration:none;margin-inline-start:14px}
.legal-body{max-width:760px;margin:0 auto;padding:24px 16px 60px;line-height:1.75}.legal-body h1{font-size:30px}.legal-body h2{font-size:20px;margin-top:22px;color:var(--gold)}
.legal-body ul{padding-inline-start:22px}.legal-body hr{border:0;border-top:1px solid var(--line);margin:40px 0}.legal-body textarea{display:block;width:100%;padding:14px;margin:7px 0 18px;border-radius:11px;border:1px solid #5b5b61;background:#101012;color:#fff;font:17px Arial,Tahoma,sans-serif}
footer#footnote a{color:var(--muted);margin:0 4px}
.mod-btn{min-width:40px;padding:4px 8px}
.players li.mod-menu{display:block;background:#26252b;border-radius:12px;padding:10px 12px;margin:2px 0 8px;border:1px solid #444049}.mod-menu .row{gap:6px}.mod-menu>button{margin:0 0 6px}
.acct hr{border:0;border-top:1px solid var(--line);margin:18px 0}
.scan-btn{margin:0 0 12px;background:linear-gradient(#7740bf,#4b2a7a);border-color:#9b6ad6}
/* Account sheet: an overlay, not something that pushes the page down */
#account-panel{max-width:none;padding:0}
.sheet-backdrop{position:fixed;inset:0;background:#000a;z-index:40}
.sheet{position:fixed;z-index:41;left:50%;top:50%;transform:translate(-50%,-50%);width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:22px;padding:28px 22px 22px;box-shadow:0 20px 60px #000a}
@media(max-width:600px){.sheet{top:auto;bottom:0;transform:translateX(-50%);border-radius:22px 22px 0 0;padding-bottom:calc(22px + env(safe-area-inset-bottom))}}
body.sheet-open{overflow:hidden}
.sheet-x{position:absolute;inset-inline-end:12px;top:12px;min-height:40px;width:40px;padding:0;border-radius:50%;background:#2c2c2e;border-color:#444;box-shadow:none;font-size:18px}
.sheet h2{margin:4px 44px 8px 0;font-size:24px}[dir=ltr] .sheet h2{margin:4px 0 8px 0}
.sheet .step{color:var(--gold);font-weight:800;font-size:14px;margin:6px 0}
.sheet label{margin-top:6px}.sheet .phone-row{display:flex;gap:8px}.sheet .phone-row select{width:auto;flex:none;max-width:46%;margin:7px 0 4px}.sheet .phone-row input{flex:1;margin:7px 0 4px;font-size:20px;letter-spacing:1px}
.sheet .wide{margin-top:8px}.sheet .linkish{background:none;border:0;box-shadow:none;color:var(--muted);text-decoration:underline;min-height:40px;padding:6px 0;margin-top:6px}
.sheet .or{display:flex;align-items:center;gap:10px;color:var(--muted);margin:16px 0 4px}.sheet .or::before,.sheet .or::after{content:"";flex:1;border-top:1px solid var(--line)}
.sheet .center{text-align:center}.sheet .social{width:100%}
input::placeholder{color:#6e6e76}
/* Sign-up flow (design: signup-preview.html). Scoped to the sheet. */
.sheet h1{font-size:28px;line-height:1.4;margin:0 0 4px}
.sheet .tabs{display:grid;grid-template-columns:1fr 1fr;background:#101012;border:1px solid var(--line);border-radius:13px;padding:4px;gap:4px;margin:6px 0 22px}
.sheet .tabs button{font-size:14px;padding:8px 6px;min-height:42px;color:var(--muted);border-radius:9px;background:none;border:0;box-shadow:none}
.sheet .tabs button.active{background:#35353b;color:#fff;box-shadow:0 2px 5px #0006}
.sheet .step-line{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}.sheet .step-label{font-size:12px;color:var(--muted)}
.sheet .steps{display:flex;gap:5px}.sheet .steps span{height:4px;width:25px;background:var(--line);border-radius:4px}.sheet .steps .on{background:var(--green)}
.sheet .subtitle{font-size:14px;color:var(--muted);margin:6px 0 20px;line-height:1.8}
.sheet label{display:block;font-size:14px;font-weight:700;margin:0 0 8px}
.sheet .phone-row{display:grid;grid-template-columns:112px minmax(0,1fr);gap:9px;direction:ltr}.sheet .phone-row select{padding:12px 8px;font-size:15px;margin:0;max-width:none}.sheet .phone-row input{margin:0;letter-spacing:.4px;font-size:17px}
.sheet .hint{font-size:12px;margin-top:8px;line-height:1.7}
.sheet .primary{width:100%;margin-top:18px;min-height:52px;font-size:16px}
.sheet .secondary{width:100%;min-height:50px}
.sheet .divider{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted);margin:20px 0 14px}.sheet .divider::before,.sheet .divider::after{content:"";height:1px;background:var(--line);flex:1}
.sheet .guest-note{font-size:11px;text-align:center;color:var(--muted);margin-top:9px}
.sheet .error{font-size:13px;color:#ff9cad;margin-top:9px}
.sheet .small-row{display:flex;justify-content:space-between;align-items:center;gap:9px}
.sheet .back{font-size:13px;padding:0;margin-bottom:8px;color:var(--muted);min-height:36px;background:none;border:0;box-shadow:none}
.sheet .phone-display{display:block;direction:ltr;unicode-bidi:isolate;font:600 17px/1.5 system-ui,sans-serif;letter-spacing:.6px;color:#fff;margin-top:6px}
.sheet .otp{direction:ltr;text-align:center;letter-spacing:10px;font-size:25px;min-height:60px;margin:0}
.sheet .demo-code{margin:14px 0 0;border:1px dashed #67676e;padding:8px 10px;color:var(--muted);font-size:12px;border-radius:9px;text-align:center}.sheet .demo-code b{color:#fff;letter-spacing:3px;font-family:system-ui,sans-serif}
.sheet .photo-wrap{display:flex;align-items:center;gap:16px;margin:18px 0 22px}
.sheet .sheet-avatar{width:70px;height:70px;flex-shrink:0;border-radius:50%;background:linear-gradient(#707077,#44444c);display:grid;place-items:center;font-size:26px;font-weight:800;border:2px solid #888891;overflow:hidden}.sheet .sheet-avatar img{width:100%;height:100%;object-fit:cover}
.sheet .photo-button{min-height:44px;border:1px solid #666670;border-radius:9px;font-size:13px;padding:7px 13px}.sheet .photo-note{font-size:11px;color:var(--muted);margin:4px 0 0}
.sheet .ready{padding:16px 0 4px;text-align:center}.sheet .ready .sheet-avatar{margin:0 auto 16px;width:84px;height:84px}.sheet .ready h1{font-size:26px}
.sheet .success{display:inline-block;font-size:12px;color:#adf2bc;background:#123c1d;border-radius:20px;padding:4px 11px;margin:12px 0 18px}
.sheet .guest-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#35204d;border:1px solid #7740bf;color:var(--gold);font-size:22px;margin-bottom:16px}
.sheet .gap{height:12px}.sheet .linkish:disabled{opacity:.5;text-decoration:none}
/* No re-render animation: the sheet is rebuilt on every step, so an animation would flicker. */
.sheet{padding-top:62px}

/* Majles party identity. Decorative colour stays behind high-contrast text. */
:root{--bg:#303139;--panel:#1a1a1a;--card:#2c2c2e;--muted:#c2c0ca}
body{font:16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Tahoma,sans-serif;background:radial-gradient(ellipse at 18% 0,#41404e 0,transparent 48%),linear-gradient(150deg,#303139,#222226 80%);background-attachment:fixed}
main{max-width:1440px;padding:30px 4vw 48px}.top{min-height:86px;padding:16px 4vw;background:#19191af5;border-bottom-color:#ffffff12;gap:20px}.brand{font-size:23px;gap:10px;white-space:nowrap}.brand small{font-size:9px;letter-spacing:2.5px;color:#c0b7d2;margin-top:6px}.brand-emblem{display:grid;place-items:center;width:44px;height:48px;border-radius:18px 18px 13px 13px;background:linear-gradient(145deg,#9363d6,#50318a);border:1px solid #b295d5;color:var(--gold);font-size:32px;box-shadow:0 3px 0 #0f0d15}.header-actions{gap:10px}.header-actions #connection:empty{display:none}.header-actions #connection{font-size:13px}.compact{min-height:44px}.language-toggle{background:#2d2c33;border-color:#54515e;font-size:13px}.account-trigger{background:linear-gradient(#0d8330,#0b7027);border-color:#32b451}.header-actions #signin{border-color:transparent}.panel{border-color:#ffffff17;border-radius:24px;box-shadow:0 8px 28px #0002}.primary{background:linear-gradient(180deg,#0d8330,#086b25);border-color:#32b451;box-shadow:0 4px 0 #06491b,0 6px 18px #0003}@media(hover:hover) and (pointer:fine){.primary:hover{filter:brightness(1.08)}}button,.button{transition:background .16s,border-color .16s,filter .16s,transform .16s}button:active:not(:disabled),.button:active{transform:translateY(1px)}input,select{border-color:#64616e;background:#111114;font-size:16px;min-height:52px}input::placeholder{color:#aaa6b5}label{font-size:14px}.hint{font-size:13px;line-height:1.7}.row{gap:10px}
.entry{max-width:none;margin:0}.entry-top{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(310px,1fr);gap:24px;align-items:stretch}.home-hero{position:relative;isolation:isolate;display:flex;align-items:center;min-height:370px;overflow:hidden;border:1px solid #8d66ba70;border-radius:28px;padding:34px;background:radial-gradient(ellipse at 90% 80%,#7740bf66,transparent 65%),linear-gradient(140deg,#21182f,#332345);box-shadow:0 15px 45px #0002}.home-hero::after{content:"";position:absolute;z-index:-1;inset:16px;border:1px solid #bb9cdd1f;border-radius:19px;pointer-events:none}.hero-copy{position:relative;z-index:2;width:62%;max-width:62%}.home-hero .kicker{font-size:11px;letter-spacing:1.2px;margin-bottom:18px}.home-hero h1{font-size:clamp(36px,3.5vw,54px);line-height:1.12;letter-spacing:-1.5px;margin:0 0 20px}.home-hero p:not(.kicker){font-size:15px;color:#e0d5ec;max-width:320px;line-height:1.8}.hero-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:20px}.hero-chips span{font-size:11px;border:1px solid #bba6cd45;border-radius:30px;padding:6px 10px;background:#160f2340;color:#e7dfef}
.party-scene{width:265px;height:270px;position:relative;flex:none;direction:ltr}.home-hero>.party-scene{position:absolute;inset-inline-end:-18px;bottom:42px;transform:rotate(4deg)}.scene-arch{position:absolute;inset:8px 20px 25px;border-radius:130px 130px 28px 28px;border:1px solid #d4abff4a;background:linear-gradient(#a16cdd24,#8c56bc03);box-shadow:inset 0 0 0 12px #b08cdd08}.scene-card{position:absolute;width:148px;height:112px;border-radius:18px;border:1px solid #e0cbff5c;box-shadow:0 16px 20px #0a061b55;background:linear-gradient(140deg,#8e6ac8,#4e337a);display:grid;place-items:center}.scene-card .game-art{width:148px;height:104px}.scene-draw{left:18px;top:23px;transform:rotate(-15deg);background:linear-gradient(130deg,#8f67ad,#533259)}.scene-brain{right:6px;top:91px;transform:rotate(14deg);background:linear-gradient(140deg,#665ba0,#352850)}.scene-words{left:25px;bottom:26px;transform:rotate(-8deg);background:linear-gradient(135deg,#725c40,#443348)}.scene-spark{position:absolute;color:#ffcf37}.spark-one{font-size:30px;right:6px;top:26px}.spark-two{font-size:24px;left:0;bottom:60px}.scene-pill{position:absolute;bottom:0;left:24px;right:10px;text-align:center;border:1px solid #a280c9;background:#21172e;box-shadow:0 6px 14px #0004;border-radius:30px;padding:7px;font-size:11px;color:#f4e6ff;transform:rotate(2deg)}
.entry-form-panel{margin:0;padding:26px;display:flex;flex-direction:column;justify-content:center;background:#1a1a1a}.entry-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;border:1px solid #45414b;background:#111114;border-radius:13px;padding:4px;margin-bottom:22px}.entry-tabs button{min-height:44px;font-size:14px;padding:8px 6px;border:0;background:transparent;box-shadow:none;color:#c2bdce}.entry-tabs button.selected{background:#59417a;color:#fff;box-shadow:0 2px 3px #0006}.entry-form-panel input{margin-bottom:14px}.entry-form-panel .selected-game{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 18px;font-size:12px;color:#c5becf}.selected-game b{display:block;font-size:15px;margin-top:3px}.selected-game a{color:#e0c9ff;display:inline-flex;align-items:center;min-height:44px}.entry-form-panel .primary{min-height:54px;font-size:17px}.guest-reassurance{text-align:center;font-size:12px;color:#c0bac9;margin:14px 0 0}.entry-account-links{display:flex;justify-content:center;gap:10px;align-items:center;margin-top:8px}.text-action{background:none;border:none;box-shadow:none;color:#dfc7ff;padding:8px 3px;min-height:44px;font-size:13px}.entry-account-links span{color:#6e657b}.terms-note{font-size:10px;color:#b3afbc;text-align:center;margin:10px 0 0}.terms-note a{color:#cac4d4}.invite-heading h2{font-size:24px}.invite-code{color:var(--gold);font-family:monospace;letter-spacing:3px;display:block;margin:8px 0 16px}
.catalogue{margin-top:34px;scroll-margin-top:20px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.section-heading h2{font-size:25px;line-height:1.3;margin:0}.section-eyebrow{color:#c3b3d8;font-size:10px;font-weight:bold;letter-spacing:1.8px;margin:0 0 7px}.catalogue-count{border:1px solid #8c7a9b66;background:#28232f;color:#dfcfee;font-size:11px;padding:6px 12px;border-radius:30px;white-space:nowrap}.game-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.game-card{--game-tint:#31253f;--game-edge:#725095;position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;min-width:0;overflow:hidden;text-align:start;padding:0;border:1px solid #ffffff1f;border-radius:19px;background:#212124;box-shadow:0 5px 0 #18181c;isolation:isolate}@media(hover:hover) and (pointer:fine){.game-card:hover{filter:none;border-color:var(--game-edge);background:#28252e;transform:translateY(-3px)}}.game-card .game-art{display:block;background:radial-gradient(ellipse at center,var(--game-tint),#212124 90%);width:100%;height:128px}.game-card-copy{display:flex;flex-direction:column;padding:10px 17px 20px;gap:6px}.game-card strong{font-size:17px;line-height:1.4;font-weight:700}.game-tag{font-size:10px;color:#dfc8f8;line-height:1.3;font-weight:400}.game-description{font-size:12px;line-height:1.6;font-weight:400;color:#c6c1ce}.game-check{position:absolute;top:11px;inset-inline-end:11px;width:23px;height:23px;border-radius:50%;display:grid;place-items:center;border:1px solid #ffffff30;color:#dad4e3;font-size:12px;background:#15131bb3}.game-card.chosen{border-color:#ab83d4;box-shadow:0 0 0 1px #ab83d459,0 5px 0 #18181c}.chosen .game-check{background:var(--gold);border-color:var(--gold);color:#35220d}.game-words{--game-tint:#5c4530;--game-edge:#b28e53}.game-words .game-tag{color:#ffe0a2}.game-draw{--game-tint:#58364e;--game-edge:#b779a5}.game-draw .game-tag{color:#f5bfdb}.game-charades{--game-tint:#544032;--game-edge:#c89c69}.game-charades .game-tag{color:#edc78f}.game-colours{--game-tint:#254b48;--game-edge:#64c4b1}.game-colours .game-tag{color:#a1e9d4}.game-code{--game-tint:#50442d;--game-edge:#bfa15d}.game-code .game-tag{color:#f7dc9d}.game-memory{--game-tint:#37365c;--game-edge:#9290da}.game-memory .game-tag{color:#ccc9ff}
.host-controls{padding:24px}.host-controls .section-heading h2{font-size:23px}.compact-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.compact-gallery .game-card{flex-direction:row;align-items:center;border-radius:15px;min-height:90px}.compact-gallery .game-art{width:100px;height:86px;flex:none;background:radial-gradient(ellipse,var(--game-tint),transparent 85%)}.compact-gallery .game-card-copy{padding:12px 22px 12px 0;gap:4px;flex:1}.compact-gallery .game-card strong{font-size:14px}.compact-gallery .game-description{display:none}.compact-gallery .game-tag{font-size:10px}.compact-gallery .game-check{top:7px;inset-inline-end:7px;width:17px;height:17px;font-size:9px}.game-settings{border-top:1px solid #ffffff17;border-bottom:1px solid #ffffff17;padding:4px 0;margin:24px 0}.game-settings summary{font-size:14px;min-height:52px;padding:12px 0;color:white}.game-settings summary span{display:block;font-size:11px;color:#bfb7cb;padding-inline-start:18px}.game-settings .grid{margin-top:16px}.start-row{display:flex;gap:12px}.start-row .primary{flex:1;min-height:56px}.start-row .ghost{font-size:12px}.room-heading{margin:0 0 24px}.room-heading h2{font-size:25px}.layout{grid-template-columns:minmax(0,1fr) 320px}.qr-card{background:linear-gradient(150deg,#2c2337,#1a1a1a)}.qr-card h3{font-size:21px}.qr-card .qr-box{padding:10px}.qr-card svg{padding:10px;border-radius:16px}.players li{border-bottom-color:#ffffff12}.avatar{background:linear-gradient(145deg,#77658d,#3c304d);border-color:#9a86b2}.score{color:var(--gold)}.active-game{background:radial-gradient(ellipse at 5% 0,#7740bf20,transparent 55%),#1a1a1a}.active-game .question{line-height:1.5;margin-bottom:24px}.option{border-radius:16px;background:#2c2933;border-color:#65596f;min-height:86px}@media(hover:hover) and (pointer:fine){.option:hover{border-color:#b589e0}}.option:disabled{opacity:.8}.answer-letter{background:#5e398a}.timer{background:#302438;box-shadow:0 0 25px #7740bf20}.result-stage{border-color:#80629a}.cc-wrap{direction:ltr}.mem-grid{direction:ltr}.mem-cell{box-shadow:none}.mem-cell:disabled{opacity:1}.code-clues td{border-color:#51465c}
/* Account journey: the same real forms, in a welcoming game-space. */
.sheet-backdrop{background:#0b0816bf;backdrop-filter:blur(6px)}.sheet{width:min(900px,calc(100vw - 40px));max-width:none;padding:0;border-radius:28px;border:1px solid #9d7ab150;background:#202024;box-shadow:0 30px 100px #0009;max-height:calc(100dvh - 40px);overflow-y:auto}.sheet-x{width:44px;height:44px;min-height:44px;padding:0;top:10px;inset-inline-end:10px;background:#201b29a6;border:1px solid #ffffff30;box-shadow:none;font-size:18px;z-index:3}.auth-layout{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(350px,1.1fr);min-height:590px}.auth-story{position:relative;background:radial-gradient(ellipse at 90% 30%,#8e54ca60,transparent 65%),linear-gradient(145deg,#3a2550,#211a2e);padding:32px 28px;color:white;overflow:hidden}.auth-brand{font-size:11px;font-weight:700;letter-spacing:1.5px;color:#f2dba6}.auth-story .party-scene{margin:20px auto 22px;width:245px;height:250px}.auth-story h2{font-size:28px!important;line-height:1.28;margin:0 0 12px!important;letter-spacing:-.4px}.auth-story p{font-size:13px;color:#d3c5e1;margin-bottom:20px}.auth-perks{display:grid;gap:11px;border-top:1px solid #c6a5e42b;padding-top:18px;font-size:12px;color:#e8dcec}.auth-content{position:relative;min-width:0;padding:73px 34px 30px;align-self:center}.auth-language{position:absolute;top:16px;inset-inline-start:34px;min-height:44px;padding:8px 0;background:none;border:0;box-shadow:none;color:#e2c5ff;font-size:12px}.sheet h1{font-size:28px;line-height:1.3;letter-spacing:-.5px}.sheet .subtitle{font-size:14px;line-height:1.7;margin:12px 0 22px}.sheet .tabs{margin:0 0 22px}.sheet .tabs button{min-height:44px}.sheet .tabs button.active{background:#5a3d7b;box-shadow:0 2px 0 #30203f}.sheet .step-line{margin-bottom:15px}.sheet .steps span{width:22px}.sheet .steps .on{background:#b991e8}.sheet .step-label{color:#c7b8da}.sheet input,.sheet select{border-color:#77707e;border-radius:12px}.sheet .primary{font-size:16px;min-height:54px;margin-top:20px}.sheet .secondary{background:#39363f;border-color:#6f667a;box-shadow:0 3px 0 #151218}.sheet .linkish,.sheet .back{min-height:44px}.sheet .guest-note{font-size:12px;line-height:1.6;margin-bottom:0}.sheet .hint{font-size:12px}.sheet .phone-row{grid-template-columns:102px minmax(0,1fr)}.sheet .phone-row input{min-width:0}.sheet .sheet-avatar{background:linear-gradient(145deg,#a379ce,#503370);border:2px solid #caa9e9;color:#ffdf88;box-shadow:0 8px 22px #0003}.sheet .photo-note{font-size:12px}.sheet .photo-button{color:#e6d3ff;background:#352740;border-color:#9679ad}.sheet .success{font-size:13px}.sheet .guest-icon{font-size:30px;width:60px;height:60px}.sheet .error{padding:10px;border:1px solid #a85369;border-radius:10px;background:#441d2a}.sheet .ready{padding:12px 0}.sheet .small-row{flex-wrap:wrap}.sheet .demo-code{color:#d9d3e0}.sheet .otp{font-size:26px;letter-spacing:8px}
footer{font-size:12px;color:#c1b9cb}footer a{color:#ddd0ed}#status{border-radius:12px;background:#281e33;padding:10px 14px;border:1px solid #86629c;font-size:14px}
@media(min-width:1200px){.home-hero .party-scene{inset-inline-end:0;transform:scale(1.1) rotate(4deg)}.hero-copy{max-width:61%}}
@media(min-width:1600px){body:not(.in-room) main{padding-top:48px}.entry-top{grid-template-columns:1.65fr 1fr}.home-hero{min-height:410px;padding:42px}.home-hero h1{font-size:56px}.game-card .game-art{height:146px}.game-card strong{font-size:19px}.game-description{font-size:13px}}
@media(max-width:1100px){.home-hero{padding:26px}.hero-copy{max-width:65%}.home-hero>.party-scene{transform:scale(.83) rotate(4deg);transform-origin:bottom right;inset-inline-end:-40px;bottom:30px}[dir=rtl] .home-hero>.party-scene{transform-origin:bottom left}.game-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.compact-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-gallery .game-art{width:75px}.entry-form-panel{padding:22px}.entry-top{gap:18px;grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr)}}
@media(max-width:850px){main{padding:20px 20px 36px}.top{padding:14px 20px;align-items:center;gap:12px}.brand{font-size:21px}.entry-top{grid-template-columns:1fr}.home-hero{min-height:290px}.hero-copy{max-width:60%}.home-hero h1{font-size:40px}.home-hero>.party-scene{inset-inline-end:12px;bottom:24px;transform:scale(.94) rotate(4deg)}.entry-form-panel{padding:24px}.entry-form-panel form{margin:0}.layout{grid-template-columns:1fr}.layout>aside{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.layout>aside>.panel{margin:0}.grid{grid-template-columns:1fr 1fr}.panel{padding:22px}.game-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.compact-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.auth-layout{grid-template-columns:minmax(230px,.8fr) minmax(320px,1.2fr)}.auth-story{padding:28px 22px}.auth-story .party-scene{transform:scale(.85);transform-origin:center;margin-inline:-12px}.auth-content{padding-inline:26px}.auth-language{inset-inline-start:26px}}
@media(max-width:600px){main{padding:16px 16px 30px}.top{padding:12px 16px;min-height:74px;gap:10px}.brand{font-size:19px;gap:8px}.brand-emblem{width:35px;height:40px;font-size:27px;border-radius:14px 14px 10px 10px}.brand small{font-size:7px;letter-spacing:1.8px}.header-actions{margin-inline-start:auto;gap:6px}.header-actions .compact{font-size:11px;padding:7px 9px;min-height:44px}.header-actions #signin{display:none}.header-actions #account{max-width:126px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-actions #connection{font-size:11px}.home-hero{min-height:270px;padding:23px 21px;border-radius:23px;align-items:flex-start}.hero-copy{max-width:70%}.home-hero .kicker{font-size:9px;letter-spacing:.7px;margin-bottom:14px}.home-hero h1{font-size:36px;line-height:1.17;margin-bottom:12px;letter-spacing:-1px}.home-hero p:not(.kicker){font-size:13px;max-width:190px}.hero-chips{gap:5px;margin-top:16px}.hero-chips span{font-size:10px;padding:5px 7px}.home-hero>.party-scene{transform:scale(.62) rotate(4deg);inset-inline-end:-15px;bottom:25px}.entry-top{gap:16px}.entry-form-panel{padding:22px;border-radius:22px}.entry-tabs{margin-bottom:18px}.entry-tabs button{font-size:13px}.guest-reassurance{font-size:12px}.catalogue{margin-top:28px}.section-heading h2{font-size:24px}.section-eyebrow{font-size:9px;letter-spacing:1.1px}.catalogue-count{font-size:10px;padding:5px 9px}.game-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.game-card{border-radius:17px}.game-card .game-art{height:108px}.game-card-copy{padding:8px 12px 16px;gap:6px}.game-card strong{font-size:15px;line-height:1.45}.game-tag{font-size:9px}.game-description{font-size:11px}.game-check{width:20px;height:20px;top:9px;inset-inline-end:9px;font-size:10px}.compact-gallery{grid-template-columns:1fr}.compact-gallery .game-card{min-height:78px}.compact-gallery .game-art{width:94px;height:76px}.compact-gallery .game-card-copy{padding:10px 22px 10px 0}.compact-gallery .game-card strong{font-size:16px}.compact-gallery .game-tag{font-size:10px}.host-controls .section-heading h2{font-size:22px}.layout{gap:16px}.layout>aside{grid-template-columns:1fr}.room-heading{gap:12px;flex-wrap:wrap}.room-heading h2{font-size:23px}.room-heading .row{gap:7px}.room-heading .compact{font-size:11px}.grid{grid-template-columns:1fr}.question-top{gap:12px}.timer{width:66px;height:66px;font-size:25px}.question-top p{font-size:13px}.active-game .question{font-size:25px}.option{font-size:17px;min-height:70px}.panel{padding:20px;border-radius:20px}.start-row{flex-wrap:wrap}.start-row .primary{min-width:160px}.start-row .ghost{padding-inline:12px}.podium{gap:6px}.podium-card{padding-inline:5px}.podium-card .player-name{font-size:16px}.podium-card .gain{font-size:12px}.podium-card .avatar{width:45px;height:45px;font-size:24px}.podium-card .score{font-size:27px}.podium-card .position{font-size:13px}
.sheet{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:23px}.auth-layout{display:block;min-height:0}.auth-story{height:142px;padding:24px 22px}.auth-brand{font-size:9px;letter-spacing:1px}.auth-story h2{font-size:21px!important;line-height:1.2;margin:13px 0 0!important;max-width:60%}.auth-story p,.auth-perks{display:none}.auth-story .party-scene{position:absolute;inset-inline-end:0;top:-38px;margin:0;transform:scale(.56);transform-origin:right center}[dir=rtl] .auth-story .party-scene{transform-origin:left center}.auth-story .scene-pill{display:none}.auth-content{padding:54px 22px 25px}.auth-language{top:6px;inset-inline-start:22px}.sheet h1{font-size:25px}.sheet .subtitle{font-size:13px;margin:10px 0 18px}.sheet .tabs{margin-bottom:20px}.sheet .tabs button{font-size:13px}.sheet .step-label{font-size:11px}.sheet .hint{font-size:11px}.sheet .phone-row{grid-template-columns:95px minmax(0,1fr);gap:7px}.sheet .primary{margin-top:16px;min-height:52px;font-size:15px}.sheet .divider{margin:17px 0 12px}.sheet .guest-note{font-size:11px}.sheet .phone-row input{font-size:16px}.sheet-x{top:8px;inset-inline-end:8px}.sheet .photo-wrap{gap:12px}.sheet .photo-note{font-size:11px}.sheet .otp{letter-spacing:7px}.sheet .step-line{margin-bottom:14px}}
@media(max-width:380px){.top{padding-inline:12px}.brand{font-size:17px}.header-actions{gap:4px}.header-actions .compact{font-size:10px;padding-inline:7px}.brand small{font-size:6px}.brand-emblem{width:30px;height:36px}.home-hero h1{font-size:33px}.home-hero>.party-scene{inset-inline-end:-24px}.home-hero .kicker{font-size:8px}.sheet .auth-story{height:112px;padding-top:18px}.auth-story h2{font-size:19px!important;margin-top:9px!important}.auth-story .party-scene{top:-51px;transform:scale(.48)}.auth-content{padding:49px 18px 20px}.auth-language{inset-inline-start:18px}.sheet .subtitle{margin-bottom:14px}.sheet .tabs{margin-bottom:16px}}
@media(prefers-reduced-motion:no-preference){.home-hero .scene-spark{animation:twinkle 4s ease-in-out infinite alternate}@keyframes twinkle{to{opacity:.45;transform:rotate(20deg) scale(.86)}}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep the TV's tested viewport stage, generous names, and colour-board orientation. */
body.tv .top{min-height:72px}body.tv-stage .tv-screen{background:radial-gradient(ellipse at 50% -10%,#7740bf60,transparent 65%),#1a1a1a}body.tv .option:disabled{opacity:1}body.tv .brand{font-size:24px}body.tv .tv-qr svg{padding:14px}body.tv .tv-roster li{background:#292330;border-color:#76538c50}body.tv-stage .tv-card.place-1{background:linear-gradient(#71532b,#30251c)}
[hidden]{display:none!important}

/* Logical positioning must follow the document, not the LTR artwork itself. */
button,.button,input,select{font-family:inherit}
[dir=rtl] .home-hero>.party-scene{left:0;right:auto}
[dir=rtl] .auth-story .party-scene{left:0;right:auto}
.catalogue-note{font-size:12px;color:#c6bece;margin:20px 0 0;text-align:center}
.entry-form-panel h2{font-size:24px;margin:4px 0 20px;letter-spacing:-.5px}
.selected-game strong{font-size:14px}
@media(max-width:1100px){[dir=rtl] .home-hero>.party-scene{left:-40px}}
@media(max-width:850px){[dir=rtl] .home-hero>.party-scene{left:12px}}
@media(max-width:600px){[dir=rtl] .home-hero>.party-scene{left:-15px}.hero-copy{width:70%;max-width:70%}.entry-form-panel h2{font-size:23px}.sheet{bottom:12px;border-radius:23px}.guest-reassurance{margin-bottom:0}}
@media(max-width:380px){[dir=rtl] .home-hero>.party-scene{left:-24px}}

/* Compact app chrome: utility links live in the menu, not a website footer. */
.top{position:relative;min-height:66px;padding-block:10px}.brand{font-size:19px;gap:9px}.brand small{display:none}.brand-emblem{width:33px;height:38px;font-size:27px;border-radius:13px}.header-actions #signin{font-size:12px}.more-toggle{width:44px;min-height:44px;padding:0;background:transparent;border-color:transparent;box-shadow:none;letter-spacing:2px;font-size:16px}.header-actions{gap:8px}.app-menu{position:absolute;z-index:30;top:calc(100% + 8px);inset-inline-end:4vw;display:grid;min-width:205px;border:1px solid #766184;border-radius:18px;background:#242029;padding:8px;box-shadow:0 15px 40px #0007}.app-menu a,.app-menu button{min-height:48px;display:flex;align-items:center;justify-content:flex-start;padding:10px 14px;border:0;border-radius:10px;font-size:14px;text-decoration:none;background:transparent;box-shadow:none;color:#f3eafc}@media(hover:hover) and (pointer:fine){.app-menu a:hover,.app-menu button:hover{background:#4a345d}}.app-menu .language-toggle{border-bottom:1px solid #76618466;border-radius:10px 10px 0 0}footer#footnote{display:none}
@media(max-width:600px){.top{min-height:62px;padding:9px 16px;flex-wrap:nowrap}.brand{font-size:18px}.brand-emblem{width:29px;height:33px;font-size:24px;border-radius:11px}.header-actions .more-toggle{font-size:15px;padding:0}.header-actions #connection{display:none}.header-actions .account-trigger{font-size:11px;background:#30223f;border-color:#83639f;box-shadow:none;min-height:42px;padding:8px 11px;border-radius:12px}.app-menu{inset-inline-end:16px}.home-hero{min-height:250px}.home-hero h1{font-size:34px}.home-hero>.party-scene{bottom:15px}.entry-form-panel{padding:20px}.entry-form-panel h2{margin-bottom:17px}.guest-reassurance{margin-top:12px}body.tv .brand{font-size:18px}.header-actions .account-trigger{min-height:44px}}
@media(max-width:380px){.brand{font-size:17px}.home-hero h1{font-size:31px}.home-hero>.party-scene{bottom:20px}}

body.tv #account,body.tv #signin{display:none}
@media(max-width:850px){body.lobby:not(.tv) .layout>div,body.lobby:not(.tv) .layout>aside{display:contents}body.lobby:not(.tv) .room-invite{order:0;margin:0}body.lobby:not(.tv) .layout .hero{order:1;margin:0}body.lobby:not(.tv) .host-controls{order:2;margin:0}body.lobby:not(.tv) .room-profile{order:3;margin:0}.lobby .qr-card svg{max-width:195px}.lobby .hero h1{font-size:29px}.lobby .hero .players{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.lobby .hero .players .avatar{width:36px;height:36px;font-size:18px}.lobby .hero .players li{gap:7px}.lobby .hero .players .rank,.lobby .hero .players .score{display:none}.lobby .hero .players .player-name{font-size:14px}.lobby .hero .players .badge{font-size:10px}.lobby .hero .players .compact{padding:4px;min-width:44px}}
@media(max-width:600px){.compact-gallery{grid-template-columns:1fr 1fr;gap:12px}.compact-gallery .game-card{flex-direction:column;align-items:stretch}.compact-gallery .game-art{width:100%;height:84px}.compact-gallery .game-card-copy{padding:6px 10px 14px}.compact-gallery .game-card strong{font-size:13px}.compact-gallery .game-tag{font-size:9px}}
summary{min-height:44px;padding-block:9px}
.room-invite{background:linear-gradient(150deg,#2c2337,#1a1a1a)}.room-invite .qr-card{background:none}.qr-card .row{justify-content:center}
@media(max-width:850px){.layout{grid-template-columns:minmax(0,1fr)}.layout .panel{min-width:0}.lobby .hero .players{grid-template-columns:repeat(2,minmax(0,1fr))}.lobby .hero .players li{min-width:0}}
/* During a TV round, the stage is the game and live scores. Invites return in the lobby. */
body.tv:not(.tv-stage) .room-invite{display:none}
@media(min-width:900px) and (min-aspect-ratio:1/1){
 body.tv:not(.tv-stage){height:100dvh;overflow:hidden}
 body.tv:not(.tv-stage) #status{position:fixed;bottom:12px;inset-inline-start:3vw;z-index:20}
 body.tv:not(.tv-stage) main{height:calc(100dvh - 72px);padding:18px 3vw}
 body.tv:not(.tv-stage) .room-heading{display:none}
 body.tv:not(.tv-stage) .layout{height:100%;grid-template-columns:minmax(0,1fr) clamp(260px,21vw,390px);gap:24px}
 body.tv:not(.tv-stage) .layout>div,body.tv:not(.tv-stage) .layout>aside{min-height:0}
 body.tv:not(.tv-stage) .active-game{height:100%;margin:0;padding:24px 32px;overflow:auto}
 body.tv:not(.tv-stage) .layout>aside>.panel{height:100%;margin:0;padding:22px;overflow:auto}
 body.tv:not(.tv-stage) .question{font-size:clamp(28px,3.7vh,48px);line-height:1.5}
 body.tv:not(.tv-stage) .question-top{margin-bottom:20px}
 body.tv:not(.tv-stage) .question-top .kicker{font-size:clamp(18px,2.2vh,27px)}
 body.tv:not(.tv-stage) .timer{width:8vh;height:8vh;font-size:3.5vh}
 body.tv:not(.tv-stage) .board{height:calc(100dvh - 460px);min-height:240px;aspect-ratio:auto}
 body.tv:not(.tv-stage) .players li{padding:.7vh 0;font-size:clamp(16px,2vh,23px)}
 body.tv:not(.tv-stage) .players .avatar{width:4.5vh;height:4.5vh;font-size:2.5vh}
 body.tv:not(.tv-stage) .players .score{font-size:3vh}
 body.tv:not(.tv-stage) .cc-wrap{width:min(100%,48vh)}
 body.tv:not(.tv-stage) .mem-grid{width:min(100%,44vh)}
 body.tv:not(.tv-stage) .hint{font-size:clamp(14px,1.6vh,20px)}
 body.tv:not(.tv-stage) .option{font-size:clamp(20px,2.4vh,29px);min-height:9vh}
}
.home-actions{display:none}.invited-entry{max-width:480px;margin:20px auto}.invited-entry .entry-top{display:block}
@media(max-width:600px){
 .entry:not(.invited-entry){display:flex;flex-direction:column;gap:0}.entry:not(.invited-entry) .entry-top{display:contents}
 .entry:not(.invited-entry) .home-hero{order:0;min-height:320px;padding-bottom:87px}
 .entry:not(.invited-entry) .catalogue{order:1;margin-top:26px;margin-bottom:28px}
 .entry:not(.invited-entry) .entry-form-panel{order:2;scroll-margin-top:16px}
 .home-actions{position:absolute;bottom:20px;left:20px;right:20px;display:grid;grid-template-columns:1fr 1fr;gap:10px;z-index:3}
 .home-actions button{font-size:12px;min-height:48px;padding:8px}.home-actions .ghost{background:#32233f;border-color:#9d7ab1}
 .entry:not(.invited-entry) .home-hero>.party-scene{bottom:85px;transform:scale(.56) rotate(4deg)}
 .invited-entry{margin:10px 0}
}
.top{position:sticky;top:0;z-index:35}
.tv-podium.podium-count-2{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"p1 p2"}
.tv-podium.podium-count-1{grid-template-columns:minmax(0,1fr);grid-template-areas:"p1";width:min(100%,800px);align-self:center}
#entry-start,#games{scroll-margin-top:90px}
@media(max-width:600px){.entry:not(.invited-entry) .entry-form-panel{scroll-margin-top:80px}}
.brand{min-height:44px}.mod-btn{min-width:44px}.selected-game a{min-width:44px}
.terms-note{display:flex;align-items:center;justify-content:center;gap:4px;margin-top:4px}.terms-note a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
@media(hover:hover) and (pointer:fine){.primary:hover{filter:none;border-color:#81dfa3}}@media(hover:hover) and (pointer:fine){.account-trigger:hover{filter:none;border-color:#b38ad2}}
/* Container padding/gaps must not use the outer viewport's cqh: tall portrait
   displays otherwise shrink player-name flex items to zero height. */
.tv-card{padding:clamp(8px,1.4vh,18px) 12px;gap:clamp(6px,1.2vh,14px)}
.tv-card>.player-name,.tv-card>.position,.tv-card>.gain,.tv-card>.score{flex-shrink:0}
/* App navigation: player identity, a scalable library, and persistent destinations. */
body:not(.tv){padding-bottom:calc(94px + env(safe-area-inset-bottom))}
body:not(.tv) .top{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;min-height:86px;padding:12px max(20px,calc((100vw - 1040px)/2));padding-top:calc(12px + env(safe-area-inset-top));background:#1a1a1af5;border-bottom:1px solid #444249;backdrop-filter:blur(14px)}
body:not(.tv) main{max-width:1080px;padding-top:24px}
.player-chip{display:flex;justify-content:flex-start;gap:10px;min-width:0;max-width:240px;min-height:52px;padding:0;border:0;background:none;box-shadow:none;text-align:start}
.identity-avatar{display:grid;place-items:center;flex:none;width:52px;height:52px;overflow:hidden;border-radius:50%;border:2px solid #ffcf37;background:linear-gradient(150deg,#7a6b89,#302735);color:#fff;box-shadow:0 3px 0 #0006}
.identity-avatar img{width:100%;height:100%;object-fit:cover}.identity-avatar svg{width:28px;height:28px}
.player-chip-copy{display:grid;min-width:0;gap:3px}.player-chip-copy strong{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-chip-copy small{font-size:12px;color:#d0c8d7;font-weight:400}.player-chip-copy small span{color:var(--gold);margin-inline-start:5px}
body:not(.tv) .brand{font-size:15px;gap:7px;justify-self:center}body:not(.tv) .brand-emblem{width:28px;height:32px;font-size:23px}
body:not(.tv) .header-actions{justify-self:end;margin:0;flex-wrap:nowrap}.header-actions .more-toggle{font-size:25px;width:46px;height:46px;letter-spacing:0;border:1px solid #49474e;border-radius:14px;background:#28272c}
.bottom-nav{position:fixed;z-index:40;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,740px);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:8px 14px calc(8px + env(safe-area-inset-bottom));border:1px solid #4c4755;border-bottom:0;border-radius:24px 24px 0 0;background:#19191aee;backdrop-filter:blur(18px);box-shadow:0 -8px 30px #0004}
.nav-item{display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:64px;padding:3px 4px;border:0;background:none;box-shadow:none;border-radius:14px;color:#bdbdc3;font-size:12px}.nav-item>span{color:inherit}.nav-symbol{display:grid;position:relative;place-items:center;width:48px;height:34px;border-radius:12px}.nav-symbol svg{width:26px;height:26px}.nav-item.is-active{color:#fff}.nav-item.is-active .nav-symbol{background:#513077;color:#ffcf37;box-shadow:inset 0 1px 0 #ab88c65c}.room-dot{position:absolute;top:1px;inset-inline-end:6px;width:8px;height:8px;background:#59e881;border-radius:50%;border:2px solid #19191a}
.app-page{max-width:920px;margin:0 auto}.page-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.page-title h1{font-size:30px;line-height:1.3;margin:0}.page-title .section-eyebrow{margin-bottom:8px;font-size:11px}.home-greeting{margin-bottom:22px}.home-greeting p{color:#c2bacb;font-size:13px;margin-bottom:5px}.home-greeting h1{font-size:25px;line-height:1.45;margin:0}
.majles-banner{position:relative;isolation:isolate;overflow:hidden;min-height:248px;border:1px solid #8b56bf;border-radius:25px;background:radial-gradient(ellipse at 85% 0%,#9760d899,transparent 65%),linear-gradient(130deg,#24162f,#412353);padding:26px 28px 86px;box-shadow:0 9px 26px #0003}.majles-banner>div:first-child{position:relative;z-index:2;max-width:65%}.banner-label{color:#ffe4a0;font-size:11px;letter-spacing:.5px}.majles-banner h2{font-size:30px;line-height:1.25;margin:12px 0 10px}.majles-banner p{font-size:14px;color:#e0d5ee;margin:0}.majles-banner .party-scene{position:absolute;inset-inline-end:5%;top:8px;transform:scale(.85);transform-origin:center;z-index:1}.majles-banner .scene-pill{display:none}.banner-actions{position:absolute;left:26px;right:26px;bottom:22px;display:grid;grid-template-columns:1fr 1fr;gap:12px;z-index:2}.banner-actions button{min-height:49px;font-size:15px;padding-inline:8px}.banner-actions .ghost{background:#2b2036;border-color:#ad88ca}
.home-search,.game-search{display:flex;align-items:center;gap:13px;background:#141416;border:1px solid #505058;border-radius:17px;color:#cac6d0}.home-search{width:100%;min-height:54px;padding:12px 17px;box-shadow:none;justify-content:flex-start;margin:20px 0 28px;font-size:15px;font-weight:400}.home-search>span:last-child{margin-inline-start:auto;font-size:24px}.home-search svg,.game-search svg{width:23px;height:23px;flex:none}.home-games{margin-top:26px}.home-games .section-heading{margin-bottom:15px}.home-games h2{font-size:23px;margin:0}.home-games .text-action{color:var(--gold);font-size:13px;min-height:44px}.home-games .game-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.game-search{padding:0 17px;margin-bottom:18px}.game-search input{background:none;border:0;box-shadow:none;min-height:56px;padding:12px 0;margin:0;font-size:17px}.game-search:focus-within{outline:2px solid var(--gold);outline-offset:3px}.game-search input:focus{outline:0}.game-search input::placeholder{color:#aaa5b0}
.category-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.category-tabs button{min-height:44px;border-radius:24px;border:1px solid #524e5a;background:#27262c;box-shadow:none;padding:9px 16px;font-size:13px;white-space:nowrap}.category-tabs button.selected{color:#fff;background:#583780;border-color:#b08dd4}.library-count{font-size:13px;color:#c4bdcb;margin:0 0 12px}.game-list{display:grid;gap:12px}.library-game{display:flex;min-width:0;align-items:stretch;border:1px solid #49464f;background:linear-gradient(120deg,#303034,#272629);border-radius:17px;box-shadow:0 3px 0 #16141866;overflow:hidden}.game-open{display:flex;flex:1;min-width:0;gap:15px;justify-content:flex-start;border:0;background:none;box-shadow:none;text-align:start;padding:9px 15px 9px 9px;border-radius:0}.game-open .game-art{width:85px;height:80px;flex:none;border-radius:12px;background:radial-gradient(ellipse at top,#7740bf66,#211b28)}.game-words .game-open .game-art,.game-code .game-open .game-art{background:radial-gradient(ellipse at top,#8b612955,#282119)}.game-colours .game-open .game-art{background:radial-gradient(ellipse at top,#2b9a6755,#1b2421)}.game-open>span:not(.game-arrow){display:grid;gap:5px;min-width:0}.game-open strong{font-size:19px;line-height:1.4;overflow-wrap:anywhere}.game-open small{font-size:12px;color:#c1bbc9;line-height:1.6;font-weight:400}.game-arrow{font-size:24px;color:#a998b6;margin-inline-start:auto}[dir=ltr] .game-arrow{transform:rotate(180deg)}.favourite-toggle{align-self:center;flex:none;min-width:50px;width:50px;height:56px;padding:12px;border:0;border-inline-start:1px solid #4a454f;border-radius:0;box-shadow:none;background:none;color:#c6bdcf}.favourite-toggle svg{width:22px;height:22px}.favourite-toggle.saved{color:#ffcf37}.favourite-toggle.saved svg{fill:#ffcf37;stroke:#ffcf37}.library-game:focus-within{overflow:visible;outline:2px solid #9d79b9;outline-offset:2px}.library-empty{text-align:center;padding:44px 20px;background:#222126;border:1px solid #47424e;border-radius:20px}.library-empty>svg{width:42px;height:42px;color:#bc94df;margin-bottom:18px}.library-empty h2{font-size:23px}.library-empty p{color:#c8c1cf;font-size:15px}
.profile-page{max-width:580px}.profile-card{background:#1c1b1f;border:1px solid #51465e;border-radius:24px;padding:26px}.profile-hero{text-align:center;padding:10px 0 26px}.profile-hero .identity-avatar{width:94px;height:94px;margin:0 auto 18px;border-width:3px}.profile-hero .identity-avatar svg{width:45px;height:45px}.profile-hero h2{font-size:27px;margin-bottom:10px;overflow-wrap:anywhere}.profile-photo-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:22px}.profile-photo-actions .button{font-size:14px}#photo-selected{font-size:12px;color:#d5c7e2}.profile-card .hint{font-size:13px}.profile-signup{border-top:1px solid #4b4255;margin-top:24px;padding-top:24px}.profile-signup h3{font-size:21px}.profile-signup p{font-size:14px;color:#c8bfd1}.profile-signup .text-action{font-size:14px;margin-top:10px;color:#e9d4ff}.profile-favourites{display:flex;width:100%;text-align:start;margin-top:18px;gap:15px;padding:18px;background:#2b2730;border-color:#4e445b;box-shadow:none}.profile-favourites svg{width:27px;height:27px;color:var(--gold);flex:none}.profile-favourites>span:not(:last-child){flex:1}.profile-favourites small{display:block;font-size:12px;color:#cbc2d3;font-weight:400;margin-top:5px}.profile-note{font-size:13px;color:#c3b9ce;text-align:center;margin-top:22px}
body:not(.tv) .entry{max-width:560px;margin:10px auto;display:block}body:not(.tv) .entry-top{display:block}.selected-game .text-action{margin-inline-start:auto;color:var(--gold);font-size:13px;min-height:44px}.app-browsing .room-invite{order:initial}.sheet-open .bottom-nav{visibility:hidden}
@media(max-width:600px){
 body:not(.tv) .top{padding:10px 16px;padding-top:calc(10px + env(safe-area-inset-top));min-height:80px;grid-template-columns:minmax(0,1fr) auto 44px;gap:12px}body:not(.tv) main{padding:20px 16px 30px}
 .player-chip{gap:9px}.identity-avatar{width:46px;height:46px}.player-chip-copy strong{font-size:14px}.player-chip-copy small{font-size:11px}body:not(.tv) .brand{font-size:13px;gap:5px}body:not(.tv) .brand-emblem{width:24px;height:28px;font-size:21px}.header-actions .more-toggle{font-size:23px;width:44px;height:44px}
 .bottom-nav{border-radius:0;border-inline:0;padding-inline:8px}.nav-item{font-size:11px}.home-greeting{margin-bottom:18px}.home-greeting h1{font-size:23px}.home-greeting p{font-size:12px}.majles-banner{min-height:258px;padding:22px 20px 86px}.majles-banner h2{font-size:26px}.majles-banner p{font-size:12px}.banner-label{font-size:9px}.majles-banner .party-scene{transform:scale(.56);inset-inline-end:-45px;top:-5px}.banner-actions{left:18px;right:18px;bottom:18px;gap:9px}.banner-actions button{font-size:12px}.home-games .game-list{grid-template-columns:1fr}.home-games h2{font-size:21px}.home-search{margin:18px 0 24px}.page-title h1{font-size:28px}.page-title{margin-bottom:20px}.category-tabs{gap:7px}.category-tabs button{font-size:12px;padding:8px 12px}.game-open{gap:10px;padding:8px}.game-open .game-art{width:72px;height:70px}.game-open strong{font-size:17px}.game-open small{font-size:11px}.game-arrow{display:none}.favourite-toggle{width:45px;min-width:45px;height:50px;padding:11px}.profile-card{padding:22px}.game-list{gap:11px}
}
[dir=rtl] .majles-banner .party-scene{left:5%;right:auto}
@media(max-width:600px){[dir=rtl] .majles-banner .party-scene{left:-65px;right:auto}.majles-banner>div:first-child{max-width:72%}.majles-banner .party-scene{top:-10px;transform:scale(.48);inset-inline-end:-65px}}
@media(max-width:380px){body:not(.tv) .top{padding-inline:12px;gap:8px}.player-chip-copy strong{font-size:13px}body:not(.tv) .brand{font-size:12px}.identity-avatar{width:43px;height:43px}.majles-banner h2{font-size:24px}.category-tabs button{padding-inline:10px}.game-open strong{font-size:16px}.game-open small{font-size:10px}}
@media(min-width:900px) and (max-aspect-ratio:4/5){
 body.tv-stage{height:100dvh;overflow:hidden;display:flex;flex-direction:column}
 body.tv-stage main{display:flex;flex:1;min-height:0;padding:18px 24px}
 body.tv-stage .tv-screen{flex:1;min-height:0}
 body.tv-stage .tv-podium{flex:1;height:auto;min-height:0}
 body.tv-stage .tv-lobby{justify-content:center;gap:36px}
 body.tv-stage .tv-qr{width:min(46vw,520px)}
 body.tv-stage .tv-lobby-main{flex:0;text-align:center;align-items:center}
 body.tv-stage .tv-roster{justify-content:center}
}

/* Play your way: red challenge cards, three modes and a visible token wallet. */
body:not(.tv) .top{grid-template-columns:minmax(0,1fr) auto auto;gap:13px}body:not(.tv) .top>.brand{display:none}
.wallet-trigger{display:flex;align-items:center;gap:8px;min-height:48px;padding:5px 8px 5px 5px;border:1px solid #59504a;border-radius:28px;background:linear-gradient(#29272a,#171719);box-shadow:inset 0 1px 0 #ffffff12,0 3px 0 #0004;min-width:119px}
.token-coin{display:grid;place-items:center;flex:none;width:35px;height:35px;border-radius:50%;border:2px solid #ffe59d;color:#7a4308;background:radial-gradient(circle at 30% 20%,#fff2b8,#ffcf37 45%,#bc7918);font-size:25px;font-weight:900;box-shadow:inset 0 0 0 2px #d89622,0 2px 0 #83520c;text-shadow:0 1px 0 #fff1b1}.wallet-amount{display:grid;gap:1px;min-width:28px;max-width:95px}.wallet-amount b{font-size:17px;color:#fff;line-height:1.1;overflow:hidden;text-overflow:ellipsis}.wallet-amount small{color:#c9c2be;font-size:9px;line-height:1.2}.wallet-plus{width:22px;height:25px;display:grid;place-items:center;color:#65e77e;font-size:26px;line-height:1;font-weight:800}
.identity-avatar{border-color:#d23b4f}.nav-item.is-active .nav-symbol{background:linear-gradient(#a71934,#681525);color:#ffdc64;box-shadow:inset 0 1px 0 #f56e7f88}.bottom-nav{border-top-color:#63303d}.category-tabs button.selected{background:#791d35;border-color:#d9647b}
.home-greeting p{color:#ffb5bf;letter-spacing:.6px;font-weight:700;font-size:11px}.home-greeting h1{font-size:25px}.challenge-banner{position:relative;isolation:isolate;overflow:hidden;border-radius:26px;border:1px solid #9e344a;min-height:300px;background:radial-gradient(ellipse at 80% -30%,#c72646,transparent 75%),linear-gradient(135deg,#351821,#171719 80%);padding:28px;box-shadow:0 9px 20px #0004}.challenge-banner:before{content:'';position:absolute;inset:54% -10% auto;transform:rotate(-9deg);height:90px;background:linear-gradient(90deg,#8f172a00,#ba2038,#8b1629);z-index:-1;opacity:.62}.challenge-copy{position:relative;z-index:2;width:48%}.challenge-label{font-size:10px;color:#ffd29c;letter-spacing:.7px;font-weight:700}.challenge-copy h2{font-size:45px;line-height:1.05;margin:15px 0 13px;text-shadow:0 3px 0 #4c1223}.challenge-copy p{font-size:14px;color:#f3d5dc;margin:0 0 20px}.challenge-copy button{min-width:166px;min-height:50px;font-size:16px}.challenge-art{position:absolute;inset-inline-end:-1%;top:20px;width:54%;height:265px;object-fit:contain;filter:drop-shadow(0 12px 14px #0007)}
.mode-section{margin-top:25px}.mode-section h2{font-size:21px;margin-bottom:15px}.play-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.mode-card{display:flex;flex-direction:column;gap:7px;min-width:0;min-height:120px;padding:15px 7px;border-radius:19px;border:1px solid #55505b;background:linear-gradient(#353139,#232127);box-shadow:0 4px 0 #131214;white-space:normal}.mode-card svg{width:29px;height:29px;color:#e4d2f8}.mode-card strong{font-size:16px;line-height:1.3}.mode-card small{font-size:11px;line-height:1.3;color:#c8bfce;font-weight:400}.mode-solo svg{color:#ffcd67}.mode-online svg{color:#d4a5ff}.mode-majles svg{color:#ff96a4}.mode-card.selected{background:linear-gradient(#852038,#461a2a);border-color:#ee8097;box-shadow:0 3px 0 #420e20,inset 0 0 0 1px #b8435c}.mode-card:disabled{opacity:.4}.quick-section{margin-top:27px}.quick-section h2{font-size:21px}.quick-section .text-action{color:var(--gold);font-size:13px}.quick-games{display:grid;grid-template-columns:1fr 1fr;gap:14px}.quick-game{display:flex;flex-direction:column;gap:6px;padding:12px 12px 19px;border:1px solid #53474f;border-radius:20px;background:radial-gradient(ellipse at top,#503139,#222126);box-shadow:0 4px 0 #141214}.quick-game .game-art{width:145px;max-width:100%;height:95px}.quick-game strong{font-size:18px}.quick-game small{font-size:11px;color:#cbbfc9;font-weight:400}
.game-detail{max-width:600px;text-align:center}.back-games{display:flex;font-size:14px;color:#dfc9e5;min-height:44px;margin-bottom:6px}.game-detail-art{height:190px;display:grid;place-items:center;background:radial-gradient(ellipse at center,#8d173755,transparent 68%);margin-bottom:12px}.game-detail-art>.game-art{width:280px;height:190px}.game-detail-art>img{width:290px;height:190px;object-fit:contain}.game-detail h1{font-size:31px;margin-bottom:10px}.detail-description{font-size:15px;color:#cbbfce}.game-detail h2{font-size:19px;margin:25px 0 15px}.game-detail .play-modes{margin-bottom:24px}.detail-note{font-size:13px;color:#cdbfcb;margin:18px auto;max-width:420px}.play-selected{min-height:55px}.game-detail .hint{font-size:13px}
.wallet-page{max-width:600px}.wallet-card{position:relative;overflow:hidden;text-align:center;border:1px solid #ac5464;border-radius:26px;padding:28px;background:radial-gradient(ellipse at 80% -20%,#b52d4d,transparent 80%),linear-gradient(130deg,#421a2a,#201c24);box-shadow:0 8px 24px #0003}.wallet-card .token-coin.large{width:68px;height:68px;font-size:44px;border-width:3px;margin:0 auto 20px}.wallet-card>p:first-of-type{font-size:15px;color:#f0d5df;margin-bottom:12px}.wallet-total{display:block;font-size:52px;line-height:1.2;color:#ffe095;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.wallet-currency{display:block;font-size:11px;color:#ead3bc;letter-spacing:1px;margin:5px 0 23px}.wallet-note{font-size:14px;color:#e4d3dc}.wallet-card .hint{font-size:13px;line-height:1.8}.wallet-card .text-action{color:#ffe1b1;min-height:44px;font-size:14px;margin-top:8px}.wallet-explainer{font-size:13px;line-height:1.8;color:#cbc1d0;padding:18px 6px}.wallet-history{margin-bottom:24px}.wallet-history h2{font-size:21px}.wallet-history ul{list-style:none;margin:0;padding:0}.wallet-history li{display:flex;gap:12px;align-items:center;padding:18px 0;border-bottom:1px solid #49434f}.wallet-history li>span:nth-child(2){flex:1;min-width:0}.wallet-history li strong{font-size:15px}.wallet-history li small{display:block;font-size:12px;color:#c4baca;margin-top:5px}.wallet-history li>b{color:#ffe095;font-size:20px}.activity-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#46313d;color:#ffba91;font-size:26px}
.solo-screen{max-width:800px;margin:auto}.solo-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.solo-heading h1{font-size:26px;margin:0}.solo-heading .kicker{font-size:12px;margin-bottom:6px}.solo-result{max-width:560px;margin:auto;text-align:center}.solo-star{display:block;color:#ffcf37;font-size:60px;line-height:1.2;margin:10px}.solo-result h2{font-size:27px}.solo-points{display:block;color:#ffe095;font-size:65px;line-height:1.2;margin:15px 0}.solo-result>p{font-size:16px;color:#dbcfdf}.solo-result label{text-align:start;margin:25px 0 18px}.solo-explanation{background:#312535;border:1px solid #68435b;padding:16px;border-radius:16px;line-height:1.7}.solo-result .text-action{min-height:46px;font-size:14px;color:#f4c7d3}.solo-result .cc-wrap{max-width:400px;margin:auto}
@media(max-width:600px){body:not(.tv) .top{gap:9px;grid-template-columns:minmax(0,1fr) auto 44px}.wallet-trigger{min-width:108px;gap:6px;padding:5px 7px 5px 4px}.token-coin{width:31px;height:31px;font-size:22px}.wallet-amount b{font-size:16px}.wallet-plus{width:18px;font-size:25px}.identity-avatar{width:42px;height:42px}.player-chip{gap:8px}.player-chip-copy strong{font-size:13px}.home-greeting h1{font-size:24px}.challenge-banner{min-height:270px;padding:23px 20px}.challenge-copy{width:54%}.challenge-copy h2{font-size:36px;margin-top:14px}.challenge-copy p{font-size:12px;margin-bottom:22px}.challenge-copy button{min-width:137px;font-size:14px;min-height:48px}.challenge-label{font-size:8px}.challenge-art{width:54%;height:190px;top:24px;inset-inline-end:-6px}.mode-section h2,.quick-section h2{font-size:19px}.play-modes{gap:9px}.mode-card{min-height:111px;border-radius:16px;gap:6px;padding:13px 4px}.mode-card strong{font-size:13px}.mode-card small{font-size:9px}.mode-card svg{width:27px;height:27px}.quick-game{padding:6px 8px 15px}.quick-game strong{font-size:16px}.quick-game .game-art{height:85px}.game-detail h1{font-size:28px}.game-detail-art{height:166px}.game-detail-art>.game-art,.game-detail-art>img{height:166px;max-width:260px}.wallet-card{padding:24px}.wallet-total{font-size:48px}.solo-heading h1{font-size:23px}}
body.tv .wallet-trigger{display:none}
/* All play choices and a permanent route to standings. */
.home-play-modes{grid-template-columns:repeat(4,minmax(0,1fr))}.mode-random svg{color:#a8c8fb}.mode-random small{color:#ffdb8c}.home-ranks{display:flex;align-items:center;gap:14px;width:100%;margin-top:20px;padding:16px 18px;text-align:start;background:linear-gradient(110deg,#4b3430,#29242a);border-color:#826340;border-radius:18px;box-shadow:0 4px 0 #171416}.home-ranks>svg{width:35px;height:35px;color:#ffcf37;flex:none}.home-ranks>span:nth-child(2){flex:1}.home-ranks strong{font-size:17px}.home-ranks small{display:block;color:#e2d2c1;font-weight:400;font-size:12px;margin-top:4px}.home-ranks>span:last-child{color:#ffda76;font-size:25px}.resume-game{margin-top:18px}.bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))}.leaderboard-page{max-width:700px}.rank-trophy svg{width:45px;height:45px;color:#ffcf37}.rank-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.rank-tabs button{font-size:15px;min-height:48px}.rank-tabs button.selected{background:#7c2339;border-color:#ef9bad}.rank-tabs small{font-size:11px;color:#ffdf9c}.rank-context{color:#e3ced9;font-size:14px}.rank-live{margin-bottom:20px}.ranks-empty{text-align:center;padding:30px 24px}.ranks-empty h2{font-size:23px}.ranks-empty p{font-size:15px;color:#d9cdd8;line-height:1.8}.ranks-empty .ghost{margin-top:12px}.upcoming-page{max-width:520px;text-align:center;padding-top:30px}.upcoming-art{display:block;margin:5px auto 28px;width:120px;height:120px;padding:24px;border-radius:32px;background:linear-gradient(#434174,#242239);color:#dbd5ff;box-shadow:0 6px 0 #16131f}.upcoming-art svg{width:100%;height:100%}.upcoming-page h1{font-size:28px;margin-top:18px}.upcoming-page p{color:#d6c9da;font-size:16px;line-height:1.8;margin:22px 0 30px}.upcoming-page .ghost{margin-top:12px}
@media(max-width:600px){.home-play-modes{grid-template-columns:1fr 1fr}.home-play-modes .mode-card{min-height:100px}.home-play-modes .mode-card strong{font-size:14px}.home-play-modes .mode-card small{font-size:11px}.bottom-nav .nav-item{font-size:10px}.home-ranks{margin-top:18px}.home-ranks strong{font-size:16px}}
/* ---------- Today's challenge, Number Rush, one shared phone (in the app's own style) ---------- */
.home-daily{margin-top:18px;background:linear-gradient(110deg,#3d2758,#231d33);border-color:#8b63c7}
.home-daily .daily-icon{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:13px;background:linear-gradient(#ffdf73,#e3a51d);color:#4a2c00;font-size:22px;box-shadow:0 3px 0 #6b4a0e}
.home-daily small{color:#d9ccef}.home-daily .daily-go{padding:7px 14px;border-radius:999px;background:linear-gradient(#16b43b,#087326);color:#fff;font-size:14px;font-weight:800}
.home-daily.played .daily-icon{background:linear-gradient(#4fdbac,#1b8f6b);color:#06301f}
.daily-board .players .you{background:#ffcf3714;border-radius:12px}
.stage-dots{display:flex;justify-content:center;gap:8px;list-style:none;padding:0;margin:0 0 16px}
.stage-dots li{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#2a2a30;border:2px solid #4d4d54;font-size:18px;opacity:.55}
.stage-dots li.now{border-color:var(--gold);opacity:1}.stage-dots li.done{border-color:#16b43b;background:#16b43b33;opacity:1}
.daily-list{list-style:none;padding:0;margin:14px auto;max-width:320px;text-align:start}.daily-list li{display:flex;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}.daily-list li span{font-size:24px;width:32px;text-align:center}
.daily-final{margin:16px 0;padding:18px;border:2px solid var(--gold);border-radius:18px;background:linear-gradient(#5e472b,#28201d)}.daily-final strong{font-size:54px;color:var(--gold)}.daily-final>span{color:var(--muted);font-size:20px;margin-inline-start:6px}.daily-final p{margin:4px 0}
.order-grid{display:grid;gap:10px;max-width:400px;margin:12px auto}.order-grid.size-3{grid-template-columns:repeat(3,1fr)}.order-grid.size-4{grid-template-columns:repeat(4,1fr)}
.order-cell{aspect-ratio:1;font-size:clamp(28px,8vw,44px);font-weight:900;border-radius:18px;background:linear-gradient(#3a3a46,#24242c);transition:transform .12s,background .2s}
.order-cell.hit{background:linear-gradient(#16b43b,#087326)}.order-cell:disabled{opacity:.9}
.order-cell.miss{background:linear-gradient(#e03143,#8e1b28);animation:order-shake .3s}
@keyframes order-shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.phone-mode{margin:4px 0 18px}.phone-mode .rank-tabs{margin:10px 0 8px}
.phone-players{border:1px solid var(--line);border-radius:16px;padding:14px;margin-top:12px;background:#ffffff08}.phone-players h3{margin:0 0 10px;font-size:17px}
.chip-list{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}
.phone-chip{display:flex;align-items:center;gap:8px;background:#2a2a30;border:1px solid #4d4d54;border-radius:999px;padding:4px 6px 4px 12px;color:#fff;font-weight:700}.phone-chip .avatar{width:32px;height:32px;font-size:15px}.phone-chip button{min-height:32px;padding:2px 10px}
.add-local{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:12px}.add-local input{margin:0}.add-local button{min-height:50px}
.game-card.unavailable{opacity:.4;cursor:not-allowed}
.start-wait{margin-top:12px;padding:12px 14px;border:1px solid #b19448;background:#ffcf3712;border-radius:12px;color:#fff;font-size:15px}
.pass-cover{text-align:center}.pass-avatar .avatar{width:96px;height:96px;font-size:42px;margin:6px auto 12px}.pass-cover h1{margin-bottom:8px}
.turn-list{list-style:none;padding:0;margin:18px auto;max-width:360px;text-align:start}.turn-list li{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}.turn-list li span{flex:1;color:#fff;font-weight:700}.turn-list li.done b{color:#7fed9b}.turn-list .avatar{width:36px;height:36px;font-size:16px}
.turn-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 14px;margin-bottom:12px;border:1px solid #c68cf5;border-radius:14px;background:#29173c;color:#fff}
.home-ranks.home-daily>.daily-go{font-size:14px;color:#fff;flex:none}
.turn-list .avatar,.phone-chip .avatar{flex:0 0 auto;max-width:36px;max-height:36px;aspect-ratio:1;padding:0}
.turn-list li>span{flex:1}
/* Games are touch surfaces: no double-tap zoom, no pinch zoom inside the app. */
html,body{touch-action:manipulation}
.cc-wrap,.order-grid,.board{touch-action:none}
.cc-cell.cc-gap{background:#ffcf3733;box-shadow:inset 0 0 0 3px #ffcf37;animation:cc-gap 1.2s ease-in-out infinite}
@keyframes cc-gap{50%{background:#ffcf3766}}
@media(prefers-reduced-motion:reduce){.cc-cell.cc-gap{animation:none}}
/* ---------- Playing: the whole round fits on one phone screen (no scrolling mid-game) ---------- */
body.playing .bottom-nav{display:none}
body.playing main{padding-bottom:12px}
@media(max-width:850px){
  body.playing .top{padding-block:8px}
  body.playing .room-heading{display:none}
  body.playing #status:empty{display:none}
  body.playing main{padding-top:8px}
  body.playing .solo-heading{margin:0 0 6px}body.playing .solo-heading h1{font-size:22px;margin:0}body.playing .solo-heading .kicker{margin:0}
  body.playing .stage-dots{margin-bottom:8px}body.playing .stage-dots li{width:32px;height:32px;font-size:15px}
  body.playing .active-game{padding:12px 14px;margin-bottom:12px}
  body.playing .question-top{margin-bottom:8px;gap:10px}body.playing .question-top .muted{display:none}body.playing .question-top .kicker{margin:0}
  body.playing .timer{width:54px;height:54px;font-size:21px}
  body.playing .cc-rules{font-size:15px;line-height:1.5;margin:0 0 6px}
  /* Boards size to the height that is left, never pushing their buttons off screen. */
  body.playing .cc-wrap{width:min(100%,calc(100dvh - 380px));margin:4px auto 8px}
  body.playing .order-grid{max-width:min(400px,calc(100dvh - 340px));margin:6px auto}
  body.playing .order-cell{font-size:clamp(24px,7vw,40px)}
  body.playing .question{font-size:clamp(19px,5.2vw,26px);line-height:1.5;margin-bottom:10px}
  body.playing .option{min-height:56px;font-size:17px;padding:8px 12px}
  body.playing .active-game .grid{gap:8px}
  body.playing .active-game .hint{margin-top:6px;font-size:14px}
  body.playing .board{max-height:calc(100dvh - 400px);width:auto;max-width:100%;margin:0 auto}
  body.playing .cc-legend{margin:4px 0}
  body.playing #end-round{margin-top:6px}
}
@media(max-width:850px){
  body.playing .cc-wrap{width:min(100%,calc(100dvh - 330px))}
  body.playing .active-words h2{font-size:20px;margin:0 0 4px;display:flex;align-items:center;gap:10px}
  body.playing .active-words .big-letter{font-size:44px}
  body.playing #words-form .grid{grid-template-columns:1fr 1fr;gap:6px 10px}
  body.playing #words-form label{font-size:14px}
  body.playing #words-form input{padding:9px 10px;margin:3px 0 0;min-height:44px;font-size:17px}
  body.playing #words-form button{margin-top:10px;min-height:48px}
  body.playing .active-words>.hint:last-child{display:none}
}
/* Short phones (iPhone SE/mini): mid-round the profile/wallet bar steps aside too. */
@media(max-width:850px) and (max-height:760px){
  body.playing .top{display:none}
  body.playing .solo-heading h1{font-size:19px}
  body.playing .question{font-size:clamp(17px,4.8vw,22px)}
  body.playing .option{min-height:46px;font-size:16px}
  body.playing .cc-wrap{width:min(100%,calc(100dvh - 300px))}
  body.playing .active-game .hint{font-size:13px;margin-top:4px}
}
/* ---------- Full-page game: header and tab bar step aside, a ✕ closes the game ---------- */
body.game-open .top,body.game-open .bottom-nav{display:none}
body.game-open main{padding-top:calc(10px + env(safe-area-inset-top,0px));padding-bottom:16px}
body.game-open .room-heading{display:none}
.close-game{flex:none;width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;font-size:20px;line-height:1;background:#2a2a30;border:1px solid #55555c;box-shadow:none;color:#fff}
@media(hover:hover) and (pointer:fine){.close-game:hover{background:#3a3a42}}
.game-bar{display:flex;align-items:center;gap:12px;margin:0 0 10px}.game-bar strong{flex:1;font-size:19px;color:#fff;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-bar .room-code{font-size:16px;letter-spacing:2px}
body.game-open .solo-heading{margin-bottom:10px}
html,body{overscroll-behavior:none;-webkit-text-size-adjust:100%}
body.game-open main,body.game-open #app{width:100%;align-self:stretch;flex:1 0 auto}
body.game-open .solo-screen{width:100%;max-width:720px;margin-inline:auto}
/* ---------- End of round: banner, everyone's score, winners, play again ---------- */
.game-over{max-width:620px;margin:0 auto}
.go-banner{position:relative;text-align:center;margin:6px 0 -14px;z-index:1}
.go-banner h1{display:inline-block;margin:0;padding:14px 26px;font-size:clamp(26px,7vw,36px);border-radius:18px;background:linear-gradient(#3b3b44,#24242b);border:1px solid #5d5d66;box-shadow:0 6px 0 #121214,0 10px 24px #0007;color:#ffe095;text-shadow:0 2px 0 #6b4a0e}
.go-ribbon{display:block;width:max-content;max-width:90%;margin:-6px auto 0;padding:5px 18px;border-radius:0 0 14px 14px;background:linear-gradient(#ffe7a0,#e7b94a);color:#4a3205;font-weight:800;font-size:14px}
.go-card{background:linear-gradient(#34343c,#25252b);border:1px solid #4d4d55;border-radius:22px;padding:30px 16px 16px;box-shadow:0 8px 24px #0006}
.go-title{text-align:center;color:var(--muted);font-weight:700;margin:4px 0 10px}
.go-players{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px;border-radius:16px;background:#1d1d22;border:1px solid #3d3d45}
.go-player{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0}
.go-player .avatar{width:56px;height:56px;font-size:24px}
.go-name{max-width:100%;padding:2px 10px;border:1px solid #6a6a72;border-radius:999px;color:#fff;font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.go-score{min-width:64px;text-align:center;padding:4px 10px;border-radius:10px;background:#111114;color:#fff;font-size:22px;font-variant-numeric:tabular-nums}
.go-player.you .go-score{outline:2px solid var(--gold)}
.go-player .gain{font-size:12px}
.go-winners{position:relative;margin:22px 0 4px;padding:26px 12px 14px;border:3px solid #e7b94a;border-radius:18px;background:#26221c;box-shadow:inset 0 0 0 2px #6b4a0e}
.go-label{position:absolute;top:-16px;left:50%;transform:translateX(-50%);padding:3px 22px;border-radius:12px;background:linear-gradient(#4a4a52,#2e2e35);border:1px solid #6a6a72;color:#fff;font-weight:800;white-space:nowrap}
.go-winner-list{display:flex;justify-content:center;gap:18px;flex-wrap:wrap}
.go-winner{display:flex;flex-direction:column;align-items:center;gap:6px}.go-winner .avatar{width:64px;height:64px;font-size:28px}
.go-winner strong{padding:3px 14px;border-radius:10px;background:#111114;color:#4fdb7a;font-size:24px}
.go-actions{display:flex;gap:10px;margin-top:16px}
.go-again{flex:1;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:56px;font-size:19px}
.go-again.is-ready{background:linear-gradient(#2c6b3d,#1d4a2a)}
.go-ready{padding:4px 10px;border-radius:10px;background:#00000040;font-size:14px;white-space:nowrap}
.go-home{flex:none;width:56px;min-height:56px;padding:0;background:linear-gradient(#ffcf37,#e3a51d);border-color:#b98a12;color:#5a3a00}
.go-home svg{width:28px;height:28px}
.go-details{margin-top:12px}.go-details summary{cursor:pointer;color:var(--muted)}
.team-score.winner{border-color:#e7b94a;box-shadow:inset 0 0 0 2px #e7b94a}
/* Host settings below the card: the card's Play again replaces the second Start button. */
.result-layout .host-controls .start-row{display:none}
@media(max-width:360px){.go-players{grid-template-columns:repeat(2,minmax(0,1fr))}}
.go-banner h1{font-size:clamp(22px,6vw,32px);padding:12px 22px;max-width:100%}
.go-ribbon{margin-top:8px;border-radius:12px}
.go-banner{margin-bottom:-12px}
/* Notices are a floating toast, out of the page flow, so they can never squeeze the game. */
body:not(.tv) #status{position:fixed;top:calc(env(safe-area-inset-top,0px) + 10px);left:50%;transform:translateX(-50%);width:max-content;max-width:min(92vw,520px);margin:0;min-height:0;z-index:60;text-align:center;box-shadow:0 8px 24px #0008;pointer-events:none}
body.game-open main,body.game-open #app{min-width:0;max-width:100%}
/* A question on screen: the page is locked, nothing scrolls or bounces. */
html.no-scroll,html.no-scroll body{height:100%;overflow:hidden;overscroll-behavior:none}
html.no-scroll body{position:fixed;inset:0;width:100%}
html.no-scroll main{height:100dvh;overflow:hidden}
/* Right / wrong after every round */
.verdict{display:flex;align-items:center;gap:12px;padding:14px 16px;margin:0 0 12px;border-radius:16px;text-align:start;border:2px solid}
.verdict strong{flex:1;font-size:18px;line-height:1.4;color:#fff}
.verdict .v-icon{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;font-size:24px;font-weight:900;color:#fff}
.verdict .v-pts{font-size:24px;font-weight:900;font-variant-numeric:tabular-nums}
.verdict.good{background:#0f3a1f;border-color:#2fbf5b}.verdict.good .v-icon{background:#16b43b}.verdict.good .v-pts{color:#7fed9b}
.verdict.part{background:#3a3010;border-color:#e7b94a}.verdict.part .v-icon{background:#c9951a}.verdict.part .v-pts{color:#ffd97a}
.verdict.bad{background:#3a1218;border-color:#e0485e}.verdict.bad .v-icon{background:#c22b43}.verdict.bad .v-pts{color:#ff9cad}
.solo-total{color:var(--muted);margin:4px 0 10px}
.brain-reveal{list-style:none;padding:0;margin:8px 0 12px;display:grid;gap:6px;text-align:start}
.brain-reveal li{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:12px;background:#26262c;border:1px solid #3d3d45;color:#ddd}
.brain-reveal li span{width:20px;font-weight:900}
.brain-reveal li.right{background:#0f3a1f;border-color:#2fbf5b;color:#fff}.brain-reveal li.right span{color:#7fed9b}
.brain-reveal li.wrong{background:#3a1218;border-color:#e0485e;color:#fff}.brain-reveal li.wrong span{color:#ff9cad}
/* Daily intro: six rounds at a glance, fits one screen */
.daily-intro{text-align:center}.daily-intro h2{font-size:20px;line-height:1.4;margin:0 0 12px}
.daily-grid{list-style:none;padding:0;margin:0 0 10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.daily-grid li{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 6px;border-radius:14px;background:#26262c;border:1px solid #3d3d45;font-size:13px;font-weight:700;color:#fff;line-height:1.3}
.daily-grid li span{font-size:26px}.daily-grid li b{color:var(--gold);font-size:12px}
.cc-row-actions,#cc-partial{white-space:nowrap}
/* Daily: the same game artwork as the library, not emoji */
.stage-dots li{overflow:hidden;padding:0}
.stage-dots li .game-art{width:150%;height:auto;flex:none}
.daily-grid .daily-art{display:block;width:100%;max-width:96px;aspect-ratio:212/136;border-radius:10px;overflow:hidden}
.daily-grid .daily-art .game-art{width:100%;height:100%;display:block}
/* ---------- Today's ranking card ---------- */
.daily-board{background:linear-gradient(160deg,#2d2840,#1f1e26);border:1px solid #4a4360;border-radius:22px;padding:18px 16px 14px;box-shadow:0 8px 24px #0006}
.db-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:14px}.db-head h2{margin:2px 0 0;font-size:24px}
.db-hero{display:flex;align-items:center;gap:18px;padding:16px;border-radius:18px;background:radial-gradient(circle at 20% 20%,#ffcf3722,transparent 60%),#16151c;border:1px solid #3d3a4a}
.score-ring{flex:none;width:112px;height:112px;border-radius:50%;display:grid;place-items:center;--ring:var(--n,0);background:conic-gradient(#ffcf37 calc(var(--ring)*1%),#34323f 0);box-shadow:0 0 24px #ffcf3733}
.score-ring>div{width:88px;height:88px;border-radius:50%;background:#16151c;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.1}
.score-ring strong{font-size:30px;color:#ffe095;font-variant-numeric:tabular-nums}.score-ring small{color:var(--muted);font-size:13px}
.db-hero-copy p{margin:4px 0 0;color:#d9d3e6;font-size:15px}.db-time{color:var(--muted)!important}
.db-rank{display:inline-block;padding:4px 12px;border-radius:999px;background:#2f2c3b;border:1px solid #5a5470;color:#fff;font-weight:800;font-size:16px}
.db-rank.gold{background:linear-gradient(#ffe38a,#e3a51d);color:#4a2c00;border-color:#b98a12}.db-rank.silver{background:linear-gradient(#f1f3f7,#a9b0bd);color:#2a2f38;border-color:#8b929e}.db-rank.bronze{background:linear-gradient(#f3c39a,#b06d3a);color:#3a1d06;border-color:#8a542a}
.db-empty{flex-direction:column;align-items:stretch;text-align:center}
.db-sub{margin:18px 0 8px;font-size:16px;color:var(--muted)}
.db-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.db-list li{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:#26252e;border:1px solid #393745}
.db-list li.you{border-color:#ffcf37;background:#2e2a1c}
.db-pos{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:#3a3846;color:#fff;font-weight:800;font-size:14px}
.db-pos.gold{background:linear-gradient(#ffe38a,#e3a51d);color:#4a2c00}.db-pos.silver{background:linear-gradient(#f1f3f7,#a9b0bd);color:#2a2f38}.db-pos.bronze{background:linear-gradient(#f3c39a,#b06d3a);color:#3a1d06}
.db-list .avatar{width:38px;height:38px;font-size:17px}
.db-name{flex:1;min-width:0;color:#fff;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.db-name em{font-style:normal;color:var(--gold);font-size:13px}
.db-sec{color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}
.db-score{min-width:48px;text-align:end;color:#ffe095;font-size:20px;font-variant-numeric:tabular-nums}
.db-note{margin:12px 0 0;color:var(--muted);font-size:13px;text-align:center}
.db-none{text-align:center}
/* Home challenge card: the light vector game icon instead of a heavy picture */
.challenge-icon{display:grid;place-items:center;object-fit:unset;filter:drop-shadow(0 12px 16px #0008)}
.challenge-icon .game-art{width:100%;height:100%;max-width:300px}
/* ---------- TV pairing page (/tv) and the host's Connect TV box ---------- */
.tv-pair{flex:1;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:5vw;align-items:center;padding:2vh 4vw}
.tv-pair h1{font-size:clamp(36px,5vw,84px);margin:1vh 0 3vh}
.tv-pair-steps{font-size:clamp(20px,2.2vw,38px);line-height:1.6;color:#e6e0f2;padding-inline-start:1.2em;margin:0 0 3vh}
.tv-code{display:flex;gap:2vw}
.tv-code span{display:grid;place-items:center;width:clamp(70px,9vw,170px);aspect-ratio:3/4;border-radius:2vw;background:linear-gradient(#3b3b44,#1f1f25);border:3px solid #ffcf37;color:#ffe095;font-size:clamp(56px,7.5vw,140px);font-weight:900;box-shadow:0 1vw 2vw #0008}
.tv-pair-hint{margin-top:3vh;color:var(--muted);font-size:clamp(16px,1.6vw,28px)}
.tv-pair-qr{text-align:center}.tv-pair-qr svg{width:min(28vw,46vh);height:auto;background:#fff;border-radius:2vw;padding:1vw}
.tv-pair-qr p{color:#e6e0f2;font-size:clamp(16px,1.6vw,28px);margin-top:2vh}
body.tv-pair-page .top{display:none}
@media(max-aspect-ratio:1/1){.tv-pair{grid-template-columns:1fr;text-align:center}.tv-code{justify-content:center}.tv-pair-steps{text-align:start;display:inline-block}}
.tv-connect{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;margin:0 0 16px;border-radius:16px;background:linear-gradient(110deg,#23304a,#1d2333);border:1px solid #48608c}
.tv-connect-icon{font-size:26px}.tv-connect>div{flex:1;min-width:150px}.tv-connect strong{display:block;color:#fff}.tv-connect small{color:#b9c6e0;font-size:13px}
.tv-connect input{width:110px;margin:0;text-align:center;font-size:22px;letter-spacing:6px;font-weight:800}
.tv-connect button{min-height:50px}
body.tv-pair-page .bottom-nav,body.tv-pair-page #account{display:none!important}
/* Room: two numbered steps — invite friends, then (optionally) the TV */
.step-title{display:flex;align-items:center;gap:10px;justify-content:center;margin:0 0 12px;font-size:19px}
.step-title span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--gold);color:#3b2a00;font-size:16px;font-weight:900}
.step-title small{color:var(--muted);font-weight:400;font-size:13px}
.tv-pair-card{display:block;height:auto;margin-top:16px;padding:16px;border-radius:18px;background:linear-gradient(160deg,#23304a,#1b2030);border:1px solid #48608c;text-align:start}
.tv-steps{margin:0 0 10px;padding-inline-start:22px;color:#dfe7f6;font-size:16px;line-height:1.7}.tv-steps b{color:#fff;font-size:17px;white-space:nowrap}
.tv-connect{display:grid;grid-template-columns:120px 1fr;gap:10px;margin:0;padding:0;background:none;border:0}
.tv-connect input{margin:0;width:100%;text-align:center;font-size:24px;letter-spacing:6px;font-weight:800}
.tv-other{margin-top:12px}.tv-other summary{color:#b9c6e0;cursor:pointer}.tv-other ul{margin:8px 0 0;padding-inline-start:18px;color:#dfe7f6;line-height:2}
/* ---------- Motion: entrances when a screen changes, feedback on taps and results (reduced-motion: off) ---------- */
@media(prefers-reduced-motion:no-preference){
  #app.enter>*{animation:screen-in .26s cubic-bezier(.2,.8,.2,1) both}
  #app.enter>*:nth-child(2){animation-delay:.04s}#app.enter>*:nth-child(3){animation-delay:.08s}
  @keyframes screen-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
  #app.enter .verdict{animation:verdict-pop .42s cubic-bezier(.2,1.4,.4,1) .08s both}
  @keyframes verdict-pop{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:none}}
  #app.enter .verdict .v-icon{animation:icon-spin .5s ease-out .15s both}
  @keyframes icon-spin{from{transform:scale(0) rotate(-90deg)}to{transform:none}}
  #app.enter .go-banner h1{animation:banner-drop .5s cubic-bezier(.2,1.3,.4,1) both}
  @keyframes banner-drop{from{opacity:0;transform:translateY(-24px) scale(.9)}to{opacity:1;transform:none}}
  #app.enter .go-player,#app.enter .go-winner,#app.enter .db-list li,#app.enter .brain-reveal li,#app.enter .daily-grid li{animation:rise .35s ease-out both}
  #app.enter .go-player:nth-child(2),#app.enter .db-list li:nth-child(2),#app.enter .brain-reveal li:nth-child(2),#app.enter .daily-grid li:nth-child(2){animation-delay:.05s}
  #app.enter .go-player:nth-child(3),#app.enter .db-list li:nth-child(3),#app.enter .brain-reveal li:nth-child(3),#app.enter .daily-grid li:nth-child(3){animation-delay:.1s}
  #app.enter .go-player:nth-child(n+4),#app.enter .db-list li:nth-child(n+4),#app.enter .brain-reveal li:nth-child(n+4),#app.enter .daily-grid li:nth-child(n+4){animation-delay:.15s}
  @keyframes rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
  #app.enter .score-ring{animation:ring-fill 1s cubic-bezier(.2,.8,.2,1) .1s both}
  @keyframes ring-fill{from{--ring:0}}
  #app.enter .stage-dots li.now{animation:now-pulse 1.6s ease-in-out infinite}
  @keyframes now-pulse{50%{box-shadow:0 0 0 6px #ffcf3733}}
  .order-cell.pop{animation:cell-pop .28s cubic-bezier(.2,1.6,.4,1)}
  @keyframes cell-pop{from{transform:scale(.8)}to{transform:none}}
  .timer.urgent{animation:urgent .5s ease-in-out infinite alternate;border-color:#ff5c72;color:#ff9cad}
  @keyframes urgent{to{transform:scale(1.08)}}
  .tv-code span{animation:digit-in .45s cubic-bezier(.2,1.4,.4,1) both}
  .tv-code span:nth-child(2){animation-delay:.08s}.tv-code span:nth-child(3){animation-delay:.16s}.tv-code span:nth-child(4){animation-delay:.24s}
  @keyframes digit-in{from{opacity:0;transform:translateY(20px) scale(.9)}to{opacity:1;transform:none}}
  button:not(:disabled):active,.button:active{transform:scale(.97)}
  button,.button{transition:transform .08s ease,filter .15s ease}
}
/* The score ring's value can animate (number custom property). */
/* Only the score ring's own variable is registered (animatable). Never register --n: boards use it for their grid size. */
@property --ring{syntax:'<number>';inherits:false;initial-value:0}

/* Touch screens: no hover states (a hover on iPhone can eat the first tap), no grey tap flash, instant taps. */
button,.button,a,summary,label,[data-nav],[data-entry-game],[data-practice]{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
/* Games library: tap filters (no typing), each on one swipeable line */
.filter-label{margin:14px 0 8px;color:var(--muted);font-size:13px;font-weight:700}
.category-tabs.filter-row{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:8px;margin:0 0 4px;padding-bottom:4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.category-tabs.filter-row::-webkit-scrollbar{display:none}
.category-tabs.filter-row button{flex:none;white-space:nowrap}
/* Online invite: a link to send, not a QR */
.online-invite{text-align:center}.online-hint{color:#dcd6e8;font-size:15px;line-height:1.6;margin:0 0 14px}
.whatsapp-share{display:flex;justify-content:center;min-height:54px;font-size:18px;background:linear-gradient(#25d366,#128c4a);border-color:#1ea95a}
.online-actions{display:flex;gap:8px;justify-content:center;margin:10px 0 6px}
.online-code{margin:10px 0 0;color:var(--muted);font-size:14px}.online-code .room-code{font-size:20px;margin-inline-start:6px}

/* ---------- Who's the Imposter? (styles adapted from the approved preview; preview-only toolbar/body rules removed) ---------- */
body:not(.tv) main{padding-bottom:32px}
.im-page{max-width:560px;margin:auto}
.im-page h1{font-size:30px;line-height:1.4}
.im-page h2{font-size:24px;line-height:1.5}
.im-page p{font-size:15px;line-height:1.7}
.im-page .text-action{font-size:13px}
.im-topline{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}
.im-topline .text-action{padding-inline:0}
.im-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;background:#211e24;border:1px solid #5b424b;border-radius:99px;font-size:11px;color:#f4cfda}
.im-pill.live{color:#a5e5b3;border-color:#366c46}
.im-pill.live:before{content:'';width:6px;height:6px;border-radius:50%;background:#7fed9b}
.im-hero{position:relative;isolation:isolate;overflow:hidden;border:1px solid #a4495b;background:radial-gradient(ellipse at 90% 0%,#b8203d80,transparent 72%),linear-gradient(145deg,#341f2b,#17151c);border-radius:24px;padding:22px 22px 20px;box-shadow:0 5px 0 #111114;text-align:center;margin-bottom:22px}
.im-hero:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(163deg,transparent 55%,#c62a4130 55%,#c62a4108 84%,transparent 84%)}
.im-hero .im-art{width:210px;height:160px;display:block;margin:-12px auto -3px;filter:drop-shadow(0 12px 10px #0006)}
.im-hero h1{margin:0 0 6px;font-weight:900}
.im-hero p{color:#e8cdd5;max-width:340px;margin:0 auto 15px;font-size:14px}
.im-meta{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}
.im-meta span{font-size:11px;border:1px solid #805762;background:#1a151b66;border-radius:99px;padding:4px 9px;color:#f4e2d9}
.im-art{direction:ltr}
.im-mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0 18px}
.im-mode{background:linear-gradient(#35343c,#242329);box-shadow:0 3px 0 #151419;border:1px solid #55515c;border-radius:16px;flex-direction:column;gap:6px;padding:14px 8px;min-height:100px}
.im-mode svg{width:28px;height:28px;color:#c5a3f0}
.im-mode strong{font-size:14px}
.im-mode small{font-size:11px;color:#c7bfcb;font-weight:400}
.im-mode.selected{border:2px solid #e95d74;background:linear-gradient(#532d3b,#2a222b)}
.im-mode.selected svg{color:#ffc3ce}
.im-steps{list-style:none;display:flex;gap:8px;padding:0;margin:0 0 18px;counter-reset:steps}
.im-steps li{flex:1;text-align:center;font-size:12px;color:#d9d0de;line-height:1.6}
.im-steps b{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;margin:0 auto 5px;border:1px solid #80616d;background:#36252e;color:#ffd17c;font-size:12px}
.im-caption{text-align:center;color:#c1bbc9;font-size:12px!important;margin:12px 0 0!important}
.im-note{background:#222127;border:1px solid #4a444f;border-radius:13px;padding:12px 15px;color:#d8cdda;font-size:13px!important}
.im-note strong{color:#fff}
.im-stage-head{display:flex;gap:12px;align-items:center;margin:10px 0 22px}
.im-stage-head .im-mini-art{width:65px;height:52px;flex:none}
.im-stage-head h1{font-size:23px;margin:0}
.im-stage-head p{font-size:12px;color:#c5b8c6;margin:3px 0 0}
.im-progress{display:flex;gap:7px;margin:0 0 20px}
.im-progress span{height:4px;background:#48404a;border-radius:3px;flex:1}
.im-progress span.done{background:#d64660}
.im-roster{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:20px 0}
.im-person{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 6px;background:linear-gradient(#35333b,#25242b);border:1px solid #504854;border-radius:16px;min-width:0}
.im-person strong{font-size:14px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.im-person small{font-size:11px;color:#9cdea9}
.im-avatar{display:grid;place-items:center;width:49px;height:49px;border-radius:50%;border:2px solid #ab809e;box-shadow:inset 0 0 0 3px #19171e;background:linear-gradient(135deg,#6b526d,#372b43);color:#fff;font:700 23px/1 Arial,Tahoma,sans-serif;flex:none}
.tone-1{background:linear-gradient(135deg,#4b7573,#253e47);border-color:#80b7ae}
.tone-2{background:linear-gradient(135deg,#946a44,#50342d);border-color:#d9b686}
.tone-3{background:linear-gradient(135deg,#8d465e,#422b42);border-color:#d4849d}
.tone-4{background:linear-gradient(135deg,#5872a0,#2a354a);border-color:#92abcf}
.tone-5{background:linear-gradient(135deg,#6b668d,#36314a);border-color:#ada3d0}
.im-row{display:flex;gap:10px;margin:12px 0}
.im-row>*{flex:1}
.im-secondary{min-height:46px;font-size:14px}
.im-heading{text-align:center;margin:22px 0 14px}
.im-heading h2{margin-bottom:6px}
.im-heading p{color:#c9bfce;font-size:14px;margin:0}
.im-private-note{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px!important;color:#c9bdcc;margin:12px 0!important}
.im-secret{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;overflow:hidden;width:100%;min-height:270px;border-radius:25px;border:1px solid #a56d87;background:radial-gradient(ellipse at 50% 20%,#603a6b70,transparent 80%),#211d28;box-shadow:0 7px 0 #141218;padding:26px;margin:18px 0 25px;text-align:center}
.im-secret .im-art{width:150px;height:110px;margin:0 auto}
.im-secret strong{font-size:25px;margin-top:10px}
.im-secret small{font-size:13px;font-weight:400;color:#dac9de;margin-top:8px}
.im-secret .im-word{font-size:48px;color:#ffde84;margin:17px 0}
.im-secret.revealed{background:radial-gradient(ellipse at 50% 20%,#60552a55,transparent 80%),#211d28}
.im-secret .im-category{border:1px solid #66596e;border-radius:99px;padding:4px 12px;font-size:12px;color:#e3d2e8}
.im-private-actions{display:grid;gap:12px}
.im-turn-card{text-align:center;border:1px solid #8a6178;border-radius:22px;background:radial-gradient(ellipse at 50% 0,#59375199,transparent 75%),#211e26;padding:24px 18px;position:relative}
.im-turn-card .im-avatar{width:82px;height:82px;font-size:35px;margin:16px auto}
.im-turn-card h2{font-size:28px;margin:0 0 6px}
.im-turn-card .timer{position:absolute;inset-inline-end:15px;top:15px;width:49px;height:49px;font-size:19px;background:#17151c}
.im-turn-card p{margin-bottom:0;color:#dfcfdc;font-size:14px}
.im-turn-card .kicker{font-size:12px}
.im-turn-trail{display:flex;justify-content:center;gap:10px;margin:20px 0}
.im-turn-trail .im-avatar{width:35px;height:35px;font-size:15px;opacity:.4;border-color:#736474}
.im-turn-trail .current{opacity:1;outline:2px solid #ffcf37;outline-offset:3px}
.im-turn-trail .complete{opacity:1}
.im-clue{display:block;text-align:center;font-size:21px;color:#ffdf8a;margin-top:20px}
.im-votes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}
.im-vote{justify-content:flex-start;text-align:start;gap:9px;min-height:84px;padding:12px 10px;border-radius:16px;background:linear-gradient(#333139,#242229);border-color:#544a5b;box-shadow:0 3px 0 #151318}
.im-vote strong{font-size:14px}
.im-vote small{display:block;font-size:11px;font-weight:400;color:#c7b9ca;margin-top:4px}
.im-vote .im-avatar{width:40px;height:40px;font-size:18px}
.im-vote.selected{border:2px solid #ffcf37;background:#493b29}
.im-vote:disabled{opacity:.5}
.im-vote-meter{display:flex;align-items:center;gap:12px;justify-content:center;margin:20px 0;color:#d5c5d6}
.im-vote-meter strong{color:#ffdf8a;font-size:27px}
.im-locked{text-align:center;padding:27px 20px;border:1px solid #52725b;background:#1f3025;border-radius:20px;margin:25px 0}
.im-locked b{display:block;font-size:32px;color:#9becac}
.im-locked h2{font-size:21px;margin:8px 0}
.im-locked p{font-size:13px;margin:0;color:#d0e5d5}
.im-reveal{text-align:center;border:1px solid #ba8762;border-radius:23px;padding:24px 18px;background:radial-gradient(ellipse at 50% 0,#915a2040,transparent 80%),#241f24}
.im-reveal .im-avatar{width:85px;height:85px;font-size:38px;margin:15px auto;border-color:#ffcf37;box-shadow:0 0 30px #e9a63d33}
.im-reveal h2{font-size:26px;margin:8px 0}
.im-reveal p{color:#e3cfd5;font-size:14px}
.im-reveal .im-word-answer{display:block;padding:12px;background:#17151a;border:1px solid #58464b;border-radius:14px;font-size:23px;color:#ffe095}
.im-score-list{padding:0;list-style:none;display:grid;gap:8px;margin:20px 0}
.im-score-list li{display:flex;align-items:center;gap:11px;background:#28252d;border:1px solid #4d4353;border-radius:14px;padding:10px 13px}
.im-score-list .im-avatar{width:35px;height:35px;font-size:16px}
.im-score-list strong{flex:1;font-size:14px}
.im-score-list b{color:#ffe095;font-size:20px}
.im-score-list small{font-size:11px;color:#bfaec5}
.im-score-list .winner{border-color:#b69843;background:#332c23}
.im-ranking-title{font-size:19px!important;margin:24px 0 10px}
.game-imposter{border-color:#a84d61;background:linear-gradient(115deg,#432633,#29232b)}
.game-imposter .game-art{background:radial-gradient(ellipse at top,#a6204355,#261b28)}
.im-new{display:inline-block;font-size:10px!important;font-weight:700;color:#ffe095!important;line-height:1.5;border:1px solid #9c7a3e;border-radius:6px;padding:1px 6px;margin-inline-start:5px}
.im-library-art{width:72px;height:70px;flex:none}
.im-library-art svg{width:100%;height:100%}
.im-search-count{font-size:13px;color:#c4bdcb}
.im-return{display:flex;justify-content:center;margin-top:18px}
.im-banner{display:flex;align-items:center;gap:12px;width:100%;text-align:start;background:linear-gradient(115deg,#602438,#2b2029);border-color:#a25268;border-radius:18px;margin:18px 0;padding:12px 15px}
.im-banner .im-art{width:78px;height:68px}
.im-banner strong{display:block;font-size:19px}
.im-banner small{font-size:12px;color:#e4c9d3;font-weight:400}
.im-wallet-preview{text-align:center;padding:35px 20px}
.im-wallet-preview .token-coin{margin:0 auto 16px}
dialog::backdrop{background:#000a;backdrop-filter:blur(4px)}
dialog h2{font-size:22px}
dialog p{font-size:15px;color:#d4c7d8}
dialog .primary{margin-top:15px}
.im-tv-body{padding:0}
.im-tv-body .top,.im-tv-body .bottom-nav{display:none!important}
.im-tv-body main{max-width:none!important;padding:3vh 4vw!important;width:100%}
.im-tv-stage{min-height:calc(100dvh - 120px);display:flex;flex-direction:column;gap:3vh;max-width:1700px;margin:auto}
.im-tv-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #63404d;padding-bottom:2vh}
.im-tv-head h1{font-size:clamp(26px,3vw,52px);margin:0}
.im-tv-head p{font-size:clamp(13px,1.2vw,22px);margin:5px 0 0;color:#d5bcca}
.im-tv-brand{color:#c7bdcc;font-size:16px;direction:ltr}
.im-tv-main{flex:1;display:grid;grid-template-columns:1.4fr 1fr;gap:4vw;align-items:center}
.im-tv-main>.im-turn-card{padding:5vh 3vw;min-height:48vh;display:flex;flex-direction:column;justify-content:center}
.im-tv-main .im-turn-card .im-avatar{width:14vh;height:14vh;font-size:7vh}
.im-tv-main h2{font-size:clamp(28px,4vw,70px)}
.im-tv-main .im-turn-card p{font-size:clamp(18px,1.7vw,32px)}
.im-tv-main .im-turn-card .kicker{font-size:clamp(15px,1.4vw,24px)}
.im-tv-main .timer{width:10vh;height:10vh;font-size:4.4vh}
.im-tv-side h2{font-size:clamp(20px,2vw,34px)}
.im-tv-side .im-roster{gap:15px}
.im-tv-side .im-person{padding:2vh 8px}
.im-tv-side .im-person strong{font-size:clamp(15px,1.4vw,27px)}
.im-tv-side .im-avatar{width:7vh;height:7vh;font-size:3vh}
.im-tv-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-top:2vh;color:#d1bdcc;font-size:clamp(13px,1.3vw,24px);border-top:1px solid #63404d}
.im-tv-footer p{margin:0}
.im-tv-results{display:grid;grid-template-columns:1fr 1fr;gap:4vw;align-items:center}
.im-tv-results .im-reveal{padding:3vh 3vw}
.im-tv-results .im-reveal h2{font-size:clamp(30px,3.4vw,60px)}
.im-tv-results .im-reveal .im-avatar{width:12vh;height:12vh;font-size:6vh}
.im-tv-results .im-reveal p{font-size:clamp(18px,1.5vw,27px)}
.im-tv-results .im-score-list li{padding:1.5vh 1.4vw}
.im-tv-results .im-score-list strong{font-size:clamp(16px,1.5vw,29px)}
.im-tv-results .im-score-list b{font-size:clamp(20px,2vw,40px)}
.im-tv-results .im-score-list .im-avatar{width:5vh;height:5vh;font-size:2.5vh}
@media(max-width:600px){.im-hero{padding:19px 16px}.im-hero .im-art{width:180px;height:137px}.im-hero h1{font-size:28px}.im-page h2{font-size:22px}.im-stage-head{margin-bottom:15px}.im-secret{min-height:250px}.im-tv-main,.im-tv-results{grid-template-columns:1fr}.im-tv-side .im-person strong{font-size:14px}.im-tv-stage{min-height:auto}.im-tv-head{gap:10px}.im-tv-brand{font-size:11px}.im-tv-footer{align-items:start}.im-tv-main>.im-turn-card{min-height:350px}.im-tv-main .im-turn-card .im-avatar{width:80px;height:80px;font-size:35px}.im-tv-main .timer{width:55px;height:55px;font-size:22px}}
@media(prefers-reduced-motion:no-preference){.im-page,.im-tv-main,.im-tv-results{animation:screen-in .25s ease-out both}.im-secret.revealed{animation:im-reveal .35s ease-out both}.im-reveal .im-avatar{animation:verdict-pop .5s ease-out both}.im-person{animation:rise .3s ease-out both}.im-person:nth-child(2n){animation-delay:.04s}@keyframes im-reveal{from{transform:rotateY(-12deg) scale(.96);opacity:.3}to{transform:none;opacity:1}}}
@media(max-width:600px){.im-topline{margin-bottom:6px}.im-hero{padding:15px 16px;margin-bottom:16px}.im-hero .im-art{width:156px;height:110px}.im-mode-grid{margin-bottom:14px}.im-mode{min-height:90px;padding:10px 8px}.im-page>h2{margin-bottom:10px}.im-steps{margin-bottom:13px}.im-page>.im-caption{margin-top:10px!important}}
.im-secret.imposter-card{border-color:#eb8b9e;background:radial-gradient(ellipse at 50% 20%,#8b20394d,transparent 80%),#211d28}
.im-secret.imposter-card .im-word{font-size:35px;color:#ffabbc}
.im-secret.imposter-card small{max-width:270px;line-height:1.7}
/* The existing .game-open button class also matches body.game-open. Scope the preview shell explicitly. */
body.game-open{display:block;padding:0;margin:0;background:radial-gradient(ellipse at 50% 15%,#3e3e49 0%,var(--bg) 60%,#19191a 100%);text-align:start;border-radius:0}
body.im-tv-body{padding:0}
/* One device or one each. TV is a separate, optional public display. */
.im-tv-option{display:flex;width:100%;align-items:center;gap:12px;padding:12px 14px;margin:0 0 17px;border-radius:15px;background:#25242b;border:1px solid #56505c;box-shadow:none;text-align:start;min-height:66px}
.im-tv-option>svg{width:26px;height:26px;color:#c6b3d4;flex:none}
.im-tv-option>span{flex:1}
.im-tv-option strong{display:block;font-size:14px}
.im-tv-option small{font-size:11px;font-weight:400;color:#c4bacb;display:block;margin-top:3px}
.im-switch{display:block;width:40px;height:24px;border-radius:20px;padding:3px;background:#5a5560;flex:none;direction:ltr}
.im-switch:after{content:'';display:block;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .15s}
.im-switch.on{background:#1a9f42}
.im-switch.on:after{transform:translateX(16px)}
.im-tv-explain{font-size:12px!important;color:#d1c4d4;margin-top:-7px!important}
.im-tv-explain a{color:#ffdc83}
.im-pass-card{text-align:center;border:1px solid #72516b;border-radius:25px;padding:25px 20px;background:radial-gradient(ellipse at 50% 0%,#67395055,transparent 80%),#24202b;margin:20px 0 25px;min-height:335px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;box-shadow:0 6px 0 #151217}
.im-pass-card h2{font-size:38px;margin:0;color:#fff}
.im-pass-card>p{margin:0;font-size:17px;color:#d4c2d5}
.im-pass-card .im-pass-help{font-size:13px;line-height:1.8;max-width:295px}
.im-pass-card .im-avatar{width:68px;height:68px;font-size:30px;margin:4px 0}
.im-pass-art{display:flex;gap:13px;align-items:center;color:#ffcf37;margin:12px 0 0}
.im-pass-art svg{width:40px;height:45px}
.im-pass-art span{font-size:36px;line-height:1}
.im-ready-symbol{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;background:#25412e;border:2px solid #6db77f;color:#9bf6b0;font-size:39px;margin:0 0 12px}
.im-vote-count{font-size:30px;color:#ffdf89;margin-top:12px}
.im-name-list{display:grid;gap:9px;margin:20px 0 14px}
.im-name-row{display:flex;align-items:center;gap:10px}
.im-name-number{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:#493044;color:#ffdc87;font-size:13px;font-weight:700}
.im-name-row input{margin:0;min-width:0;flex:1;padding:12px 14px;min-height:49px;font-size:16px}
.im-remove{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;font-size:25px;color:#c3b3c7;box-shadow:none}
.im-add{font-size:14px;min-height:44px}
.im-session-note{display:flex;align-items:center;gap:13px;background:#28252e;border:1px solid #514659;border-radius:15px;padding:12px 14px;margin:16px 0;font-size:13px;color:#d0bfd7;line-height:1.7}
.im-session-note svg{width:30px;height:30px;flex:none;color:#c0a1df}
.im-name-error{font-size:13px!important;color:#ffb8c5;margin:9px 0}
.im-name-error:empty{display:none}
@media(max-width:600px){.im-detail-v2 .im-hero{padding:12px 16px;margin-bottom:15px}.im-detail-v2 .im-hero .im-art{width:130px;height:84px}.im-detail-v2 .im-hero h1{font-size:26px}.im-detail-v2 .im-hero p{font-size:13px;margin-bottom:10px}.im-detail-v2 .im-mode{min-height:89px;padding:10px 7px}.im-detail-v2 .im-mode strong{font-size:13px}.im-detail-v2 .im-mode small{font-size:10px}.im-detail-v2 .im-mode-grid{margin-bottom:12px}.im-tv-option{padding:10px 12px;margin-bottom:15px;min-height:61px}.im-pass-card{min-height:310px;padding:23px 18px}.im-pass-card h2{font-size:35px}}
@media(prefers-reduced-motion:reduce){.im-switch:after{transition:none}}
.im-discussion-card{gap:16px;min-height:330px}
.im-discussion-card h2{font-size:29px}
.im-discussion-card>p{font-size:15px;max-width:340px;line-height:1.8}
.im-discussion-art{display:flex;align-items:center;justify-content:center;gap:18px;color:#ddbbf7;padding:8px}
.im-discussion-art svg{width:65px;height:65px}
.im-discussion-art>span{display:grid;place-items:center;width:43px;height:43px;border-radius:15px 15px 15px 3px;background:#9e2b47;color:#ffe193;font-size:30px;font-weight:800;transform:rotate(9deg)}
.im-same-secret{color:#e0c98b;font-size:12px;padding:6px 12px;background:#1b191f;border:1px solid #685e43;border-radius:99px}
.im-discussion-actions{display:grid;gap:12px}
.im-discussion-actions .ghost{background:#2e2932;border-color:#706071;min-height:48px}

/* Imposter: kicker above the revealed avatar */
.im-reveal .kicker{display:block}

/* ---------- Friends, player profile, invitations (13-social.ts) ---------- */
.player-id{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.06em;color:var(--gold);font-weight:700}
.my-player-id{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:14px 0;padding:12px 14px;border:1px solid #4e445b;border-radius:16px;background:#26232b;font-size:14px}
.my-player-id .player-id{font-size:17px;margin-inline-end:auto}
.my-player-id .avatar.small,.friend-list .avatar{width:44px;height:44px;font-size:19px;margin:0}
.social-tabs{margin:6px 0 16px}
.friend-list{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:9px}
.friend-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid #49464f;border-radius:16px;background:linear-gradient(120deg,#303034,#272629)}
.friend-main{display:flex;align-items:center;gap:12px;flex:1;min-width:0;padding:2px;border:0;background:none;box-shadow:none;text-align:start;min-height:48px}
.friend-row strong,.friend-pick strong{display:block;font-size:16px;overflow-wrap:anywhere}
.friend-actions{display:flex;gap:6px;flex:none}
.presence{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);font-weight:400}
.presence::before{content:"";width:8px;height:8px;border-radius:50%;background:#6c6a72}
.presence.on{color:#7fe39a}.presence.on::before{background:var(--green);box-shadow:0 0 0 3px #16b43b33}
.list-title{font-size:14px;color:var(--muted);margin:14px 0 8px}
.count-dot{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:12px;background:var(--red);color:#fff;font-size:12px;align-self:center}
.friend-search{display:grid;gap:8px;margin-bottom:14px}
.friend-search input{min-height:50px;font-size:16px}
#social-sheet[hidden]{display:none}
.player-sheet,.invite-sheet{text-align:center;padding:26px 20px 22px}
.player-sheet .avatar.large{width:96px;height:96px;font-size:40px;margin:4px auto 10px;display:flex}
.player-sheet h2{margin:0 0 6px;font-size:24px}
.player-sheet-actions{margin-top:18px;display:grid;gap:10px}
.sheet-close{position:absolute;top:12px;inset-inline-end:12px}
.player-sheet .danger{color:#ff8b98;border-color:#7a3340}
.invite-sheet .pick-list{text-align:start;max-height:min(52vh,420px);overflow:auto;margin:14px 0}
.friend-pick{display:flex;align-items:center;gap:12px;width:100%;padding:8px 12px;border:1px solid #49464f;border-radius:16px;background:#2a292d;box-shadow:none;text-align:start;min-height:60px}
.friend-pick .avatar{width:42px;height:42px;font-size:18px;margin:0}
.friend-pick.selected{border-color:#b08dd4;background:#3a2c4c}
.friend-pick[disabled]{opacity:.55}
.pick-box{margin-inline-start:auto;width:26px;height:26px;border-radius:8px;border:2px solid #77727f;display:grid;place-items:center;font-style:normal;font-weight:800;color:#fff}
.friend-pick.selected .pick-box{background:#7740bf;border-color:#b08dd4}
.friend-invites{display:grid;gap:10px;margin-bottom:14px}
.friend-invites .compact-list{margin:0}
.friend-invites .friend-row{padding:6px 10px}.friend-invites .avatar{width:34px;height:34px;font-size:15px}
.friend-invites .friend-row>span:nth-child(2){flex:1;min-width:0}
.invite-status{font-size:12px;padding:3px 10px;border-radius:12px;border:1px solid #5a5560;color:var(--muted);white-space:nowrap}
.invite-status.accepted{border-color:#b19448;color:var(--gold)}
.invite-status.joined{border-color:#16b43b;color:#7fe39a}
.invite-status.declined{border-color:#7a3340;color:#ff8b98}
#invite-toast{position:fixed;z-index:39;left:12px;right:12px;bottom:calc(84px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;gap:10px;max-width:520px;margin:0 auto;padding:10px 12px;border:1px solid #b08dd4;border-radius:18px;background:#2c2236f2;box-shadow:0 10px 30px #0008;animation:verdict-pop .35s ease-out both}
#invite-toast[hidden]{display:none}
#invite-toast .avatar{width:40px;height:40px;font-size:17px;margin:0}
#invite-toast div{flex:1;min-width:0;display:grid;font-size:13px}
#invite-toast strong{font-size:15px}
body.game-open #invite-toast{bottom:calc(12px + env(safe-area-inset-bottom,0px))}
.friend-invites>button svg,.player-sheet-actions svg{width:22px;height:22px;vertical-align:-5px;margin-inline-end:6px}
.my-player-id button{min-height:40px}
.qr-card .friend-invites svg{background:none;border-radius:0;width:22px;max-width:none;height:22px}

/* ---------- Charades teams and points (games/charades.ts) ---------- */
.ch-teams{margin-top:14px;text-align:start}
.ch-teams h2{font-size:20px;margin:0 0 4px}
.ch-columns{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
.ch-team{border:1px solid #4a4650;border-radius:16px;padding:10px;background:#26252a;min-width:0}
.ch-team.team-0{border-color:#3f6fb8;background:linear-gradient(#1f2a3d,#232327)}
.ch-team.team-1{border-color:#b8513f;background:linear-gradient(#3d241f,#232327)}
.ch-team h3{font-size:15px;margin:0 0 8px}
.ch-team ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.ch-member{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:4px 6px;border:0;border-radius:12px;background:#ffffff0d;box-shadow:none;text-align:start;font-size:14px}
.ch-member .avatar{width:32px;height:32px;font-size:14px;margin:0}
.ch-member>span:not(.avatar){flex:1;min-width:0;overflow-wrap:break-word}
.ch-member .avatar{flex:none}
.ch-member i{font-style:normal;color:var(--muted)}
.ch-actions{align-items:center;gap:10px;flex-wrap:wrap}
.ch-roles{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:6px 0 10px}
.ch-role{padding:6px 12px;border-radius:14px;font-size:14px;font-weight:700;border:1px solid}
.ch-role.team-0{border-color:#3f6fb8;color:#9cc3ff}.ch-role.team-1{border-color:#b8513f;color:#ffb3a4}
.ch-tier{text-align:center;font-weight:800;font-size:16px;margin:4px 0 10px;color:var(--gold)}
.ch-tier[data-points="1"]{color:#ffb35c}.ch-tier[data-points="0"]{color:var(--red)}
.ch-result{display:grid;gap:4px;text-align:center;padding:14px;margin-bottom:12px;border:1px solid #b19448;border-radius:18px;background:#2a2418}
.ch-result strong{font-size:24px;color:var(--gold)}
.tv-results .ch-result{max-width:640px;margin:0 auto 2vh}.tv-results .ch-result strong{font-size:clamp(28px,3vw,52px)}
.tv-lobby .ch-teams h2{font-size:3vh}.tv-lobby .ch-teams .hint{font-size:1.8vh}.tv-lobby .ch-team h3{font-size:2.4vh}.tv-lobby .ch-member{font-size:2.2vh;min-height:5vh}.tv-lobby .ch-member .avatar{width:4.4vh;height:4.4vh;font-size:2vh}
@media(max-width:380px){.ch-columns{gap:6px}.ch-team{padding:6px}.ch-member{gap:6px;padding:4px}.ch-member i{display:none}.ch-member .avatar{width:28px;height:28px;font-size:12px}}
/* One phone: add players first; the optional TV step comes after. */
body.lobby.one-phone:not(.tv) .room-invite{order:3}
body.lobby.one-phone:not(.tv) .room-profile{order:4}
/* One-phone setup (Codex: Who's playing?) */
.op-setup .op-name{flex:1;min-width:0;font-weight:700;font-size:16px;overflow-wrap:break-word}
.op-setup .im-name-row{align-items:center}
.op-setup .op-art .game-art,.op-setup .op-art svg{width:64px;height:auto}
.op-add{display:flex;gap:8px;margin:10px 0 14px}.op-add input{flex:1;min-width:0;min-height:50px}.op-add button{flex:none}
.op-setup .ch-teams{margin:6px 0 14px}
.op-tv{margin-top:14px}
/* Imposter round on a phone: no half-visible scoreboard under the game (scores show at the end of the round);
   compact so it fits one screen; if a long list (8-12 players) still doesn't fit, only the game area scrolls. */
body.imp-round .layout>aside{display:none}
html.no-scroll body.imp-round main{overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
body.imp-round .im-page{padding-bottom:16px}
body.imp-round .im-stage-head{margin-bottom:6px}
body.imp-round .im-stage-head h1{font-size:22px}
body.imp-round .im-mini-art{width:64px}
body.imp-round .im-progress{margin:6px 0 12px}
body.imp-round .im-turn-card,body.imp-round .im-pass-card{padding:16px 14px}
body.imp-round .im-turn-card .im-avatar,body.imp-round .im-pass-card .im-avatar{width:72px;height:72px;font-size:30px;margin:8px auto}
body.imp-round .im-turn-trail{margin:10px 0}
body.imp-round .im-votes{gap:8px}
body.imp-round .im-vote{min-height:56px;padding:6px 10px}
body.imp-round .im-vote .im-avatar{width:40px;height:40px;font-size:17px}
body.imp-round .im-secret{min-height:0;padding:18px 14px}
body.imp-round .im-secret .im-art{width:min(46vw,190px)}
@media(max-height:700px){body.imp-round .im-stage-head{display:none}body.imp-round .im-word{font-size:40px}}
.im-hint-option{margin-top:10px}.im-hint-icon{font-size:22px;width:24px;text-align:center}
.go-change{display:block;margin:10px auto 0}
.safety-actions{justify-content:center;gap:18px;margin-top:14px}.safety-actions .danger{color:#ff8b98}.report-box{margin-top:14px;text-align:start}.report-reasons{flex-wrap:wrap;gap:6px}.report-block{display:flex;gap:8px;align-items:center;margin-top:10px;font-size:14px}
.report-block input[type=checkbox]{width:22px;height:22px;min-height:0;flex:none;margin:0;padding:0}
html,body{overscroll-behavior:none;-webkit-tap-highlight-color:transparent}
/* ---- Daily puzzles (shared screen: .pz-*; Crowns board: .cr-*; Balance board: .bl-*) ---- */
.home-crowns{margin-top:12px;background:linear-gradient(110deg,#4a3317,#231d18);border-color:#b8873a}
.home-crowns small{color:#ecd9b8}
.pz-icon svg{width:24px;height:24px;fill:#4a2c00;color:#4a2c00}
.puzzle-page{max-width:560px;margin:0 auto}
.pz-head{margin-bottom:10px}
.pz-bar{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.pz-time{font:800 22px/1 Arial,Tahoma,sans-serif;font-variant-numeric:tabular-nums;color:var(--gold);margin-inline-end:auto}
.cr-board{--n:8;direction:ltr;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));width:100%;aspect-ratio:1;border:3px solid #111;border-radius:10px;overflow:hidden;background:#111;gap:1px;touch-action:none;user-select:none;-webkit-user-select:none}
.cr-cell{all:unset;position:relative;display:grid;place-items:center;aspect-ratio:1;box-sizing:border-box;min-width:0;cursor:pointer;color:#1b1b1f;font:700 clamp(14px,4.4vw,24px)/1 Arial,sans-serif;-webkit-tap-highlight-color:transparent}
.cr-cell:focus-visible{outline:3px solid var(--gold);outline-offset:-3px;z-index:1}
.cr-cell.et{border-top:2px solid #111}.cr-cell.eb{border-bottom:2px solid #111}.cr-cell.el{border-left:2px solid #111}.cr-cell.er{border-right:2px solid #111}
.cr-r0{background:#ee9696}.cr-r1{background:#f6b56b}.cr-r2{background:#9fd99a}.cr-r3{background:#8fbef0}.cr-r4{background:#b9a0f0}
.cr-r5{background:#f39ad6}.cr-r6{background:#8fded4}.cr-r7{background:#f3e07a}.cr-r8{background:#c9c3b8}
.pz-pen{font-weight:400;opacity:.75}
.cr-cell svg{width:66%;height:66%;fill:#1b1b1f}
.cr-x{font-style:normal;opacity:.55;font-size:.85em}
.cr-cell.bad svg{fill:#c4142b}.cr-cell.bad::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(45deg,#c4142b33 0 4px,transparent 4px 8px)}
.cr-cell.hinted::before{content:"";position:absolute;inset:2px;border:3px solid #fff;border-radius:4px;box-shadow:0 0 0 2px #111;animation:cr-pulse 1s ease-in-out 3}
@keyframes cr-pulse{50%{transform:scale(.86)}}
.cr-board.locked .cr-cell{cursor:default}
.pz-msg{min-height:24px;margin:10px 0 0;font-size:16px;color:var(--gold);text-align:center}
.pz-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.pz-rules{margin-top:16px;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px 16px}
.pz-rules summary{font-weight:700;color:var(--text)}.pz-rules ol{margin:10px 0 0;padding-inline-start:20px;font-size:16px}.pz-rules li{margin-bottom:6px}
.pz-result{text-align:center}.pz-result .cr-board{margin:16px 0}
.pz-medal svg{width:56px;height:56px;fill:var(--gold);color:var(--gold)}
.pz-balance .pz-medal svg{fill:none}
.pz-big{font:900 54px/1 Arial,sans-serif;color:var(--gold);font-variant-numeric:tabular-nums;margin:6px 0 8px}
.pz-rank{font-weight:800;font-size:20px}
.pz-result .db-list{text-align:start}
.cr-board.locked .cr-x{display:none}
.home-balance{margin-top:12px;background:linear-gradient(110deg,#123c3c,#1a2224);border-color:#3aa39a}
.home-balance small{color:#bfe6e1}
.home-balance .pz-icon svg{fill:none}
.bl-board{--n:6;direction:ltr;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));width:100%;aspect-ratio:1;border:3px solid #111;border-radius:10px;background:#111;gap:2px;touch-action:none;user-select:none;-webkit-user-select:none}
.bl-cell{all:unset;box-sizing:border-box;position:relative;display:grid;place-items:center;aspect-ratio:1;min-width:0;background:#f1ede4;cursor:pointer;-webkit-tap-highlight-color:transparent}
.bl-cell:first-child{border-top-left-radius:7px}.bl-cell:nth-child(6){border-top-right-radius:7px}.bl-cell:nth-child(31){border-bottom-left-radius:7px}.bl-cell:last-child{border-bottom-right-radius:7px}
.bl-cell.given{background:#d9d2c3;cursor:default}
.bl-cell:focus-visible{outline:3px solid var(--gold);outline-offset:-3px;z-index:2}
.bl-cell>svg{width:62%;height:62%}
.bl-coin{fill:#f2b62b;stroke:#8a5a00;stroke-width:1.4}.bl-coin .bl-ring{fill:none;stroke:#c98a0c;stroke-width:1.6}
.bl-gem{fill:#1fa79a;stroke:#0b5049;stroke-width:1.4;stroke-linejoin:round}.bl-gem .bl-facet{fill:#7ee0d4;stroke:none}
.bl-cell.bad{background:repeating-linear-gradient(45deg,#f6c5cb 0 5px,#f1ede4 5px 10px)}
.bl-cell.given.bad{background:repeating-linear-gradient(45deg,#e8b0b7 0 5px,#d9d2c3 5px 10px)}
.bl-edge{position:absolute;z-index:1;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#fff;border:1.5px solid #111;color:#111;font:800 13px/1 Arial,sans-serif;font-style:normal;pointer-events:none}
.bl-edge.r{right:-10px;top:50%;transform:translateY(-50%)}.bl-edge.b{bottom:-10px;left:50%;transform:translateX(-50%)}
.bl-cell.hinted::before{content:"";position:absolute;inset:2px;border:3px solid #ffcf37;border-radius:4px;box-shadow:0 0 0 2px #111;animation:cr-pulse 1s ease-in-out 3}
.pz-result .bl-board{margin:16px 0}
.bl-board.locked .bl-cell{cursor:default}
.home-trail{margin-top:12px;background:linear-gradient(110deg,#3a1f4f,#1f1a28);border-color:#9b6ad6}
.home-trail small{color:#dccdf0}
.home-trail .pz-icon svg{fill:#4a2c00}
.pz-trail .pz-medal svg{fill:var(--gold)}
.tr-board{--n:6;position:relative;direction:ltr;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));width:100%;aspect-ratio:1;border:3px solid #111;border-radius:12px;overflow:hidden;background:#cfc8bb;gap:1px;touch-action:none;user-select:none;-webkit-user-select:none}
.tr-cell{all:unset;box-sizing:border-box;position:relative;display:grid;place-items:center;aspect-ratio:1;min-width:0;background:#f3efe7;cursor:pointer;-webkit-tap-highlight-color:transparent}
.tr-cell.on{background:#e6dbf5}
.tr-cell:focus-visible{outline:3px solid var(--gold);outline-offset:-3px;z-index:3}
.tr-walls line{stroke:#111;stroke-width:1.8;stroke-linecap:round}
.tr-line{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1;overflow:visible}
.tr-line polyline{fill:none;stroke:#7740bf;stroke-width:4.2;stroke-linecap:round;stroke-linejoin:round;opacity:.9}
.tr-num{position:relative;z-index:2;display:grid;place-items:center;width:62%;aspect-ratio:1;border-radius:50%;background:#16161a;color:#fff;font:800 clamp(15px,4.6vw,22px)/1 Arial,sans-serif;box-shadow:0 0 0 3px #f3efe7}
.tr-num.on{background:#5a2c99;box-shadow:0 0 0 3px #e6dbf5}
.tr-cell.hinted::before{content:"";position:absolute;inset:2px;z-index:2;border:3px solid #ffcf37;border-radius:4px;box-shadow:0 0 0 2px #111;animation:cr-pulse 1s ease-in-out 3}
.pz-result .tr-board{margin:16px 0}
.tr-board.locked .tr-cell{cursor:default}
.home-words{margin-top:12px;background:linear-gradient(110deg,#1f3a22,#1a221b);border-color:#5fb35f}
.home-words small{color:#cfe8cf}
.home-words .pz-icon svg{fill:#4a2c00}
.pz-wordsar .pz-medal svg,.pz-wordsen .pz-medal svg{fill:var(--gold)}
.wd-grid{--n:6;position:relative;direction:ltr;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));width:100%;aspect-ratio:1;border:3px solid #111;border-radius:12px;overflow:hidden;background:#cfc8bb;gap:1px;touch-action:none;user-select:none;-webkit-user-select:none}
.wd-cell{all:unset;box-sizing:border-box;position:relative;z-index:2;display:grid;place-items:center;aspect-ratio:1;min-width:0;background:#f3efe7;color:#1b1b1f;font:800 clamp(20px,6.4vw,30px)/1 Arial,Tahoma,sans-serif;cursor:pointer;-webkit-tap-highlight-color:transparent}
.wd-cell.tracing{background:#ffe9a8}
.wd-cell.found{cursor:default}
.wd-cell:focus-visible{outline:3px solid var(--gold);outline-offset:-3px}
.wd-c0{background:#f6c1c1}.wd-c1{background:#fbd79a}.wd-c2{background:#bfe5b8}.wd-c3{background:#b9d7f4}.wd-c4{background:#d8c6f4}.wd-c5{background:#f6c2e2}.wd-c6{background:#b8ebe3}.wd-c7{background:#ece4a0}
.wd-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3}
.wd-lines polyline{fill:none;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;opacity:.35}
.wd-l0{stroke:#d9534f}.wd-l1{stroke:#e8962a}.wd-l2{stroke:#4caf50}.wd-l3{stroke:#3d8bd9}.wd-l4{stroke:#8a63d2}.wd-l5{stroke:#d65aa8}.wd-l6{stroke:#2fb3a1}.wd-l7{stroke:#b9a724}
.wd-lines .wd-trace{stroke:#e0a400;opacity:.75}
.wd-now{display:flex;justify-content:center;gap:4px;min-height:40px;margin:12px 0 6px;font-size:16px;color:var(--muted)}
.wd-now b{display:grid;place-items:center;width:32px;height:36px;border-radius:7px;background:#ffcf37;color:#1b1b1f;font:800 20px/1 Arial,Tahoma,sans-serif}
.wd-now.say{align-items:center}.wd-now.say.no{color:#ff9aa5}
.wd-slots{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;align-items:center}
.wd-slots li{display:flex;gap:4px;align-items:center;background:none!important}
.wd-slots span{display:grid;place-items:center;width:30px;height:32px;border-radius:7px;background:#3a3a40;color:#1b1b1f;font:800 18px/1 Arial,Tahoma,sans-serif}
.wd-slots li.done span{background:#bfe5b8}
.wd-slots li.wd-c0.done span{background:#f6c1c1}.wd-slots li.wd-c1.done span{background:#fbd79a}.wd-slots li.wd-c3.done span{background:#b9d7f4}.wd-slots li.wd-c4.done span{background:#d8c6f4}.wd-slots li.wd-c5.done span{background:#f6c2e2}.wd-slots li.wd-c6.done span{background:#b8ebe3}.wd-slots li.wd-c7.done span{background:#ece4a0}
.wd-slots i{font-style:normal;color:#7fed9b;font-weight:800;margin-inline-start:4px}
.wd-cell.hinted::before{content:"";position:absolute;inset:2px;border:3px solid #ffcf37;border-radius:4px;box-shadow:0 0 0 2px #111;animation:cr-pulse 1s ease-in-out 3}
.pz-result .wd-board{margin:16px 0}
/* ---- Home: small round game icons (each in its game's colour) + compact daily puzzle tiles ---- */
.home-greeting.compact{margin-bottom:10px}.home-greeting.compact h1{font-size:21px;margin:0}
.game-strip{display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;margin:0;padding:4px 4px 10px;scroll-padding-inline:4px;scrollbar-width:none}
.game-strip::-webkit-scrollbar{display:none}
.strip-game{all:unset;box-sizing:border-box;flex:none;width:72px;display:flex;flex-direction:column;align-items:center;gap:6px;scroll-snap-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent}
.strip-ring{--c1:#7740bf;--c2:#3a2160;--edge:#b48cf0;display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:radial-gradient(circle at 35% 30%,var(--c1),var(--c2) 75%);box-shadow:0 0 0 2.5px var(--edge),0 4px 0 #0006;overflow:hidden}
.strip-ring .game-art,.strip-ring svg,.strip-ring img{width:46px;height:46px;object-fit:contain}
.strip-game small{font-size:11px;line-height:1.25;color:#e3dbe9;text-align:center;font-weight:700;max-width:72px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.strip-game:focus-visible .strip-ring{outline:3px solid var(--gold);outline-offset:3px}
@media(hover:hover) and (pointer:fine){.strip-game:hover .strip-ring{filter:brightness(1.12)}}
.strip-brain .strip-ring{--c1:#8d55d6;--c2:#3a2160;--edge:#b48cf0}
.strip-words .strip-ring{--c1:#a77a3c;--c2:#4a3520;--edge:#e0b56d}
.strip-draw .strip-ring{--c1:#a85a8f;--c2:#4a2440;--edge:#e39cc9}
.strip-charades .strip-ring{--c1:#b07a45;--c2:#4c3220;--edge:#e8b77d}
.strip-colours .strip-ring{--c1:#2f9a86;--c2:#173f39;--edge:#74d9c4}
.strip-code .strip-ring{--c1:#a8893f;--c2:#4a3d1d;--edge:#e6c56f}
.strip-memory .strip-ring{--c1:#5f5cc4;--c2:#28275a;--edge:#a6a3f2}
.strip-order .strip-ring{--c1:#c4613a;--c2:#542718;--edge:#f29a72}
.strip-imposter .strip-ring{--c1:#b03a55;--c2:#4a1824;--edge:#ee8197}
.puzzle-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.puzzle-tiles:empty{display:none}
.pz-tile{all:unset;box-sizing:border-box;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;min-height:64px;padding:10px 12px;border-radius:16px;border:1px solid #ffffff22;box-shadow:0 3px 0 #0005;cursor:pointer;-webkit-tap-highlight-color:transparent}
.pz-tile.home-crowns,.pz-tile.home-balance,.pz-tile.home-trail,.pz-tile.home-words{margin-top:0}
.pz-tile .pz-icon{grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:linear-gradient(#ffdf73,#e3a51d);box-shadow:0 2px 0 #6b4a0e}
.pz-tile .pz-icon svg{width:22px;height:22px}
.pz-tile strong{font-size:15px;line-height:1.2}
.pz-tile small{font-size:11.5px;color:#d9d0e6;line-height:1.3}
.pz-tile.played .pz-icon{background:linear-gradient(#4fdbac,#1b8f6b);box-shadow:0 2px 0 #0b4a37}
.pz-tile:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
/* ---- Token store (wallet page) ---- */
.store-packs{margin-top:22px}.store-packs h2{font-size:20px;margin-bottom:12px}
.sp-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sp-pack{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:16px 10px 12px;border-radius:18px;border:1px solid #4d4655;background:radial-gradient(ellipse at 50% 0%,#5a4420,#221f26 70%);box-shadow:0 4px 0 #121014}
.sp-pack.sp-popular{border-color:#b48cf0;background:radial-gradient(ellipse at 50% 0%,#5b3a8e,#221f26 70%)}
.sp-pack.sp-best{border-color:#ffcf37}
.sp-badge{position:absolute;top:-10px;padding:2px 10px;border-radius:999px;background:#7740bf;color:#fff;font-size:11px;font-weight:800;white-space:nowrap}
.sp-best .sp-badge{background:#ffcf37;color:#3b2a00}
.sp-coins{display:flex;justify-content:center;height:34px;align-items:flex-end}
.sp-coin{display:inline-grid;place-items:center;width:26px;height:26px;margin-inline:-5px;border-radius:50%;background:linear-gradient(#ffe38a,#e3a51d);color:#7a4d00;font-size:15px;box-shadow:0 2px 0 #6b4a0e}
.sp-pack strong{font-size:24px;line-height:1.1;color:var(--gold);font-variant-numeric:tabular-nums}
.sp-pack small{font-size:12px;color:#d8cfe2}.sp-pack small b{color:#7fed9b}
.sp-buy{width:100%;min-height:42px;margin-top:6px;font-size:15px}
.sp-note{text-align:center}
/* ---- Home v3 (owner's layout 2026-11-16): join, three modes, one daily card, 3x3 game grid ---- */
.home-v3 .home-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 14px}
.home-v3 .home-head h1{font-size:23px;margin:0;line-height:1.25}
.join-code{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:8px 14px;border-radius:14px;border:1px solid #5a5560;background:#232227;box-shadow:0 3px 0 #111;font-size:13px;color:#ffe08a;white-space:nowrap}
.join-code svg{width:18px;height:18px;flex:none}
.home-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.home-mode{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;min-height:96px;padding:12px 6px;border-radius:18px;border:1px solid #4c4852;background:linear-gradient(#2c2a31,#1f1e23);box-shadow:0 3px 0 #111;white-space:normal}
.home-mode svg{width:26px;height:26px}
.home-mode.mode-solo svg{color:#ffcd67}.home-mode.mode-online svg{color:#d4a5ff}.home-mode.mode-majles svg{color:#7fd9d0}
.home-mode strong{font-size:15px;line-height:1.25}
.home-mode small{font-size:11.5px;line-height:1.3;color:#d6cfdd;font-weight:400}
.home-v3 .resume-game{margin-top:12px}
.daily-entry{display:flex;align-items:center;gap:14px;width:100%;margin-top:14px;padding:14px 16px;border-radius:20px;border:1px solid #6f5a99;background:linear-gradient(110deg,#2f2442,#1f1b29);box-shadow:0 4px 0 #120f18;text-align:start}
.daily-entry>span:nth-child(2){display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.daily-entry strong{font-size:18px}.daily-entry small{font-size:12.5px;color:#ddd3ec;font-weight:400}
.daily-entry-icon{display:grid;place-items:center;width:52px;height:52px;flex:none;border-radius:15px;background:linear-gradient(#ffdf73,#e3a51d);color:#3b2a00;font-size:24px;box-shadow:0 3px 0 #6b4a0e}
.daily-progress{flex:none;padding:5px 10px;border-radius:999px;background:#ffffff14;color:#f3eaff;font-size:13px;font-weight:800}
.daily-progress.all{background:#1b8f6b;color:#fff}
.home-games-head{margin:26px 0 12px}.home-games-head h2{font-size:20px}
.home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.home-game{--t:#7740bf;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;padding:12px 6px 14px;border-radius:18px;border:1px solid #47434d;background:#1e1d22;box-shadow:0 3px 0 #111;white-space:normal}
.home-game-art{display:grid;place-items:center;width:70px;height:70px;border-radius:18px;background:radial-gradient(circle at 50% 35%,color-mix(in srgb,var(--t) 55%,transparent),color-mix(in srgb,var(--t) 18%,#1e1d22) 75%)}
.home-game-art .game-art,.home-game-art svg,.home-game-art img{width:66px;height:66px;object-fit:contain}
.home-game strong{font-size:13.5px;line-height:1.3;text-align:center}
.home-game:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
@media(hover:hover) and (pointer:fine){.home-game:hover{border-color:color-mix(in srgb,var(--t) 70%,#fff)}}
.tile-brain{--t:#8d55d6}.tile-words{--t:#c99a4c}.tile-draw{--t:#b4609a}.tile-charades{--t:#c08550}.tile-colours{--t:#2fa58f}.tile-code{--t:#c3a24a}.tile-memory{--t:#6a67d4}.tile-order{--t:#d0683f}.tile-imposter{--t:#c0435f}
.daily-hub .daily-hub-sub{font-size:19px;margin:22px 0 4px}
@media(max-width:360px){.home-v3 .home-head h1{font-size:20px}.join-code{padding:8px 10px;font-size:12px}.home-mode small{font-size:10.5px}}
/* ---- Puzzles as games: home row + puzzle page (Today + Practice) ---- */
.home-puzzles-head{font-size:20px;margin:24px 0 12px}
.home-grid.home-puzzles{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.home-puzzles .home-game{padding:10px 4px 12px;gap:6px}
.tile-pz{--t:#e0b04a}
.home-game-art.pz-art{width:56px;height:56px;color:#f5cb73}
.home-game-art.pz-art svg{width:40px;height:40px}
.home-puzzles .home-game strong{font-size:12.5px}
.puzzle-home{max-width:560px;margin:0 auto;text-align:center}
.puzzle-home .back-games{display:block;text-align:start;margin-bottom:6px}
.ph-art{display:grid;place-items:center;width:104px;height:104px;margin:6px auto 10px;border-radius:28px;color:#f5cb73;border:1px solid #ffffff22;box-shadow:0 4px 0 #0006}
.ph-art.home-crowns,.ph-art.home-balance,.ph-art.home-trail,.ph-art.home-words{margin-top:6px}
.ph-art svg{width:70px;height:70px}
.puzzle-home h1{font-size:28px;margin:0 0 10px}
.ph-rules{text-align:start;margin:0 0 18px;padding-inline-start:22px;font-size:15px;color:#e2dbea}.ph-rules li{margin-bottom:6px}
.ph-choice{display:flex;align-items:center;gap:12px;width:100%;margin-top:12px;padding:14px;border-radius:18px;border:1px solid #57505f;background:linear-gradient(110deg,#2c2733,#1e1c22);box-shadow:0 4px 0 #111;text-align:start}
.ph-choice>span:nth-child(2){display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.ph-choice strong{font-size:17px}.ph-choice small{font-size:12.5px;color:#d8cfe2;font-weight:400}
.ph-badge{display:grid;place-items:center;width:46px;height:46px;flex:none;border-radius:13px;background:linear-gradient(#ffdf73,#e3a51d);color:#3b2a00;font-size:22px;font-weight:900;box-shadow:0 3px 0 #6b4a0e}
.ph-practice .ph-badge{background:linear-gradient(#b48cf0,#7740bf);color:#fff;box-shadow:0 3px 0 #3a2160}
.ph-today.done .ph-badge{background:linear-gradient(#4fdbac,#1b8f6b);color:#06301f}
.ph-choice .daily-go{padding:7px 14px;border-radius:999px;background:linear-gradient(#16b43b,#087326);color:#fff;font-size:14px;font-weight:800;flex:none}
.pz-tile .pz-icon svg{color:#4a2c00}
.pz-result .primary.wide+.ghost.wide{margin-top:10px}
/* ---- Tournaments ---- */
.tour-entry{margin-top:10px;border-color:#b8873a;background:linear-gradient(110deg,#3b2a14,#1f1b16)}
.tour-icon{background:linear-gradient(#ffe7a0,#e3a51d);font-size:26px}
.tournaments-page{max-width:640px;margin:0 auto}
.tr-card{margin-top:14px;padding:16px;border-radius:20px;border:1px solid #57505f;background:linear-gradient(160deg,#2a2531,#1c1a20);box-shadow:0 4px 0 #111}
.tr-card header{display:flex;align-items:center;gap:12px}
.tr-card header>div{flex:1;min-width:0}.tr-card h2{font-size:18px;margin:0 0 2px;line-height:1.3}.tr-card header small{color:#d6cfdd;font-size:12.5px}
.tr-badge{display:grid;place-items:center;width:54px;height:54px;flex:none;border-radius:15px;background:#ffffff10;color:#f5cb73}
.tr-badge .game-art,.tr-badge svg{width:46px;height:46px}
.tr-free{background:#1b8f6b;color:#fff;border-color:#1b8f6b}
.tr-prizes{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 8px;padding:0}
.tr-prizes li{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;border-radius:14px;background:#ffffff0d}
.tr-prizes li>span{font-size:22px}.tr-prizes b{color:var(--gold);font-size:18px}.tr-prizes small{color:#d6cfdd;font-size:11px}
.tr-note{font-size:13px;color:#d6cfdd;margin:4px 0 12px}
.tr-mine{font-weight:800;color:#7fed9b;margin:4px 0 10px}
.tr-top{margin-top:12px}
.tr-recent-head{font-size:19px;margin:24px 0 8px}
.tr-recent{padding:12px 14px;border-radius:16px;background:#ffffff0a;margin-bottom:8px}.tr-recent ol{list-style:none;padding:0;margin:6px 0 0;font-size:14px}.tr-recent b{color:var(--gold)}
.tr-fine{margin-top:18px;font-size:12px;color:#bdb4c8;text-align:center}
.tourplay-page{max-width:640px;margin:0 auto}
.tq-bar{height:8px;border-radius:99px;background:#ffffff14;overflow:hidden;margin:4px 0 16px}
.tq-bar i{--n:100;display:block;height:100%;width:calc(var(--n)*1%);background:linear-gradient(90deg,#16b43b,#ffcf37);transition:width .25s linear}
.tq-prompt{font-size:clamp(19px,5vw,26px)}
.tq-options{display:grid;gap:10px}
.tq-options .option.picked{border-color:var(--gold)}
.tq-options .option.right{background:#1d5c34;border-color:#4cd17a}
.tq-options .option.wrong{background:#5a2028;border-color:#e0707f}
.tq-feedback{margin-top:12px;font-weight:800;text-align:center;font-size:18px}.tq-feedback.ok{color:#7fed9b}.tq-feedback.no{color:#ff9aa5}
/* ---- Not enough tokens: sheet + store hand-off ---- */
.short-sheet{text-align:center;padding:56px 22px calc(22px + env(safe-area-inset-bottom))!important}
.short-coin{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:50%;background:linear-gradient(#ffe38a,#e3a51d);color:#7a4d00;font-size:30px;box-shadow:0 3px 0 #6b4a0e;margin-bottom:10px}
.short-sheet h2{font-size:22px;margin-bottom:8px}.short-sheet p{color:#ddd5e6;font-size:16px;margin:0 0 8px}
.short-gap{font-weight:800;color:var(--gold)!important;font-size:18px!important}
.short-sheet .primary{margin-top:10px}.short-sheet .ghost{margin-top:8px}
.sp-goal{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 14px;margin-bottom:14px;border-radius:14px;border:1px solid #b8873a;background:#3b2a1455}
.sp-goal p{margin:0;font-size:14px;font-weight:700;color:#ffe08a}
.sp-pack.sp-suggest{border-color:#4cd17a;box-shadow:0 0 0 2px #4cd17a66,0 4px 0 #121014}
.sp-covers{position:absolute;top:-10px;inset-inline-start:10px;padding:2px 9px;border-radius:999px;background:#1b8f6b;color:#fff;font-size:11px;font-weight:800}
