/* 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:2px solid var(--title);outline-offset:-2px;animation:none}
#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{gap:0;padding:10px;width:450px;max-width:none;background:#d9b77d;border:5px solid #826448;border-radius:8px;align-self:flex-start;box-sizing:border-box}
#game-surface .gs-gomoku .gs-cell.sm{width:28px;height:28px;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}
#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}
/* Original SVG chess set: consistent silhouettes across platforms. */
.chess-board{border:6px solid #635344;border-radius:8px;box-shadow:0 6px 16px #0003;margin:0 auto}
.chsq.l{background:#e9dfc9}.chsq.d{background:#819481}
.chsq .chp{width:86%;height:86%;display:block;filter:drop-shadow(0 2px 1px #0004);font-size:inherit;line-height:1;text-shadow:none}
.chsq .chp svg{display:block;width:100%;height:100%;overflow:visible}
.chsq .chw{color:#fff8e8;--piece-edge:#544b41}.chsq .chb{color:#283444;--piece-edge:#101a27}
.chsq::before{content:attr(data-file);position:absolute;bottom:1px;right:3px;font:700 10px/1.2 sans-serif;color:#273a2e;z-index:1}
.chsq::after{content:attr(data-rank);position:absolute;top:2px;left:3px;font:700 10px/1.2 sans-serif;color:#273a2e}
.chsq.d::before,.chsq.d::after{color:#fff8e8}
.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)}
.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:min(100%,380px);max-width:380px;border:1px solid var(--game-line);border-radius:12px;padding:8px;box-sizing:border-box;background:var(--card)}
.yz-row{grid-template-columns:minmax(0,1fr) 58px 58px;min-height:34px}.yz-cell{padding:8px 0}.yz-cat{font-size:12px}
.gs-die,.liar-die,.bg-die,.yz-die{border-radius:10px;box-shadow:inset 0 2px 1px #fff5,0 3px 0 #0003}
.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}
.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{box-sizing:border-box;width:100%;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}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}}
@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}}

/* 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}}

/* 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}
.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-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}}
