.card-room {max-width: 1060px; margin-inline:auto}
.game-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:1rem;margin-block:1rem}
.game-panel {border:1px solid var(--ns-border,#6c879f);border-radius:16px;padding:1.2rem;margin-block:.75rem}
.game-panel form,.game-panel label {display:block}
.game-panel label {margin-block:.7rem .25rem}
.game-panel input,.game-panel select {width:100%;min-height:44px;padding:.6rem;border-radius:8px;border:1px solid #70869c;background:transparent;color:inherit}
.game-panel select option {color:#10243c;background:white}
.game-panel button {margin-block:.5rem}
.game-actions,.game-hand,.game-piles {display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin-block:.7rem}
.game-hand {align-items:stretch}
.playing-card {display:inline-flex;align-items:center;justify-content:center;min-width:64px;min-height:88px;padding:.5rem;border:2px solid #9aabbb;border-radius:9px;background:#fff;color:#10243c;font-size:1.25rem;font-weight:700;white-space:nowrap}
.playing-card.red {color:#ad203a}
.playing-card.card-back {background:#172b46;color:#fff}
button.playing-card:disabled {opacity:.65}
button.playing-card:not(:disabled) {border-color:#00829c;cursor:pointer}
.playing-card:focus-visible,.game-panel button:focus-visible {outline:3px solid #00a6b8;outline-offset:3px}
.game-panel li {padding:.25rem 0}
#game-error {min-height:1.5em}
[hidden] {display:none!important}
@media (max-width:480px){.playing-card{min-width:53px;min-height:72px;font-size:1rem}.game-panel{padding:.8rem}}

.playing-card.pass-selected {outline:3px solid #00829c;outline-offset:2px;transform:translateY(-3px)}
@media(prefers-reduced-motion:reduce){.playing-card.pass-selected{transform:none}}

.game-panel input[type=checkbox]{width:1.25rem;min-height:1.25rem;height:1.25rem;padding:0;vertical-align:middle;margin-inline-end:.4rem;accent-color:#00829c}
.game-panel{min-width:0;overflow-wrap:anywhere}.game-panel input,.game-panel select{max-width:100%;box-sizing:border-box}

.tournament-list {list-style:none;padding-inline-start:0}.tournament-list li{border-bottom:1px solid var(--ns-border,#6c879f);padding-block:.5rem}#computer-settings,#tournament-setup{border-top:1px solid var(--ns-border,#6c879f);margin-top:.9rem;padding-top:.6rem}

.lobby-readiness{border:1px solid var(--ns-border,#70869c);border-radius:12px;padding:.8rem;margin-block:.6rem;background:var(--ns-surface,transparent)}.lobby-readiness progress{width:100%;height:.8rem;accent-color:#00829c}.lobby-readiness p{margin:.35rem 0}.game-connection[data-state=error]{border-inline-start:3px solid currentColor;padding-inline-start:.7rem}.game-connection{font-size:.9rem}#auto-start-panel{border-top:1px solid var(--ns-border,#6c879f);margin-top:.9rem;padding-top:.6rem}#player-ready,#start-round,#save-auto-start{min-height:44px}

/* GH-02: shared Nightshift/Dayshift tokens; no external artwork or fonts. */
.games-shell{max-width:1240px;margin-inline:auto;min-width:0}
.games-main{padding:clamp(1rem,4vw,3rem) 0 5rem}
.games-room-page .section{padding-block:clamp(1rem,4vw,2.5rem) 5rem}
.games-shell .game-panel{background:var(--surface);border-color:var(--line);box-shadow:var(--ns-shadow)}
.games-shell .game-panel input,.games-shell .game-panel select,.hub-filter-bar input,.hub-filter-bar select,.game-preference-controls select{background:var(--ns-input);color:var(--ink);border:1px solid var(--line);border-radius:9px;min-height:44px;padding:.6rem;width:100%;max-width:100%;box-sizing:border-box}
.games-shell .game-panel select option,.hub-filter-bar select option,.game-preference-controls select option{background:var(--surface);color:var(--ink)}
.games-shell .game-panel input[type=checkbox],.game-preference-controls input[type=checkbox]{width:1.25rem;min-height:1.25rem;height:1.25rem;padding:0;accent-color:var(--accent);vertical-align:middle}
.games-shell button,.games-shell .btn,.hub-nav a,.game-preferences summary{min-height:44px}
.games-shell button:focus-visible,.games-shell a:focus-visible,.games-shell input:focus-visible,.games-shell select:focus-visible,.game-preferences summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.games-shell button:disabled{cursor:not-allowed}
.hub-hero{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(190px,.75fr);align-items:center;gap:1.5rem;padding:clamp(1.2rem,4vw,3rem);border:1px solid var(--line);border-radius:24px;background:radial-gradient(ellipse at 85% 20%,var(--ns-glow),transparent 75%),linear-gradient(145deg,var(--surface),var(--bg2));box-shadow:var(--ns-shadow);overflow:hidden}
.hub-hero h1{font-size:clamp(2rem,5vw,4rem);line-height:1.05;margin:.4rem 0}
.hub-intro{max-width:60ch;color:var(--muted);font-size:clamp(1rem,2vw,1.18rem)}
.hub-service{color:var(--muted);font-size:.9rem;margin:.6rem 0 0}
.hub-hero-art{position:relative;display:flex;align-items:center;justify-content:center;min-height:185px;isolation:isolate}
.hub-hero-card{display:flex;flex-direction:column;justify-content:space-between;width:90px;height:132px;border:2px solid #b7c7dc;border-radius:13px;background:#f8fbff;color:#10243c;font:800 2rem/1 system-ui;padding:.75rem;box-shadow:0 10px 25px #0004;transform:rotate(14deg) translateX(-9px)}
.hub-hero-card:first-child{color:#ad203a;transform:rotate(-14deg) translateX(9px)}
.hub-hero-card span{font-size:3rem;align-self:center}
.hub-hero-chip{position:absolute;bottom:0;right:0;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:.35rem .6rem;font-size:.65rem;font-weight:750;letter-spacing:.08em}
.hub-nav{display:flex;gap:.4rem;flex-wrap:wrap;margin-block:1rem;padding:.4rem;background:var(--surface);border:1px solid var(--line);border-radius:12px}
.hub-nav a{display:inline-flex;align-items:center;padding:.45rem .85rem;border-radius:8px;color:var(--muted);font-weight:700;text-decoration:none}
.hub-nav a:hover,.hub-nav a[aria-current]{background:var(--accent-soft);color:var(--accent)}
.game-preferences{margin-block:1rem;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.game-preferences summary{cursor:pointer;padding:.7rem 1rem;font-weight:700;display:list-item}
.game-preference-controls{padding:0 1rem 1rem;display:flex;align-items:center;flex-wrap:wrap;gap:.75rem}
.game-preference-controls select{width:auto;min-width:9rem}
.game-preference-controls p{width:100%;margin:0}
.hub-section-heading{display:flex;justify-content:space-between;align-items:end;flex-wrap:wrap;gap:.75rem;margin-top:2rem}
.hub-section-heading h2{margin-bottom:.25rem}.hub-section-heading p{color:var(--muted);margin:0}
#catalog-count{font-size:.85rem;color:var(--muted);white-space:nowrap}
.hub-filter-bar{display:grid;grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr));gap:.7rem;margin-block:1rem}
.hub-filter-bar label{display:block;font-size:.85rem;font-weight:700;margin-bottom:.3rem}
.hub-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:1rem;margin-block:1rem}
.hub-tile{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:16px;background:var(--surface);overflow:hidden;min-width:0;transition:transform .18s ease,border-color .18s ease}
.hub-tile:hover,.hub-tile:focus-within{border-color:var(--accent);transform:translateY(-2px)}
.hub-art{height:106px;display:grid;place-items:center;position:relative;overflow:hidden;background:#162e4a;color:#d9f5ff;isolation:isolate}
.hub-art:before{content:'';position:absolute;inset:0;background-image:linear-gradient(#ffffff10 1px,transparent 1px),linear-gradient(90deg,#ffffff10 1px,transparent 1px);background-size:22px 22px;z-index:-1}
.hub-art span{font-size:2.45rem;font-weight:850;letter-spacing:.08em;text-shadow:0 4px 14px #0005}
.hub-art-cards{background:linear-gradient(130deg,#103d42,#172e4e)}
.hub-art-puzzle{background:linear-gradient(130deg,#3f326b,#182f50)}
.hub-art-arcade{background:linear-gradient(130deg,#134d52,#152d4e)}
.hub-art-strategy{background:linear-gradient(130deg,#4a3653,#1b3154)}
.hub-tile-body{padding:.9rem;display:flex;flex:1;flex-direction:column;gap:.35rem}
.hub-tile-meta{display:flex;justify-content:space-between;gap:.5rem;font-size:.72rem;color:var(--muted)}
.hub-status{font-weight:750;color:var(--accent)}
.hub-tile[data-available=false] .hub-status{color:var(--muted)}
.hub-tile h3{font-size:1.18rem;margin:0;line-height:1.3}
.hub-tile p{font-size:.87rem;color:var(--muted);margin:0}
.hub-tile .hub-mode{margin-top:auto;padding-top:.5rem;font-size:.78rem;font-weight:700;color:var(--ink)}
.hub-tile-actions{display:flex;gap:.4rem;margin-top:.35rem;align-items:stretch}
.hub-tile-actions .btn-primary{flex:1;font-size:.85rem;padding:.6rem}
.hub-tile-actions .hub-favorite{font-size:1.25rem;padding:0;min-width:44px}
.hub-favorite[aria-pressed=true]{color:var(--accent);border-color:var(--accent)}
.hub-planned{padding:.6rem 0;border-top:1px solid var(--line);font-weight:650}
.hub-room-entry{margin-top:2rem;scroll-margin-top:6rem}
#create-room,#join-room,#discover{scroll-margin-top:6rem}
.workspace-status{display:flex;justify-content:space-between;gap:1rem;align-items:center;flex-wrap:wrap;padding:.9rem 1.15rem;border:1px solid var(--line);border-radius:14px;background:var(--surface);margin-block:1rem}
.workspace-status p{margin:.15rem 0}
#room-status{font-size:1.12rem;font-weight:750}
.workspace-status .eyebrow{font-size:.7rem}
.workspace-grid{grid-template-columns:minmax(0,1fr);align-items:start;gap:1rem}
.workspace-grid[data-playing=true]{grid-template-columns:minmax(0,1.65fr) minmax(250px,1fr)}
.workspace-grid .game-panel{margin:0}
.workspace-grid[data-playing=false] .workspace-members{max-width:780px;width:100%;box-sizing:border-box}
.workspace-members h2,.table-heading h2,.workspace-social h2{font-size:1.18rem;margin:0 0 .6rem}
#players,#spectator-players{list-style:none;margin:0;padding:0;display:grid;gap:.45rem}
#players li,#spectator-players li{background:var(--bg2);border:1px solid var(--line);border-radius:10px;padding:.6rem .7rem;font-size:.88rem;overflow-wrap:anywhere}
#players li[data-turn=true]{border-color:var(--accent);box-shadow:inset 3px 0 var(--accent)}
#players li[data-away=true]{border-style:dashed}
#players li button{margin:.3rem 0 0;font-size:.8rem}
.workspace-settings>div{padding-top:.75rem;margin-top:.75rem;border-top:1px solid var(--line)}
.workspace-settings h3{font-size:1rem;margin:.15rem 0}
.lobby-readiness{background:var(--bg2);border-color:var(--line)}
.lobby-readiness progress{accent-color:var(--accent)}
.table-heading,.hand-heading{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap}
.table-private,.hand-heading span{color:var(--muted);font-size:.75rem}
.table-seats{display:flex;gap:.45rem;flex-wrap:wrap;margin:.8rem 0}
.table-seat{flex:1 1 95px;min-width:0;padding:.45rem .6rem;background:var(--bg2);border:1px solid var(--line);border-radius:9px;font-size:.78rem;overflow-wrap:anywhere}
.table-seat strong,.table-seat span{display:block}
.table-seat span{color:var(--muted)}
.table-seat[data-turn=true]{border-color:var(--accent);box-shadow:inset 0 -2px var(--accent)}
.table-felt{position:relative;background:radial-gradient(ellipse at center,#1b5656,#113738);color:#f1fbff;border:3px solid #3d6472;border-radius:24px;min-height:160px;padding:1rem;text-align:center}
.table-felt p{margin:.4rem 0;color:#f1fbff}
.table-prompt{font-weight:750}
.public-cards{display:flex;justify-content:center;flex-wrap:wrap;gap:.65rem;margin:.6rem 0}
.public-cards:empty{display:none}
.public-card{display:flex;flex-direction:column;align-items:center;gap:.25rem;min-width:0;font-size:.72rem;overflow-wrap:anywhere;max-width:105px}
.public-card .playing-card{min-width:48px;min-height:65px}
.game-piles{justify-content:center}
.hand-heading{margin-top:1rem}
.hand-heading h3{font-size:1rem;margin:0}
.game-hand{gap:.45rem;justify-content:flex-start}
.playing-card{display:inline-flex;flex-direction:column;justify-content:space-between;align-items:flex-start;min-width:clamp(48px,8vw,66px);min-height:clamp(70px,10vw,94px);box-sizing:border-box;padding:.4rem .5rem;line-height:1.1;box-shadow:0 4px 10px #0002}
.playing-card .card-rank{font-size:.95rem;font-weight:850}
.playing-card .card-suit{align-self:center;font-size:1.8rem;line-height:1}
.playing-card.card-back{justify-content:center;align-items:center;font-size:.85rem}
button.playing-card:not(:disabled){border-color:var(--accent);transition:transform .15s ease,box-shadow .15s ease}
button.playing-card:not(:disabled):hover{transform:translateY(-3px);box-shadow:0 6px 12px #0004}
button.playing-card:disabled{opacity:.75}
button.playing-card.pass-selected{outline:3px solid var(--accent);outline-offset:2px}
#round-result:not(:empty){font-weight:800;font-size:1.1rem}
.workspace-social{margin-block:1rem}
.workspace-social .game-actions button{min-width:44px}
.game-start-motion{animation:game-start .32s ease-out}
.game-action-motion{animation:game-action .22s ease-out}
.game-result-motion{animation:game-result .45s ease-out}
@keyframes game-start{from{opacity:.55;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes game-action{from{opacity:.7;transform:translateY(-6px)}to{opacity:1;transform:none}}
@keyframes game-result{0%{transform:scale(.98)}50%{transform:scale(1.035)}100%{transform:none}}
@media(max-width:760px){.hub-hero{grid-template-columns:minmax(0,1fr)}.hub-hero-art{display:none}.workspace-grid[data-playing=true]{grid-template-columns:minmax(0,1fr)}.hub-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-filter-bar>div:first-child{grid-column:1/-1}.hub-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.hub-tile-body{padding:.65rem}.hub-art{height:88px}.hub-tile-meta{flex-wrap:wrap}.hub-tile-actions{flex-wrap:wrap}.hub-tile-actions .btn-primary{min-width:0;white-space:normal}.table-felt{padding:.65rem;border-radius:18px}.games-shell .game-panel{padding:.8rem}.game-preference-controls{align-items:flex-start}}
@media(max-width:350px){.hub-catalog{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.games-shell *,.games-shell *:before,.games-shell *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.games-shell .hub-tile:hover,.games-shell button.playing-card:hover,.games-shell .playing-card.pass-selected{transform:none!important}}
:root[data-games-motion=reduced] .games-shell *,:root[data-games-motion=reduced] .games-shell *:before,:root[data-games-motion=reduced] .games-shell *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
:root[data-games-motion=reduced] .games-shell .hub-tile:hover,:root[data-games-motion=reduced] .games-shell button.playing-card:hover,:root[data-games-motion=reduced] .games-shell .playing-card.pass-selected{transform:none!important}

/* GH-03 native solo boards. */
.arcade-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr);gap:1rem;align-items:start}
.arcade-play,.arcade-info{min-width:0}
.arcade-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
.arcade-stats>div{background:var(--bg2);border:1px solid var(--line);border-radius:10px;padding:.6rem;min-width:0}
.arcade-stats span,.arcade-stats strong{display:block;overflow-wrap:anywhere}
.arcade-stats span{font-size:.78rem;color:var(--muted)}
.arcade-stats strong{font-size:clamp(1.1rem,3vw,1.65rem);font-variant-numeric:tabular-nums}
#arcade-status{font-weight:700;min-height:2.4em}
.arcade-board{display:grid;grid-template-columns:repeat(var(--board-size,4),minmax(0,1fr));gap:4px;max-width:520px;width:100%;margin:0 auto;background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:6px;box-sizing:border-box}
.arcade-cell{aspect-ratio:1;display:grid;place-items:center;min-width:0;min-height:0!important;margin:0!important;padding:0;border:1px solid var(--line);border-radius:4px;background:var(--surface-2);color:var(--ink);font-weight:750;line-height:1}
.arcade-board[data-game="2048"]{max-width:430px;gap:7px;touch-action:none}
.arcade-board[data-game="2048"] .arcade-cell{font-size:clamp(.95rem,4.6vw,1.9rem);border-radius:8px}
.arcade-cell[data-value="2"],.arcade-cell[data-value="4"]{background:#e8e4d8;color:#253244}
.arcade-cell[data-value="8"],.arcade-cell[data-value="16"]{background:#d97706;color:#fff}
.arcade-cell[data-value="32"],.arcade-cell[data-value="64"]{background:#b91c1c;color:#fff}
.arcade-cell[data-value="128"],.arcade-cell[data-value="256"]{background:#6258c8;color:white}
.arcade-board[data-game="2048"] .arcade-cell[data-kind=tile]:not([data-value="2"]):not([data-value="4"]):not([data-value="8"]):not([data-value="16"]):not([data-value="32"]):not([data-value="64"]):not([data-value="128"]):not([data-value="256"]){background:#006879;color:#fff;font-size:clamp(.8rem,3.3vw,1.5rem)}
.arcade-board[data-game=snake]{gap:1px;max-width:440px;background:#102536}
.arcade-board[data-game=snake] .arcade-cell{border:0;border-radius:2px;background:#182e40}
.arcade-board[data-game=snake] .arcade-cell[data-kind=body]{background:#13b8a6}
.arcade-board[data-game=snake] .arcade-cell[data-kind=head]{background:#b7f7d9;box-shadow:inset 0 0 0 2px #075f56}
.arcade-board[data-game=snake] .arcade-cell[data-kind=food]{background:#f9737d;border-radius:50%}
.arcade-board[data-game=minesweeper]{gap:2px;max-width:720px;overflow-x:auto;grid-template-columns:repeat(var(--board-size),minmax(44px,1fr));}
.arcade-board[data-game=minesweeper] .arcade-cell{min-width:44px;min-height:44px!important;font-size:.9rem;cursor:pointer;touch-action:manipulation}
.arcade-board[data-game=minesweeper] .arcade-cell[data-kind=covered]{background:var(--surface-2)}
.arcade-board[data-game=minesweeper] .arcade-cell[data-kind=revealed]{background:var(--bg);color:var(--ink)}
.arcade-board[data-game=minesweeper] .arcade-cell[data-kind=flag]{background:#6258c8;color:white}
.arcade-board[data-game=minesweeper] .arcade-cell[data-kind=mine]{background:#b91c1c;color:white}
.arcade-board[data-paused=true]{opacity:.65}
.arcade-actions{justify-content:center}
.arcade-direction{display:grid;grid-template-columns:repeat(3,52px);justify-content:center;gap:.4rem;margin-block:.5rem}
.arcade-direction button{min-height:48px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:var(--ink);font-size:1.4rem;touch-action:manipulation}
.arcade-direction button:first-child{grid-column:2}.arcade-direction button:nth-child(2){grid-column:1;grid-row:2}.arcade-direction button:nth-child(3){grid-column:2;grid-row:2}.arcade-direction button:nth-child(4){grid-column:3;grid-row:2}
.arcade-pulse{animation:arcade-pulse .16s ease-out}@keyframes arcade-pulse{50%{transform:scale(1.008)}}
@media(max-width:760px){.arcade-layout{grid-template-columns:minmax(0,1fr)}.arcade-board[data-game=minesweeper]{max-width:100%}}

/* GH-04 private room communications */
.chat-panel summary{cursor:pointer;font-size:1.05rem;font-weight:750;padding:.35rem 0;min-height:44px;box-sizing:border-box}.chat-unread{display:inline-block;margin-inline-start:.6rem;border:1px solid var(--line);border-radius:8px;padding:.2rem .5rem;color:var(--accent);font-size:.75rem}.chat-host-controls{border-bottom:1px solid var(--line);padding-bottom:.6rem;margin-bottom:.75rem}.chat-feed{max-height:340px;min-height:100px;overflow:auto;overscroll-behavior:contain;list-style:none;margin:.75rem 0;padding:.5rem;background:var(--bg2);border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;gap:.45rem}.chat-message{background:var(--surface);padding:.55rem .75rem!important;border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere}.chat-message p{margin:.25rem 0;white-space:pre-wrap}.chat-message-head{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;flex-wrap:wrap;font-size:.85rem}.chat-message time,.chat-system,.chat-empty{color:var(--muted);font-size:.8rem}.chat-system{background:transparent;border:0;text-align:center}.chat-reaction p{font-size:1.2rem}.chat-composer{display:flex;gap:.5rem;align-items:center}.chat-composer input{flex:1;min-width:0}.chat-composer button{flex:none}.chat-remove{font-size:.78rem;margin:0!important}.chat-panel #chat-error:not(:empty){border-inline-start:3px solid var(--accent);padding-inline-start:.6rem}.chat-panel #chat-local-controls,.chat-panel #chat-moderation{margin-top:.6rem;border-top:1px solid var(--line)}

.competition-results{list-style:none;padding:0;display:grid;gap:.4rem}.competition-results li{display:flex;justify-content:space-between;gap:.7rem;border:1px solid var(--line);background:var(--bg2);border-radius:9px;padding:.6rem;overflow-wrap:anywhere}.competition-results strong{white-space:nowrap;font-variant-numeric:tabular-nums}#arcade-competition{margin-block:1rem}#competition-enter:not([hidden]){display:inline-flex}

/* GH-06 public strategy boards; symbols supplement colors. */
.strategy-board{display:grid;grid-template-columns:repeat(var(--strategy-cols),minmax(44px,1fr));gap:4px;max-width:520px;overflow-x:auto;margin:1rem auto;padding:6px;border-radius:12px;background:var(--bg2);border:1px solid var(--line)}.strategy-tic-tac-toe{max-width:330px}.strategy-cell{aspect-ratio:1;display:grid;place-items:center;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font-size:clamp(1rem,4vw,2rem);font-weight:800;padding:0;min-width:44px;min-height:44px}.strategy-cell[data-mark="1"]{color:#006879}.strategy-cell[data-mark="2"]{color:#8b5cf6}.strategy-cell[data-last=true]{outline:2px solid var(--accent);outline-offset:-3px}.strategy-cell[data-legal=true]{border:2px solid var(--accent);cursor:pointer}.strategy-cell:disabled{opacity:1;cursor:default}.strategy-reversi .strategy-cell{background:#17635b;color:#eaf5f3}.strategy-reversi .strategy-cell[data-mark="1"]{color:#08111f}.strategy-reversi .strategy-cell[data-mark="2"]{color:#fff}.strategy-memory-match .strategy-cell{color:var(--ink)}.strategy-memory-match .strategy-cell[data-mark="0"]{background:#294563;color:#fff}.strategy-memory-match .strategy-cell[data-matched=true]{background:#006879;color:white}.strategy-four-in-a-row{background:#294563}.strategy-four-in-a-row .strategy-cell{border-radius:50%;background:#e5edf4}.strategy-columns{display:grid;grid-template-columns:repeat(7,minmax(44px,1fr));gap:4px;max-width:520px;margin:0 auto;overflow-x:auto}.strategy-columns button{padding:0;min-width:44px}.strategy-board:not([hidden]){max-width:100%;box-sizing:border-box}.strategy-cell[data-mark="1"]:not(.strategy-reversi .strategy-cell){text-shadow:0 0 1px currentColor}#strategy-status{overflow-wrap:anywhere}

.strategy-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}.strategy-scroll:has(.strategy-four-in-a-row) .strategy-board,.strategy-scroll:has(.strategy-four-in-a-row) .strategy-columns{width:100%;min-width:344px;max-width:520px;box-sizing:border-box;overflow:visible}.strategy-scroll:has(.strategy-four-in-a-row) .strategy-columns{padding-inline:6px}.strategy-scroll .strategy-board.strategy-reversi{min-width:392px;max-width:520px;width:100%;overflow:visible}.strategy-cell:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}

#classic-board{display:block;width:min(100%,320px);height:auto;aspect-ratio:4/5;margin:0 auto;border:1px solid var(--line);border-radius:12px;background:#102536;touch-action:none}.classic-controls{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center;margin:.6rem 0}.classic-controls button{min-height:48px;min-width:64px;touch-action:none}#classic-status{min-height:2.4em;font-weight:700}#classic-board:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

#rt-board:not([hidden]){display:block;width:min(100%,320px);height:auto;aspect-ratio:1;margin:.75rem auto;background:#102536;border:1px solid var(--line);border-radius:10px;touch-action:none}#rt-board:focus-visible{outline:3px solid var(--accent);outline-offset:3px}#rt-controls button{min-height:48px;touch-action:none}#rt-status{font-weight:700;min-height:2em}

/* Player experience: editorial featured cards, responsive and theme-aware. */
.hub-featured{margin:1.5rem 0 2rem}.featured-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.featured-game{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);background:var(--surface);border-radius:16px;box-shadow:var(--ns-shadow)}.featured-game>div:last-child{padding:1rem;display:flex;flex-direction:column;align-items:flex-start;flex:1}.featured-game h3{margin:.35rem 0}.featured-game p{margin:0 0 1rem;color:var(--muted);flex:1}.featured-tag{font-size:.78rem;color:var(--muted);font-weight:700}.featured-art{min-height:116px;display:flex;align-items:center;justify-content:center;gap:8px;background:linear-gradient(135deg,#14354b,#243054);color:#eef7ff;overflow:hidden}.featured-art span{display:grid;place-items:center;min-width:42px;height:44px;border-radius:7px;background:#ffffff18;font-size:1.1rem;font-weight:800;transition:transform .2s ease}.featured-puzzle .featured-art span:nth-child(even){background:#1c8798}.featured-cards .featured-art span{height:76px;min-width:53px;background:#f4f5ff;color:#142237;transform:rotate(-8deg)}.featured-cards .featured-art span+span{transform:rotate(8deg);color:#334155}.featured-arcade .featured-art span{background:none;color:#62e6ef;font-size:2.5rem}.featured-game:hover .featured-art span{transform:translateY(-3px)}.arcade-cell[data-game="2048"]{will-change:transform}.table-seat[data-turn=true]{box-shadow:inset 3px 0 var(--accent);transition:box-shadow .2s ease}.game-start-motion .table-seat{animation:game-start .25s ease-out}@media(max-width:760px){.featured-grid{grid-template-columns:1fr}.featured-game{display:grid;grid-template-columns:minmax(96px,35%) 1fr}.featured-art{flex-wrap:wrap;min-height:130px;padding:8px}.featured-puzzle .featured-art span{min-width:33px;height:34px;font-size:.8rem}.featured-game>div:last-child{padding:.8rem}}:root[data-games-motion=reduced] .featured-game:hover .featured-art span{transform:none}@media(prefers-reduced-motion:reduce){.featured-game:hover .featured-art span{transform:none}}

.hub-together{display:inline-block;margin-top:.65rem;color:var(--accent);font-weight:700;font-size:.88rem}.hub-together:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* Gamepad ergonomics: large, stable controls, visual press state and touch-safe boards. */
.arcade-board[data-game=snake]{touch-action:none}.arcade-direction{grid-template-columns:repeat(3,minmax(52px,64px));gap:.55rem}.arcade-direction button{min-height:56px}.classic-controls button,#rt-controls button{min-height:52px;min-width:68px;user-select:none;-webkit-user-select:none}.arcade-direction button:active,.classic-controls button:active,#rt-controls button:active{background:var(--accent-soft);border-color:var(--accent);box-shadow:inset 0 0 0 2px var(--accent)}.arcade-direction button:focus-visible,.classic-controls button:focus-visible,#rt-controls button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.arcade-board[data-game=2048] .arcade-cell[data-kind=tile]{position:relative;z-index:1}.arcade-board[data-game=2048]{isolation:isolate}.competition-results li{min-width:0;gap:.75rem}.competition-results li span{overflow-wrap:anywhere}.competition-results li strong{flex-shrink:0}@media(max-width:420px){.classic-controls{gap:.4rem}.classic-controls button{flex:1 1 28%;min-width:0}.featured-grid .featured-game{grid-template-columns:minmax(85px,32%) minmax(0,1fr)}.featured-art span{min-width:29px}.featured-game .btn{white-space:normal}}

/* Keyboard-first playability and site-owned loss dialog. */
.game-button-menu{margin-block:.75rem;text-align:center}
.game-button-menu summary{cursor:pointer;font-weight:600}
.games-loss-dialog{width:min(90vw,420px);padding:1.5rem;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink)}
.games-loss-dialog::backdrop{background:rgba(0,0,0,.65)}
.games-loss-dialog button{margin:.4rem}
.arcade-board[data-game=2048],#rt-board{touch-action:none}
.strategy-four-in-a-row .strategy-cell[data-mark="1"]{background:#e0525f;border-color:#e0525f}
.strategy-four-in-a-row .strategy-cell[data-mark="2"]{background:#f4c34f;border-color:#f4c34f}
.strategy-four-in-a-row .strategy-cell{cursor:pointer;box-shadow:inset 0 0 0 2px rgba(0,0,0,.12)}
.games-avatar{display:inline-grid;place-items:center;vertical-align:middle;width:2rem;height:2rem;border-radius:50%;background:var(--surface-2);border:1px solid var(--line);margin-inline-end:.4rem;flex-shrink:0}
