/* ChatBuild game room. Scoped to games; respects the chat's current theme. */
#game-surface{--game-line:color-mix(in srgb,var(--text) 14%,transparent);--game-soft:color-mix(in srgb,var(--title) 9%,var(--card));container:game-room / inline-size;background:var(--card);padding:14px;scrollbar-gutter:stable;overscroll-behavior:contain}
#game-surface .gs-head{flex-wrap:wrap;gap:8px 12px;padding:0 0 12px;margin:0 0 14px;border-bottom:1px solid var(--game-line);flex-shrink:0}
.gs-head .gs-name{font-size:17px;letter-spacing:-.025em;line-height:1.3}
.gs-head .gs-turn{padding:5px 10px;border-radius:20px;background:var(--elev);font-weight:600;font-size:12px;line-height:1.4;animation:none}
.gs-head .gs-turn.myturn{color:var(--text);background:var(--game-soft);border:1px solid var(--title);box-shadow:none}
.gs-head .gs-turn.myturn::before{content:"";display:inline-block;width:7px;height:7px;background:var(--title);border-radius:50%;margin-right:7px}
.gs-close{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--game-line);border-radius:10px;background:var(--elev);flex-shrink:0}
.gs-close:hover{color:var(--text);background:var(--game-soft)}
#game-surface .gs-layout{gap:18px;min-width:0;align-items:flex-start}
#game-surface .gs-board{box-sizing:border-box;min-width:0;gap:14px;padding:16px;border:1px solid var(--game-line);border-radius:16px;background:linear-gradient(145deg,var(--game-soft),var(--sunken));justify-content:flex-start;flex-shrink:0}
#game-surface .gs-side{box-sizing:border-box;flex:0 0 180px;width:180px;gap:14px}
.gs-player{padding:10px;border:1px solid var(--game-line);border-radius:10px;min-width:0}
.gs-player.on{box-shadow:inset 3px 0 var(--title)}
.gs-movelog{border:1px solid var(--game-line);border-radius:10px;padding:6px;scrollbar-gutter:stable}
.gs-nav{display:flex;gap:5px;flex-wrap:wrap}
.gs-nav button{min-width:32px;min-height:32px}
.gs-hint{max-width:100%;line-height:1.55;text-align:center;text-wrap:pretty}
.gs-rps,.gs-inline,.pk-acts{flex-wrap:wrap;gap:8px;max-width:100%;justify-content:center}
#game-surface .gs-btn{min-height:40px;padding:9px 16px;border-radius:10px;font-size:13px;line-height:1.25;font-weight:700;box-shadow:0 2px 0 #0002;transition:background .15s,box-shadow .15s}
#game-surface button:disabled{cursor:default;opacity:.5;box-shadow:none}
#game-surface :is(button,[role=button],input,textarea,select):focus-visible,#games-modal button:focus-visible{outline:3px solid var(--title);outline-offset:3px}
#game-surface :is(.gs-input,.gs-input2,.sg-input,.bg-input,.pk-raise){box-sizing:border-box;min-height:42px;max-width:100%;min-width:0;border-radius:9px;background:var(--search);color:var(--text);border:1px solid var(--game-line);font-size:16px;line-height:1.4}
#game-surface .gs-input2{width:min(230px,100%)}
/* Boards size to their game pane, including when chat sits alongside. */
#game-surface :is(.chess-board,.shogi-board,.ludo-board,.gs-checkers){width:min(100%,440px);box-sizing:border-box;flex-shrink:0}
#game-surface .gs-grid{box-sizing:border-box;max-width:100%}
#game-surface .gs-grid:not(.small){width:min(100%,380px)}
#game-surface .gs-grid:not(.small) .gs-cell{width:auto;height:auto;min-width:0;aspect-ratio:1}
#game-surface .gs-grid.gs-tictactoe{width:min(100%,300px);gap:8px;padding:0;background:transparent;border:0;box-shadow:none}
.gs-tictactoe .gs-cell{border-radius:12px;background:var(--card);border:1px solid var(--game-line);font-size:clamp(26px,8cqi,52px);font-weight:800;box-shadow:0 3px 0 #0002}
.gs-tictactoe .mark-x{color:#61b5ef}.gs-tictactoe .mark-o{color:#f1b263}
.gs-tictactoe .gs-cell.win{outline:3px solid var(--title);outline-offset:-2px;position:relative;z-index:1;animation:ttt-win .5s ease-in-out 2}
@keyframes ttt-win{0%,100%{transform:scale(1);box-shadow:0 3px 0 #0002}50%{transform:scale(1.1);box-shadow:0 0 16px var(--title),0 3px 0 #0002}}
#game-surface .gs-reversi{gap:1px;padding:8px;border:1px solid #153e35;background:#173e36;border-radius:10px}
.gs-reversi .gs-cell,.gs-reversi .gs-cell:hover{background:#28735f;border:0;border-radius:0}
.gs-reversi .gs-cell.legal::after{background:#d2e7b9;box-shadow:0 0 0 4px #d2e7b921;width:8px;height:8px}
#game-surface .gs-gomoku{--gm-cell:min(28px,calc((100cqw - 60px)/15));gap:0;padding:10px;width:fit-content;max-width:100%;background:#d9b77d;border:5px solid #826448;border-radius:8px;align-self:flex-start;box-sizing:border-box}   /* size cells to the game SURFACE (container-query width), not the whole viewport — in game-mode the surface is narrower than 100vw, so 100vw overflowed it */
#game-surface .gs-gomoku .gs-cell.sm{width:var(--gm-cell);height:var(--gm-cell);border:0;border-radius:0;background:linear-gradient(90deg,transparent calc(50% - .5px),#836742 calc(50% - .5px),#836742 calc(50% + .5px),transparent calc(50% + .5px)),linear-gradient(transparent calc(50% - .5px),#836742 calc(50% - .5px),#836742 calc(50% + .5px),transparent calc(50% + .5px))}
.gs-gomoku .gs-disc{width:85%;height:85%}
.gs-grid.small .gs-cell.last{outline:2px solid #e17736;outline-offset:-2px}
/* Gomoku star points (hoshi) at the standard intersections; a placed stone (z-index:1) covers the dot */
.gs-gomoku .gs-cell.hoshi::after{content:"";position:absolute;left:50%;top:50%;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:#4a3826;pointer-events:none}
.gs-gomoku .gs-cell.hoshi .gs-disc{position:relative;z-index:1}
/* Shogi: subtle scale "pop" on the piece that just moved (keeps the far army's 180° rotation) */
#game-surface .shsq.last .shp:not(.far){animation:sh-pop .24s ease-out}
#game-surface .shsq.last .shp.far{animation:sh-pop-far .24s ease-out}
@keyframes sh-pop{0%{transform:scale(.74)}60%{transform:scale(1.08)}100%{transform:scale(1)}}
@keyframes sh-pop-far{0%{transform:rotate(180deg) scale(.74)}60%{transform:rotate(180deg) scale(1.08)}100%{transform:rotate(180deg) scale(1)}}
/* Legacy-card deal: re-enable the card-deal keyframe for freshly dealt/drawn cards only (plain .pcard has animation:none) */
#game-surface .pcard.just-dealt{animation:card-deal .26s both}
@media(prefers-reduced-motion:reduce){#game-surface .pcard.just-dealt,#game-surface .shsq.last .shp,#game-surface .shsq.last .shp.far,#game-surface .gs-tictactoe .gs-cell.win{animation:none!important}}
#game-surface .gs-connect4{padding:12px;gap:7px;background:linear-gradient(155deg,#347bd2,#19448e);border:1px solid #6ca5ed;border-bottom:7px solid #122c62;border-radius:16px}
.gs-disc{box-shadow:inset 0 2px 3px #fff5,inset 0 -3px 5px #0004,0 2px 3px #0005}
.gs-checkers{border:5px solid #6a503b!important;border-radius:8px;overflow:hidden}
.gs-checkers .ck.dark{background:#8c6b51}.gs-checkers .ck.lite{background:#e8dac2}
.gs-checkers .ck-pc{box-shadow:inset 0 0 0 3px #ffffff35,inset 0 0 0 6px #0002,0 3px 0 #0006,0 4px 6px #0005}
/* ===== chess 2D wood redesign ===== */
.chess-board{width:min(100%,440px);box-sizing:border-box;border:clamp(6px,1.8vw,10px) solid #785033;border-top-color:#a4774b;border-left-color:#95633e;border-bottom-color:#563722;border-radius:7px;box-shadow:0 8px 20px #21150e40,0 1px 3px #160e0a50,0 0 0 1px #d0a46e, inset 0 0 0 1px #3a2316;margin:0 auto;background:#785033}
.chsq.l{--wood:#e6c99b;--grain:#98643410;background-color:var(--wood)}
.chsq.d{--wood:#93633f;--grain:#38200e18;background-color:var(--wood)}
.chsq.l,.chsq.d{background-image:repeating-linear-gradient(3deg,transparent 0 5px,var(--grain) 6px,transparent 7px 12px),linear-gradient(100deg,#fff1 0%,transparent 45%,#3216000a 100%)}
.chsq .chp{width:86%;height:86%;display:block;filter:drop-shadow(0 2px 1px #1b100b66);font-size:inherit;line-height:1;text-shadow:none;pointer-events:none}
.chsq .chp svg{display:block;width:100%;height:100%;overflow:visible}
.chsq .chw{color:#fff1d5;--piece-body:#f2e4c6;--piece-light:#fff9e9;--piece-shade:#c4a77b;--piece-edge:#624b32;--piece-detail:#92744e}
.chsq .chb{color:#302d2a;--piece-body:#34312d;--piece-light:#67635b;--piece-shade:#171715;--piece-edge:#100f0e;--piece-detail:#918a7b}
.chsq .ch-detail{fill:none;stroke:var(--piece-detail);stroke-width:1.1}
.chsq::before{content:attr(data-file);position:absolute;bottom:1px;right:3px;font:700 10px/1.2 sans-serif;color:#674221;z-index:1;pointer-events:none}
.chsq::after{content:attr(data-rank);position:absolute;top:2px;left:3px;font:700 10px/1.2 sans-serif;color:#674221;pointer-events:none}
.chsq.d::before,.chsq.d::after{color:#fff0d3}
.chsq.mv::after{content:"";inset:auto;background:#163d2a66;box-shadow:0 0 0 2px #fff3}
.chsq.sel{box-shadow:inset 0 0 0 3px #f9c851}.chsq.last{background-image:linear-gradient(#e9c85b55,#e9c85b55),repeating-linear-gradient(3deg,transparent 0 5px,var(--grain) 6px,transparent 7px 12px)}
.shogi-board{border-radius:6px;box-shadow:0 5px 14px #0003}
/* Card tables: quiet felt, large readable faces, restrained motion. */
#game-surface :is(.gs-kind-poker,.gs-kind-hearts,.gs-kind-spades,.gs-kind-euchre,.gs-kind-cribbage,.gs-kind-cards8,.gs-kind-blackjack,.gs-kind-gofish,.gs-kind-war){background:radial-gradient(ellipse at top,color-mix(in srgb,#317667 22%,var(--card)),var(--sunken))}
#game-surface .pcard{box-sizing:border-box;flex-shrink:0;width:52px;height:74px;padding:6px;background:#fffcf4;border:1px solid #d8d0c0;border-radius:7px;box-shadow:0 3px 5px #0003;animation:none;justify-content:space-between;align-items:flex-start}
#game-surface .pcard .pc-r{font-size:18px;line-height:1}
#game-surface .pcard .pc-s{font-size:26px;align-self:flex-end;line-height:1}
#game-surface .pcard.big{width:62px;height:88px}
#game-surface .pcard.back{background:repeating-linear-gradient(45deg,#334c79 0 3px,#2a3d62 3px 6px);box-shadow:inset 0 0 0 3px #faf5e9,0 3px 5px #0003}
#game-surface .pcard.dim{opacity:.6;filter:saturate(.5)}
#game-surface .pcard.play:hover{transform:translateY(-4px);box-shadow:0 6px 10px #0004}
#game-surface .pk-holes .pcard{width:30px;height:42px;padding:3px}.pk-holes .pcard .pc-r{font-size:12px!important}.pk-holes .pcard .pc-s{font-size:14px!important}
.pk-comm{max-width:100%;box-sizing:border-box;gap:5px;padding:12px 8px;border:1px solid #ffffff20}
.ht-hand,.c8-hand,.gs-cardrow{gap:7px;max-width:100%;flex-wrap:wrap;padding-top:6px}
.pk-seat{padding:10px;border-radius:12px;line-height:1.6}.pk-seat.act{box-shadow:inset 0 3px var(--title)}
.bj-row{box-sizing:border-box;min-width:0;width:100%;padding:12px;line-height:2.2}.bj-card{padding:3px 8px;border:1px solid #d8d0c0;box-shadow:0 2px 3px #0002}
/* Puzzle, word, party and dice games share spacing and legible controls. */
.wordle-grid{gap:6px}.wordle-row{gap:6px}.wordle-tile{border-radius:7px;font-weight:800;box-shadow:0 2px 0 #0002}
.mm-row{gap:10px;padding:8px 12px;border-radius:10px;background:var(--card)}
.mm-peg,.mm-swatch{box-shadow:inset 0 2px 3px #fff5,inset 0 -2px 4px #0004}.mm-swatch{min-width:32px;min-height:32px}
.gs-let,.sp-bid{min-width:36px;min-height:38px;border-radius:8px}
.gs-score-chip{padding:8px 12px;border:1px solid var(--game-line);border-radius:9px;font-variant-numeric:tabular-nums}
.yz-card{width:100%;max-width:100%;border:1px solid var(--game-line);border-radius:12px;padding:8px;box-sizing:border-box;background:var(--card);overflow-x:auto}
.yz-row{grid-template-columns:112px repeat(var(--yz-n,2),58px);min-height:34px;width:max-content;min-width:100%}.yz-cell{padding:8px 0}.yz-cat{font-size:12px;background:var(--card)}
.gs-die,.liar-die,.bg-die{border-radius:10px;box-shadow:inset 0 2px 1px #fff5,0 3px 0 #0003}
/* shared "desk" seat strip: players in turn order with avatar, score/team, card count, active-turn highlight (hearts, euchre, …) */
.gs-seats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:0 auto 10px;width:100%;max-width:560px}
.gs-seat{display:flex;align-items:center;gap:7px;border:1px solid #90ac9d2e;border-radius:11px;padding:7px 9px;background:#0c211f44;transition:border-color .2s,background .2s;min-width:0}
.gs-seat.active{border-color:#efca76;background:#39563a55;box-shadow:0 0 0 1px #efca7622}
.gs-seat.me{border-color:var(--title)}
.gs-ava{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;border-radius:50%;background:#ba9c62;color:#132823;font-size:10px;font-weight:800}
.gs-seatinfo{flex:1;min-width:0}
.gs-seatname{font-size:12px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gs-seatmeta{font-size:10px;color:var(--text-dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gs-seatcount{font-size:11px;font-weight:700;color:var(--text-dim);white-space:nowrap;flex-shrink:0}
.gs-seatcount i{font-size:9px;opacity:.7}
.sg-grid{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sg-cat{font-size:12px;color:var(--text-dim);margin-bottom:4px}.sg-row{min-width:0}
.cn-grid{width:100%;max-width:520px;gap:5px}.cn-cell{font-size:clamp(9px,2cqi,12px);overflow-wrap:anywhere;min-width:0;padding:10px 3px;box-sizing:border-box}
.cah-hand,.cah-subs{align-items:stretch}.cah-white{flex:1 1 120px;min-height:100px;padding:14px;border:1px solid #d8d0c0}.cah-black{box-sizing:border-box;width:100%;line-height:1.6}
.bs-wrap{flex-wrap:wrap;justify-content:center;gap:18px;max-width:100%}.bs-label{font-size:12px;letter-spacing:.06em;text-transform:uppercase;margin-bottom:8px}.bs-grid{border:3px solid #305976;border-radius:6px;overflow:hidden;max-width:100%;box-sizing:border-box}
/* Battleship coordinate labels (A–J across, 1–10 down) — aid shot-calling + screen readers. */
.bs-grid-labeled{overflow:visible}
.bs-coord{display:flex;align-items:center;justify-content:center;font-size:min(2.4vw,11px);font-weight:600;color:var(--text-dim);min-width:14px;line-height:1}
.bs-corner{min-width:14px}
.mnc{max-width:100%;box-sizing:border-box;background:linear-gradient(130deg,#947049,#69472f);border-radius:50px;box-shadow:inset 0 2px 3px #ffffff30,0 5px 10px #0003}
.mnc-pit,.mnc-store{box-shadow:inset 0 3px 6px #0005}
.dom-half{background:#fff9eb;color:#26313c}.ar-canvas{border-radius:12px;border:1px solid var(--game-line);box-shadow:0 8px 24px #0003}
.bingo-root{box-sizing:border-box;color:var(--text)}.bingo-count,.bingo-cardh,.bingo-pmark{color:var(--text-dim)}.bingo-card{box-shadow:0 5px 12px #0003}
.ludo-board{box-shadow:0 5px 15px #0003;border:4px solid var(--elev)}
/* Picker: a browsable library rather than an unlabelled list. */
#games-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 16px 16px;max-height:min(65dvh,620px)}
#games-list .games-cat{grid-column:1/-1;margin:16px 0 2px;letter-spacing:.09em;font-weight:700}
#games-list .game-item{display:flex;box-sizing:border-box;width:100%;min-height:56px;text-align:left;color:var(--text);font:inherit;border:1px solid var(--border);background:var(--card);padding:12px;gap:10px;border-radius:12px;align-items:flex-start;min-width:0}
#games-list .game-item:hover:not(:disabled){border-color:var(--title);background:var(--elev)}
#games-list .game-meta{min-width:0;flex:1}.game-name{line-height:1.3}.game-sub{margin-top:4px}.game-desc{font-size:12px;line-height:1.45;color:var(--text-dim);margin-top:7px}.game-launch{font-size:18px;color:var(--title);margin-left:auto}.game-ico{width:38px;height:38px;flex-basis:38px;border-radius:11px;background:var(--elev)}
.games-empty{grid-column:1/-1;padding:32px 12px;text-align:center;color:var(--text-dim);line-height:1.6}
/* The game region owns scrolling: long rounds and wide boards remain reachable. */
@media(min-width:861px){body.in-game:not(.wp-mode) #game-surface{overflow:auto;padding:14px;scrollbar-width:thin}body.in-game:not(.wp-mode) #game-surface .gs-layout{flex:0 0 auto}body.in-game:not(.wp-mode) #game-surface .gs-board{justify-content:flex-start;align-items:center}
/* An always-visible thin scrollbar: a tall table/slot in the in-game surface scrolls, but Mac overlay scrollbars are invisible until you scroll, so the spin button / paytable / rack looked "hidden behind the dock" when they were just below the fold. Make the scroll discoverable. */
body.in-game:not(.wp-mode) #game-surface::-webkit-scrollbar{width:11px;height:11px}
body.in-game:not(.wp-mode) #game-surface::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--text) 26%,transparent);border-radius:7px;border:3px solid transparent;background-clip:content-box}
body.in-game:not(.wp-mode) #game-surface::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--text) 42%,transparent);background-clip:content-box}
body.in-game:not(.wp-mode) #game-surface::-webkit-scrollbar-track{background:transparent}}
@container game-room (max-width:640px){#game-surface .gs-layout{flex-direction:column;align-items:stretch}#game-surface .gs-side{width:100%;max-width:none;flex-basis:auto}#game-surface .gs-board{width:100%;overflow-x:auto;padding:12px}#game-surface .gs-players{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#game-surface .gs-movelog{max-height:140px}}
@container game-room (max-width:360px){.sg-grid{grid-template-columns:1fr}#game-surface .pcard{width:43px;height:64px}.pk-comm{gap:3px;padding:10px 5px}.gs-head .gs-name{font-size:15px}.gs-head .gs-turn{font-size:11px}}
@media(max-width:560px){#games-list{grid-template-columns:1fr}#game-surface{padding:10px}.gs-btn{touch-action:manipulation}}
@media(prefers-reduced-motion:reduce){#game-surface *,#game-surface *::before,#game-surface *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Narrow tables keep all pits and waters on screen without tiny hit targets. */
.mnc{width:min(100%,480px);padding:12px;gap:10px}.mnc-mid{flex:1;min-width:0}.mnc-row{gap:5px}.mnc-pit{flex:1;min-width:0;width:auto;height:auto;aspect-ratio:1;font-size:14px}.mnc-store{flex:0 0 34px;width:34px;height:116px}
.bs-side{width:min(100%,280px);min-width:0}.bs-grid{width:100%}.bs-cell{min-height:22px;font-size:13px}
/* Drawing tools need room for fingers, and the canvas keeps its neutral paper. */
#sk-canvas{box-shadow:0 3px 12px #0002}
#games-modal>.modal{width:min(720px,calc(100vw - 24px));border-radius:16px}#games-modal .groups-search{padding:14px 16px}#games-q{min-height:42px;font-size:16px}
#game-surface .shogi-wrap{width:min(100%,480px);box-sizing:border-box}#game-surface .sh-files{width:calc(100% - 19px)}#game-surface .shogi-board{width:calc(100% - 19px)}
#game-surface .sk-tools{gap:8px;flex-wrap:wrap}#game-surface .sk-tools :is(button,.dt-swatch,.sk-size){min-width:30px;min-height:30px;border-radius:7px}#sk-guess{font-size:16px;min-height:40px;box-sizing:border-box}
@media(min-width:861px){body.in-game:not(.wp-mode) #game-surface .mono-root{display:block;width:100%;height:auto}body.in-game:not(.wp-mode) #game-surface .mono-board{width:100%;height:auto;max-height:none;box-sizing:border-box}}
/* Keep the checked king unmistakable over both board colors and last-move tint. */
.chsq.check{background:#d86b59;background-image:none;box-shadow:inset 0 0 0 3px #97382c}
/* BattleChat: the supplied 3D arena, isolated inside the existing chess match. */
.battle-chess{width:100%;min-width:0;box-sizing:border-box}.battle-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px}.battle-brand{margin-right:auto;font-size:17px;font-weight:800;letter-spacing:-.025em;color:var(--text)}.battle-brand small{display:block;font-size:9px;letter-spacing:.13em;font-weight:600;color:var(--text-dim);margin-top:4px}.battle-viewport{position:relative;width:100%;height:clamp(320px,52vh,640px);overflow:hidden;border:1px solid #586481;border-radius:12px;background:#080a10}.battle-canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.battle-canvas:active{cursor:grabbing}.battle-status{position:absolute;left:12px;bottom:12px;color:#fff3c5;background:#10151edd;padding:6px 10px;border-radius:8px;pointer-events:none;font-size:12px}.battle-status:empty{display:none}.battle-help{font-size:12px;line-height:1.5;color:var(--text-dim);margin:9px 0 0}.battle-chess [hidden],.gs-kind-chess>.chess-board[hidden]{display:none!important}
#game-surface .gs-kind-chess{width:100%;padding:12px}
@container game-room (max-width:400px){.battle-viewport{height:360px}.battle-brand{width:100%}.battle-toolbar .gs-btn{font-size:12px;padding:8px 10px}}
/* Checkers shares the battle camera controls and keeps the native board as fallback. */
.gs-kind-checkers>.gs-checkers[hidden]{display:none!important}
#game-surface .gs-kind-checkers{width:100%;padding:12px}

.games-modes{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}.games-modes button{font:600 13px Inter,system-ui,sans-serif;color:var(--text);border:1px solid var(--border);background:var(--card);border-radius:10px;padding:10px 15px;cursor:pointer}.games-modes [aria-pressed=true]{background:var(--accent,#b695fa);color:#21192e}.solo-launch{padding:30px;text-align:center}.game-item.solo-item .game-ico{background:linear-gradient(145deg,#263b4e,#414066);color:#e9d497}.game-item.solo-item{border-left:3px solid #a0cbbb}

/* Game-specific vector artwork; names provide the accessible labels. */
.game-art{display:block;width:48px;height:48px;flex:none;overflow:hidden;border-radius:11px}
#games-list .game-ico.game-ico-art{width:48px;height:48px;flex:0 0 48px;background:transparent;border-radius:11px;box-shadow:0 3px 9px #0002}
#games-list .game-ico-art .game-art{width:100%;height:100%}
.invite-txt>.game-art{display:inline-block;width:30px;height:30px;vertical-align:middle;margin-right:6px;border-radius:7px}
.gs-name>.game-art{display:inline-block;width:30px;height:30px;vertical-align:middle;margin-right:9px;border-radius:7px}
@media(max-width:420px){#games-list .game-ico.game-ico-art{width:42px;height:42px;flex-basis:42px}}

/* Illustrated catalog: clearer hierarchy, without moving existing launch controls. */
#games-list .game-item{box-shadow:0 3px 12px #00000012;transition:border-color .15s,background-color .15s}
#games-list .game-item:focus-visible{outline:3px solid var(--title,#c3a8f5);outline-offset:3px}
#games-list .game-ico-art{align-self:center}
#games-list .game-name{font-weight:700;letter-spacing:-.015em;line-height:1.35}
#games-list .game-desc{line-height:1.5}
@media(prefers-reduced-motion:reduce){#games-list .game-item{transition:none}}

@media(min-width:861px){body.in-game:not(.wp-mode):has(.sports-shell,.solo-immersive) .center{grid-template-columns:minmax(0,1fr) clamp(260px,25vw,360px);grid-template-rows:auto auto minmax(0,1fr)}body.in-game:not(.wp-mode):has(.sports-shell,.solo-immersive) #cam-dock{height:calc(var(--game-cam-h,64px) + 12px)!important;max-height:calc(var(--game-cam-h,64px) + 12px)!important;min-height:0!important}body.in-game:not(.wp-mode):has(.sports-shell,.solo-immersive) #cam-dock .cam-tile{height:var(--game-cam-h,64px)!important}}

/* Card tables share readable faces, stable hand rows and keyboard-visible actions. */
#game-surface :is(.gs-kind-hearts,.gs-kind-spades,.gs-kind-euchre,.gs-kind-cribbage,.gs-kind-poker,.gs-kind-cards8,.gs-kind-blackjack,.gs-kind-gofish,.gs-kind-war,.gs-kind-higherlower){box-sizing:border-box;background:radial-gradient(ellipse at top,#244d49,#152a32 75%);border:1px solid #6e928459;border-radius:16px;padding:clamp(12px,2cqw,24px);gap:14px;min-width:0}
#game-surface .pcard{display:flex;flex-direction:column;font-family:Georgia,serif;text-align:left;color:#172631;line-height:1;position:relative}
#game-surface .pcard.red{color:#b52643}
#game-surface button.pcard{cursor:pointer;appearance:none;touch-action:manipulation}
#game-surface .pcard.dim{opacity:.85;filter:none}
#game-surface .pcard.sel-card{outline:3px solid #f3d185;outline-offset:1px;transform:translateY(-5px)}
#game-surface :is(.pcard,.uno-card,.gf-card,.cah-white,.sp-bid):focus-visible{outline:3px solid #f3d185;outline-offset:3px;z-index:3}
#game-surface :is(.ht-hand,.c8-hand,.gf-hand){display:flex;justify-content:center;flex-wrap:wrap;gap:8px;padding:12px 4px;min-height:84px;max-width:100%;box-sizing:border-box}
#game-surface .ht-trick{min-height:106px;max-width:100%;flex-wrap:wrap;gap:12px}
#game-surface .ht-play{min-width:0;max-width:100px}.ht-who{overflow-wrap:anywhere}
#game-surface .pk-comm{flex-wrap:wrap;max-width:100%;box-sizing:border-box}
#game-surface .pk-acts{flex-wrap:wrap;gap:8px}#game-surface .pk-raise{min-width:80px;width:110px;box-sizing:border-box}
#game-surface .sp-bids{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}#game-surface .sp-bid{min-width:40px;min-height:40px}
#game-surface button.cah-white{font:inherit;text-align:left;color:#18232c;cursor:pointer;touch-action:manipulation}
@media(prefers-reduced-motion:reduce){#game-surface :is(.pcard,.uno-card,.cah-white){animation:none;transition:none}}
/* --- Cards vs Humanity — "All Bad Cards" look: white theme, big cards, players panel, fanned hand --- */
#game-surface .cah2{font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;background:#f3f1ec;color:#111;border-radius:12px;padding:16px;min-height:360px;box-sizing:border-box}
#game-surface .cah2-stage{display:grid;grid-template-columns:minmax(240px,320px) 1fr minmax(190px,230px);gap:16px;align-items:start}
#game-surface .cah2 .cah-black{background:#0a0a0a;color:#fff;border-radius:18px;padding:22px 20px 40px;position:relative;box-shadow:0 10px 26px #0003;font-weight:800;font-size:clamp(17px,2vw,23px);line-height:1.28;min-height:260px;margin:0}
#game-surface .cah2 .cah-black .cah-black-txt{white-space:pre-wrap}
#game-surface .cah2 .cah-black .cah-brand{position:absolute;left:20px;bottom:14px;font-size:11px;font-weight:700;color:#8a8a8a}
#game-surface .cah2-blank{display:inline-block;min-width:92px;border-bottom:3px solid #fff;margin:0 3px}
#game-surface .cah2-pickinfo{margin:14px 2px 6px;display:flex;flex-direction:column;gap:1px}
#game-surface .cah2-pickinfo b{font-size:19px;font-weight:800}
#game-surface .cah2-pickinfo span{font-size:12px;color:#8a857b}
#game-surface .cah2-trackhdr{font-size:11px;font-weight:800;letter-spacing:.5px;color:#9a958c;text-transform:uppercase;margin:8px 2px 5px}
#game-surface .cah2-track{display:flex;flex-direction:column;gap:5px}
#game-surface .cah2-trackrow{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e3ddd3;border-radius:9px;padding:6px 10px;font-size:13px;color:#333}
#game-surface .cah2-trackrow.in{background:#eef7ef;border-color:#bfe0c4}
#game-surface .cah2-trackname{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#game-surface .cah2-trackstat{font-weight:800;color:#9a958c}
#game-surface .cah2-trackrow.in .cah2-trackstat{color:#3a9d5a}
#game-surface .cah2-av{display:inline-grid;place-items:center;flex-shrink:0;width:26px;height:26px;border-radius:50%;color:#fff;font-size:12px;font-weight:800}
#game-surface .cah2-center{display:flex;flex-direction:column;align-items:center;gap:12px;min-height:260px;padding-top:28px;text-align:center}
#game-surface .cah2-centerhint{color:#9a958c;font-size:15px;font-weight:600;max-width:320px}
#game-surface .cah2-win{font-size:20px;font-weight:800;color:#111}
#game-surface .cah2-reveal{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
#game-surface .cah2-next{margin-top:4px;background:#111;color:#fff;border:0;border-radius:9px;padding:11px 20px;font-weight:800;font-size:15px;cursor:pointer}
#game-surface .cah2-players{background:#fff;border:1px solid #e6e0d6;border-radius:12px;padding:10px 8px;box-shadow:0 3px 10px #0001}
#game-surface .cah2-ptitle{font-size:11px;font-weight:800;letter-spacing:1px;color:#9a958c;padding:4px 8px 8px}
#game-surface .cah2-prow{display:flex;align-items:center;gap:9px;padding:8px;border-radius:9px;border:1px solid transparent}
#game-surface .cah2-prow.czar{background:#eef4fb;border-color:#b9d4f1}
#game-surface .cah2-prow.me{box-shadow:inset 3px 0 0 #111}
#game-surface .cah2-pinfo{flex:1;display:flex;flex-direction:column;min-width:0}
#game-surface .cah2-pname{font-weight:700;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#game-surface .cah2-czar{font-size:10px;font-weight:800;letter-spacing:.5px;color:#2b6fc0}
#game-surface .cah2-sub{font-size:11px;color:#3a9d5a;font-weight:700}
#game-surface .cah2-pts{font-weight:800;color:#e8552b;font-size:17px;font-variant-numeric:tabular-nums;text-align:right;line-height:1}
#game-surface .cah2-pts small{display:block;font-size:8px;color:#b9b2a6;letter-spacing:.5px}
#game-surface .cah2 .cah-white{flex:0 0 150px;width:150px;min-height:186px;padding:16px 15px 34px;border-radius:15px;background:#fff;border:0;box-shadow:0 5px 14px #00000026;color:#111;font-weight:800;font-size:16px;line-height:1.22;text-align:left;position:relative;transition:transform .13s,box-shadow .13s;box-sizing:border-box}
#game-surface .cah2 button.cah-white.play{cursor:pointer}
#game-surface .cah2 button.cah-white.play:hover{transform:translateY(-6px);box-shadow:0 14px 26px #0003}
#game-surface .cah2 .cah-white::after{content:"Cards vs Humanity";position:absolute;left:15px;bottom:12px;font-size:9px;font-weight:700;color:#bdb8ad}
#game-surface .cah2 .cah-white.mine{background:#f3f7f3}
#game-surface .cah2 .cah-white.winner{box-shadow:0 0 0 3px #efb825,0 8px 18px #0003}
#game-surface .cah2 .cah-white .cah-by{position:absolute;right:13px;bottom:11px;font-size:11px;font-weight:800;color:#8a857b}
#game-surface .cah2 .cah-white .cah-plus{color:#c0392b}
#game-surface .cah2-handwrap{margin-top:14px;padding-top:8px;border-top:1px solid #e3ddd3;display:flex;flex-direction:column;align-items:center}
#game-surface .cah2-fan{display:flex;justify-content:center;align-items:flex-end;min-height:214px;padding:14px 10px 0}
#game-surface .cah2-fancard{flex:0 0 auto;margin:0 -24px;transform-origin:bottom center;transform:rotate(calc((var(--i) - (var(--n) - 1)/2) * 4deg));transition:transform .14s,box-shadow .14s;z-index:1}
#game-surface .cah2-fancard:hover{transform:rotate(0deg) translateY(-24px) scale(1.05);z-index:9;box-shadow:0 18px 32px #00000038}
#game-surface .cah2-submitinfo{margin-top:6px;font-size:13px;color:#8a857b;font-weight:600}
#game-surface .cah2-lobby{max-width:560px;margin:0 auto}
#game-surface .cah2-logo{font-size:26px;font-weight:900;text-align:center;margin:6px 0 4px}
#game-surface .cah2-bot{font-size:12px;font-weight:700;color:#e8552b;background:#fff;border:1px solid #f0c3b4;border-radius:20px;padding:2px 9px;vertical-align:middle}
#game-surface .cah2-lobbyhdr{font-size:11px;font-weight:800;letter-spacing:1px;color:#9a958c;text-transform:uppercase;margin:14px 2px 7px}
#game-surface .cah2-lobbyplayers{display:flex;flex-wrap:wrap;gap:8px}
#game-surface .cah2-lobbyrow{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e6e0d6;border-radius:22px;padding:5px 12px 5px 5px;font-weight:700;font-size:14px}
#game-surface .cah2-tag{font-size:10px;font-weight:800;color:#2b6fc0;background:#eef4fb;border-radius:10px;padding:1px 7px}
#game-surface .cah2-lobbyfoot{display:flex;justify-content:space-between;align-items:center;margin-top:20px;gap:12px}
#game-surface .cah2-foothint{color:#9a958c;font-size:13px}
#game-surface .cah2-start{background:#111;color:#fff;border:0;border-radius:9px;padding:12px 22px;font-weight:800;font-size:15px;cursor:pointer}
#game-surface .cah2-start:disabled{opacity:.4;cursor:default}
@media(max-width:760px){
 #game-surface .cah2-stage{grid-template-columns:1fr;gap:12px}
 #game-surface .cah2 .cah-black{min-height:140px;padding:18px 16px 34px}
 #game-surface .cah2-players{order:-1}
 #game-surface .cah2-center{min-height:auto;padding-top:4px}
 #game-surface .cah2-fancard{margin:0 -30px;transform:rotate(calc((var(--i) - (var(--n) - 1)/2) * 3deg))}
 #game-surface .cah2-fancard:hover{transform:translateY(-16px) scale(1.03)}
 #game-surface .cah2 .cah-white{flex-basis:124px;width:124px;min-height:158px;font-size:14px}
}
/* CAH lobby (Decks/Rules/Settings tabs), round timer, reboot, winner's-pick */
#game-surface .cah2-lhead{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:6px}
#game-surface .cah2-logo2{font-size:24px;font-weight:900}
#game-surface .cah2-lmeta{font-size:13px;font-weight:700;color:#9a958c}
#game-surface .cah2-tabs{display:flex;gap:22px;border-bottom:1px solid #e3ddd3;margin-bottom:14px}
#game-surface .cah2-tab{background:none;border:0;border-bottom:3px solid transparent;padding:8px 2px;font:inherit;font-weight:700;font-size:15px;color:#9a958c;cursor:pointer;margin-bottom:-1px}
#game-surface .cah2-tab.on{color:#111;border-bottom-color:#111}
#game-surface .cah2-tabbody{min-height:170px}
#game-surface .cah2-shdr{font-size:11px;font-weight:800;letter-spacing:1px;color:#aaa49a;margin:12px 0 2px}
#game-surface .cah2-srow,#game-surface .cah2-rrow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #eee7db}
#game-surface .cah2-slabel b{display:block;font-size:16px;font-weight:800}
#game-surface .cah2-slabel span{font-size:12px;color:#9a958c}
#game-surface .cah2-stepper{display:flex;align-items:center;border:1px solid #ddd6ca;border-radius:9px;overflow:hidden}
#game-surface .cah2-step{background:#faf8f3;border:0;width:38px;height:40px;font-size:20px;font-weight:700;color:#333;cursor:pointer}
#game-surface .cah2-step:disabled{color:#ccc;cursor:default}
#game-surface .cah2-stepval{min-width:54px;text-align:center;font-weight:800;font-size:15px;font-variant-numeric:tabular-nums}
#game-surface .cah2-toggle{position:relative;width:46px;height:26px;border-radius:14px;border:0;background:#cfc9bd;cursor:pointer;transition:background .15s;flex-shrink:0}
#game-surface .cah2-toggle.on{background:#111}
#game-surface .cah2-toggle i{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:left .15s}
#game-surface .cah2-toggle.on i{left:23px}
#game-surface .cah2-toggle:disabled{opacity:.5;cursor:default}
#game-surface .cah2-rrow.soon{opacity:.55}
#game-surface .cah2-soon{font-size:10px;font-weight:800;background:#9a958c;color:#fff;border-radius:10px;padding:1px 7px;vertical-align:middle;letter-spacing:.3px}
#game-surface .cah2-rhint{font-size:13px;color:#9a958c;margin-bottom:4px}
#game-surface .cah2-deckbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
#game-surface .cah2-dbtn{background:#fff;border:1px solid #d9d2c6;border-radius:20px;padding:7px 14px;font:inherit;font-weight:700;font-size:13px;cursor:pointer}
#game-surface .cah2-dbtn:hover{background:#f2efe8}
#game-surface .cah2-decklist{border:1px solid #e6e0d6;border-radius:10px;overflow:hidden;max-height:260px;overflow-y:auto}
#game-surface .cah2-deckrow{display:flex;align-items:center;gap:10px;padding:11px 14px;border-bottom:1px solid #eee7db;cursor:pointer;font-size:14px}
#game-surface .cah2-deckrow:last-child{border-bottom:0}
#game-surface .cah2-deckrow.on{background:#fbfaf6}
#game-surface .cah2-deckrow b{flex:0 1 auto}
#game-surface .cah2-check{display:inline-grid;place-items:center;width:20px;height:20px;border:2px solid #cfc9bd;border-radius:5px;font-size:13px;font-weight:900;color:#fff;flex-shrink:0}
#game-surface .cah2-deckrow.on .cah2-check{background:#111;border-color:#111}
#game-surface .cah2-dbot{font-size:12px}
#game-surface .cah2-dcount{margin-left:auto;font-size:12px;color:#aaa49a;font-weight:600;white-space:nowrap}
#game-surface .cah2-clabel{display:block;font-weight:800;font-size:13px;margin:10px 0 4px}
#game-surface .cah2-ctext{width:100%;min-height:92px;box-sizing:border-box;border:1px solid #d9d2c6;border-radius:9px;padding:10px;font:inherit;font-size:13px;resize:vertical}
#game-surface .cah2-lobbyfoot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;flex-wrap:wrap}
#game-surface .cah2-footbtns{display:flex;gap:10px;align-items:center}
#game-surface .cah2-ghost{background:#fff;border:1px solid #d9d2c6;border-radius:9px;padding:11px 16px;font:inherit;font-weight:700;cursor:pointer}
#game-surface .cah2-ghost:disabled{opacity:.4;cursor:default}
#game-surface .cah2-tag.bot{color:#e8552b;background:#fdeee8}
#game-surface .cah2-timer{height:5px;background:#e3ddd3;border-radius:3px;overflow:hidden;margin:-6px 0 10px}
#game-surface .cah2-timerfill{height:100%;width:100%;background:linear-gradient(90deg,#e8552b,#efb825);transform-origin:left}
@keyframes cah2-timershrink{from{width:100%}to{width:0}}
#game-surface .cah2-blackpick{flex:0 0 150px;width:150px;min-height:150px;cursor:pointer;font-size:15px}
#game-surface .cah2-blackpick:hover{transform:translateY(-6px);box-shadow:0 14px 26px #0004}
#game-surface .cah2-submitrow{display:flex;align-items:center;gap:14px;margin-top:6px;flex-wrap:wrap;justify-content:center}
#game-surface .cah2-reboot{background:#fff;border:1px solid #e0b4a4;color:#c0392b;border-radius:8px;padding:8px 14px;font:inherit;font-weight:700;font-size:13px;cursor:pointer}
#game-surface .cah2-reboot:hover{background:#fdeee8}

/* Standard numbered-card pips and distinct mirrored court artwork. */
#game-surface .pcard{width:68px;height:98px;padding:5px}
#game-surface .pcard.big{width:80px;height:116px}
#game-surface .pcard .pc-r{position:absolute;top:5px;left:5px;font-size:17px;line-height:1;white-space:nowrap}
#game-surface .pc-corner-suit{position:absolute;top:5px;left:27px;font-size:17px;line-height:1}
#game-surface .pc-art{position:absolute;top:25px;left:12%;width:76%;height:calc(100% - 31px);object-fit:contain;pointer-events:none}
#game-surface .pk-holes .pcard{width:48px;height:68px}
#game-surface .pk-holes .pc-art{top:19px;height:calc(100% - 23px)}
@container game-room (max-width:360px){#game-surface .pcard{width:54px;height:80px}#game-surface .pcard .pc-r{font-size:14px}#game-surface .pc-art{top:22px;height:calc(100% - 27px)}}
/* World Monopoly: original tabletop treatment. Scoped to this board. */
.mono-estate{--estate-ink:#203c39;--estate-gold:#d9b87c}
.mono-estate .mono-board{padding:8px;gap:3px;background:repeating-linear-gradient(8deg,#654532 0,#76533b 3px,#614330 5px,#7c5940 9px);border:2px solid #ab8153;border-radius:17px;box-shadow:0 8px 0 #36281f,0 15px 28px #0005,inset 0 0 0 2px #e2bf8155;isolation:isolate}
.mono-estate .mono-sp{appearance:none;padding:0;font:inherit;text-align:center;color:var(--estate-ink);border:1px solid #a2a38a;border-radius:3px;background:linear-gradient(145deg,#fff9df,#e8e6cf);box-shadow:inset 0 1px 0 #fff,0 2px 1px #122c2944;transition:box-shadow .15s,border-color .15s}
.mono-estate .mono-sp .mono-nm,.mono-estate .mono-sp .mono-price{color:#203c39;text-shadow:none}
.mono-estate .mono-sp .mono-price{font-weight:650;color:#4d6359}
.mono-estate .mono-sp .mono-ic{filter:brightness(.65);text-shadow:none}
.mono-estate .mono-band{box-shadow:inset 0 1px 0 #fff7,inset 0 -2px 0 #0002}
.mono-estate .mono-sp.mono-owned .mono-band,.mono-estate .mono-sp.mono-owned .mono-lab{position:absolute}
.mono-estate .mono-sp.mono-owned::after{opacity:.1}
.mono-estate .mono-sp.mono-owned{border-color:var(--own);box-shadow:inset 0 0 0 1px var(--own),0 2px 1px #122c2944}
.mono-estate .mono-own{min-height:2px;box-shadow:none}
.mono-estate .mono-clickable{cursor:pointer}
.mono-estate .mono-clickable:hover,.mono-estate .mono-sp:focus-visible{outline:3px solid #e7ad43;outline-offset:-3px;z-index:5;filter:brightness(1.04)}
.mono-estate .mono-corner{background:radial-gradient(ellipse at 30% 20%,#46685a,#244b44);border-color:#76917a}
.mono-estate .mono-corner .mono-nm{color:#f8ecd0}.mono-estate .mono-corner .mono-ic{filter:none}
.mono-estate .mono-c-go{background:linear-gradient(135deg,#497d5d,#285246)}
.mono-estate .mono-c-jail,.mono-estate .mono-c-gotojail{background:linear-gradient(135deg,#82705a,#514e45)}
.mono-estate .mono-center{position:relative;justify-content:flex-start;gap:7px;background:radial-gradient(ellipse at top,#284f48,#163d36 75%);border:1px solid #93a786;border-radius:6px;box-shadow:inset 0 0 0 3px #c5bc8720,inset 0 0 40px #082c2833;color:#f2ecd8;padding:10px;scrollbar-width:thin;scrollbar-color:#728d77 #173e37;overscroll-behavior:contain}
.mono-estate .mono-vista{position:relative;width:100%;height:clamp(48px,15cqw,112px);flex:0 0 auto;overflow:hidden;border-radius:5px;background:#365b50}
.mono-vista img{width:100%;height:100%;object-fit:cover;display:block}
.mono-vista>span{position:absolute;bottom:0;left:0;right:0;padding:6px;background:linear-gradient(transparent,#163d36);color:#f2deb3;font-size:clamp(8px,1.5cqw,11px);font-weight:750;letter-spacing:.2em}
.mono-estate .mono-titlerow{width:100%;justify-content:space-between;border-bottom:1px solid #e4cf9c33;padding-bottom:6px}
.mono-estate .mono-title{color:#f5e4b9;letter-spacing:.03em;font-size:clamp(13px,2.8cqw,22px)}
.mono-estate .mono-players{width:100%;gap:5px}
.mono-estate .mono-prow{border:1px solid #a3b19030;border-radius:7px;padding:7px 8px;background:#102f2b99;box-shadow:inset 0 1px #ffffff07}
.mono-estate .mono-prow.on{background:#315447;border-color:#dfc189;box-shadow:inset 3px 0 #dfc189}
.mono-estate .mono-prow>b{color:#f5dfaa;font-variant-numeric:tabular-nums}
.mono-estate .mono-pdot{box-shadow:inset 0 2px 2px #fff8,inset 0 -2px 2px #0005,0 2px 2px #0005;border:1px solid #fff8}
.mono-estate .mono-toks{inset:auto 2% 18%;gap:3cqmin;min-height:0;align-items:flex-end}
.mono-estate .mono-tok{position:relative;width:32cqmin;height:38cqmin;min-width:7px;min-height:9px;padding:0 0 10%;border-radius:46% 46% 28% 28%;border:1px solid #fff9;background-image:radial-gradient(ellipse at 30% 17%,#ffffffaa,transparent 48%),linear-gradient(90deg,#0003,transparent 40%,#0004);background-blend-mode:screen,normal;box-shadow:inset 0 -4px #0003,inset 1px 1px #fff8,2px 3px 1px #09272399;overflow:visible;animation:none;transform:translateY(-1px)}
.mono-estate .mono-tok::before{content:"";position:absolute;bottom:-2px;left:-8%;width:116%;height:17%;border-radius:50%;background:currentColor;border:1px solid #ffffff70;box-shadow:0 2px 2px #0006;z-index:-1}
.mono-estate .mono-tok.cur{width:36cqmin;height:43cqmin;outline:2px solid #ffecad;outline-offset:2px;box-shadow:inset 0 -4px #0003,inset 1px 1px #fff8,0 4px 7px #0006;animation:none}
.mono-estate .mono-toks:has(:nth-child(5)) .mono-tok{width:21cqmin;height:26cqmin}
.mono-estate .mono-toks:has(:nth-child(5)) .mono-tok.cur{outline-width:1px;outline-offset:1px}
.mono-estate .mono-skinsw{width:30px;height:35px;min-width:30px;padding:0 0 7px;flex-shrink:0}
.mono-estate .mono-hz:not(:empty){display:flex;gap:2px;align-items:flex-end;padding:2px;background:#f4edccdd;border:0;border-radius:3px;box-shadow:0 1px 2px #0003;top:3%;right:3%}
.mono-building{position:relative;display:inline-block;width:clamp(5px,12cqmin,12px);height:clamp(6px,15cqmin,15px);background:linear-gradient(90deg,#6baf83 65%,#377655 65%);border:1px solid #2c6850;border-radius:1px;box-shadow:1px 2px 1px #173d3c44;margin-top:3px}
.mono-building::before{content:"";position:absolute;left:-2px;right:-2px;top:-4px;height:5px;background:#305e4e;clip-path:polygon(50% 0,100% 70%,85% 100%,15% 100%,0 70%)}
.mono-building i{position:absolute;left:28%;bottom:0;width:28%;height:45%;background:#eff1bc}
.mono-building.hotel{width:clamp(9px,22cqmin,20px);background:linear-gradient(90deg,#d88c70 65%,#a95049 65%);border-color:#994a41}.mono-building.hotel::before{background:#784841}
.mono-mortgage-tag{font:750 9px/1.2 sans-serif;color:#795537}
.mono-estate .mono-mortd{opacity:1;filter:none;background:repeating-linear-gradient(135deg,#e0ddcc,#e0ddcc 6px,#d6d2c3 6px,#d6d2c3 7px)}
.mono-estate .mono-mortd .mono-lab{opacity:.65}
.mono-estate .mono-d3{flex:0 0 auto;padding:8px;width:48px;height:48px;box-sizing:border-box;border-color:#dfcba4;background:linear-gradient(135deg,#fffbea,#eee0bc);box-shadow:3px 5px 0 #a78e63,5px 8px 10px #0005;will-change:auto}
.mono-estate .mono-dice{gap:16px;margin:6px 0 12px}
.mono-estate .mono-auction,.mono-estate .mono-settings,.mono-estate .mono-build{background:#173c35;border-color:#8ea18366;border-radius:8px}
.mono-estate .gs-btn{border-radius:7px;border-color:#d3b97f;background:linear-gradient(#efd7a2,#d5b779);color:#263c34;text-shadow:none;box-shadow:0 2px 0 #977848;font-weight:750}
.mono-estate .gs-btn.ghost{background:#264b40;border-color:#728e75;color:#f5e9c8;box-shadow:none}
.mono-estate .gs-btn:disabled{opacity:.45;box-shadow:none}
.mono-estate .mono-turn{color:#f9dda0}.mono-estate .mono-last,.mono-estate .gs-hint{color:#d0dcca}
.mono-estate .mono-sel{background:#193d35;color:#f4e6c7;border-color:#78917b}
.mono-cardwrap .mono-card{position:relative;color:#263e38;background:linear-gradient(125deg,#fff9e6,#e8e2cb);border:2px solid #d4bd88;border-radius:12px;box-shadow:0 24px 80px #0009;max-height:85dvh;overflow:auto}
.mono-cardwrap .mc-title{color:#203e36;padding-right:28px}.mono-cardwrap .mc-row{border-color:#496b5422}.mono-cardwrap .mc-row:nth-child(even){background:#406a4910}
.mono-cardwrap .mc-head,.mono-cardwrap .mc-owner,.mono-cardwrap .mc-foot{color:#526750;background:#496d4b0d}.mono-cardwrap .mc-foot small{color:#526750}
.mono-cardwrap .mc-band{height:16px;box-shadow:inset 0 2px #fff5,inset 0 -2px #0002}
.mc-close{position:absolute;top:22px;right:8px;width:36px;height:36px;border:1px solid #b1b49b;border-radius:50%;background:#f7f0da;color:#284238;font:24px/1 sans-serif;cursor:pointer}
.mc-close:focus-visible{outline:3px solid #906e2e;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.mono-estate *{animation:none!important;transition:none!important}}
@media(max-width:600px){.mono-estate .mono-board{padding:4px;gap:2px}.mono-estate .mono-center{padding:6px}.mono-estate .mono-vista{height:50px}.mono-estate .mono-d3{width:36px;height:36px;padding:6px}.mono-estate .mono-prow{padding:5px}.mono-estate .mono-skinsw{width:25px;height:30px;min-width:25px}}
/* Monopoly fits the allocated chat/game cell, including its frame and controls. */
body #game-surface:has(.mono-root.mono-estate){box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;height:min(660px,65dvh);max-height:65dvh;min-height:0;min-width:0;padding:6px;overflow:hidden;scrollbar-gutter:auto}
body #game-surface:has(.mono-root.mono-estate) .gs-head{padding-bottom:5px;margin-bottom:5px;gap:4px 8px;flex:0 0 auto}
body #game-surface:has(.mono-root.mono-estate) .gs-layout{display:flex;flex-direction:row;flex:1 1 0;min-height:0;min-width:0;width:100%;gap:0;align-items:stretch}
body #game-surface:has(.mono-root.mono-estate) .gs-side{display:none}
body #game-surface:has(.mono-root.mono-estate) .gs-board{position:relative;flex:1 1 0;width:100%;min-width:0;min-height:0;padding:0;border:0;background:none;overflow:hidden}
body #game-surface:has(.mono-root.mono-estate) .mono-root{position:absolute;inset:4px 8px 14px;display:grid;place-items:center;width:auto;height:auto;max-width:none;min-width:0;min-height:0;margin:0;container:monopoly-space / size}
body #game-surface:has(.mono-root.mono-estate) .mono-board{box-sizing:border-box;width:min(100cqw,100cqh);height:min(100cqw,100cqh);max-width:100%;max-height:100%;min-width:0;min-height:0;flex:none}
body #game-surface:has(.mono-root.mono-estate) .mono-center{box-sizing:border-box;min-height:0;overflow:auto;justify-content:flex-start;overscroll-behavior:contain}
body #game-surface:has(.mono-root.mono-estate) .mono-center>*{flex-shrink:0}
body #game-surface:has(.mono-root.mono-estate) .mono-players{flex-shrink:1;min-height:36px;max-height:32%;overflow:auto;overscroll-behavior:contain}
body #game-surface:has(.mono-root.mono-estate)>.game-pending{flex:0 0 auto;max-height:20%;overflow:auto}
@media(min-width:861px){
 body.in-game:not(.wp-mode):has(.mono-root) .center{grid-template-columns:minmax(0,1fr) var(--game-chat-w,340px);grid-template-rows:auto auto minmax(0,1fr)}
 body.in-game:not(.wp-mode) #game-surface:has(.mono-root.mono-estate){height:100%;max-height:100%;min-height:0;padding:6px;overflow:hidden}
}
@container monopoly-space (max-height:520px){
 .mono-estate .mono-vista{display:none}.mono-estate .mono-center{padding:5px;gap:4px}.mono-estate .mono-prow{padding:4px 5px;font-size:12px}.mono-estate .mono-d3{width:32px;height:32px;padding:5px}.mono-estate .mono-dice{gap:10px;margin:4px 0 7px}
}
@container monopoly-space (max-width:520px){
 .mono-estate .mono-vista{display:none}.mono-estate .mono-center{padding:5px;gap:4px}.mono-estate .mono-prow{padding:4px 5px;font-size:12px}.mono-estate .mono-board{padding:4px;gap:2px}.mono-estate .mono-d3{width:32px;height:32px;padding:5px}.mono-estate .mono-dice{gap:10px;margin:4px 0 7px}
}
/* Country landscapes and explicit ownership — property group bands keep their own role. */
.mono-estate .mono-landscape{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;filter:saturate(1.18);z-index:0}
.mono-estate .mono-scenic .mono-lab{z-index:2}
.mono-estate .mono-scenic .mono-txt{background:#fffdebef;border-radius:2px;padding:1px 2px;box-shadow:0 1px 3px #0004}
.mono-estate .mono-scenic .mono-flag{filter:drop-shadow(0 1px 2px #0009)}
.mono-estate .mono-scenic .mono-band{z-index:3;box-shadow:0 0 0 1px #ffffffb3,inset 0 -1px #0005}
.mono-estate .mono-sp.mono-owned{border-color:var(--own);box-shadow:0 1px 2px #0008;outline:none}
.mono-estate .mono-sp.mono-owned::after{content:"";position:absolute;inset:0;box-sizing:border-box;border:3px solid var(--own);border-radius:2px;background:none;opacity:1;z-index:6;pointer-events:none;box-shadow:inset 0 0 0 1px #10282eaa}
.mono-estate .mono-own{top:auto;right:auto;bottom:2px;left:2px;width:auto;height:14px;min-width:17px;min-height:0;box-sizing:border-box;padding:0 2px;border:1px solid #10212bcc;border-radius:3px;color:#fff;font:800 10px/12px system-ui,sans-serif;text-align:center;text-shadow:0 1px 1px #000,-1px 0 #000,1px 0 #000,0 -1px #000;box-shadow:0 0 0 1px #fff9,0 1px 3px #0008;z-index:8;pointer-events:none}
.mono-estate .mono-own:empty{display:none}
.mono-estate .mono-sp.mono-cur,.mono-estate .mono-sp.mono-mine{outline:none}
.mono-estate .mono-sp.mono-cur:not(.mono-owned){box-shadow:inset 0 0 0 2px #fff8}
.mono-estate .mono-hz{z-index:7}.mono-estate .mono-toks{z-index:5}
.mono-estate .mono-mortd .mono-landscape{filter:saturate(.9) brightness(.9)}
.mono-estate .mono-mortd .mono-lab{opacity:1}
.mono-estate .mono-owner-key{display:inline-grid;place-items:center;flex:0 0 auto;min-width:25px;height:20px;padding:0 2px;box-sizing:border-box;border-radius:5px;background:var(--own);border:1px solid #ffffffbb;color:#fff;font:800 11px/1 system-ui,sans-serif;text-shadow:0 1px 1px #000,-1px 0 #000,1px 0 #000,0 -1px #000;box-shadow:0 1px 3px #0005}
.mono-estate .mono-owner-row{border-left:4px solid var(--own)}
.mono-estate .mono-photo-credits{margin-left:auto;color:#c4e5db;font-size:10px;text-decoration:underline;white-space:nowrap;padding:4px}
.mono-estate .mono-photo-credits:focus-visible{outline:2px solid #fff;outline-offset:2px}
.mono-estate .mono-sp.mono-clickable:focus-visible{outline:2px solid #fff;outline-offset:-6px;z-index:9}

/* ---- Scrabble ---- */
#game-surface .sc-info{display:flex;flex-wrap:wrap;gap:8px 14px;justify-content:center;font-size:12px;color:var(--text-dim);margin:2px 0 6px}
#game-surface .sc-last{color:var(--text)}
#game-surface .sc-scores{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-bottom:8px}
#game-surface .sc-sc{display:flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;background:var(--elev);font-size:12px}
#game-surface .sc-sc.turn{outline:2px solid var(--header)}
#game-surface .sc-sc.me .sc-sc-n{font-weight:700}
#game-surface .sc-sc-p{font-weight:700;font-variant-numeric:tabular-nums}
#game-surface .sc-sc-t{opacity:.6;font-size:10px}
#game-surface .sc-board{display:grid;width:min(96vw,560px);aspect-ratio:1;margin:0 auto;gap:1px;background:#4a5a4e;padding:3px;border-radius:6px;container-type:inline-size}
#game-surface .sc-cell{position:relative;display:flex;align-items:center;justify-content:center;background:#e9e4d3;border-radius:2px;aspect-ratio:1;font-weight:700;color:#2a2a2a;overflow:hidden;user-select:none}
#game-surface .sc-tw{background:#e5554e;color:#fff}
#game-surface .sc-dw,#game-surface .sc-center{background:#f0a6a2;color:#7a1f1a}
#game-surface .sc-tl{background:#3f8fd0;color:#fff}
#game-surface .sc-dl{background:#a9d3ef;color:#1c4c6e}
#game-surface .sc-pm{font-size:2.4cqw;line-height:1;font-weight:800;letter-spacing:.02em;opacity:.85}
#game-surface .sc-center .sc-pm{font-size:4cqw}
#game-surface .sc-occ,#game-surface .sc-tent{background:linear-gradient(#f7e7bd,#eccf92);color:#3a2a12;box-shadow:inset 0 0 0 1px #caa96a}
#game-surface .sc-tent{outline:2px solid var(--header);animation:sc-pop .12s ease}
@keyframes sc-pop{from{transform:scale(.7)}to{transform:scale(1)}}
#game-surface .sc-drop{cursor:pointer;box-shadow:inset 0 0 0 2px var(--header)}
#game-surface .sc-blanktile{background:linear-gradient(#efe9df,#d9d2c4)!important;color:#6a3fa0!important}
#game-surface .sc-l{font-size:5.2cqw;line-height:1}
#game-surface .sc-v{position:absolute;right:1px;bottom:0;font-size:2.6cqw;font-weight:700;opacity:.8}
#game-surface .sc-rack{display:flex;flex-wrap:wrap;gap:5px;justify-content:center;margin:12px auto 6px;padding:7px 9px;background:#6b4a34;border-radius:8px;width:fit-content;max-width:96vw;box-shadow:inset 0 2px 6px #0006}
#game-surface .sc-tile{position:relative;width:34px;height:38px;display:flex;align-items:center;justify-content:center;background:linear-gradient(#f7e7bd,#eccf92);color:#3a2a12;border-radius:4px;font-weight:800;font-size:18px;cursor:pointer;box-shadow:0 2px 3px #0005,inset 0 0 0 1px #caa96a}
#game-surface .sc-tile .sc-v{font-size:9px;right:2px;bottom:1px}
#game-surface .sc-tile .sc-pm{font-size:7px;position:absolute;bottom:2px}
#game-surface .sc-tile.sel{transform:translateY(-6px);outline:2px solid var(--header)}
#game-surface .sc-tile.swap{outline:2px solid #e5554e;transform:translateY(-4px)}
#game-surface .sc-tile.used{opacity:.28;pointer-events:none;transform:none}
#game-surface .sc-controls{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:4px}
#game-surface .sc-blankpick{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:20;background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:12px;box-shadow:0 10px 40px #0007;text-align:center}
#game-surface .sc-bp-h{font-size:13px;margin-bottom:8px}
#game-surface .sc-blankpick-g{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-bottom:8px}
#game-surface .sc-bp{width:30px;height:30px;border:none;border-radius:4px;background:linear-gradient(#f7e7bd,#eccf92);color:#3a2a12;font-weight:800;cursor:pointer}

/* Word Studio: readable tiles, touch targets and compact responsive boards. */
.word-studio{background:radial-gradient(ellipse at top,#334457,#19232f 75%);border:1px solid #60768d;border-radius:18px;padding:clamp(12px,2vw,24px);color:#f5f2e9;gap:14px;min-width:0;max-width:100%;box-sizing:border-box}
.word-studio .word-intro{color:#becedc;font-size:13px;margin:0 0 12px;line-height:1.6}
.word-studio input{font-size:16px;min-width:0;max-width:100%;box-sizing:border-box;min-height:44px}
.word-studio button:focus-visible,.word-studio [role=button]:focus-visible{outline:3px solid #ffe2a2;outline-offset:3px}
.word-studio .gs-inline,.word-studio .bg-entry{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.word-studio .gs-btn{min-height:44px}.word-studio .gs-word{font-size:clamp(20px,4vw,36px);letter-spacing:.12em;overflow-wrap:anywhere}
.word-rack{display:flex;flex-wrap:wrap;gap:7px;justify-content:center;margin:16px 0}
.word-tile,.word-studio .bg-die{border:1px solid #f7dba1;border-radius:9px;background:linear-gradient(#fff1cb,#d8b577);box-shadow:0 4px 0 #906f46,0 8px 16px #0003;color:#27353d;font-weight:800;font-size:25px;min-width:42px;min-height:48px;cursor:pointer}
.word-tile:disabled{opacity:.4;transform:translateY(2px)}.word-studio .bg-die.selected{background:#95e2c2;outline:3px solid #e8ff90;transform:translateY(2px)}
.word-hangman{width:130px;margin:0 auto;color:#f4cc85}.word-hangman svg{display:block;width:100%}
.word-studio .gs-letters{max-width:560px;display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:auto}.word-studio .gs-let{min-width:38px;min-height:44px;border-radius:7px}.word-studio .word-correct{background:#306f61;color:white;opacity:1}
.word-keyboard{display:grid;gap:6px;max-width:520px;margin:18px auto}.word-keyboard>div{display:flex;justify-content:center;gap:4px}.word-key{flex:1;max-width:46px;min-width:0;height:44px;border:1px solid #8ca0b1;border-radius:6px;background:#445767;color:#fff;font-weight:700;font-size:14px}
.word-key.m0{background:#242c33;color:#b2bcc6}.word-key.m1{background:#936d26}.word-key.m2{background:#266852}
.word-studio .wordle-grid{width:min(100%,310px);margin:12px auto}.word-studio .wordle-row{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.word-studio .wordle-tile{width:auto;height:auto;aspect-ratio:1;font-size:25px;border-radius:7px;display:grid;place-items:center}.word-studio .wordle-tile.m1:after{content:'↔';font-size:10px}.word-studio .wordle-tile.m2:after{content:'✓';font-size:10px}
.word-studio .bg-grid{max-width:310px;gap:10px;margin:16px auto}.word-studio .bg-words,.word-studio .wc-chain{display:flex;flex-wrap:wrap;gap:8px;max-height:170px;overflow:auto}.word-studio .wc-word,.word-studio .bg-word{padding:6px 10px;border-radius:8px;background:#334d5c}.word-studio .gh-frag{font-size:clamp(22px,4vw,38px);overflow-wrap:anywhere;padding:20px;background:#122532;border-radius:12px}
.word-studio .sg-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}.word-studio .sg-row{display:flex;flex-direction:column;gap:6px}.word-studio .sg-resrow{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:8px;border-bottom:1px solid #627080}.word-studio .sg-resrow>span{flex:1;min-width:120px}
.word-board-scroll{max-width:100%;overflow:auto;padding:4px;box-sizing:border-box}.word-studio .sc-board{min-width:510px;max-width:720px;margin:auto}.word-studio .sc-cell{min-height:32px}.word-studio .sc-rack{position:sticky;bottom:0;background:#243746;padding:10px;border-radius:12px;z-index:2}.word-studio .sc-tile{min-width:36px;min-height:44px}.word-answer{font-weight:700;color:#ffe0a1}
@media(prefers-reduced-motion:reduce){.word-studio *{animation:none!important;transition:none!important}}

#game-surface .word-studio .sc-tile .sc-l{font-size:24px}
#game-surface .word-studio .sc-tile{width:38px;height:44px}
/* Word Studio v2 — one explicit theme surface, height-aware boards, stable actions. */
#game-surface .word-revised{--word-ink:#f4f1e9;--word-muted:#c3d3df;--word-panel:#183140;background:radial-gradient(ellipse at top,#28485b,#102532);color:var(--word-ink);border-color:#607c8c;position:relative;display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:14px;min-width:0;width:100%;max-width:100%;}
#game-surface .word-revised :is(.gs-hint,.word-intro,.word-lexicon){color:var(--word-muted)}
#game-surface .word-revised :is(.gs-turn,.sc-info,.sc-scores,.gs-scores){margin:0;color:var(--word-ink);background:transparent}
#game-surface .word-revised :is(input,textarea){background:#0b202d;color:#fff;border:1px solid #8da9b9;border-radius:8px;padding:10px;min-height:42px}
#game-surface .word-revised .gs-btn{background:#ead59f;color:#172c39;border:1px solid #e7ce8e;min-height:38px;padding:8px 12px}
#game-surface .word-revised .gs-btn.ghost{background:#274859;color:#f8f3e6;border-color:#75919f}
#game-surface .word-revised button:disabled{opacity:.48;cursor:default}
#game-surface .word-revised :is(.gs-score-chip,.sc-sc){background:#213f50;color:#f5f1e7;border:1px solid #7992a0;border-radius:9px;padding:6px 10px}
#game-surface .word-revised .sc-sc.turn{border-color:#f1cc76;box-shadow:inset 0 -3px #f1cc76}
#game-surface .word-revised .word-help{font-size:12px;color:#c3d3df;padding:5px 0}
.word-help summary{cursor:pointer}.word-help p{margin:6px 0}.word-lexicon{font-size:11px;text-align:center}
.word-callout,.word-progress{font-weight:700;text-align:center;color:#f1d38e;font-size:14px}
.word-error{padding:10px 14px;background:#482c29;color:#fff0df;border:1px solid #e8ae80;border-radius:10px;margin:6px 0;overflow-wrap:anywhere}
#game-surface:has(.word-revised) .gs-layout{display:block}
#game-surface:has(.word-revised) .gs-side{width:auto;margin-top:10px}
#game-surface:has(.word-revised) .gs-head{margin-bottom:8px;padding-bottom:8px}
#game-surface .word-revised .wordle-grid{width:min(100%,240px);margin:0 auto;gap:4px}
#game-surface .word-revised .wordle-row{gap:4px;margin:0 0 4px}
#game-surface .word-revised .wordle-tile{height:37px;min-height:0;aspect-ratio:auto;font-size:21px;border:1px solid #7992a0;background:#203c4c;color:white;position:relative}
#game-surface .word-revised .wordle-tile.m0{background:#34444d}#game-surface .word-revised .wordle-tile.m1{background:#856b24}#game-surface .word-revised .wordle-tile.m2{background:#276b54}
#game-surface .word-revised .wordle-tile:after{position:absolute;right:2px;bottom:1px;font-size:9px}
#game-surface .word-revised .word-keyboard{max-width:460px;width:100%;margin:auto;display:flex;flex-wrap:wrap;justify-content:center;gap:4px}
#game-surface .word-revised .word-keyboard>div{width:100%;display:flex;justify-content:center;gap:3px}
#game-surface .word-revised .word-key{flex:1;max-width:40px;min-width:0;padding:0;min-height:36px;font-size:14px;background:#dae4e9;color:#132b39;border:1px solid #dae4e9;border-radius:6px}
#game-surface .word-revised .word-key.m0{background:#40505a;color:white}#game-surface .word-revised .word-key.m1{background:#a98729;color:white}#game-surface .word-revised .word-key.m2{background:#318060;color:white}
#game-surface .word-revised .word-hangman{height:110px;margin:0 auto}#game-surface .word-revised .word-hangman svg{height:110px}
#game-surface .word-revised .word-rack{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}
#game-surface .word-revised .bg-grid{width:min(100%,265px);margin:0 auto;gap:6px;touch-action:none;user-select:none}
#game-surface .word-revised .bg-die{position:relative;display:grid;place-items:center;min-width:0;min-height:46px;aspect-ratio:1}
#game-surface .word-revised .bg-die.selected:after{content:attr(data-step);position:absolute;right:4px;top:1px;font-size:11px;color:#173925}
#game-surface .word-revised :is(.bg-timer,.sg-timer){position:sticky;top:0;z-index:3;background:#102532;border:1px solid #849ba7;color:#ffe19b;border-radius:8px;padding:7px;margin:0;text-align:center}
#game-surface .word-revised .sg-grid{max-height:330px;overflow:auto;overscroll-behavior:contain;padding:4px;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}
#game-surface .word-revised .sg-row{background:#203e4f;padding:8px;border-radius:9px;gap:4px;color:#f5f1e7}
#game-surface .word-revised .bg-words{max-height:80px;margin:0}
#game-surface .word-revised .gs-word{margin:0;font-size:clamp(20px,3vw,30px)}
#game-surface .word-revised .gh-frag{margin:0;padding:16px;font-size:30px}
#game-surface .word-scrabble{gap:7px;padding:10px}
.ws-header{display:flex;justify-content:space-between;gap:8px;font-size:13px}
#game-surface .word-scrabble .sc-scores{display:flex;flex-wrap:wrap;gap:5px;justify-content:center;font-size:12px}
.ws-board-viewport{overflow:auto;max-width:100%;min-height:0;display:block;overscroll-behavior:contain;padding:4px}
#game-surface .word-scrabble .sc-board{width:min(100%,var(--ws-size,360px));min-width:0;max-width:none;aspect-ratio:1;padding:3px;margin:auto;gap:1px;background:#547568;border:3px solid #c0a570;border-radius:9px;container-type:inline-size;outline-offset:2px}
#game-surface .word-scrabble .ws-board-viewport.zoom .sc-board{width:650px;min-width:650px}
#game-surface .word-scrabble .sc-cell{min-height:0;min-width:0;aspect-ratio:1;position:relative;display:flex;align-items:center;justify-content:center;border:0;border-radius:2px;cursor:pointer}
#game-surface .word-scrabble .sc-cell .sc-l{font-size:4.1cqw;font-weight:800;color:#203326;line-height:1}
#game-surface .word-scrabble .sc-cell .sc-v{font-size:1.55cqw;right:1px;bottom:0;color:#203326}
#game-surface .word-scrabble .sc-cell .sc-pm{font-size:1.8cqw;font-weight:800;color:#15322d;line-height:1}
#game-surface .word-scrabble .sc-cell.sc-occ,#game-surface .word-scrabble .sc-cell.sc-tent{background:linear-gradient(#fff3d0,#d9ba7b);box-shadow:inset 0 -2px #99764a}
#game-surface .word-scrabble .sc-cell.sc-tent{box-shadow:inset 0 0 0 2px #d29213}
#game-surface .word-scrabble .sc-cell.sc-recent{box-shadow:inset 0 0 0 2px #208862}
#game-surface .word-scrabble .sc-cell.sc-cursor{outline:2px solid #fff;z-index:1;box-shadow:inset 0 0 0 2px #25598d}
#game-surface .word-scrabble .sc-cell.sc-drop-hover{outline:3px solid #ffe088;z-index:2}
#game-surface .word-scrabble .sc-board[data-direction=down] .sc-cursor:after{content:'↓';position:absolute;left:0;top:0;font-size:10px;color:#15374a}
#game-surface .word-scrabble .sc-board[data-direction=across] .sc-cursor:after{content:'→';position:absolute;left:0;top:0;font-size:10px;color:#15374a}
.ws-footer{position:sticky;bottom:0;z-index:3;background:#122b3a;border:1px solid #698896;border-radius:11px;padding:7px;display:flex;flex-direction:column;gap:5px}
.ws-preview{font-size:12px;color:#ffe1a0;text-align:center;min-height:16px;overflow-wrap:anywhere}
#game-surface .word-scrabble .sc-rack{position:static;display:flex;flex-wrap:nowrap;justify-content:center;gap:5px;margin:0 auto;padding:4px;background:#294755;max-width:100%;width:fit-content;box-shadow:inset 0 2px 4px #0004}
#game-surface .word-scrabble .sc-tile{min-width:0;width:36px;height:42px;min-height:0;border:1px solid #ffe7ab;background:linear-gradient(#fff0c7,#d3ac67);color:#1f3026;border-radius:5px;position:relative;padding:0;touch-action:none}
#game-surface .word-scrabble .sc-tile .sc-l{font-size:23px;color:#203326}#game-surface .word-scrabble .sc-tile .sc-v{font-size:10px;color:#203326}
#game-surface .word-scrabble .sc-tile.used{opacity:.22}#game-surface .word-scrabble .sc-tile.sel,#game-surface .word-scrabble .sc-tile.swap{outline:3px solid #8cdfd3;transform:translateY(-3px)}
#game-surface .word-scrabble .sc-tile.dragging{opacity:.6;outline:3px solid #ffe19b}
#game-surface .word-scrabble .sc-controls{gap:5px;margin:0}#game-surface .word-scrabble .sc-controls .gs-btn{min-height:32px;padding:5px 8px;font-size:12px}
.ws-dialog{position:absolute;inset:10px;z-index:8;overflow:auto;background:#132e3e;color:#f5f2e8;border:2px solid #e5c784;border-radius:12px;padding:18px;box-shadow:0 10px 40px #0009;display:flex;flex-direction:column;gap:12px;align-items:stretch}
.ws-dialog .sc-blankpick-g{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.ws-dialog p{margin:0;line-height:1.6}
@media(max-width:480px){#game-surface:has(.word-revised){padding:5px}#game-surface .word-revised{padding:9px;gap:7px}#game-surface .word-scrabble .sc-tile{width:31px;height:38px}#game-surface .word-scrabble .sc-rack{gap:4px}.ws-header{font-size:12px}#game-surface .word-revised .sg-grid{max-height:280px}#game-surface .word-revised .wordle-tile{height:33px}}
#game-surface .word-revised .wordle-grid{display:flex;flex-direction:column;gap:0}
#game-surface .word-revised .word-key{height:34px;min-height:34px}
#game-surface .word-revised .wordle-entry{margin:0}
#game-surface .word-revised .wordle-entry input{min-height:36px;height:36px;padding:6px 10px}
#game-surface .word-revised .wordle-entry+.gs-hint{margin:0;font-size:11px}
#game-surface .word-revised[data-word-game=wordle]{gap:6px}
#game-surface .word-revised[data-word-game=wordle] .wordle-tile{height:31px}
#game-surface .word-revised[data-word-game=scattergories] .sg-grid{max-height:250px}
#game-surface .word-revised .gh-player{color:#f4f1e9;background:#254453;border:1px solid #7996a6}
#game-surface .word-revised .gh-letter{color:#aec0cc}#game-surface .word-revised .gh-letter.lit{color:#ffe49a;background:#6b4d30}
/* Full chat shell uses a more-specific centered flex rule; word boards must stretch. */
body.in-game:not(.wp-mode) #game-surface .gs-board.word-revised{align-items:stretch;justify-content:flex-start;flex:0 0 auto;width:100%;box-sizing:border-box}
body #game-surface .word-revised .ws-board-viewport{width:100%;flex:0 0 auto;box-sizing:border-box}
body #game-surface .word-revised .ws-header{width:100%;box-sizing:border-box}
body #game-surface .word-revised .wordle-grid{flex:0 0 auto}
body #game-surface .word-revised .wordle-row{width:100%;flex:0 0 auto}
body #game-surface .word-revised .bg-grid{flex:0 0 auto;box-sizing:border-box}
/* Draw & Guess: canvas-first layout with accessible, labelled controls. */
.sk-root{border:1px solid #547285;border-radius:14px;overflow:hidden;background:linear-gradient(145deg,#183545,#182336);color:#edf5fc;min-height:0;box-shadow:0 10px 35px #07131f33}
.sk-top{padding:10px 14px;background:#112737;border-bottom:1px solid #57778a55;gap:12px}.sk-word{font-size:clamp(17px,2vw,26px);letter-spacing:3px;color:#ffe4a1}.sk-main{min-height:0}.sk-left{min-width:0;position:relative}#sk-canvas{background:white;touch-action:none;max-width:100%;height:auto;aspect-ratio:800/520;display:block;object-fit:contain}.sk-tools{padding:9px;gap:5px;align-items:center;background:#203d50;position:relative}.sk-tools button{min-width:30px;min-height:30px;border-radius:6px;border:1px solid #7796a755;cursor:pointer}.sk-tools button:focus-visible{outline:3px solid #ffdc85;outline-offset:2px}.sk-tools .dt-swatch{width:28px;height:28px;min-width:28px;min-height:28px;padding:0}.sk-tools .dt-swatch.sel{outline:2px solid #ffe2a0;outline-offset:1px}.sk-tools input[type=color]{width:34px;height:30px;padding:0;border:1px solid #92b0c1;border-radius:5px;background:none}.sk-tool-options{font-size:12px}.sk-tool-options summary{padding:7px;cursor:pointer}.sk-tool-options[open]{position:absolute;left:8px;right:8px;bottom:calc(100% + 5px);z-index:5;padding:12px;background:#142d40f7;border:1px solid #81a6bc;border-radius:10px;max-height:240px;overflow:auto}.sk-tool-options label{display:inline-flex;gap:6px;align-items:center;margin:5px}.sk-tool-options input:not([type=checkbox]){width:32px;text-align:center}.sk-score{border-radius:7px;margin:4px}.sk-score.drawing{border-left:3px solid #ffda82;background:#f0c76b18}.sk-guesses{overscroll-behavior:contain}.sk-guess-input{min-height:42px;font-size:16px;border:1px solid #748ba0;border-radius:8px}.sk-timebar{transition:width 1s linear}.sk-tools .dt-toolgroup{display:flex;gap:3px;border-left:1px solid #ffffff30;padding-left:5px}
@media(max-width:650px){.sk-main{display:flex;flex-direction:column}.sk-right{width:auto;max-height:230px;display:flex;flex-direction:column}.sk-scores{display:flex;overflow:auto;flex-shrink:0}.sk-score{min-width:110px}.sk-guesses{min-height:70px;max-height:130px;overflow:auto}.sk-tools{gap:4px}.sk-tools button{min-height:34px;min-width:34px}.sk-top{flex-wrap:wrap;padding:8px}.sk-word{order:3;flex-basis:100%;text-align:center}.sk-root{max-width:100%}}
.sk-root{container-type:inline-size}.sk-palette{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:3px;width:min(370px,100%);flex:0 0 100%;max-width:370px}.sk-tools .sk-palette .dt-swatch{box-sizing:border-box;min-width:0;width:100%;height:24px;min-height:24px;margin:0;padding:0;border-radius:4px}.sk-advanced{font-size:12px}.sk-advanced summary{cursor:pointer;padding:7px}.sk-advanced[open]{position:absolute;bottom:100%;left:8px;z-index:6;background:#183549;padding:9px;border:1px solid #8ab1c8;border-radius:9px}.sk-advanced .dt-toolgroup{margin:6px 0}.sk-expanded{position:fixed!important;inset:8px!important;width:auto!important;height:auto!important;z-index:1700!important;margin:0!important;max-height:none!important}.sk-expand{background:#29495f;color:#eef6ff;border:1px solid #819eb1;border-radius:6px;padding:5px 9px}.sk-tools{flex-shrink:0}.sk-main{overflow:auto}.sk-left{min-height:240px}
@container(max-width:760px){.sk-main{flex-direction:column}.sk-left{flex:1 0 280px;padding:6px;min-height:280px}.sk-right{width:auto;flex:0 0 auto;max-height:145px;display:flex;flex-direction:column}.sk-scores{display:flex;overflow-x:auto;flex:0 0 auto;max-height:50px;padding:3px}.sk-score{min-width:95px;margin:2px;font-size:12px}.sk-guesses{min-height:25px;max-height:50px;overflow:auto}.sk-guess-input{flex:0 0 auto;min-height:36px}.sk-tools{padding:5px;gap:4px}.sk-tools button{min-width:28px;min-height:28px;padding:3px}.sk-left #sk-canvas{min-height:120px}.sk-top{gap:7px;padding:7px}.sk-timewrap{min-width:90px}.sk-timebar-bg{width:45px}}
.sk-root .sk-tools .sk-palette{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:3px;flex-basis:100%;width:100%;max-width:370px}.sk-root .sk-tools .sk-palette button.dt-swatch{min-width:0!important;width:100%!important;height:24px!important;min-height:24px!important;max-width:100%;border-radius:4px;box-sizing:border-box;flex:none;margin:0!important}.sk-root .sk-word{min-width:0;overflow-wrap:anywhere;font-size:clamp(14px,4cqw,24px);letter-spacing:2px}.sk-root .sk-score{gap:8px}
@container(max-width:760px){.sk-root .sk-left{flex:1 1 0;min-height:0}.sk-root .sk-left #sk-canvas{min-height:70px}.sk-root .sk-right{flex:0 0 94px;min-height:94px;max-height:94px}.sk-root .sk-scores{max-height:32px}.sk-root .sk-guesses{min-height:20px;max-height:25px;flex:1}.sk-root .sk-guess-input{min-height:32px;height:32px}}
@media(max-width:860px){body.in-game #game-surface:has(.sk-root){height:72dvh!important;min-height:440px!important;max-height:none!important;flex:0 0 auto;padding:5px!important;box-sizing:border-box}body.in-game #game-surface>.sk-root{height:100%;min-height:0;width:100%}.sk-root.sk-expanded{inset:0!important;border-radius:0}.sk-root .sk-left{min-height:0;overflow:hidden}.sk-root .sk-main{overflow:auto;min-height:0}.sk-root .sk-tools{max-height:190px;overflow:auto;flex:0 0 auto}}
.sk-root .sk-tools:has(details[open]){overflow:visible}
@media(max-width:860px){body.in-game #game-surface:has(.sk-root){height:60dvh!important;min-height:360px!important}body.in-game .center:has(.sk-root) #chat-panel{min-height:0;overflow:hidden}body.in-game .center:has(.sk-root) #chat-panel .messages{min-height:0}body.in-game .center:has(.sk-root) #chat-panel .composer{flex-shrink:0}}
/* Inline move picker (chess promotion, shogi 成) — non-blocking replacement for window.prompt/confirm. */
.gp-overlay{position:fixed;inset:0;z-index:2200;display:flex;align-items:center;justify-content:center;background:#0008;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);padding:16px}
.gp-card{background:var(--card,#182336);color:var(--text,#edf5fc);border:1px solid var(--border,#547285);border-radius:14px;padding:18px 20px;max-width:min(92vw,360px);box-shadow:0 14px 40px #0007;text-align:center}
.gp-title{font-weight:800;font-size:16px;margin-bottom:14px}
.gp-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.gp-btn{min-width:84px;min-height:46px;padding:10px 16px;font:700 15px Inter,system-ui,sans-serif;border:1px solid #7796a755;border-radius:10px;background:#29495f;color:#eef6ff;cursor:pointer}
.gp-btn:hover{background:#39594b;border-color:#f3d48c}
.gp-btn:focus-visible{outline:3px solid #ffdc85;outline-offset:2px}
/* Draw & Guess: between-round reveal panel (big word + who guessed + mini scoreboard). */
.sk-reveal{gap:10px;max-width:min(94%,360px)}
.sk-reveal-word{font-size:clamp(22px,6cqw,34px);font-weight:900;letter-spacing:2px;color:#ffe4a1;text-transform:uppercase;word-break:break-word}
.sk-reveal-board{width:100%;display:flex;flex-direction:column;gap:3px;max-height:150px;overflow:auto}
.sk-reveal-row{display:flex;justify-content:space-between;gap:12px;font-size:13px;padding:3px 8px;border-radius:6px;background:#ffffff0c}
.sk-reveal-row.got{background:#61c13e22;color:#d7f3c6}
.sk-reveal-row span:last-child{font-variant-numeric:tabular-nums;font-weight:700}

/* UNO card-room rebuild: a readable table, private opponent fans and explicit actions. */
 #game-surface .uno2,.uno2-dialog .uno2{--uno-cream:#f7edda;--uno-muted:#b9cfc8;--uno-line:#a9c6b82b;width:100%;max-width:1040px;margin:auto;color:var(--uno-cream);background:#122b29;border:1px solid #47615b;border-radius:18px;overflow:hidden;text-align:left;box-shadow:0 8px 28px #0003;container-type:inline-size;font-family:Inter,system-ui,sans-serif}
.uno2 *{box-sizing:border-box}.uno2-header{display:flex;justify-content:space-between;align-items:center;padding:17px 22px;border-bottom:1px solid var(--uno-line);background:linear-gradient(100deg,#203e36,#152d2b)}.uno2-header small{font-size:9px;letter-spacing:2.5px;color:#c3b58f}.uno2-header h2{font-size:28px;font-weight:900;letter-spacing:-1px;margin:0}.uno2-header h2 span{display:inline-block;font-size:10px;letter-spacing:1px;font-weight:600;color:#d6c197;border:1px solid #b9aa6c55;border-radius:20px;padding:3px 8px;vertical-align:middle;margin-left:8px}.uno2-rulebadge{font-size:11px;color:var(--uno-muted)}
.uno2-opponents{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;padding:16px 20px 7px}.uno2-seat{min-width:0;position:relative;border:1px solid #90ac9d25;border-radius:11px;padding:10px;background:#0c211f66;transition:border-color .2s,background .2s}.uno2-seat.active{border-color:#efca76;background:#39563a88;box-shadow:0 0 0 1px #efca7622}.uno2-seathead{display:flex;gap:6px;align-items:center;font-size:11px}.uno2-seathead strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.uno2-seathead>b{font-size:10px;color:#c8d6c5;white-space:nowrap}.uno2-avatar{display:grid;place-items:center;flex-shrink:0;width:25px;height:25px;border-radius:50%;background:#ba9c62;color:#132823;font-size:10px;font-weight:800}.uno2-fan{position:relative;height:57px;max-width:175px;margin:8px auto 0;display:flex;justify-content:center;align-items:center}.uno2-mini-back{flex:0 0 28px;height:42px;border:2px solid #f0e4c9;border-radius:4px;background:repeating-linear-gradient(45deg,#26586b 0 4px,#31697b 4px 6px);box-shadow:0 2px 3px #0006;margin-left:-17px;transform:rotate(calc((var(--i) - (var(--n) - 1)/2)*3deg)) translateY(calc((var(--i) - (var(--n) - 1)/2)*.3px))}.uno2-mini-back:first-child{margin-left:0}.uno2-one{display:block;text-align:center;font-size:9px;color:#ffe3a0;font-weight:800;letter-spacing:1px}.uno2-seat.penalty{animation:uno2-penalty .55s ease}
.uno2-felt{position:relative;margin:6px 20px 0;padding:14px 15px 17px;border-radius:13px;background:radial-gradient(ellipse at 50% 20%,#35634d,#224d3d 55%,#193d32);border:1px solid #93ad6f44;box-shadow:inset 0 0 40px #071c1866}.uno2-turn{text-align:center;font-size:15px;font-weight:800;color:#d0ded0;min-height:23px;margin-bottom:14px}.uno2-turn.mine{color:#ffe0a0}.uno2-piles{display:flex;justify-content:center;align-items:center;gap:25px;min-height:146px}.uno2-deck{font:inherit;color:#e6dec8;display:flex;flex-direction:column;align-items:center;gap:5px;padding:0;border:0;background:none;cursor:pointer}.uno2-deck>b{font-size:11px}.uno2-deck small{font-size:10px;color:#b8cebb}.uno2-deck:disabled{opacity:.8;cursor:default}.uno2-back{display:grid;place-items:center;width:76px;height:109px;border:5px solid #eee5d2;border-radius:9px;background:repeating-linear-gradient(45deg,#24566b 0 7px,#347087 7px 9px);box-shadow:-3px 3px 0 #dbd5c2,-6px 6px 0 #797f70,0 8px 12px #0005;font-size:21px;font-style:italic;font-weight:900;text-shadow:1px 2px #132928;transform:rotate(-5deg)}.uno2-deck:not(:disabled):hover .uno2-back{transform:rotate(-5deg) translateY(-4px)}.uno2-discard{text-align:center;transform:rotate(4deg)}.uno2-discard>small{display:block;font-size:10px;margin-top:8px;color:#bad0bc}.uno2-match{display:flex;flex-direction:column;gap:10px;font-size:11px}.uno2-match small{font-size:10px;line-height:1.6;color:#c5d4be}.uno2-color{font-size:12px;font-weight:800;border-radius:20px;padding:7px 12px;box-shadow:inset 0 0 0 1px #fff3}.uno2-direction{color:#e5d2a2;font-weight:600}
/* Seats AROUND the table in turn order — Uno opponents arc across the top (you = your rack at the bottom); poker a ring with you at the bottom. A faded ↻/↺ in the centre shows the turn direction. */
.uno2-opponents.seat-ring{display:block;position:relative;min-height:clamp(165px,42vw,225px);padding:8px 2px 0}
.uno2-opponents.seat-ring .uno2-seat{position:absolute;left:var(--sx);top:var(--sy);transform:translate(-50%,-50%);width:clamp(104px,calc(96%/var(--n,3)),148px);margin:0}
.uno2-opponents.seat-ring .uno2-fan{height:38px;max-width:118px;margin-top:5px}
.uno2-opponents.seat-ring .uno2-mini-back{flex-basis:19px;height:29px;margin-left:-11px}
.ct-poker .ct-seats.seat-ring{display:block;position:relative;min-height:clamp(240px,58vw,340px);padding:6px}
.ct-poker .ct-seats.seat-ring .ct-seat{position:absolute;left:var(--sx);top:var(--sy);transform:translate(-50%,-50%);width:clamp(124px,calc(100%/var(--n,3)),158px);margin:0}
.ring-dir{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:40px;line-height:1;color:#efca76;opacity:.45;pointer-events:none;z-index:0}
.uno2-card{--face:#b52d36;position:relative;isolation:isolate;display:inline-block;width:78px;height:114px;flex:0 0 78px;border:5px solid #f8f1e1;border-radius:9px;color:#fff;background:var(--face);padding:0;box-shadow:0 3px 7px #0005;text-align:center;user-select:none;touch-action:manipulation;overflow:hidden;transition:transform .16s,box-shadow .16s}.uno2-r{--face:#c73540}.uno2-y{--face:#f2bd39;color:#3e300d}.uno2-g{--face:#17846a}.uno2-b{--face:#286ab4}.uno2-w{--face:#1b2b3e}.uno2-oval{position:absolute;left:14%;top:14%;width:75%;height:75%;border:3px solid #fff9;border-radius:50%;transform:rotate(28deg);background:#fff1;z-index:-1}.uno2-w .uno2-oval{background:conic-gradient(#c73540 0 25%,#286ab4 25% 50%,#17846a 50% 75%,#f2bd39 75%);border-color:#ece3d0}.uno2-symbol{position:absolute;inset:0;display:grid;place-items:center;font-size:36px;font-style:italic;font-weight:900;text-shadow:1px 2px 0 #0003}.uno2-w .uno2-symbol{font-size:32px;text-shadow:1px 2px 2px #0009}.uno2-corner{position:absolute;left:4px;top:3px;font-size:14px;line-height:1;font-weight:900}.uno2-corner.bottom{left:auto;top:auto;right:4px;bottom:3px;transform:rotate(180deg)}
.uno2-banner{min-height:20px;margin:14px auto 10px;text-align:center;font-size:12px;line-height:1.55;color:#f3dca6;max-width:600px}.uno2-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}.uno2-button{font:700 12px Inter,system-ui,sans-serif;min-height:42px;padding:9px 15px;border:1px solid #c1cfb950;border-radius:8px;background:#102e2be6;color:#f0ecd9;cursor:pointer}.uno2-button:hover{background:#39594b}.uno2-button.primary,.uno2-button.armed{background:#eed18d;color:#243329;border-color:#eed18d}.uno2-button.danger{background:#863c37;color:#fff0d8;border-color:#e78376}.uno2-button.uno-call{font-size:15px;min-width:119px;border:2px solid #e4c678;color:#f5d993;letter-spacing:.5px}.uno2-button.armed{color:#18372a}.uno2-button:disabled{opacity:.4;cursor:default}.uno2 button:focus-visible{outline:3px solid #f7dc9b;outline-offset:3px;z-index:2}
.uno2-rack{padding:16px 20px 10px;background:linear-gradient(#152e29,#102823)}.uno2-rackhead{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px}.uno2-rackhead strong{white-space:nowrap}.uno2-hint{font-size:10px;color:#b8ccbc;text-align:right}.uno2-hand{display:flex;gap:9px;align-items:flex-end;overflow-x:auto;padding:17px 5px 12px;min-height:153px;scrollbar-width:thin;scrollbar-color:#acba9166 transparent}.uno2-hand .uno2-card{cursor:default}.uno2-hand .uno2-card:disabled{opacity:.9;filter:saturate(.82)}.uno2-hand .uno2-card.playable{cursor:pointer;transform:translateY(-5px);box-shadow:0 0 0 2px #e5c782,0 7px 9px #0006}.uno2-hand .uno2-card.playable:hover{transform:translateY(-12px)}.uno2-hand .uno2-card.drawn:after{content:'NEW';position:absolute;left:0;right:0;bottom:20px;font-size:9px;font-weight:800;letter-spacing:1px;background:#122b2ac9;color:white}.uno2-card.dealt{animation:uno2-deal .32s ease-out}.uno2-card.played{animation:uno2-play .33s ease-out}
.uno2-rules{border-top:1px solid var(--uno-line);padding:12px 20px;font-size:12px;color:#b8ccbf;line-height:1.65}.uno2-rules summary{cursor:pointer;color:#ded6b6;font-weight:600}.uno2-rules p{margin:10px 0;max-width:85ch}.uno2-log{padding-left:19px;max-height:170px;overflow:auto;font-size:11px}.uno2-picker{position:absolute;z-index:5;inset:12% 5% auto;padding:20px;border:1px solid #b7ad78;border-radius:12px;background:#102c29;box-shadow:0 15px 40px #0009;text-align:center}.uno2-picker[hidden]{display:none}.uno2-pickerrow{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin:16px 0 12px}.uno2-risk{font-size:12px;color:#ffd4a0;line-height:1.5}.uno2 .color-r{background:#b6303a;color:white}.uno2 .color-b{background:#2763aa;color:white}.uno2 .color-g{background:#14755b;color:white}.uno2 .color-y{background:#edbf47;color:#30270e}
@keyframes uno2-deal{from{transform:translateY(-25px) rotate(-8deg);opacity:0}to{opacity:1}}@keyframes uno2-play{from{transform:translate(-55px,-25px) rotate(-20deg);opacity:.3}to{transform:none;opacity:1}}@keyframes uno2-penalty{50%{background:#845438;box-shadow:0 0 0 2px #ebbb78}}
@container(max-width:550px){.uno2-header{padding:12px}.uno2-header h2{font-size:23px}.uno2-rulebadge{font-size:9px;max-width:110px;text-align:right}.uno2-opponents{padding:10px 10px 4px;gap:7px;grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}.uno2-felt{margin:5px 10px 0;padding:12px 8px}.uno2-piles{gap:16px}.uno2-rack{padding:13px 12px 6px}.uno2-match{max-width:95px}.uno2-match small{font-size:9px}.uno2-color{font-size:10px;padding:6px 8px}.uno2-card{width:67px;flex-basis:67px;height:99px;border-width:4px}.uno2-symbol{font-size:31px}.uno2-back{width:67px;height:99px}.uno2-hand{min-height:135px}.uno2-hint{max-width:170px}.uno2-rules{padding:10px 12px}.uno2-rackhead{font-size:11px}}
@media(prefers-reduced-motion:reduce){.uno2 *{animation:none!important;transition:none!important}}
#game-surface:has(.uno2) .gs-layout{display:block;width:100%}#game-surface:has(.uno2) .gs-side{display:none}#game-surface:has(.uno2) .gs-board{width:100%;padding:0;border:0;background:none;align-items:stretch}#game-surface .uno2 .uno2-card:disabled{opacity:1;filter:none}#game-surface .uno2 .uno2-deck:disabled{opacity:.85}.uno2-banner:empty{min-height:0;margin:7px 0}.uno2-direction{white-space:nowrap}

.uno2-headtools{display:flex;align-items:center;gap:12px}.uno2-expand.uno2-button{min-height:34px;padding:6px 10px;font-size:10px}.uno2-dialog{padding:0;border:0;border-radius:18px;background:#122b29;color:#f7edda;width:min(1040px,calc(100vw - 16px));max-width:none;max-height:calc(100dvh - 16px);overflow:auto;box-shadow:0 18px 80px #0008}.uno2-dialog::backdrop{background:#07171de0}.uno2-dialog .uno2{max-width:none;border:0}.uno2-dialog .uno2-card:disabled{opacity:1;filter:none}@container(max-width:550px){.uno2-headtools{flex-direction:column;align-items:flex-end;gap:5px}.uno2-rulebadge{font-size:9px}}

/* Card room: Hold'em and Spades share UNO's table hierarchy. */
.gs-layout:has(.ct-table)>.gs-side{display:none}.gs-layout:has(.ct-table){display:block!important}.gs-board:has(.ct-table){padding:0!important;border:0!important;background:none!important;max-width:100%;width:100%;box-sizing:border-box}
.ct-table{--ct-gold:#f3d48c;box-sizing:border-box;width:100%;max-width:1100px;margin:auto;border:1px solid #779292;border-radius:20px;background:linear-gradient(135deg,#193943,#102832);color:#f5f5e8;font:14px/1.45 system-ui,sans-serif;overflow:hidden;box-shadow:0 12px 35px #0004;text-align:center}
.ct-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;text-align:left;background:#10252d;gap:12px}.ct-head small{font-size:10px;letter-spacing:2px;color:var(--ct-gold)}.ct-head h2{margin:0;font-size:24px;color:#fff}.ct-mode{font-size:12px;color:#b9d2d6}.ct-table .gs-btn,.ct-dialog .gs-btn{min-height:44px;min-width:44px;background:#f3d48c;color:#17282d;border:1px solid #dfbb6b;border-radius:10px;padding:9px 15px;font:700 14px system-ui;cursor:pointer}.ct-table .gs-btn:disabled{opacity:.5;cursor:default}.ct-table .danger{background:#732f43;color:#fff;border-color:#da8295}.ct-table button:focus-visible,.ct-table input:focus-visible{outline:3px solid #fff;outline-offset:3px}.ct-status{font-weight:750;font-size:17px;padding:12px 12px 0;color:#ffe1a0}.ct-clock{min-height:20px;font-variant-numeric:tabular-nums;color:#bfd7db;font-size:12px}
.ct-seats{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;padding:12px 18px}.ct-seat{min-width:0;border:1px solid #6b8d92;border-radius:13px;background:#102930;padding:10px;transition:box-shadow .2s}.ct-seat.active{outline:2px solid var(--ct-gold);box-shadow:0 0 20px #f3d48c25}.ct-seat.folded{opacity:.65}.ct-seat-title{font-weight:750;overflow-wrap:anywhere}.ct-seat-stats{font-size:12px;color:#c6dbde;margin:4px 0}.ct-seat-cards{display:flex;justify-content:center;gap:3px;min-height:32px}.ct-back{width:23px;height:32px;border:2px solid #f6ead2;border-radius:4px;background:repeating-linear-gradient(45deg,#486389 0 3px,#243956 3px 6px);box-shadow:0 2px 4px #0006}.ct-spades .ct-back:not(:first-child){margin-left:-17px}.ct-spades .ct-seats{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto auto auto;padding-block:6px;gap:5px}.ct-spades .ct-seat[data-position="0"]{grid-area:3/2}.ct-spades .ct-seat[data-position="1"]{grid-area:2/1}.ct-spades .ct-seat[data-position="2"]{grid-area:1/2}.ct-spades .ct-seat[data-position="3"]{grid-area:2/3}.ct-spades .ct-seat{padding:6px}.ct-spades .ct-seat[data-position="0"] .ct-seat-cards{display:none}.ct-table .team-0{border-bottom:3px solid #6bc6ff}.ct-table .team-1{border-bottom:3px solid #f89fbc}
.ct-center{margin:5px 18px 12px;border-radius:65px;padding:18px;background:radial-gradient(ellipse,#276b58,#154b40);box-shadow:inset 0 0 0 2px #71937b,inset 0 0 35px #001f1b66;min-height:120px}.ct-pot{font-size:24px;font-weight:800;color:#ffe3a2;font-variant-numeric:tabular-nums}.ct-street{letter-spacing:2px;color:#c9e5d7}.ct-community,.ct-trick{display:flex;justify-content:center;gap:8px;margin-top:12px}.ct-slot{width:68px;height:98px;border:1px dashed #94baaa;border-radius:8px;display:grid;place-items:center;font-size:11px;color:#c4e0d2;box-sizing:border-box}.ct-teams{display:flex;justify-content:space-around;gap:12px;margin-bottom:12px;white-space:pre-line}.ct-teams>div{padding:5px 8px}.ct-play small{display:block;max-width:70px;overflow-wrap:anywhere;font-size:11px;margin-top:4px}.ct-play.winner{filter:drop-shadow(0 0 6px #ffd579)}.ct-result{padding:0 18px}.ct-result:empty{display:none}.ct-result h3{color:var(--ct-gold)}.ct-best{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;margin:10px}.ct-best>span{width:100%}
.ct-rack{position:sticky;bottom:0;background:#102832f5;padding:12px 14px;border-top:1px solid #71937b;z-index:2;backdrop-filter:blur(10px)}.ct-hand{display:flex;justify-content:safe center;gap:6px;overflow-x:auto;padding:12px 4px;min-height:90px}.ct-hand .pcard{flex-shrink:0}.ct-hand .play{outline:2px solid #f3d48c;cursor:pointer}.ct-hand .play:hover{transform:translateY(-5px)}.ct-hand .pcard.sel{outline:3px solid #e8c679;transform:translateY(-9px);box-shadow:0 8px 16px #0007}.ct-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px}.ct-help{color:#c9dcdf;font-size:12px;margin-top:8px}.ct-raise-label{font-size:12px}.ct-raise{width:85px;min-height:44px;box-sizing:border-box;font:16px system-ui;margin-left:5px;background:#f9f5e9;color:#142c34;border:1px solid #ad9967;border-radius:8px;padding:6px}.ct-details{padding:14px 20px;text-align:left;border-top:1px solid #56777e;color:#d3e2e5}.ct-details summary{min-height:30px;cursor:pointer;font-weight:700}.ct-log{max-height:210px;overflow:auto;padding-left:24px}.ct-log li{padding:4px 0}.ct-score-wrap{overflow:auto}.ct-score{border-collapse:collapse;width:100%;max-width:600px;margin:14px auto;text-align:right;color:#f5f5e8}.ct-score caption{text-align:left;font-weight:700;color:var(--ct-gold);padding:8px}.ct-score th,.ct-score td{padding:7px 10px;border-bottom:1px solid #557c80}.ct-score th{text-align:left;font-weight:500}.ct-score tr:last-child{background:#2c4c50;font-weight:800}
.ct-dialog{width:min(1100px,96vw);height:94dvh;max-height:96dvh;padding:0;border:0;background:#102832;border-radius:20px;overflow:auto;color:#fff}.ct-dialog::backdrop{background:#07161cdd}.ct-dialog .ct-table{border:0;min-height:100%;border-radius:0}.ct-setup-wager{padding:14px}.ct-setup-wager label{display:block;margin:10px}
.ct-table .pcard{position:relative;box-sizing:border-box;display:flex;flex-direction:column;background:#fffcef;border:1px solid #d5c6a7;border-radius:8px;width:68px;height:98px;padding:5px;box-shadow:0 3px 6px #0005;color:#162a36;font-family:Georgia,serif}.ct-table .pcard.red{color:#b1223c}.ct-table .pc-r{position:absolute;left:5px;top:4px;font-size:17px;font-weight:bold}.ct-table .pc-corner-suit{position:absolute;top:5px;left:26px;font-size:14px}.ct-table .pc-art{position:absolute;left:5px;top:25px;width:calc(100% - 10px);height:calc(100% - 30px);object-fit:contain}.ct-table .ct-seat-cards .pcard,.ct-table .ct-best .pcard{width:40px;height:58px}.ct-table .ct-seat-cards .pc-r,.ct-table .ct-best .pc-r{font-size:12px}.ct-table .ct-seat-cards .pc-corner-suit,.ct-table .ct-best .pc-corner-suit{left:20px;font-size:11px}.ct-table .ct-seat-cards .pc-art,.ct-table .ct-best .pc-art{top:20px;height:calc(100% - 23px)}
.ct-changed{animation:ct-confirm .35s ease-out}.ct-deal{animation:ct-deal .3s ease-out!important}@keyframes ct-confirm{from{box-shadow:inset 0 0 0 3px #f3d48c,0 0 18px #f3d48c55}to{box-shadow:inset 0 0 0 2px #71937b}}@keyframes ct-deal{from{transform:translateY(-12px);opacity:.2}to{transform:translateY(0);opacity:1}}
@media(max-width:600px){.ct-head{padding:12px}.ct-head h2{font-size:20px}.ct-seats{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:7px}.ct-center{margin:5px 8px 10px;padding:12px 8px;border-radius:24px}.ct-community,.ct-trick{gap:4px}.ct-table .ct-community .pcard,.ct-slot{width:49px!important;height:74px!important}.ct-rack{padding:10px 6px}.ct-hand{justify-content:flex-start}.ct-table .gs-btn{padding:8px 10px}.ct-spades .ct-seat-title{font-size:11px}.ct-spades .ct-seat-stats{font-size:10px}.ct-spades .ct-seats{padding:5px}.ct-trick .pcard{width:54px!important;height:80px!important}.ct-teams{font-size:12px}.ct-details{padding:12px}.ct-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.ct-spades .ct-seats{grid-template-rows:auto auto auto}.ct-score th,.ct-score td{padding:6px}.ct-best{margin:10px 0}}
@media(prefers-reduced-motion:reduce){.ct-table *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.uno2-clock{font-size:12px;color:#dbd3ad}.ct-flip{animation:ct-flip .4s ease-out!important}.ct-play-in{animation:ct-play-in .35s ease-out}@keyframes ct-flip{from{transform:rotateY(90deg);opacity:.3}to{transform:rotateY(0);opacity:1}}@keyframes ct-play-in{from{transform:translateY(-25px) rotate(-8deg);opacity:0}to{transform:translateY(0) rotate(0);opacity:1}}
@media(max-width:600px){.ct-spades .ct-seats{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto;gap:5px}.ct-spades .ct-seat[data-position="0"]{grid-area:2/1}.ct-spades .ct-seat[data-position="1"]{grid-area:1/1}.ct-spades .ct-seat[data-position="2"]{grid-area:1/2}.ct-spades .ct-seat[data-position="3"]{grid-area:2/2}.ct-spades .ct-seat[data-position="0"] .ct-seat-cards{display:flex}.ct-spades .ct-seat-title{font-size:12px}.ct-spades .ct-seat-stats{font-size:11px}.ct-spades .ct-center{min-height:100px}.ct-table .ct-head{padding:10px}.ct-dialog .ct-rack{position:sticky;bottom:0}.uno2-header{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.ct-flip,.ct-play-in{animation:none!important}}

/* Yahtzee studio — six-sided CSS cubes; authoritative faces, no WebGL dependency. */
.yz-studio{container-type:inline-size;display:grid;grid-template-columns:minmax(235px,.85fr) minmax(280px,1.15fr);gap:22px;align-items:start;width:100%;max-width:1000px;margin:0 auto;color:#e9f4ed}
.yz-stage{min-width:0;text-align:center;position:relative;background:linear-gradient(160deg,#173b38,#0d242b);padding:18px;border:1px solid #477b6a;border-radius:24px;box-shadow:0 12px 32px #0003}
.yz-arena{position:relative;aspect-ratio:1;width:100%;max-width:470px;margin:auto;border-radius:50%;padding:8%;box-sizing:border-box;background:radial-gradient(circle,#3b2011 53%,#9a5e29 58%,#d49855 65%,#7c471e 69%,#3b2416 72%,#b47a43 74%,#472c1a 77%);box-shadow:0 12px 20px #0006,inset 0 2px 4px #ffe3a87a,inset 0 -5px 10px #160d09}
.yz-felt{position:relative;width:100%;height:100%;border-radius:50%;background:radial-gradient(ellipse at 35% 25%,#3db97544,transparent 65%),repeating-radial-gradient(circle at 20% 20%,#ffffff09 0 .65px,transparent .7px 2px),#137c51;box-shadow:inset 0 8px 17px #00190ebb,inset 0 0 3px 3px #073d28}
.yz-engraving{position:absolute;left:0;right:0;top:43%;font-weight:900;letter-spacing:5px;color:#ddf4ce28;font-size:clamp(16px,4vw,27px);pointer-events:none}
.yz-cube-button{--die:clamp(34px,5vw,55px);position:absolute;width:var(--die);height:var(--die);padding:0;border:0;background:none;color:#111;cursor:pointer;transform:translate(-50%,-50%) rotate(var(--lean,0deg));perspective:500px;isolation:auto;touch-action:manipulation}
.yz-cube-button:disabled{opacity:1;cursor:default}.yz-cube-button:focus-visible{outline:3px solid #ffda77;outline-offset:14px;border-radius:5px}
.yz-cube-button:not(:disabled):hover .yz-cube-tilt{transform:translateY(-5px) rotateX(-18deg) rotateY(22deg)}
.yz-cube-tilt{display:block;position:relative;width:100%;height:100%;transform-style:preserve-3d;transform:rotateX(-18deg) rotateY(22deg);transition:transform .15s}
.yz-cube{display:block;width:100%;height:100%;position:relative;transform-style:preserve-3d;transform:rotateX(var(--rx)) rotateY(var(--ry))}
.yz-cube-face{box-sizing:border-box;position:absolute;inset:0;display:grid;grid-template:repeat(3,1fr)/repeat(3,1fr);gap:3px;padding:15%;border:1px solid #c9c8bd;border-radius:12%;backface-visibility:hidden;background:linear-gradient(140deg,#fffef7,#d8d9d3);box-shadow:inset 1px 2px 3px #fff,inset -2px -2px 4px #94998c55}
.yz-face-1{transform:translateZ(calc(var(--die)/2))}.yz-face-6{transform:rotateY(180deg) translateZ(calc(var(--die)/2))}.yz-face-2{transform:rotateY(90deg) translateZ(calc(var(--die)/2))}.yz-face-5{transform:rotateY(-90deg) translateZ(calc(var(--die)/2))}.yz-face-3{transform:rotateX(90deg) translateZ(calc(var(--die)/2))}.yz-face-4{transform:rotateX(-90deg) translateZ(calc(var(--die)/2))}
.yz-cube-pip{display:block;border-radius:50%;visibility:hidden;aspect-ratio:1;background:radial-gradient(circle at 62% 68%,#434345,#090b0a 65%);box-shadow:inset 1px 2px 2px #000,0 1px 0 #fff}.yz-cube-pip.lit{visibility:visible}
.yz-cube-button::before{content:"";position:absolute;inset:5%;border-radius:50%;background:#002519aa;filter:blur(5px);transform:translate(5px,18px) scale(1.2)}
.yz-cube-button.is-rolling{animation:yz-cube-flight .85s both;animation-delay:var(--elapsed,0s)}
.is-rolling .yz-cube{animation:yz-cube-spin .85s cubic-bezier(.15,.6,.32,1) both;animation-delay:var(--elapsed,0s)}
@keyframes yz-cube-spin{from{transform:rotateX(calc(var(--rx) + 720deg)) rotateY(calc(var(--ry) + 540deg))}to{transform:rotateX(var(--rx)) rotateY(var(--ry))}}
@keyframes yz-cube-flight{0%{transform:translate(-100%,-150%) scale(.7) rotate(-30deg)}40%{transform:translate(-40%,-90%) scale(1.12) rotate(18deg)}65%{transform:translate(-50%,-50%) scale(.95) rotate(var(--lean))}80%{transform:translate(-50%,-66%) scale(1.02) rotate(var(--lean))}100%{transform:translate(-50%,-50%) rotate(var(--lean))}}
.yz-arena.unrolled .yz-cube-button{opacity:.38}.yz-shelf-title{font-size:10px;font-weight:800;letter-spacing:1.6px;color:#b5cebe;margin:25px 0 14px}
.yz-keep-slots{display:flex;justify-content:center;gap:10px;margin:0 auto 14px;max-width:390px}.yz-keep-slot{position:relative;flex:1;aspect-ratio:1;border:1px dashed #81b69866;border-radius:12px;background:#061e2355;display:grid;place-items:center}.yz-slot-number{font-size:13px;color:#779d8c55}.yz-keep-slot .yz-cube-button{left:50%;top:50%;--die:clamp(28px,4vw,42px)}.yz-keep-slot:has(.is-held){border-color:#f6d47c;box-shadow:0 0 0 1px #f6d47c55;background:#f6d47c17}
.yz-play-hint{font-size:12px;line-height:1.5;min-height:36px;color:#c1d6ce;margin:8px 0}.yz-roll-primary{width:100%;min-height:48px!important;margin:8px 0 0!important;background:linear-gradient(#f9dc93,#ddb761)!important;color:#172c29!important;font-weight:850!important;border-radius:12px!important;box-shadow:0 3px 0 #765421}.yz-roll-primary:disabled{opacity:.6}
.yz-score-banner{position:absolute;left:2%;right:2%;top:32%;display:flex;flex-direction:column;align-items:center;gap:4px;padding:15px 4px;z-index:5;border-block:1px solid #f9dc9380;background:linear-gradient(90deg,transparent,#082a2de8 15% 85%,transparent);text-shadow:0 2px 3px #0008;pointer-events:none;animation:yz-bank 2.6s both;color:#fff9e9}.yz-score-banner strong{font-size:clamp(22px,3vw,36px);font-weight:950;text-transform:uppercase;line-height:1.05}.yz-score-banner b{font-size:23px;color:#ffdc81}.yz-score-banner small{font-size:10px;font-weight:800;letter-spacing:1.1px}
@keyframes yz-bank{0%{opacity:0;transform:scale(.82)}12%,80%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.02)}}
.yz-studio .yz-card{min-width:0;margin:0;padding:10px;background:#102a30;border-color:#345a60;border-radius:16px}.yz-studio .yz-row{grid-template-columns:120px repeat(var(--yz-n,2),minmax(64px,1fr));min-height:32px;gap:3px}.yz-studio .yz-cat{background:#102a30;color:#c6d8d8;font-size:12px}.yz-studio .yz-cell{background:#ffffff08;color:#edf5ed;border:0;font:inherit;padding:7px 4px}.yz-studio .yz-cell.curcol{background:#f6d47c10;box-shadow:inset 0 0 0 1px #f6d47c40}.yz-studio .yz-score-pick{min-height:38px;background:#1d6450;color:#d9ffe8;cursor:pointer;font-weight:750}.yz-studio .yz-score-pick:hover{background:#f6d47c;color:#172c29}.yz-studio .yz-score-pick:disabled{opacity:.45;cursor:wait}.yz-studio .yz-head{min-height:58px}.yz-studio .yz-colname{display:flex;flex-direction:column;align-items:center;gap:4px}.yz-column-label{font-size:10px;max-width:70px;overflow:hidden;text-overflow:ellipsis}.yz-studio .yz-total{font-size:19px;color:#f6d47c;border-color:#56756a}.yz-studio .yz-total .yz-cell{color:#f6d47c;font-weight:850}.yz-studio .yz-sec .yz-cat{color:#f6d47c}
@media(max-width:760px){.yz-studio{grid-template-columns:minmax(0,1fr);max-width:500px;gap:16px}.yz-studio .yz-stage{grid-row:1;padding:14px}.yz-arena{max-width:380px}.yz-cube-button{--die:clamp(32px,10vw,49px)}.yz-keep-slot .yz-cube-button{--die:clamp(28px,8vw,40px)}.yz-studio .yz-row{min-height:38px}.yz-studio .yz-score-pick{min-height:44px}}
@media(prefers-reduced-motion:reduce){.yz-cube-button.is-rolling,.is-rolling .yz-cube{animation:none}.yz-cube-tilt{transition:none}.yz-score-banner{animation:yz-bank-quiet 2.6s both}@keyframes yz-bank-quiet{0%,99%{opacity:1}100%{opacity:0}}}
@container game-room (max-width:780px){.yz-studio{grid-template-columns:minmax(0,1fr);max-width:500px}.yz-studio .yz-stage{grid-row:1}.yz-arena{max-width:380px}.yz-cube-button{--die:clamp(30px,9cqw,48px)}.yz-keep-slot .yz-cube-button{--die:clamp(26px,7cqw,40px)}}
#game-surface .gs-board:has(.yz-studio){width:100%;flex:1;min-width:0}#game-surface .gs-layout:has(.yz-studio)>.gs-side{display:none}
#game-surface .yz-cube-button:disabled{opacity:1}#game-surface .yz-arena.unrolled .yz-cube-button{opacity:.38}
/* Hold'em studio: isolated from UNO / Spades. */
.ct-poker{container-type:inline-size;max-width:1200px;background:linear-gradient(135deg,#17262e,#0d1920);border-color:#a28a59;--ct-gold:#eed395;box-shadow:0 20px 50px #0005}.ct-poker .ct-head{background:linear-gradient(100deg,#15252c,#202720);border-bottom:1px solid #c6a66344;padding:20px 24px}.ct-poker .ct-head h2{font-size:28px;letter-spacing:-.035em}.ct-poker .ct-head small{color:#d2b878}.ct-poker .ct-status{padding-top:17px}.ct-poker .ct-clock{margin:4px 0 12px}.ct-poker .ct-lobby{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:12px 22px 20px;text-align:left}.ct-poker .ct-lobby[hidden]{display:none}.ct-lobby-fact{border:1px solid #64747766;background:#ffffff06;border-radius:10px;padding:12px}.ct-lobby-fact small{display:block;color:#aec0c5;font-size:10px;text-transform:uppercase;letter-spacing:.08em}.ct-lobby-fact strong{display:block;color:#f0dbac;font-size:14px;margin-top:6px}.ct-entry-note{grid-column:1/-1;color:#becdd1;font-size:12px;margin:3px 0;line-height:1.6}
.ct-poker .ct-felt{position:relative;margin:15px 24px 24px;border:13px solid #4d3528;border-radius:44%;background:radial-gradient(ellipse at 45% 35%,#317c68,#174d42 65%,#113b35),#174d42;box-shadow:0 0 0 2px #b09158,0 0 0 7px #251f1b,inset 0 0 0 2px #c8b57a66,inset 0 0 65px #071c1699,0 13px 25px #0007;min-height:440px}.ct-poker .ct-felt:before{content:"";position:absolute;inset:13px;pointer-events:none;border:1px solid #d7ddba30;border-radius:44%;background:repeating-linear-gradient(40deg,#ffffff02 0 1px,transparent 1px 4px)}.ct-poker .ct-felt .ct-seats.seat-ring{min-height:470px;padding:0;z-index:2}.ct-poker .ct-felt .ct-seats.seat-ring .ct-seat{width:clamp(108px,16cqw,147px);min-height:94px;border:1px solid #9a9e8266;border-radius:12px;background:linear-gradient(#182e34f2,#101f25f5);box-shadow:0 5px 14px #0005;padding:9px}.ct-poker .ct-seat.active{outline:2px solid #f5d787;box-shadow:0 0 0 5px #e8c67926,0 6px 15px #0006!important}.ct-poker .ct-seat.winner{border-color:#83e8b5;box-shadow:0 0 22px #78e5aa55!important}.ct-poker .ct-seat.folded{opacity:.62}.ct-poker .ct-seat-title{font-size:12px;color:#f5e6c0}.ct-poker .ct-seat-stats{font-size:10px;line-height:1.6}.ct-poker .ct-last-action{font-size:9px;color:#dbbc80;margin-top:3px}.ct-poker .ct-seat-cards{min-height:27px}.ct-poker .ct-back{width:27px;height:37px;border-color:#f0e5ce;background:repeating-linear-gradient(45deg,#24577a 0 2px,#122d46 2px 5px);box-shadow:inset 0 0 0 2px #6583a3,0 3px 5px #0005}.ct-poker .ct-back:first-child{transform:rotate(-9deg)}.ct-poker .ct-back+ .ct-back{transform:rotate(9deg);margin-left:-5px}.ct-poker .ring-dir{display:none}
.ct-poker .ct-felt .ct-center{position:absolute;left:50%;top:49%;transform:translate(-50%,-50%);width:57%;margin:0;min-height:0;padding:15px 0;background:none;box-shadow:none;z-index:1;border-radius:0}.ct-poker .ct-pot{font-size:26px;letter-spacing:-.025em;text-shadow:0 2px 4px #0008}.ct-poker .ct-pot:before{content:"";display:inline-block;width:19px;height:8px;background:#cfad69;border:2px dashed #fff0c8;border-radius:50%;box-shadow:0 4px 0 #8d6533,0 7px 0 #cfad69,0 10px 0 #8d6533;margin:0 12px 8px 0;transform:rotate(-12deg)}.ct-poker .ct-street{display:block;color:#bdd8c7;font-size:9px;margin-top:7px;letter-spacing:.22em}.ct-poker .ct-community{gap:6px;perspective:800px}.ct-poker .ct-community .pcard,.ct-poker .ct-community .ct-slot{width:clamp(43px,6.5cqw,72px);height:clamp(66px,9.4cqw,102px);flex:none}.ct-poker .ct-slot{background:#051c162b;border:1px dashed #bdd0a85e;color:#c3d2b8}.ct-poker .pcard{box-shadow:0 5px 9px #0006,inset 0 0 0 2px #fff9e8;border-color:#d9c49a;background:#fffbef}
.ct-poker .ct-rack{background:linear-gradient(180deg,#162b33,#101d24);padding:18px 20px;border-top:1px solid #81918855}.ct-poker .ct-rack>strong{font-size:10px;text-transform:uppercase;letter-spacing:.18em;color:#c7b887}.ct-poker .ct-hand{justify-content:center;gap:12px;margin:12px auto 17px}.ct-poker .ct-hand .pcard{width:78px;height:112px}.ct-poker .ct-hand .pcard:first-child{transform:rotate(-4deg)}.ct-poker .ct-hand .pcard:last-child{transform:rotate(4deg)}.ct-poker .ct-actions{gap:8px;align-items:center;justify-content:center;flex-wrap:wrap}.ct-poker .gs-btn{box-shadow:0 2px 5px #0003;font-size:13px;border-radius:9px}.ct-poker .ct-primary{background:linear-gradient(#fae7b9,#d8b76a);min-width:170px}.ct-poker .ct-help{font-size:12px;line-height:1.6;margin-top:12px;color:#bbcfd3}.ct-poker .ct-raise{background:#091820;border:1px solid #9c926f;border-radius:7px;color:#ffe6b2;padding:10px;max-width:100px;font:700 14px system-ui}.ct-poker .ct-result:not(:empty){margin:0 20px 18px;padding:15px;background:#85c5990c;border:1px solid #71936d;border-radius:13px}.ct-poker .ct-result h3{margin-top:0}.ct-poker .ct-details{text-align:left;background:#09182040}.ct-poker .ct-details summary{font-size:12px;color:#d8c598;padding:6px 0}
@container(max-width:700px){.ct-poker .ct-head{padding:15px}.ct-poker .ct-head h2{font-size:22px}.ct-poker .ct-lobby{grid-template-columns:repeat(2,minmax(0,1fr));margin:12px}.ct-poker .ct-felt{margin:12px;border-width:7px;border-radius:24px;min-height:0;box-shadow:0 0 0 2px #ac9058,inset 0 0 30px #061d1666}.ct-poker .ct-felt:before{border-radius:18px;inset:6px}.ct-poker .ct-felt .ct-seats,.ct-poker .ct-felt .ct-seats.seat-ring{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-height:0;gap:8px;padding:13px;position:relative}.ct-poker .ct-felt .ct-seats.seat-ring .ct-seat{position:static;transform:none;width:auto;min-height:85px;margin:0}.ct-poker .ct-felt .ct-center{position:relative;left:auto;top:auto;transform:none;width:auto;margin:0 8px 16px;padding:12px 0}.ct-poker .ct-community .pcard,.ct-poker .ct-community .ct-slot{width:clamp(38px,12cqw,62px)!important;height:clamp(58px,18cqw,90px)!important}.ct-poker .ct-rack{padding:15px 9px}.ct-poker .ct-hand{justify-content:center}.ct-poker .ct-community{gap:4px}.ct-poker .ct-felt .ct-seat-title{font-size:12px}.ct-poker .ct-result{margin-inline:10px!important}}
.ct-poker.is-lobby{overflow:visible}   /* like the active hand (line below): free .ct-table from being the sticky scroll-container so the lobby action deck can pin inside #game-surface, not get trapped at the table's bottom */
.ct-poker.is-lobby .ct-felt{min-height:0;border-radius:22px;border-width:7px;margin-block:12px}.ct-poker.is-lobby .ct-felt:before{border-radius:16px}.ct-poker.is-lobby .ct-felt>.ct-center{display:none}.ct-poker.is-lobby .ct-felt .ct-seats,.ct-poker.is-lobby .ct-felt .ct-seats.seat-ring{position:relative;display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:9px;min-height:0;padding:14px}.ct-poker.is-lobby .ct-felt .ct-seats.seat-ring .ct-seat{position:static;transform:none;width:auto;min-height:65px}.ct-poker.is-lobby .ct-seat-cards{display:none}.ct-poker.is-lobby .ct-rack>strong,.ct-poker.is-lobby .ct-hand{display:none}.ct-poker.is-lobby .ct-actions{margin-top:0}
/* 4-class selector so it beats .ct-onfelt.ct-table .ct-rack{position:static} (same 3-class specificity, defined later). Poker tables are always .ct-onfelt, so this pins the lobby Buy-in/Deal deck on-screen. */
.ct-onfelt.ct-poker.is-lobby .ct-rack{position:sticky;bottom:6px;z-index:5;margin:10px 12px 0;padding:10px 14px;border:1px solid #b09158;border-radius:16px;box-shadow:0 -12px 28px #0006,0 10px 24px #0007;background:linear-gradient(180deg,#17333bf4,#0d191ff7)}   /* pin the Buy-in/Deal/Add-bot deck on-screen — the lobby is taller than the in-game surface, so a static rack hid these controls below the fold (the "hidden behind the dock" bug) */
/* Active hand: keep your hole cards + bet controls on the table and on-screen (no scroll-to-act). The base .ct-table has overflow:hidden, which makes the tall table its own sticky scroll-container and traps the rack at the table's bottom; freeing it lets the rack pin to the viewport, floating as a control deck over the felt's lower edge. */
.ct-poker:not(.is-lobby){overflow:visible}
.ct-poker:not(.is-lobby) .ct-head{border-radius:20px 20px 0 0}
.ct-poker:not(.is-lobby) .ct-felt{margin-bottom:6px}
.ct-poker:not(.is-lobby) .ct-rack{position:sticky;bottom:6px;z-index:5;margin:0 12px;padding:10px 14px 12px;border:1px solid #b09158;border-radius:16px;box-shadow:0 -12px 28px #0006,0 10px 24px #0007;background:linear-gradient(180deg,#17333bf4,#0d191ff7)}
.ct-poker:not(.is-lobby) .ct-rack>strong{opacity:.85}
.ct-poker:not(.is-lobby) .ct-hand{margin:7px auto 9px}
.ct-poker:not(.is-lobby) .ct-hand .pcard{width:66px;height:95px}
.ct-poker:not(.is-lobby) .ct-help{margin-top:7px}
@container(min-width:701px){.ct-poker:not(.is-lobby) .ct-felt{min-height:0}.ct-poker:not(.is-lobby) .ct-felt .ct-seats.seat-ring{min-height:clamp(300px,42dvh,470px)}}
@container(max-width:700px){.ct-poker:not(.is-lobby) .ct-rack{margin:0 7px;padding:10px 8px 11px}.ct-poker:not(.is-lobby) .ct-hand .pcard{width:60px;height:86px}}

/* Poker: trophy cash bar + Yahtzee-style showdown winner banner */
.ct-cash{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 8px;padding:8px 10px;border:1px solid #2f5468;border-radius:10px;background:#0e1b24}
.ct-cash[hidden]{display:none}
.ct-chips{font-weight:800;color:#ffd98a;font-size:13px}
.ct-buyin-amt{width:90px;background:#0b141b;border:1px solid #2f5468;border-radius:8px;color:#fff;padding:7px;font:700 13px Inter,system-ui,sans-serif}
.ct-cash .ct-primary{background:linear-gradient(#f3d27e,#d6a94e);color:#2a2211;border:0;font-weight:800}
.ct-cash-note{color:#9fb6c3;font-size:11px}
/* Host cash-table setup form (blinds / ante / buy-in) */
#games-surface .ct-setup-cash,#game-surface .ct-setup-cash,.ct-setup-cash{margin:8px 0}
.ct-setup-cash>summary{list-style:none;cursor:pointer}
.ct-setup-cash .ct-cfg-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:12px 0}
.ct-cfg-field{display:flex;flex-direction:column;gap:4px}
.ct-cfg-lbl{font-size:12px;font-weight:600;color:var(--text)}
.ct-cfg-in{width:100%}
.ct-cfg-hint{font-size:10px;color:#9fb6c3}
.ct-win-banner{position:absolute;left:4%;right:4%;top:34%;z-index:6;display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px 8px;border-block:1px solid #f9dc9380;background:linear-gradient(90deg,transparent,#082a2de8 14% 86%,transparent);color:#fff9e9;text-align:center;text-shadow:0 2px 3px #0008;pointer-events:none;animation:ct-win 5.2s both}
.ct-win-banner small{font-size:10px;font-weight:800;letter-spacing:1.4px;color:#ffd98a}
.ct-win-banner strong{font-size:clamp(16px,2.6vw,24px);font-weight:950;line-height:1.1}
@keyframes ct-win{0%{opacity:0;transform:scale(.86)}10%,86%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.02)}}
@media(prefers-reduced-motion:reduce){.ct-win-banner{animation:ct-win-q 5.2s both}@keyframes ct-win-q{0%,96%{opacity:1}100%{opacity:0}}}

/* Table studio: shared clarity for the older card and board games. */
#game-surface :is(.gs-kind-hearts,.gs-kind-euchre,.gs-kind-cribbage,.gs-kind-cards8,.gs-kind-blackjack,.gs-kind-gofish,.gs-kind-war){
 border:1px solid #9b916c70;border-radius:20px;padding:clamp(12px,2vw,24px);
 background:radial-gradient(ellipse at 50% 20%,#285f54,#123b35 65%,#102b2c);color:#f4eedf;
 box-shadow:inset 0 0 0 5px #081c1e44,inset 0 18px 60px #ffffff06,0 8px 22px #0002;
}
#game-surface .gs-seats{max-width:800px;gap:10px}
#game-surface .gs-seat{min-height:60px;padding:9px 11px;background:linear-gradient(145deg,#193f3b,#102c2a);color:#f4eedf;border-color:#80958570}
#game-surface .gs-seat.active{border:2px solid #f0cf80;box-shadow:0 0 0 3px #f0cf8015;background:#315344}
#game-surface .gs-seat.active .gs-ava{box-shadow:0 0 0 2px #f5df9b,0 0 0 5px #f5df9b25}
#game-surface .gs-seatmeta,#game-surface .gs-seatcount{color:#cedcd1;font-size:12px}
#game-surface :is(.ht-hand,.c8-hand,.gs-cardrow){gap:9px;padding:14px 10px;align-items:center;border-radius:12px;background:#071d1d30}
#game-surface .pcard.play{outline:2px solid #e9cf87;outline-offset:2px;cursor:pointer}
#game-surface .pcard.play:focus-visible{outline:3px solid #fff;transform:translateY(-5px)}
#game-surface :is(.gs-cell,.chsq,.shsq,.sc-cell,.cn-cell):focus-visible{outline:3px solid #f4bf55;outline-offset:-3px;z-index:2}
#game-surface .gs-btn:focus-visible{outline:3px solid #f6d898;outline-offset:3px}
#game-surface .gs-turn{font-variant-numeric:tabular-nums;max-width:100%;overflow-wrap:anywhere}
@media(max-width:520px){#game-surface .gs-seats{grid-template-columns:repeat(2,minmax(0,1fr))}#game-surface .gs-seatname{font-size:12px}#game-surface :is(.ht-hand,.c8-hand,.gs-cardrow){gap:6px;padding:10px 4px}#game-surface .gs-btn{min-height:44px}}
@media(prefers-reduced-motion:no-preference){#game-surface .pcard.play{transition:transform .14s ease,box-shadow .14s ease}#game-surface .gs-seat.active .gs-ava{animation:table-turn-arrive .28s ease-out}@keyframes table-turn-arrive{from{transform:scale(.86)}to{transform:scale(1)}}}
/* ===== Casino tables (roulette/slots/… — .cz-*) ===== */
.cz{max-width:760px;margin:0 auto;color:#f2ead6;font-size:14px}
.cz-title{margin:4px 0 10px;font-size:22px;letter-spacing:-.02em;color:#f0dbac}
.cz-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.cz-status{font-size:13px;color:#cfe0d4;display:flex;align-items:center;gap:7px}
.cz-status b{color:#f0dbac;font-variant-numeric:tabular-nums}
.cz-dot{width:9px;height:9px;border-radius:50%;background:#64747a}
.cz-dot.open{background:#61c13e;box-shadow:0 0 8px #61c13e88;animation:cz-pulse 1.4s infinite}
.cz-dot.resolving{background:#f3d27e}
@keyframes cz-pulse{50%{opacity:.4}}
.cz-win{display:flex;align-items:center;gap:14px;margin:12px 0;padding:12px 16px;border:1px solid #c6a66344;border-radius:14px;background:linear-gradient(100deg,#15252c,#0d1920);animation:cz-pop .5s both}
@keyframes cz-pop{from{transform:scale(.9);opacity:0}}
.cz-ball{width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:800;color:#fff;box-shadow:inset 0 2px 6px #fff4,0 4px 12px #0007}
.cz-win-info b{font-size:17px;text-transform:capitalize}
.cz-myresult{margin-top:6px;font-weight:700}
.cz-myresult.good{color:#8ef0a0}.cz-myresult.bad{color:#cf9fa7}
.num-red{background:#c0392b}.num-black{background:#222b2e}.num-green{background:#1e8449}
.cz-history{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:8px 0}
.cz-h-label{color:#9fb6c3;margin-right:4px}
.cz-h-num{width:24px;height:24px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#fff}
.cz-chips{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}
.cz-chips>small{color:#9fb6c3;text-transform:uppercase;letter-spacing:.08em;font-size:10px}
.cz-chip{min-width:46px;height:40px;border-radius:50%;border:3px dashed #ffffff55;background:radial-gradient(circle at 50% 35%,#2a4652,#152a32);color:#f2ead6;font-weight:800;font-size:12px;cursor:pointer}
.cz-chip.on{border-color:#f3d27e;color:#f0dbac;box-shadow:0 0 10px #f3d27e66}
.cz-grid{display:grid;grid-template-columns:auto 1fr auto;gap:4px;margin:10px 0}
.cz-nums{display:grid;grid-template-columns:repeat(12,1fr);grid-auto-rows:1fr;gap:4px}
.cz-cols{display:grid;grid-template-rows:repeat(3,1fr);gap:4px}
.cz-cell{position:relative;min-height:38px;border:1px solid #ffffff22;border-radius:7px;color:#fff;font-weight:700;font-size:14px;cursor:pointer;background:#1c2b30;display:flex;align-items:center;justify-content:center}
.cz-cell:disabled{opacity:.55;cursor:default}
.cz-cell:not(:disabled):hover{outline:2px solid #f3d27e99}
.cz-zero{grid-row:span 1;min-width:34px;align-self:stretch;writing-mode:vertical-lr;text-orientation:upright}
.cz-nums .cz-cell{font-size:13px}
.cz-side{background:#223b2e;font-size:12px}
.cz-chip-on{position:absolute;top:-6px;right:-6px;background:#f3d27e;color:#2a2211;border-radius:9px;font-size:10px;font-weight:800;padding:1px 5px;box-shadow:0 1px 3px #0007}
.cz-row{display:flex;gap:4px;margin:4px 0}
.cz-wide{flex:1;min-height:36px}
.cz-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0;flex-wrap:wrap}
.cz-staked{color:#f0dbac;font-weight:600}
.cz-table-players{color:#9fb6c3;font-size:12px;margin:6px 0;line-height:1.5}
.cz-rules{margin-top:12px;color:#becdd1}.cz-rules summary{cursor:pointer;color:#d2b878}.cz-rules p{font-size:12px;line-height:1.6}
/* slots */
.cz-slots{max-width:440px;text-align:center}
.cz-reels{display:flex;justify-content:center;gap:10px;margin:16px 0;padding:18px;border:2px solid #c6a663;border-radius:16px;background:linear-gradient(#17262e,#0d1920)}
.cz-reel{width:78px;height:92px;border-radius:12px;background:radial-gradient(circle at 50% 30%,#223842,#0e1a20);display:flex;align-items:center;justify-content:center;overflow:hidden;box-shadow:inset 0 3px 10px #0008}
.cz-sym{font-size:46px;line-height:1}
.cz-reels.spinning .cz-sym{animation:cz-roll .4s linear infinite;animation-delay:var(--d,0s)}
@keyframes cz-roll{0%{transform:translateY(-40px);opacity:.3}50%{opacity:1}100%{transform:translateY(40px);opacity:.3}}
.cz-slot-ctrls{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:10px 0}
.cz-step{width:40px;height:40px;border-radius:9px;background:#223842;color:#f2ead6;border:1px solid #ffffff22;font-size:20px;font-weight:800;cursor:pointer}
.cz-betamt{min-width:120px;font-size:18px;font-weight:800;color:#f0dbac;font-variant-numeric:tabular-nums}
.cz-spin{display:block;width:100%;max-width:280px;margin:10px auto 0;font-size:18px;font-weight:800;background:linear-gradient(#f3d27e,#d6a94e);color:#2a2211;border:0;padding:14px}
.cz-spin:disabled{opacity:.6}
.cz-paytable{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px;margin:6px 0;text-align:left}
.cz-pt-row{font-size:13px;font-variant-numeric:tabular-nums}
@media(max-width:560px){.cz-nums .cz-cell{min-height:32px;font-size:11px}.cz-reel{width:62px;height:76px}.cz-sym{font-size:38px}}

/* ===== Baccarat (.cz-bacc-*) ===== */
.cz-baccarat{max-width:560px}
.cz-bacc-spots{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}
.cz-bacc-spot{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:16px 8px;border:2px solid #ffffff22;border-radius:12px;cursor:pointer;color:#f2ead6;background:linear-gradient(160deg,#1c2b30,#132025)}
.cz-bacc-spot:disabled{opacity:.6;cursor:default}
.cz-bacc-spot:not(:disabled):hover{outline:2px solid #f3d27e99}
.cz-bacc-spot.player{border-color:#4f8fd655}.cz-bacc-spot.banker{border-color:#d67a7a55}.cz-bacc-spot.tie{border-color:#6fc98a55}
.cz-bacc-spot.won{box-shadow:0 0 0 2px #f3d27e,0 0 14px #f3d27e66;border-color:#f3d27e}
.cz-bacc-spot-name{font-size:16px;font-weight:800;letter-spacing:.01em}
.cz-bacc-spot.player .cz-bacc-spot-name{color:#9cc4f0}.cz-bacc-spot.banker .cz-bacc-spot-name{color:#f0a9a9}.cz-bacc-spot.tie .cz-bacc-spot-name{color:#9fe3b6}
.cz-bacc-spot-pays{font-size:13px;font-weight:800;color:#f0dbac;font-variant-numeric:tabular-nums}
.cz-bacc-spot-sub{font-size:10px;color:#9fb6c3;text-transform:uppercase;letter-spacing:.04em}
.cz-bacc-result{flex-wrap:wrap}
.cz-bacc-hands{display:flex;align-items:center;gap:14px}
.cz-bacc-vs{color:#9fb6c3;font-weight:800;font-size:12px;letter-spacing:.1em}
.cz-bacc-hand{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 10px;border-radius:12px;border:1px solid transparent}
.cz-bacc-hand.win{border-color:#f3d27e88;background:#f3d27e14}
.cz-bacc-hand-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#9fb6c3;font-weight:700}
.cz-bacc-cards{display:flex;gap:5px}
.cz-bacc-card{width:34px;height:48px;border-radius:6px;background:#fffcf4;border:1px solid #d8d0c0;box-shadow:0 2px 4px #0005;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:4px 5px;font-family:Georgia,serif;color:#172631;line-height:1}
.cz-bacc-card.red{color:#b52643}
.cz-bacc-card .cz-bacc-rank{font-size:14px;font-weight:700}
.cz-bacc-card .cz-bacc-suit{font-size:16px;align-self:flex-end}
.cz-bacc-total{font-size:22px;font-weight:800;color:#f0dbac;font-variant-numeric:tabular-nums}
.cz-bacc-winner{font-size:18px}
.cz-bacc-winner.win-player{color:#9cc4f0}.cz-bacc-winner.win-banker{color:#f0a9a9}.cz-bacc-winner.win-tie{color:#9fe3b6}
.cz-bacc-h{font-weight:800}
.cz-bacc-h.win-player{background:#2f5c8a}.cz-bacc-h.win-banker{background:#8a3a3a}.cz-bacc-h.win-tie{background:#2f7a4c}
.cz-bacc-shoe{color:#9fb6c3;font-size:11px;margin:8px 0 2px}
@media(max-width:560px){.cz-bacc-spot{padding:12px 4px}.cz-bacc-spot-name{font-size:14px}.cz-bacc-card{width:30px;height:42px}.cz-bacc-hands{gap:8px}}
/* ===== Wheel of Fortune (Big Six money wheel — .cz-wheel-*) ===== */
.cz-wheel{max-width:560px}
.cz-wheel-wrap{display:flex;justify-content:center;margin:10px 0 4px}
.cz-wheel-svg{width:300px;max-width:84vw;height:auto;filter:drop-shadow(0 6px 16px #0007)}
.cz-wheel-rim{fill:none;stroke:#c6a663;stroke-width:6}
.cz-wheel-rot{transform-box:view-box}
.cz-wheel-slice{stroke:#0d1920;stroke-width:1}
.cz-wheel-lbl{fill:#fff;font-size:11px;font-weight:800;text-anchor:middle;dominant-baseline:central;paint-order:stroke;stroke:#0008;stroke-width:.6px;pointer-events:none}
.cz-wheel-hub{fill:#1c2b30;stroke:#c6a663;stroke-width:3}
.cz-wheel-ptr{fill:#f3d27e;stroke:#2a2211;stroke-width:1;filter:drop-shadow(0 2px 3px #0008)}
.cz-wheel-ball{font-size:24px}
.cz-wheel-h{color:#fff;font-size:11px}
.cz-wheel-spots{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin:10px 0}
.cz-wheel-spot{flex-direction:column;gap:2px;min-height:62px;padding:6px 2px;border-top:4px solid var(--sym,#445)}
.cz-wheel-face{font-size:18px;font-weight:800;line-height:1}
.cz-wheel-pays{font-size:11px;color:#f0dbac;font-weight:700}
.cz-wheel-odds{font-size:10px;color:#9fb6c3;font-variant-numeric:tabular-nums}
@media(prefers-reduced-motion:reduce){.cz-wheel-rot{transition:none!important}}
@media(max-width:560px){.cz-wheel-spots{grid-template-columns:repeat(4,1fr)}.cz-wheel-spot{min-height:56px}.cz-wheel-face{font-size:16px}}

/* ===== Keno (.cz-keno-*) ===== */
.cz-keno{max-width:520px}
.cz-keno-info{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0}
.cz-keno-count{font-weight:800;color:#f0dbac;font-variant-numeric:tabular-nums}
.cz-keno-sub{font-size:12px;color:#9fb6c3}
.cz-keno-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;margin:10px 0;padding:10px;border:2px solid #c6a663;border-radius:14px;background:linear-gradient(#17262e,#0d1920)}
.cz-keno-cell{min-height:34px;border:1px solid #ffffff1f;border-radius:7px;background:#1c2b30;color:#dfe9ea;font-weight:700;font-size:13px;cursor:pointer;font-variant-numeric:tabular-nums;transition:transform .08s,background .15s}
.cz-keno-cell:not(:disabled):hover{outline:2px solid #f3d27e99}
.cz-keno-cell:disabled{cursor:default}
.cz-keno-cell:disabled:not(.pick):not(.drawn){opacity:.5}
.cz-keno-cell.pick{background:linear-gradient(#2a4652,#152a32);border-color:#f3d27e;color:#f0dbac;box-shadow:0 0 8px #f3d27e55}
.cz-keno-cell.drawn{background:#20414f;border-color:#6fd0ff;color:#cdeeff}
.cz-keno-cell.catch{background:radial-gradient(circle at 50% 35%,#4bd07a,#187a44);border-color:#8ef0a0;color:#06260f;box-shadow:0 0 12px #61c13e88;transform:scale(1.06)}
.cz-keno-grid.drawing{animation:cz-pulse 1s infinite}
.cz-keno-tools{display:flex;justify-content:center;gap:10px;margin:8px 0}
.cz-keno-tool{padding:8px 14px;border-radius:9px;background:#223842;color:#f2ead6;border:1px solid #ffffff22;font-weight:700;font-size:13px;cursor:pointer}
.cz-keno-tool:not(:disabled):hover{border-color:#f3d27e99}
.cz-keno-tool:disabled{opacity:.5;cursor:default}
.cz-keno-pt{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px;margin:6px 0;text-align:left}
@media(max-width:560px){.cz-keno-cell{min-height:30px;font-size:11px}.cz-keno-grid{gap:3px;padding:7px}.cz-keno-pt{grid-template-columns:1fr}}

/* ===== Video Poker — Jacks or Better (.cz-vp-*) ===== */
.cz-vp{max-width:560px;text-align:center}
.cz-vp-hand{display:flex;justify-content:center;gap:8px;margin:16px 0;flex-wrap:nowrap}
.cz-3cp .cz-vp-hand,.cz-cstud .cz-vp-hand,.cz-lir .cz-vp-hand,.cz-uth .cz-vp-hand{flex-direction:column;align-items:center;gap:5px;margin:10px 0}
.cz-vp-seatlbl{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#adc3c9}
.cz-vp-cards{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}
.cz-3cp .danger,.cz-cstud .danger,.cz-lir .danger,.cz-uth .danger{background:#732f43;color:#fff;border-color:#da8295}
.cz-vp-card{position:relative;width:74px;height:104px;border-radius:10px;background:linear-gradient(#fbf7ec,#e9e1cc);border:1px solid #00000033;box-shadow:0 3px 8px #0006;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:transform .12s,box-shadow .12s}
.cz-vp-card.static{cursor:default}
.cz-vp-card:not(.static):hover{transform:translateY(-4px);box-shadow:0 7px 16px #0008}
.cz-vp-card.red{color:#c21f36}
.cz-vp-card.black{color:#1a2228}
.cz-vp-card.held{outline:3px solid #f3d27e;outline-offset:1px;box-shadow:0 0 14px #f3d27e88;transform:translateY(-4px)}
.cz-vp-card.down{background:repeating-linear-gradient(45deg,#1f3a46,#1f3a46 7px,#16303a 7px,#16303a 14px);border-color:#c6a66355;cursor:default}
.cz-vp-rank{font-size:30px;font-weight:800;line-height:1}
.cz-vp-suit{font-size:26px;line-height:1;margin-top:2px}
.cz-vp-back{font-size:44px;color:#c6a663aa}
.cz-vp-held{position:absolute;top:4px;left:0;right:0;font-size:9px;font-weight:800;letter-spacing:.1em;color:#2a2211;background:#f3d27e;padding:1px 0;border-radius:3px;width:70%;margin:0 auto}
.cz-vp-hint{color:#cfe0d4;font-size:13px;margin:6px 0}
.cz-vp-paytable{margin:14px auto 0;max-width:360px;border:1px solid #c6a66333;border-radius:12px;overflow:hidden;background:#0f1c23}
.cz-vp-pt-head{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#9fb6c3;padding:7px 12px;background:#15252c;text-align:left}
.cz-vp-pt-row{display:flex;justify-content:space-between;gap:12px;padding:5px 12px;font-size:13px;color:#dce8dd;border-top:1px solid #ffffff0d;font-variant-numeric:tabular-nums}
.cz-vp-pt-row.win{background:linear-gradient(100deg,#1c3326,#15252c);color:#8ef0a0;font-weight:700}
.cz-vp-pt-name{text-align:left}
.cz-vp-pt-mult{color:#f0dbac}
.cz-vp-pt-row.win .cz-vp-pt-mult{color:#8ef0a0}
@media(max-width:560px){.cz-vp-hand{gap:5px}.cz-vp-card{width:58px;height:82px}.cz-vp-rank{font-size:23px}.cz-vp-suit{font-size:20px}}

/* ===== Craps (.cz-craps-*) ===== */
.cz-craps{max-width:560px}
.cz-craps-stage{display:flex;align-items:center;gap:16px;margin:12px 0;padding:14px 16px;border:1px solid #c6a66344;border-radius:14px;background:linear-gradient(100deg,#133022,#0d1920)}
.cz-craps-puck{width:56px;height:56px;border-radius:50%;flex:0 0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:800;box-shadow:inset 0 2px 6px #fff3,0 3px 10px #0007}
.cz-craps-puck.on{background:radial-gradient(circle at 50% 35%,#f2f2f2,#d9d9d9);color:#1a1a1a;border:2px solid #fff}
.cz-craps-puck.off{background:radial-gradient(circle at 50% 35%,#2a2a2a,#111);color:#cfcfcf;border:2px solid #555}
.cz-craps-puck-label{font-size:11px;letter-spacing:.1em}
.cz-craps-puck-num{font-size:20px;line-height:1}
.cz-craps-dice{display:flex;gap:10px}
.cz-craps-die{width:46px;height:46px;border-radius:10px;background:linear-gradient(145deg,#fff,#dfe3e6);box-shadow:inset 0 2px 4px #fff,0 3px 8px #0008;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);padding:6px;gap:1px}
.cz-craps-die.idle{opacity:.45}
.cz-craps-pip{border-radius:50%;background:transparent}
.cz-craps-pip.on{background:radial-gradient(circle at 40% 35%,#333,#000)}
.cz-craps-die.rolling{animation:cz-craps-roll .5s cubic-bezier(.3,1.4,.5,1) both}
@keyframes cz-craps-roll{0%{transform:rotate(-180deg) scale(.6);opacity:.2}60%{transform:rotate(12deg) scale(1.08)}100%{transform:rotate(0) scale(1);opacity:1}}
.cz-craps-rollinfo{margin-left:auto;text-align:right}
.cz-craps-total{font-size:30px;font-weight:800;color:#f0dbac;line-height:1;font-variant-numeric:tabular-nums}
.cz-craps-line{font-size:12px;color:#cfe0d4;margin-top:3px}
.cz-craps-hnum{background:#1c2b30;border:1px solid #ffffff22}
.cz-craps-hnum.seven{background:#5a2330;border-color:#cf6f82}
.cz-craps-line-row{display:flex;gap:6px;margin:8px 0}
.cz-craps-spot{position:relative;flex:1;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:1px solid #ffffff22;border-radius:10px;background:#16262b;color:#fff;cursor:pointer;padding:6px}
.cz-craps-spot:not(:disabled):hover{outline:2px solid #f3d27e99}
.cz-craps-spot:disabled{cursor:default}
.cz-craps-spot.off{opacity:.4}
.cz-craps-spot-l{font-weight:800;font-size:14px;letter-spacing:.03em}
.cz-craps-spot-sub{font-size:10px;color:#9fb6c3;text-align:center}
.cz-craps-pass{background:linear-gradient(#17352a,#123024)}
.cz-craps-dont{background:linear-gradient(#2b2118,#231a14)}
.cz-craps-field{position:relative;margin:8px 0;padding:10px 12px;border:1px solid #c6a66355;border-radius:12px;background:linear-gradient(100deg,#15303a,#0e1c22);text-align:center}
.cz-craps-fieldnums{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:6px 0}
.cz-craps-fnum{min-width:30px;padding:3px 7px;border-radius:7px;background:#1c2b30;border:1px solid #ffffff22;font-weight:700;font-size:13px}
.cz-craps-fnum.dbl{background:#3a2d12;border-color:#d6a94e;color:#f0dbac}
.cz-craps-fieldbtn{margin-top:4px;padding:7px 18px;border:0;border-radius:9px;font-weight:800;background:linear-gradient(#f3d27e,#d6a94e);color:#2a2211;cursor:pointer}
.cz-craps-fieldbtn:disabled{opacity:.55;cursor:default}
.cz-craps-section{margin:10px 0 4px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#9fb6c3}
.cz-craps-place{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}
.cz-craps-box{min-height:54px}
.cz-craps-box .cz-craps-spot-l{font-size:18px}
.cz-craps-box.ispoint{border-color:#f3d27e;box-shadow:0 0 10px #f3d27e55;background:linear-gradient(#24331f,#17251a)}
@media(max-width:560px){.cz-craps-stage{flex-wrap:wrap;gap:10px}.cz-craps-rollinfo{margin-left:0}.cz-craps-place{grid-template-columns:repeat(3,1fr)}.cz-craps-die{width:40px;height:40px}}

/* Baccarat pair side bets */
.cz-bacc-side {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.cz-bacc-side-label {
  display: block;
  margin-bottom: 6px;
  opacity: 0.7;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cz-bacc-side-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.cz-bacc-sidebet {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  text-align: center;
  transition: background 0.12s, border-color 0.12s, transform 0.06s;
}
.cz-bacc-sidebet:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
}
.cz-bacc-sidebet:active:not(:disabled) { transform: translateY(1px); }
.cz-bacc-sidebet:disabled { opacity: 0.55; cursor: default; }
.cz-bacc-sidebet.playerpair  { box-shadow: inset 0 -2px 0 rgba(90, 160, 255, 0.5); }
.cz-bacc-sidebet.bankerpair  { box-shadow: inset 0 -2px 0 rgba(255, 110, 110, 0.5); }
.cz-bacc-sidebet.eitherpair  { box-shadow: inset 0 -2px 0 rgba(180, 140, 255, 0.5); }
.cz-bacc-sidebet.perfectpair { box-shadow: inset 0 -2px 0 rgba(255, 205, 90, 0.6); }
.cz-bacc-side-name { font-weight: 600; font-size: 0.82rem; }
.cz-bacc-side-pays { font-size: 0.9rem; font-weight: 700; }
.cz-bacc-side-sub  { font-size: 0.68rem; opacity: 0.6; }
.cz-bacc-sidebet.won {
  border-color: #ffd54a;
  background: rgba(255, 213, 74, 0.16);
  box-shadow: 0 0 0 1px rgba(255, 213, 74, 0.5), 0 0 14px rgba(255, 213, 74, 0.3);
}
.cz-bacc-side-hit {
  margin-top: 2px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffd54a;
}
@media (max-width: 520px) {
  .cz-bacc-side-row { grid-template-columns: repeat(2, 1fr); }
}

/* Roulette racetrack — French call / announced bets */
.cz-rl-track {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(0, 80, 40, 0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cz-rl-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  font-size: 11px;
}
.cz-rl-calls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.cz-rl-neighbors {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cz-rl-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
  line-height: 1.25;
  text-align: center;
}
.cz-rl-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); }
.cz-rl-btn:disabled { opacity: 0.45; cursor: default; }
.cz-rl-btn b { font-size: 13px; }
.cz-rl-meta { font-size: 10px; opacity: 0.75; }
.cz-rl-nb-btn { flex-direction: row; gap: 6px; }
.cz-rl-select {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.3);
  color: inherit;
}
.cz-rl-covers { opacity: 0.65; font-size: 10px; }
@media (max-width: 520px) {
  .cz-rl-calls { grid-template-columns: 1fr; }
}

/* ===== Craps advanced bets (odds / come / hardways / props) ===== */
.cz-craps-odds-row{display:flex;gap:6px;margin:4px 0 8px}
.cz-craps-odds{background:linear-gradient(#132f3a,#0e2029);border-color:#6fd0b899}
.cz-craps-odds.lay{background:linear-gradient(#2b2118,#231a14);border-color:#d6a94e99}
.cz-craps-come-row{display:flex;gap:6px;margin:4px 0}
.cz-craps-come{position:relative;flex:1;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:1px solid #ffffff22;border-radius:10px;background:linear-gradient(#17352a,#123024);color:#fff;cursor:pointer;padding:6px}
.cz-craps-come:not(:disabled):hover{outline:2px solid #f3d27e99}
.cz-craps-come:disabled{cursor:default}
.cz-craps-come.off{opacity:.4}
.cz-craps-come.dc{background:linear-gradient(#2b2118,#231a14)}
.cz-craps-come-travel{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.cz-craps-come-point{display:flex;align-items:center;gap:6px;padding:4px 8px 4px 5px;border:1px solid #6fd0b877;border-radius:10px;background:linear-gradient(100deg,#14302a,#0d1c20)}
.cz-craps-come-point.dc{border-color:#d6a94e77}
.cz-craps-cp-num{min-width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;background:#1c2b30;border:1px solid #ffffff33;font-weight:800;font-size:14px;color:#f0dbac}
.cz-craps-cp-lbl{font-size:11px;color:#cfe0d4;font-weight:700}
.cz-craps-cp-odds{padding:3px 8px;border:1px solid #f3d27e88;border-radius:8px;background:#19282c;color:#f3d27e;font-size:10px;font-weight:800;cursor:pointer}
.cz-craps-cp-odds:not(:disabled):hover{background:#22343a}
.cz-craps-cp-odds.off,.cz-craps-cp-odds:disabled{opacity:.4;cursor:default}
.cz-craps-hard-row{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
.cz-craps-hard{background:linear-gradient(#2a2433,#1b1722);border-color:#b89ad699}
.cz-craps-hard .cz-craps-spot-l{font-size:13px}
.cz-craps-prop-row{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.cz-craps-prop{background:linear-gradient(#33231f,#221614);border-color:#d68a6e99}
.cz-craps-prop .cz-craps-spot-l{font-size:13px}
@media(max-width:560px){.cz-craps-hard-row{grid-template-columns:repeat(2,1fr)}.cz-craps-prop-row{grid-template-columns:repeat(2,1fr)}}
/* Spin & Solve (original word-puzzle game; replaces the Big Six money wheel) */
.ss-wrap{max-width:720px;margin:0 auto;padding:10px;text-align:center;color:var(--text)}
.ss-cat{font:700 12px system-ui;letter-spacing:.18em;text-transform:uppercase;color:var(--title);margin-bottom:12px}
.ss-board{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:9px 14px;margin:8px 0 14px}.ss-word{display:inline-flex;flex-wrap:nowrap;gap:5px}
.ss-tile{display:inline-flex;align-items:center;justify-content:center;width:34px;height:44px;border-radius:6px;background:#12303a;border:1px solid #3c6b78;font:800 22px Georgia,serif;color:#fff}
.ss-tile.up{background:#f5f0e2;color:#16222a;border-color:#caa}
.ss-space{width:16px}.ss-punct{display:inline-flex;align-items:center;font:800 22px Georgia,serif;color:#cde}
.ss-hud{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;font:700 14px system-ui;margin:4px 0}
.ss-bank{color:#ffd34d}.ss-strikes{color:#e58}.ss-spin{color:#7fe3a0}
.ss-msg{min-height:20px;margin:8px 0 12px;color:#bcd;font-size:14px}
.ss-controls{display:flex;flex-direction:column;align-items:center;gap:10px}
.ss-lblrow{font-size:12px;color:#9fb6bd;text-transform:uppercase;letter-spacing:.1em}
.ss-letters{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;max-width:560px}
.ss-letter{min-width:34px;min-height:38px;border-radius:7px;background:#1d3a44;color:#fff;border:1px solid #4a7c8a;font:700 15px system-ui;cursor:pointer}
.ss-letter:disabled{opacity:.3;cursor:default}.ss-letter.used{opacity:.25}
.ss-solve{display:flex;gap:8px;justify-content:center;margin-top:6px;width:min(420px,96%)}
.ss-input{flex:1;text-transform:uppercase}
/* Pai Gow Poker */
.cz-pg .cz-vp-card{width:46px;height:64px}.cz-pg .cz-vp-rank{font-size:18px}.cz-pg .cz-vp-suit{font-size:15px}
.cz-pg-hand{flex-wrap:wrap;justify-content:center;gap:5px;max-width:560px;margin:8px auto}
.cz-pg-row{margin:10px auto;padding:9px;border:1px solid #3c5a62;border-radius:12px;background:#0d1f26;max-width:620px}
.cz-pg-row .cz-vp-cards{display:inline-flex;gap:4px;vertical-align:middle}
.cz-pg-front{margin-left:10px;padding-left:10px;border-left:2px dashed #5a7f8a}
/* Chinese Poker (3-row board) */
.cp-table{max-width:760px;margin:0 auto;color:var(--text);text-align:center}
.cp-head{font:800 20px system-ui;color:var(--title);padding:10px}
.cp-scores{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:6px 0 12px}
.cp-score{display:flex;flex-direction:column;align-items:center;padding:8px 12px;border:1px solid var(--game-line);border-radius:10px;background:var(--sunken);min-width:92px}
.cp-score.me{border-color:var(--title)}.cp-score .cp-total{font-weight:800;font-size:18px}
.cp-status{color:#bcd;font-size:14px;margin:8px 0}
.cp-row{display:flex;align-items:center;gap:10px;justify-content:center;min-height:70px;margin:6px auto;padding:6px;border:1px dashed var(--game-line);border-radius:12px;max-width:600px;cursor:pointer}
.cp-rowlbl{font:700 12px system-ui;text-transform:uppercase;letter-spacing:.08em;color:#9fb6bd;min-width:108px;text-align:right}
.cp-rowcards{display:flex;gap:4px;flex-wrap:wrap;min-height:60px;align-items:center}
.cp-pool{margin-top:12px}.cp-controls{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:14px 0}
.cp-primary{background:var(--title);color:#fff}
.cp-reveal{margin:10px auto;padding:10px;border:1px solid var(--game-line);border-radius:12px;max-width:640px;background:var(--sunken)}
.cp-reveal.me{border-color:var(--title)}.cp-revname{font-weight:700;margin-bottom:6px}
.cp-table .pcard.sel{outline:3px solid var(--title);transform:translateY(-6px)}

/* Poker hands belong on felt. Controls remain in document flow, never over play. */
.ct-onfelt .ct-table-playfield{position:relative;min-width:0}
.ct-onfelt .ct-pocket{position:relative;padding:8px 18px 24px;text-align:center;min-width:0;z-index:1;background:none;border:0;box-shadow:none}
.ct-onfelt .ct-pocket>strong{font-size:12px;letter-spacing:.07em;color:#e8dbb8;text-transform:uppercase}
.ct-onfelt .ct-pocket .ct-hand{justify-content:safe center;gap:12px;padding:12px 4px;margin:0 auto;min-height:0;flex-wrap:wrap;overflow:visible}
.ct-onfelt .ct-pocket .pcard{width:72px;height:104px;box-shadow:0 2px 3px #0006!important;transform:none!important}
.ct-onfelt .ct-pocket .pcard.sel{outline:3px solid #f0cd76;box-shadow:0 0 0 5px #f0cd7633!important}
.ct-onfelt.ct-table .ct-rack,.ct-onfelt.ct-poker:not(.is-lobby) .ct-rack,.ct-dialog .ct-onfelt .ct-rack{position:static;bottom:auto;z-index:auto;margin:12px 0 0;padding:14px 18px;border:0;border-top:1px solid #66867a66;border-radius:0;background:#10232c;box-shadow:none;backdrop-filter:none}
.ct-onfelt.is-lobby .ct-pocket{display:none}
.ct-onfelt .ct-head{flex-wrap:wrap;gap:10px}.ct-onfelt .ct-sound{min-height:44px;min-width:100px}
.ct-onfelt .ct-timer-settings{padding:16px 0}.ct-onfelt .ct-timer-settings label{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.ct-onfelt .ct-timer-select{min-height:44px;padding:8px 12px;font:inherit;border:1px solid #a89567;border-radius:8px;background:#142c35;color:#fff1cb}.ct-onfelt .ct-timer-settings p{font-size:13px;color:#c3d4d7}.ct-onfelt .ct-result{position:static}
@container(max-width:700px){.ct-onfelt .ct-pocket{padding:8px 10px 18px}.ct-onfelt .ct-pocket .pcard{width:60px;height:86px}.ct-onfelt .ct-pocket .ct-hand{gap:8px}.ct-onfelt .ct-head .gs-btn{flex:1}}
.ct-onfelt>.ct-timer-settings{padding:4px 18px 10px;display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap}.ct-onfelt>.ct-timer-settings p{margin:0}

/* Casino Studio: presentation tokens scoped away from illustrated slot artwork. */
.casino-studio{--felt:#124e42;--ink:#fff5d9;box-sizing:border-box;width:100%;max-width:1080px!important;padding:clamp(16px,3vw,32px);color:var(--ink);border:8px solid #282521;border-radius:28px;background:radial-gradient(ellipse at 50% 0%,#ffffff10,transparent 70%),repeating-linear-gradient(34deg,#ffffff03 0 1px,transparent 1px 3px),var(--felt);box-shadow:inset 0 0 0 2px #c9a669,inset 0 0 42px #0005,0 16px 32px #0005;font-size:15px;line-height:1.5}
.casino-studio.cz-baccarat{--felt:#512333}.casino-studio.cz-craps{--felt:#163f50}.casino-studio.cz-keno{--felt:#172c4a}.casino-studio.cz-slots{--felt:#451b25;max-width:760px!important}
.casino-studio .cz-title{font-size:clamp(22px,3vw,30px);font-weight:800;text-align:center;letter-spacing:.025em;margin:0 0 22px;text-wrap:balance;color:#fff1c9;text-shadow:0 2px 2px #0007}
.casino-studio button{touch-action:manipulation;font:inherit;min-height:44px;transition:background-color .15s,box-shadow .15s;border-radius:9px}
.casino-studio button:focus-visible{outline:3px solid #fff3ad;outline-offset:3px}.casino-studio button:disabled{cursor:default;opacity:.65}
.casino-studio .cz-chip{min-width:52px;min-height:48px;font-weight:750;background:linear-gradient(#344b54,#14262b);border:2px dashed #e3cf9c;color:#fff4d8;box-shadow:0 3px 0 #071b20}
.casino-studio .cz-chip.on{background:#f5d18b;color:#251b12;box-shadow:0 0 0 3px #f5d18b44}.casino-studio .cz-step{width:48px;height:48px}
.casino-studio .cz-spin{min-height:52px;max-width:360px;letter-spacing:.05em;box-shadow:0 4px 0 #755026,0 8px 20px #0004;margin:18px auto}
.casino-studio .cz-myresult{padding:16px 20px;border:1px solid #e5c57a66;border-radius:12px;background:#071d25df;color:#fff0cb;font-size:18px;text-align:center;animation:none;min-height:28px}
.casino-studio .cz-myresult.good{background:#104737;color:#caffdf}.casino-studio .cz-myresult.bad{color:#e1e9ee;background:#162c36}
.casino-studio .cz-rules{padding:12px 16px;background:#0003;border-radius:12px;color:#e1e8eb}.casino-studio .cz-rules summary{min-height:32px;color:#ffe0a0;font-weight:700}.casino-studio .cz-rules p{font-size:14px}
.casino-studio .cz-vp-hand{display:flex;justify-content:center;flex-wrap:wrap;gap:clamp(6px,1.2vw,14px);padding:20px 0}
.casino-studio .cz-vp-card{position:relative;flex:0 0 auto;width:clamp(48px,11vw,100px);height:clamp(74px,16vw,146px);border:1px solid #d2cab7;border-radius:9px!important;background:linear-gradient(130deg,#fffef9,#eeeade);color:#17212c;box-shadow:0 5px 9px #0005;padding:7px;opacity:1!important;overflow:visible}
.casino-studio .cz-vp-card.red,.casino-studio .cz-bacc-card.red{color:#b11e3d}.casino-studio .cz-vp-rank{font:700 clamp(17px,2.3vw,26px)/1 Georgia,serif}.casino-studio .cz-vp-suit{font-size:17px}.casino-studio .studio-card-center{position:absolute;inset:28% 10%;display:grid;place-items:center;font:clamp(24px,4vw,46px)/1 Georgia,serif;pointer-events:none}.casino-studio .studio-card-corner{position:absolute;bottom:6px;right:5px;transform:rotate(180deg);font:700 13px Georgia,serif;pointer-events:none}
.casino-studio .cz-vp-card.down{background:repeating-linear-gradient(45deg,#aec3d42b 0 2px,transparent 2px 7px),repeating-linear-gradient(-45deg,#aec3d42b 0 2px,transparent 2px 7px),#203c65;box-shadow:inset 0 0 0 5px #f5edda,inset 0 0 0 7px #d0b477,0 5px 9px #0005}.casino-studio .cz-vp-back{visibility:hidden}
.casino-studio .cz-vp-card.held,.casino-studio .cz-vp-card.sel{outline:3px solid #f9ce70;outline-offset:3px;transform:translateY(-5px)}.casino-studio .cz-vp-held{bottom:-22px;background:#f9ce70;color:#27200d;font-size:11px;z-index:2}
.casino-studio .cz-vp-paytable{background:#071b25bb;border:1px solid #e7cc9044;border-radius:12px;padding:14px}.casino-studio .cz-vp-pt-row{padding:5px 8px;font-size:14px}.casino-studio .cz-vp-pt-row:nth-child(even){background:#ffffff08}
.casino-studio .cz-bacc-card{position:relative;width:48px;height:70px;opacity:1}.casino-studio .cz-bacc-card .studio-card-center{font-size:22px}.casino-studio .cz-bacc-hands{flex-wrap:wrap;justify-content:center}.casino-studio .cz-bacc-spot{min-height:105px;background:#170f21aa}.casino-studio .cz-bacc-spot-sub,.casino-studio .cz-bacc-hand-label,.casino-studio .cz-bacc-shoe{font-size:12px;color:#e0d7da}
.casino-studio .cz-grid{overflow-x:auto;padding:5px 4px 12px}.casino-studio .cz-nums{min-width:528px}.casino-studio .cz-nums .cz-cell{min-width:40px;min-height:44px;font-size:14px}.casino-studio .cz-cell{font-size:14px}.casino-studio .cz-table-players{color:#d0e3e8;font-size:14px}.casino-studio .cz-status{font-size:15px}
.casino-studio .cz-reels{padding:clamp(10px,3vw,24px);border:5px ridge #dbb46c;gap:8px;background:#100c10;box-shadow:inset 0 0 25px #000,0 5px 12px #0006}.casino-studio .cz-reel{width:30%;height:auto;aspect-ratio:1/1.15;border:1px solid #d2b57266;background:#0e1320}.casino-studio .studio-symbol{display:block;width:100%;height:100%;font-size:0;background-image:url('/casino/studio/classic-symbols.webp');background-size:300% 200%;background-repeat:no-repeat}.studio-symbol[data-symbol=cherries]{background-position:0 0}.studio-symbol[data-symbol=lemon]{background-position:50% 0}.studio-symbol[data-symbol=bell]{background-position:100% 0}.studio-symbol[data-symbol=star]{background-position:0 100%}.studio-symbol[data-symbol=seven]{background-position:50% 100%}.studio-symbol[data-symbol=diamond]{background-position:100% 100%}
.cz.cz-clowncarnival,.cz.cz-fastfood,.cz.cz-ginge,.cz.cz-humptydumpty,.cz.cz-kholekitchen,.cz.cz-mermaid,.cz.cz-ragemputt,.cz.cz-jadepalace{width:100%;max-width:1280px;min-width:0}.cz canvas{max-width:100%}
.ct-table .ct-felt{background-image:radial-gradient(ellipse at 50% 20%,#ffffff0b,transparent 70%),repeating-linear-gradient(35deg,#ffffff03 0 1px,transparent 1px 3px);box-shadow:inset 0 0 0 2px #d7bc7355,inset 0 0 45px #0005}
@media(max-width:560px){.casino-studio{padding:14px 10px;border-width:5px;border-radius:18px}.casino-studio .cz-title{margin-bottom:14px}.casino-studio .cz-bacc-spots{gap:5px}.casino-studio .cz-bacc-spot-name{font-size:13px}.casino-studio .cz-bacc-spot-sub{font-size:11px}.casino-studio .cz-paytable{grid-template-columns:1fr}.casino-studio .cz-vp-hand{gap:6px}.casino-studio .cz-myresult{font-size:16px}}
@media(prefers-reduced-motion:reduce){.casino-studio *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.casino-studio .cz-vp-cards{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;max-width:100%}.casino-studio .cz-vp-seatlbl{flex-basis:100%;text-align:center;font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:#e6d4ab}.casino-studio .cz-pg-row{flex-wrap:wrap}.casino-studio .cz-vp-hint{font-size:14px;color:#e0e9eb;line-height:1.6}.casino-studio .cz-win{animation:none}.casino-studio .cz-keno-grid{grid-template-columns:repeat(10,minmax(44px,1fr));overflow-x:auto;padding:8px 4px 14px}.casino-studio .cz-keno-cell{min-height:46px;font-size:15px}.casino-studio .cz-keno-sub{color:#d6e7f5;font-size:14px}.casino-studio .cz-craps-sub,.casino-studio .cz-bacc-side-sub{font-size:12px;opacity:1;color:#dce5ed}
@media(max-width:560px){.casino-studio .cz-keno-grid{grid-template-columns:repeat(5,minmax(44px,1fr))}.casino-studio .cz-vp-cards{gap:6px}.casino-studio .cz-bacc-hands{gap:6px}}

/* Separate launch and favorite controls: no nested interactive buttons. */
#games-list .game-entry{display:flex;gap:6px;min-width:0;align-items:stretch}
#games-list .game-entry>.game-item{flex:1;width:auto}
#games-list .game-favorite{flex:0 0 44px;min-height:44px;align-self:flex-start;padding:8px 0;border:1px solid var(--border);border-radius:10px;background:var(--card);color:var(--text);font:28px/1 system-ui;cursor:pointer;touch-action:manipulation}
#games-list .game-favorite[aria-pressed=true]{color:#ffc857;background:var(--elev)}
#games-list .game-favorite:hover{border-color:var(--title)}
#games-list .game-favorite:focus-visible{outline:3px solid var(--title,#c3a8f5);outline-offset:2px}

/* Authenticator (2-step login) setup UI in Settings → General */
.totp-key{font:700 20px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:2px;background:var(--elev,#20242c);color:var(--text,#fff);padding:10px 12px;border-radius:8px;margin:8px 0;word-break:break-all;user-select:all}
.totp-codes{font:600 15px/1.8 ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--elev,#20242c);color:var(--text,#fff);padding:12px;border-radius:8px;margin:8px 0;white-space:pre-wrap;user-select:all}

/* QR for authenticator enrollment (rendered in-browser from the otpauth URI) */
.totp-qr{display:inline-block;background:#fff;padding:10px;border-radius:12px;margin:8px 0;min-height:200px;min-width:200px}
.totp-qr img,.totp-qr canvas{display:block}

/* FIX casino-studio card faces (video poker / baccarat): the old .cz-vp-card flex-center rule + studio.js's big
   center suit (painted last) were hiding the rank behind the pip, leaving only a rotated bottom corner readable.
   Keep rank+suit centered and ON TOP; make the big suit a faint watermark; drop the hard-to-read rotated corner. */
.casino-studio .cz-vp-card,.casino-studio .cz-bacc-card{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;line-height:1}
.casino-studio .cz-vp-card>span:not(.studio-card-center):not(.studio-card-corner),.casino-studio .cz-bacc-card>span:not(.studio-card-center):not(.studio-card-corner){position:relative;z-index:2}
.casino-studio .cz-vp-suit{margin-top:3px}
.casino-studio .studio-card-center{inset:0;opacity:.1;font-size:clamp(44px,9vw,82px);z-index:0}
.casino-studio .studio-card-corner{display:none}
.casino-studio .cz-vp-held{position:absolute;left:0;right:0;bottom:-22px;z-index:3}

/* ========== Poker table redesign (pk-rd 2026-10-20): fit on one screen, sharpen ========== */
.ct-poker:not(.is-lobby) .ct-head{padding:9px 16px}
.ct-poker:not(.is-lobby) .ct-head h2{font-size:18px}
.ct-poker:not(.is-lobby) .ct-head small{font-size:9px}
.ct-poker:not(.is-lobby) .ct-status{padding-top:6px;font-size:15px}
.ct-poker:not(.is-lobby) .ct-clock{margin:2px 0}
.ct-poker:not(.is-lobby)>.ct-timer-settings{display:none}   /* host timer tucked into details */
.ct-poker:not(.is-lobby) .ct-felt{margin:6px 14px;min-height:0;overflow:visible}
.ct-poker:not(.is-lobby) .ct-felt .ct-center{z-index:1}
.ct-poker .ct-hero-hidden{display:none !important}   /* hero shown as the pocket + action bar below, not a ring box */
.ct-poker:not(.is-lobby) .ct-pocket{padding:2px 18px 6px}
.ct-poker:not(.is-lobby) .ct-result:not(:empty){margin:4px 14px;padding:8px 12px;max-height:22dvh;overflow:auto}
.ct-poker:not(.is-lobby) .ct-rack{position:static;margin:6px 12px 8px;padding:8px 12px}
/* DESKTOP-only oval: fixed-height playfield with the seats ringed around it. Mobile keeps the 2-col grid. */
@container(min-width:701px){
  .ct-poker:not(.is-lobby) .ct-table-playfield{position:relative;height:clamp(292px,44dvh,430px)}
  .ct-poker:not(.is-lobby) .ct-felt .ct-seats.seat-ring{position:absolute;inset:0;min-height:0;height:100%;padding:0}
}

/* pk-rd: bet chips, winner badges, on-felt hand banner */
.ct-poker .ct-felt .ct-seats.seat-ring .ct-seat{overflow:visible}
.ct-poker .ct-seat-bet{position:absolute;left:50%;bottom:-13px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:5px;padding:2px 10px 2px 8px;font:800 11px/1 system-ui;color:#fff6df;background:#0b1c22ee;border:1px solid #d9b86a;border-radius:12px;white-space:nowrap;box-shadow:0 3px 7px #0007;z-index:4}
.ct-poker .ct-seat-bet:before{content:"";width:12px;height:12px;border-radius:50%;background:radial-gradient(circle at 38% 32%,#ffe79f,#c99a3e);box-shadow:inset 0 0 0 2px #fff4cf88,0 1px 2px #0006}
.ct-poker .ct-seat-bet[hidden],.ct-poker .ct-seat-win[hidden]{display:none}
.ct-poker .ct-seat-win{position:absolute;left:50%;top:-6px;transform:translate(-50%,-100%);padding:3px 11px;font:800 11px/1.25 system-ui;color:#06301c;background:linear-gradient(#b6f2cf,#6fe0a4);border:1px solid #d6ffe8;border-radius:12px;white-space:nowrap;box-shadow:0 4px 14px #2fd98a66;z-index:6}
.ct-poker .ct-seat-win b{display:block;font-size:8px;letter-spacing:.16em}
.ct-poker .ct-felt-hand{margin-top:9px;font:900 clamp(15px,2.4cqw,24px)/1 system-ui;letter-spacing:.04em;color:#fff3cf;text-shadow:0 2px 6px #000a,0 0 18px #f3d48c55;-webkit-text-stroke:.5px #7a5a1f}
.ct-pk-win{color:#7ff0b4;font-weight:800}
/* tighten the hero zone so the action bar + help always fit */
.ct-poker:not(.is-lobby) .ct-pocket{padding:0 18px 2px}
.ct-onfelt .ct-poker:not(.is-lobby) .ct-pocket .ct-hand,.ct-poker:not(.is-lobby) .ct-pocket .ct-hand{padding:5px 4px;margin:2px auto}
.ct-poker:not(.is-lobby) .ct-pocket>strong{font-size:12px}

/* pk-rd: mobile — anchor bet/win badges to each grid seat (static seats aren't a positioning context) */
@container(max-width:700px){.ct-poker:not(.is-lobby) .ct-felt .ct-seats .ct-seat{position:relative}}

/* pk-rd: bet controls (slider + pot presets) + pre-action buttons */
.ct-poker .ct-actions{gap:8px;align-items:center}
.ct-poker .ct-actionbar{display:flex;flex-direction:column;gap:9px;width:100%;max-width:560px;margin:0 auto}
.ct-poker .ct-sizing{display:flex;flex-direction:column;gap:7px}
.ct-poker .ct-bet-row{display:flex;align-items:center;gap:10px}
.ct-poker .ct-bet-slider{flex:1;min-width:0;height:28px;accent-color:#e7c46e;cursor:pointer}
.ct-poker .ct-bet-row .ct-raise{max-width:112px;text-align:center;margin:0}
.ct-poker .ct-bet-presets{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.ct-poker .ct-chip-preset{padding:7px 11px;font:700 12px system-ui;background:#13323b;color:#ffe6ac;border:1px solid #6f8f86;box-shadow:none;min-width:0}
.ct-poker .ct-chip-preset.ct-allin{background:#3a2330;color:#ffd7e0;border-color:#b06b84}
.ct-poker .ct-mainrow{display:flex;gap:9px;align-items:stretch}
.ct-poker .ct-mainrow .gs-btn{flex:1 1 0;min-width:0}
.ct-poker .ct-mainrow .ct-bet-go{flex:2 1 0}
.ct-poker .ct-mainrow .ct-act-call{flex:1.4 1 0}
.ct-poker .ct-pre-label{width:100%;text-align:center;margin:0 0 2px;color:#bcd0d4}
.ct-poker .ct-pre{background:#15303a;color:#dfeef0;border:1px solid #6f8f86}
.ct-poker .ct-pre.on{background:linear-gradient(#ffe7a6,#e3bf6f);color:#20323a;border-color:#fff0c8;box-shadow:0 0 0 3px #e8c67933}

/* pk-rd: tighten vertical so slider + presets + Fold/Call/Raise all fit on one screen */
@container(min-width:701px){.ct-poker:not(.is-lobby) .ct-table-playfield{height:clamp(256px,36dvh,378px)}}
.ct-poker:not(.is-lobby) .ct-pocket .pcard{width:58px!important;height:84px!important}
.ct-poker:not(.is-lobby) .ct-pocket>strong{font-size:11px}
.ct-poker:not(.is-lobby) .ct-pocket .ct-hand{margin:1px auto;padding:2px 4px;min-height:0}
.ct-poker:not(.is-lobby) .ct-cash{padding:5px 12px;margin:3px 12px;font-size:12px}
.ct-poker:not(.is-lobby) .ct-status{padding-top:4px;font-size:14px}
.ct-poker:not(.is-lobby) .ct-head{padding:7px 16px}
.ct-poker:not(.is-lobby) .ct-felt{margin:5px 14px}

/* ===== pk-rd v2: circular avatar seats (no dark pods) + bigger cards ===== */
.ct-poker .ct-felt .ct-seats.seat-ring .ct-seat{width:clamp(72px,10cqw,110px);min-height:0;border:0;background:none;box-shadow:none;padding:0;display:flex;flex-direction:column;align-items:center;gap:3px;overflow:visible}
.ct-poker .ct-av{width:clamp(46px,6.4cqw,70px);aspect-ratio:1;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid #d9c290;box-shadow:0 3px 9px #0008,inset 0 0 0 2px #ffffff1f;background:#263a44;overflow:hidden;position:relative;z-index:2}
.ct-poker .ct-av img{width:100%;height:100%;object-fit:cover;display:block}
.ct-poker .ct-av-initial{background:hsl(var(--avh,210) 42% 40%)}
.ct-poker .ct-av-initial::before{content:attr(data-ini);font:800 clamp(15px,2.3cqw,23px)/1 system-ui;color:#fff;text-shadow:0 1px 2px #0007}
.ct-poker .ct-seat.active .ct-av{border-color:#ffd877;box-shadow:0 0 0 4px #e8c67955,0 3px 10px #0008}
.ct-poker .ct-seat.winner .ct-av{border-color:#8af0bd;box-shadow:0 0 0 4px #7ff0b455,0 0 20px #7ff0b088}
.ct-poker .ct-seat.folded{opacity:.5}
.ct-poker .ct-seat.folded .ct-av{filter:grayscale(.55)}
.ct-poker .ct-seat-title{font:700 11px/1.2 system-ui;color:#f3e7c7;text-shadow:0 1px 2px #000b;white-space:nowrap;max-width:15ch;overflow:hidden;text-overflow:ellipsis}
.ct-poker .ct-seat-stats{font-size:10px;color:#eef5f3;background:#0b1c22e6;border:1px solid #ffffff22;border-radius:9px;padding:1px 8px;line-height:1.5;box-shadow:0 2px 5px #0006}
.ct-poker .ct-last-action{color:#ffdf9b;font-size:9px}
/* opponent card backs / revealed hands peek above the avatar */
.ct-poker .ct-seat .ct-seat-cards{position:absolute;top:-9px;left:50%;transform:translateX(-58%);z-index:1;display:flex}
.ct-poker .ct-seat .ct-seat-cards .ct-back{width:clamp(20px,2.6cqw,28px);height:clamp(28px,3.7cqw,39px)}
.ct-poker .ct-seat .ct-seat-cards .pcard{width:clamp(30px,4.2cqw,44px)!important;height:clamp(43px,6cqw,63px)!important}
/* bet chip + winner badge sit BELOW the avatar unit (mutually exclusive in time) */
.ct-poker .ct-seat-bet{bottom:auto;top:calc(100% + 3px)}
.ct-poker .ct-seat-win{top:auto;bottom:auto;top:calc(100% + 1px);transform:translate(-50%,0)}
/* bigger, space-filling cards */
.ct-poker .ct-community .pcard,.ct-poker .ct-community .ct-slot{width:clamp(42px,6.2cqw,74px)!important;height:clamp(60px,8.8cqw,104px)!important}   /* compact board so the central pot+board band stays clear of the seat ring */
.ct-poker:not(.is-lobby) .ct-pocket .pcard{width:clamp(64px,9cqw,106px)!important;height:clamp(92px,13cqw,152px)!important}
.ct-poker:not(.is-lobby) .ct-pocket>strong{font-size:12px}

/* pk-rd: disconnect wait/kick vote panel */
.ct-poker .ct-discvote{margin:6px 16px;padding:9px 14px;background:#3a2a1aee;border:1px solid #d9a05a;border-radius:12px;text-align:center}
.ct-poker .ct-dv-title{display:block;color:#ffd79a;font-size:14px;font-weight:800}
.ct-poker .ct-dv-sub{margin:3px 0 7px;font-size:12px;color:#ecdcbe}
.ct-poker .ct-dv-btns{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.ct-poker .ct-dv-wait.on{background:linear-gradient(#ffe7a6,#e3bf6f);color:#20323a;border-color:#fff0c8}
.ct-poker .danger.on{box-shadow:0 0 0 3px #da829555}

/* pk-rd: hero is the pocket (hide the duplicate ring seat) + balance card sizes for fit */
.ct-poker .ct-hero-hidden{display:none !important}
@container(min-width:701px){
  .ct-poker:not(.is-lobby) .ct-pocket .pcard{width:clamp(60px,7.6cqw,92px)!important;height:clamp(86px,11cqw,132px)!important}
  .ct-poker:not(.is-lobby) .ct-table-playfield{height:clamp(330px,46dvh,470px)}   /* taller oval so the seat ring and the central pot/board each get their own band and never overlap */
}

/* pk-rd: drop the pot/board into the open lower-centre felt so the top seats (ringed higher, below) never overlap it */
@container(min-width:701px){.ct-poker:not(.is-lobby) .ct-felt .ct-center{top:66%}}

/* pk-rd: mobile — force the avatar seats into a clean 2-col grid (override the desktop ring absolutes) */
@container(max-width:700px){
  .ct-poker:not(.is-lobby) .ct-felt{display:flex;flex-direction:column}
  .ct-poker:not(.is-lobby) .ct-felt .ct-seats.seat-ring{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px;position:relative!important;height:auto!important;inset:auto!important;padding:14px 12px 8px}
  .ct-poker:not(.is-lobby) .ct-felt .ct-seats.seat-ring .ct-seat{position:relative!important;left:auto!important;top:auto!important;transform:none!important;width:auto;flex-direction:row;justify-content:flex-start;align-items:center;gap:9px;text-align:left}
  .ct-poker:not(.is-lobby) .ct-felt .ct-seats.seat-ring .ct-seat .ct-seat-cards{position:absolute!important;top:-8px;left:30px;transform:none}
  .ct-poker:not(.is-lobby) .ct-felt .ct-center{position:relative!important;left:auto!important;top:auto!important;transform:none!important;width:auto;margin:4px 8px 8px}
  .ct-poker .ct-av{flex:0 0 auto}
  .ct-poker .ct-seat-bet{top:auto;bottom:-4px;left:34px;transform:none}
}

/* pk-rd: mobile seat — avatar beside a (name / stats) stack, no name truncation */
@container(max-width:700px){
  .ct-poker:not(.is-lobby) .ct-felt .ct-seats.seat-ring .ct-seat{display:grid!important;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:9px;row-gap:1px;align-items:center}
  .ct-poker:not(.is-lobby) .ct-felt .ct-seats.seat-ring .ct-seat .ct-av{grid-row:1/3}
  .ct-poker:not(.is-lobby) .ct-felt .ct-seats.seat-ring .ct-seat .ct-seat-title{grid-column:2;grid-row:1;align-self:end;max-width:none}
  .ct-poker:not(.is-lobby) .ct-felt .ct-seats.seat-ring .ct-seat .ct-seat-stats{grid-column:2;grid-row:2;align-self:start;justify-self:start}
}

/* pk-rd: lobby — board/pot hidden, seats in a clean grid (the playfield wrapper changed the DOM, so re-assert) */
.ct-poker.is-lobby .ct-table-playfield{height:auto!important;position:static}
.ct-poker.is-lobby .ct-felt .ct-center{display:none!important}
.ct-poker.is-lobby .ct-felt .ct-seats.seat-ring{position:relative!important;height:auto!important;inset:auto!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;padding:16px}
.ct-poker.is-lobby .ct-felt .ct-seats.seat-ring .ct-seat{position:relative!important;left:auto!important;top:auto!important;transform:none!important;flex-direction:column}

/* pk-rd: clickable empty seats + sit/buy-in modal */
.ct-poker .ct-empty-seat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:none;border:0;cursor:pointer;padding:0}
.ct-poker .ct-empty-seat .ct-empty-ico{width:clamp(46px,6.4cqw,70px);aspect-ratio:1;border-radius:50%;display:flex;align-items:center;justify-content:center;font:300 30px/1 system-ui;color:#cfe3d8;border:2px dashed #7fae9b99;background:#0e241f55;transition:border-color .12s,background .12s,box-shadow .12s}
.ct-poker .ct-empty-seat:hover .ct-empty-ico,.ct-poker .ct-empty-seat:focus-visible .ct-empty-ico{border-color:#8af0bd;border-style:solid;color:#fff;background:#14473a;box-shadow:0 0 0 4px #7ff0b033}
.ct-poker .ct-empty-seat .ct-empty-lbl{font:700 10px system-ui;color:#c2d6cd;white-space:nowrap}
.ct-poker .ct-empty-seat:hover .ct-empty-lbl{color:#eafff4}
.ct-sit-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;background:#0009;backdrop-filter:blur(2px)}
.ct-sit-card{background:linear-gradient(#17333b,#0d191f);border:1px solid #c6a663;border-radius:16px;padding:20px 22px;max-width:340px;width:92%;text-align:center;box-shadow:0 18px 50px #000b;color:#f2efe4;font:14px system-ui}
.ct-sit-card h3{margin:0 0 6px;color:#f3d48c;font-size:19px}
.ct-sit-card p{margin:0 0 14px;font-size:13px;color:#cfe0e2;line-height:1.55}
.ct-sit-card .ct-buyin-amt{width:100%;box-sizing:border-box;min-height:46px;font:700 18px system-ui;text-align:center;background:#f9f5e9;color:#142c34;border:1px solid #ad9967;border-radius:10px;padding:8px}
.ct-sit-btns{display:flex;gap:10px;margin-top:14px}
.ct-sit-btns .gs-btn{flex:1;min-height:44px;border-radius:10px;padding:10px 14px;font:700 14px system-ui;cursor:pointer;border:1px solid #88775a;background:#1f3a42;color:#ffe9bd}
.ct-sit-btns .ct-primary{background:linear-gradient(#fae7b9,#d8b76a);color:#17282d;border-color:#dfbb6b}

/* Production avatar table: results float on the existing felt, never append a tall scorecard. */
.ct-onfelt .ct-showdown{position:absolute;z-index:12;inset:6px 8%;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 16px;border:1px solid #dabd78;border-radius:18px;background:linear-gradient(145deg,#153c38fa,#0c242bfa);box-shadow:0 8px 28px #0009;color:#f5eedb;overflow:auto;overscroll-behavior:contain;text-align:center}
.ct-showdown-top{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;font-size:12px;letter-spacing:.07em}
.ct-showdown h3{margin:2px 0;font-size:clamp(16px,2.7cqw,24px);color:#ffe4a2}
.ct-showdown-rank{margin:0;font-size:14px}
.ct-showdown-cards{display:flex;justify-content:center;gap:5px;flex-wrap:nowrap}
.ct-onfelt .ct-showdown .pcard{width:clamp(34px,6cqw,72px)!important;height:clamp(50px,8.6cqw,104px)!important;flex-shrink:0;transform:none!important}
.ct-showdown-nav{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.ct-showdown-detail{width:100%;font-size:12px}
.ct-showdown-detail summary{cursor:pointer;padding:6px}
.ct-showdown-detail p{margin:5px}
.ct-showdown-next{font-size:11px;color:#cbded7}
.ct-showdown .gs-btn{min-height:36px}
.ct-onfelt .ct-result:has(.ct-show-result){margin:2px 10px;padding:3px;background:none;border:0}
@container(max-width:700px){.ct-onfelt .ct-showdown{inset:8px 3%;max-height:min(420px,70dvh);margin:auto 0}.ct-showdown-top{font-size:11px}.ct-showdown .gs-btn{min-height:40px}.ct-showdown-nav{gap:4px}}
@media(prefers-reduced-motion:no-preference){.ct-showdown{animation:ct-result-in .18s ease-out}@keyframes ct-result-in{from{opacity:0}to{opacity:1}}}

/* ===== game menu redesign ===== */
/* Scoped to the picker and its existing setup flows; shared modals retain their styles. */
#games-modal,.game-setup-overlay{--game-teal:#17a28d;--game-teal-bright:#1ec0a6;backdrop-filter:blur(8px)}
#games-modal>.games-dialog{width:min(780px,calc(100vw - 24px));max-height:calc(100dvh - 24px);border:1px solid var(--border);border-radius:24px;background:var(--panel);box-shadow:0 24px 80px #0005;overflow:hidden;display:flex;flex-direction:column}
#games-modal .modal-h{background:transparent;color:var(--text);padding:24px;gap:16px;align-items:center;border-bottom:1px solid var(--border)}
.games-heading{display:flex;align-items:center;gap:14px;min-width:0}
.games-heading-icon{display:inline-grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:14px;background:color-mix(in srgb,#17a28d 16%,var(--panel));color:var(--game-teal,#17a28d);font-size:22px}
#games-title{font-size:21px;letter-spacing:-.035em;overflow-wrap:anywhere}
.games-heading-sub,.games-flow-hint{font-size:13px;font-weight:400;color:var(--text-dim);line-height:1.6;margin:5px 0 0}
#games-close{display:grid;place-items:center;flex:0 0 40px;height:40px;border:1px solid var(--border);border-radius:12px;background:var(--card);cursor:pointer;color:var(--text-dim)}
#games-modal .modal-b{min-height:0;overflow:hidden;gap:0}
#games-modal .groups-search{padding:18px 24px}
#games-q{width:100%;min-height:46px;border:1px solid var(--border);border-radius:12px;background:var(--search);color:var(--text);padding:12px 14px;font:inherit}
#games-list{padding:0 24px 24px;gap:12px;max-height:min(65dvh,680px);overflow-x:hidden;overscroll-behavior:contain;grid-template-columns:repeat(2,minmax(0,1fr))}
#games-list .games-modes{grid-column:1/-1;display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;min-width:0;margin:0;padding:4px 0 8px;scrollbar-width:thin}
#games-list .games-modes button{flex:0 0 auto;min-height:42px;border-radius:11px;padding:10px 14px;background:var(--card);font-size:13px}
#games-list .games-modes [aria-pressed=true]{background:color-mix(in srgb,#17a28d 16%,var(--panel));border-color:#17a28d;color:var(--text)}
#games-list .games-cats button{border-radius:999px;min-height:36px;padding:7px 13px;font-size:12px}
#games-list .games-cat{font-size:11px;margin:14px 0 0;color:var(--text-dim);letter-spacing:.1em}
#games-list .games-cat span{color:var(--text-dim);letter-spacing:0;text-transform:none;font-weight:400}
#games-list .game-entry{position:relative;display:block;background:var(--card);border:1px solid var(--border);border-radius:16px;overflow:hidden}
#games-list .game-entry>.game-item{width:100%;height:auto;border:0;border-radius:16px;padding:18px 50px 18px 16px;display:flex;flex-wrap:wrap;gap:12px;background:transparent}
#games-list .game-entry:hover{border-color:#17a28d;background:var(--hover)}
#games-list .game-entry .game-meta{flex:1 1 130px}
#games-list .game-ico{background:color-mix(in srgb,#17a28d 12%,var(--elev));border-radius:12px;flex-shrink:0}
#games-list .game-name{font-size:14px;font-weight:700;overflow-wrap:anywhere}
#games-list .game-sub{font-size:11px;color:var(--text-dim)}
#games-list .game-desc{font-size:12px;line-height:1.6;margin-top:8px}
#games-list .game-launch{display:none}
#games-list .game-favorite{position:absolute;right:6px;top:8px;width:40px;min-height:40px;border:0;background:transparent;font-size:23px;color:var(--text-dim)}
#games-list .game-favorite[aria-pressed=true]{background:transparent;color:var(--star)}
#games-list .game-live{grid-column:1/-1;align-items:center;flex-wrap:wrap;border-radius:14px}
#games-list :is(button,input,select):focus-visible,#games-q:focus-visible,.game-setup-card :is(button,input,textarea,select):focus-visible{outline:2px solid #17a28d;outline-offset:3px}
#games-list.games-challenge,#games-list.games-config{display:flex;flex-direction:column;gap:14px}
#games-list :is(.games-flow-hint,.gs-hint){margin:0;color:var(--text-dim);font-size:13px;line-height:1.65}
#games-list .games-back{background:transparent;border:0;padding:6px 0;color:var(--text-dim)}
#games-list .game-bestof{display:flex;align-items:center;flex-wrap:wrap;gap:8px;background:var(--card);border:1px solid var(--border);border-radius:14px;padding:14px;margin:0}
#games-list .bo-label{color:var(--text-dim);font-size:13px;margin-right:8px}
#games-list .bo-btn,.game-setup-card .sk-opt{min-height:42px;padding:8px 14px;border:1px solid var(--border);border-radius:10px;background:var(--search);color:var(--text);cursor:pointer}
#games-list .bo-btn.on,.game-setup-card .sk-opt.on{background:color-mix(in srgb,#17a28d 18%,var(--panel));border-color:#17a28d;color:var(--text)}
#games-list :is(input,select),.game-setup-card :is(select,textarea){min-width:0;max-width:100%;min-height:44px;border:1px solid var(--border);border-radius:10px;background:var(--search);color:var(--text);padding:10px 12px;font:inherit}
#games-list .wager-inp{width:110px}#games-list .wager-bal{font-size:12px;color:var(--text-dim)}
#games-list :is(.games-config-field,.ct-cfg-field){display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600}
#games-list details{border:1px solid var(--border);border-radius:14px;padding:16px;background:var(--card)}
#games-list summary{cursor:pointer;line-height:1.5;font-size:13px}
#games-list .ct-cfg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
#games-list :is(.ct-cfg-hint,.ct-cfg-lbl){color:var(--text-dim)}
#games-list .gs-btn,.game-setup-card .addf-foot .gs-btn{min-height:46px;border:1px solid #17a28d;border-radius:12px;background:linear-gradient(110deg,#17a28d,#1ec0a6);color:#052c26;font-family:inherit;font-size:14px;font-weight:700;line-height:1.4;padding:12px 16px;white-space:normal;cursor:pointer;box-shadow:none}
#games-list.games-config>.gs-btn,#games-list details>.gs-btn{width:100%}
#games-list.games-config>.gs-btn:last-child{background:var(--card);border-color:var(--border);color:var(--text-dim)}
.game-setup-overlay{padding:12px;overflow:auto}
.game-setup-card{width:min(540px,100%);min-width:0;padding:24px;border:1px solid var(--border);border-radius:24px;background:var(--panel);color:var(--text);box-shadow:0 24px 80px #0005}
.game-setup-card .addf-title{display:flex;align-items:center;gap:12px;font-size:20px;color:var(--text);margin-bottom:8px}
.game-setup-card .sk-setrow{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 8px;font-size:13px;color:var(--text-dim)}
.game-setup-card .sk-choices{display:flex;flex-wrap:wrap;gap:8px}
.game-setup-card textarea{margin-top:18px;resize:vertical}
.game-setup-card .sk-setrow:has(input[type=checkbox]){justify-content:flex-start;border:1px solid var(--border);border-radius:999px;padding:10px 14px;width:fit-content}
.game-setup-card input[type=checkbox]{appearance:none;position:relative;flex:0 0 36px;width:36px;height:22px;border:1px solid var(--border);border-radius:999px;background:var(--elev);margin:0;cursor:pointer}
.game-setup-card input[type=checkbox]:before{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003}
.game-setup-card input[type=checkbox]:checked{background:#22c55e;border-color:#22c55e}
.game-setup-card input[type=checkbox]:checked:before{transform:translateX(14px)}
.game-setup-card .addf-foot{display:flex;flex-direction:column-reverse;gap:8px;margin-top:24px}
.game-setup-card .addf-foot .gs-btn{width:100%}
.game-setup-card .addf-foot .danger{background:transparent;color:var(--text-dim);border-color:var(--border)}
@media(max-width:560px){
 #games-modal>.games-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 24px);border-radius:20px}
 #games-modal .modal-h{padding:18px 16px}#games-title{font-size:18px}.games-heading-sub{font-size:12px}
 #games-modal .groups-search{padding:14px 16px}#games-list{padding:0 16px 18px;grid-template-columns:1fr;max-height:calc(100dvh - 220px)}
 #games-list .game-entry>.game-item{flex-wrap:nowrap}#games-list .game-entry .game-meta{flex:1;min-width:0}
 .game-setup-card{padding:20px 16px}#games-list .game-live .watch-btn{width:100%;margin:0}
}

/* ===== trivia (setup + game view) ===== */
.addf-card.game-setup-card.tr-setup,.tr-game{box-sizing:border-box;color:#e8eeef;background:#141b20;border:1px solid #2b383e;border-radius:24px;min-width:0;overflow-wrap:anywhere}
.addf-card.game-setup-card.tr-setup{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;width:min(580px,calc(100vw - 24px));padding:24px;margin:auto;box-shadow:0 24px 80px #0008;color-scheme:dark}
.tr-setup>*,.tr-game *{min-width:0;box-sizing:border-box}
.tr-setup .addf-title{display:flex;align-items:center;gap:12px;margin:0;font-size:24px;font-weight:750;color:#f0f6f5}
.tr-setup .games-heading-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#17a28d20;color:#1ec0a6;font-size:24px}
.tr-setup .games-flow-hint,.tr-setup .tr-bankline,.tr-helper{margin:0;color:#9aadb5;font-size:13px;line-height:1.6}
.tr-setup .tr-row{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;color:#d7e2e4;margin:0}
.tr-setup .tr-input{box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:46px;padding:10px 12px;border:1px solid #34434a;border-radius:10px;background:#1b252c;color:#edf4f4;font:inherit;font-size:14px}
.tr-setup .tr-bankline{padding:12px 14px;border:1px solid #2b3d42;border-radius:10px;background:#19262b}
.tr-setup .tr-check{display:flex;align-items:center;gap:12px;margin:0;color:#c6d4d8;font-size:13px;line-height:1.5;cursor:pointer}
.tr-setup .tr-check input{flex-shrink:0;accent-color:#22c55e}
.tr-setup .tr-check input:checked{background:#22c55e;border-color:#22c55e}
.tr-setup .addf-foot{display:flex;flex-direction:column-reverse;gap:10px;margin:4px 0 0}
.tr-setup .addf-foot .tr-create,.tr-game .tr-primary{width:100%;min-height:48px;border:1px solid #1ec0a6;border-radius:12px;background:linear-gradient(110deg,#17a28d,#1ec0a6);color:#061d1a;font-size:15px;font-weight:750;cursor:pointer;box-shadow:0 5px 20px #17a28d18}
.tr-setup .addf-foot .danger{background:transparent;border-color:#34434a;color:#a9b9c0}
.tr-setup .tr-input:focus-visible,.tr-setup button:focus-visible,.tr-setup input:focus-visible,.tr-game button:focus-visible{outline:2px solid #1ec0a6;outline-offset:3px}
.tr-game{width:100%;max-width:780px;margin:0 auto;padding:20px;display:flex;flex-direction:column;gap:20px;text-align:left}
.tr-head{display:flex;flex-direction:column;gap:6px}
.tr-eyebrow{color:#1ec0a6;font-size:11px;font-weight:800;letter-spacing:.18em}
.tr-title{margin:0;font-size:clamp(22px,5vw,30px);line-height:1.25;color:#f0f6f5}
.tr-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.tr-counter{font-size:13px;font-weight:750;color:#1ec0a6;margin-right:4px}
.tr-badge{border:1px solid #34434a;border-radius:999px;padding:5px 10px;background:#1b252c;color:#aebfc5;font-size:12px;text-transform:capitalize}
.tr-clock{margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums;color:#1ec0a6;background:#17a28d18;border:1px solid #17a28d50;border-radius:10px;padding:7px 12px;font-weight:750}
.tr-clock.low{color:#fbbf24;border-color:#fbbf2450;background:#fbbf2410}
.tr-prompt{margin:0;color:#edf4f4;font-size:clamp(19px,4vw,26px);line-height:1.45;font-weight:650}
.tr-options{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.tr-option{display:flex;align-items:center;gap:12px;width:100%;min-height:72px;padding:14px;border:1px solid #34434a;border-radius:14px;background:#1b252c;color:#e1eaed;text-align:left;font:inherit;cursor:pointer;transition:background .15s,border-color .15s}
.tr-letter{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:9px;background:#29363f;color:#acbfc6;font-size:13px;font-weight:750}
.tr-option-text{flex:1;overflow-wrap:anywhere;line-height:1.5}
.tr-mark{font-size:11px;font-weight:700}
.tr-mark:empty{display:none}
.tr-option:enabled:hover,.tr-option.selected{border-color:#1ec0a6;background:#17a28d18}
.tr-option:disabled{cursor:default;opacity:1}
.tr-option.correct{border-color:#22c55e;background:#22c55e18;color:#a3efbd}
.tr-option.correct .tr-letter{background:#22c55e;color:#092715}
.tr-option.wrong{border-color:#ef6464;background:#ef646418;color:#ffb5b5}
.tr-status{margin:0;color:#b9cccf;line-height:1.6;font-size:14px}
.tr-scoreboard{border-top:1px solid #2b383e;padding-top:18px}
.tr-score-title{font-size:13px;font-weight:750;color:#afc2c8;margin:0 0 12px}
.tr-scores{display:grid;gap:6px;list-style:none;padding:0;margin:0}
.tr-score{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;background:#192329;font-size:13px}
.tr-score.me{background:#17a28d12}
.tr-rank{color:#829ba4;width:20px;font-variant-numeric:tabular-nums}
.tr-player{flex:1;overflow-wrap:anywhere}
.tr-points{color:#1ec0a6;font-variant-numeric:tabular-nums}
@media(min-width:560px){
 .addf-card.game-setup-card.tr-setup{grid-template-columns:repeat(2,minmax(0,1fr));padding:30px;gap:20px}
 .tr-setup>:not(.tr-row),.tr-setup>.tr-row:nth-child(3){grid-column:1/-1}
 .tr-game{padding:30px;gap:24px}
 .tr-options{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Showdown: give revealed hands their own space, clear of avatars and the board. */
.ct-onfelt.is-showdown:not(.is-lobby) .ct-table-playfield{height:auto}
.ct-onfelt.is-showdown:not(.is-lobby) .ct-felt .ct-seats.seat-ring{position:relative!important;inset:auto!important;height:auto!important;min-height:0;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:18px 12px;padding:18px 12px}
.ct-onfelt.is-showdown:not(.is-lobby) .ct-felt .ct-seats.seat-ring .ct-seat:not(.ct-hero-hidden){position:relative!important;left:auto!important;top:auto!important;transform:none!important;width:auto;display:flex!important;flex-direction:column;align-items:center;gap:4px;text-align:center}
.ct-onfelt.is-showdown:not(.is-lobby) .ct-felt .ct-center{position:relative!important;left:auto!important;top:auto!important;transform:none!important;width:auto;margin:8px 12px}
.ct-onfelt.is-showdown .ct-seat.ct-revealed .ct-av{width:34px;flex-shrink:0}
.ct-onfelt.is-showdown:not(.is-lobby) .ct-felt .ct-seats .ct-seat.ct-revealed .ct-seat-cards{position:static!important;transform:none;order:3;display:flex;flex-wrap:wrap;gap:5px;min-height:0;margin:3px 0}
.ct-onfelt.is-showdown .ct-seat.ct-revealed .ct-seat-cards .pcard{width:clamp(52px,7cqw,72px)!important;height:clamp(76px,10cqw,104px)!important;flex-shrink:0;margin:0;transform:none!important}
.ct-onfelt.is-showdown .ct-seat.ct-revealed .pc-r{font-size:17px}
.ct-onfelt.is-showdown .ct-seat.ct-revealed .pc-corner-suit{left:26px;font-size:14px}
.ct-onfelt.is-showdown .ct-seat.ct-revealed .pc-art{top:25px;height:calc(100% - 30px)}
.ct-onfelt.is-showdown .ct-seat.ct-revealed.winner .pcard{border-color:var(--ct-gold);box-shadow:0 0 0 1px var(--ct-gold),0 3px 12px #0005}
.ct-onfelt.is-showdown .ct-seat .ct-seat-win{position:static;transform:none;order:4;margin-top:2px}

/* Landscape / short viewports collapsed the Games-menu cards to thin lines: the grid was squishing its rows.
   Make the grid size rows to their CONTENT (never compress), scroll the overflow, and give cards a real
   min-height at EVERY viewport (not just portrait). */
#games-list{align-content:start;grid-auto-rows:min-content;overflow-y:auto}
#games-list .game-entry{min-height:62px}
#games-list .game-entry>.game-item{min-height:60px;height:auto;align-items:center}

/* Desktop in-game poker: let the table header (title + Expand/Sound buttons) WRAP instead of overflowing and
   getting clipped by the table's overflow:hidden on a constrained center column. */
.ct-table .ct-head{flex-wrap:wrap;gap:8px 12px}
.ct-table .ct-head h2{min-width:0;overflow-wrap:anywhere}

/* Chess vs Computer picker (owner 2026-11-01) */
.chessbot-head{font-weight:700;opacity:.82;margin:8px 0 2px;font-size:13px}
.chessbot-opts{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 8px}
.chessbot-opts .gs-btn{flex:0 0 auto}
.chessbot-opts .gs-btn.on{outline:2px solid #5bd6a6;outline-offset:1px;filter:brightness(1.12)}
.chessbot-go{width:100%;margin-top:6px}
.chessbot-entry .game-ico{background:#2a3b6f;color:#fff}
