/* Direction 2 R2. HTML boards use the Field Atlas tokens and the original game-assets art. */
body.wc .game-room { max-width:1100px; margin-inline:auto; }
body.wc .game-room :is(input,select,textarea) { max-width:100%; min-width:0; }
body.wc .game-room :is(.btn,select,summary),body.wc .game-controls button { min-height:44px; }
body.wc .game-menu { border-bottom:1px solid var(--line); padding-bottom:12px; }
body.wc .game-menu [aria-pressed=true] { background:var(--evergreen,#194137); color:var(--paper,#f7f5eb); }
body.wc .game-catalogue { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:16px; }
body.wc .game-card { border:1px solid var(--line); padding:12px; border-radius:6px; background:var(--paper,#f7f5eb); }
body.wc .game-card>img { display:block; width:100%; max-height:110px; object-fit:contain; margin-bottom:12px; }
body.wc .game-card h3 { margin-bottom:8px; }
body.wc .game-seats { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr)); gap:12px; }
body.wc .game-seat { border-inline-start:3px solid var(--evergreen,#194137); padding:10px 14px; background:var(--paper,#f7f5eb); overflow-wrap:anywhere; }
body.wc .game-seat p { margin-block:6px 0; }
body.wc .game-result,body.wc .game-verified { font-weight:700; padding:12px; border:1px solid var(--evergreen,#194137); background:var(--paper,#f7f5eb); }
body.wc .game-clock,body.wc .game-needs { font-variant-numeric:tabular-nums; font-weight:600; }
body.wc .game-notice:empty { display:none; }
body.wc .game-notice:not(:empty) { border-inline-start:3px solid var(--rust,#b84a2a); padding:12px; }
body.wc .game-controls { display:flex; flex-wrap:wrap; gap:8px; }
body.wc .game-board-section { width:100%; max-width:520px; }
body.wc .game-board { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); grid-template-rows:repeat(8,minmax(0,1fr)); aspect-ratio:1; padding:4.1%; background:url('/assets/games/chess-board.svg') center/100% 100% no-repeat; }
body.wc .game-board.checkers { background-image:url('/assets/games/checkers-board.svg'); }
body.wc .game-board.four_in_a_row { grid-template-columns:repeat(7,minmax(0,1fr)); grid-template-rows:repeat(6,minmax(0,1fr)); aspect-ratio:448/388; padding:0 0 .892857%; background-image:url('/assets/games/four-in-a-row-board.svg'); }
body.wc .game-cell { display:grid; place-items:center; min-width:0; min-height:0; margin:0; padding:2px; border:2px solid transparent; border-radius:0; background:transparent; cursor:pointer; position:relative; }
body.wc .game-cell img { width:100%; height:100%; object-fit:contain; pointer-events:none; }
body.wc .game-cell.legal { border-color:#e0783e; box-shadow:inset 0 0 0 2px #f7f5eb; }
body.wc .game-cell.legal:after { content:''; position:absolute; width:9px; height:9px; border-radius:50%; border:2px solid #f7f5eb; background:#194137; right:2px; bottom:2px; }
body.wc .game-cell.selected { outline:3px solid #e0783e; outline-offset:-3px; }
body.wc .game-cell:focus-visible { outline:3px solid #e0783e; outline-offset:-3px; box-shadow:inset 0 0 0 4px #f7f5eb; z-index:1; }
body.wc .game-text { max-width:100%; overflow:auto; font-family:var(--font-mono,monospace); white-space:pre; font-size:14px; padding:12px; background:#194137; color:#f7f5eb; }
body.wc .game-room code { text-transform:none; overflow-wrap:anywhere; word-break:break-word; }
body.wc .game-filters { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; }
body.wc .game-score,body.wc .game-replay { overflow-wrap:anywhere; }
body.wc .game-earned { display:flex; gap:12px; flex-wrap:wrap; }
body.wc .arcade-play { max-width:520px; width:100%; }
body.wc .arcade-play:focus-visible { outline:3px solid #c75527; outline-offset:4px; }
body.wc .snake-screen { display:block; width:100%; max-width:384px; aspect-ratio:1; image-rendering:pixelated; border:2px solid #194137; }
body.wc .mine-grid { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); grid-template-rows:repeat(8,minmax(0,1fr)); aspect-ratio:1; width:100%; max-width:448px; border:2px solid #194137; }
body.wc .mine-grid button { padding:0; border:1px solid #194137; min-width:0; background:#f7f5eb; display:grid; place-items:center; }
body.wc .mine-grid button:disabled { opacity:1; }
body.wc .mine-sprite { display:block; width:32px; height:32px; max-width:100%; background:url('/assets/games/minefield-atlas.png') 0 0/256px 64px; image-rendering:pixelated; }
body.wc .tile-clear { background-position:-32px 0; }body.wc .tile-flag { background-position:-64px 0; }
body.wc .tile-1 { background-position:-224px 0; }body.wc .tile-2 { background-position:0 -32px; }body.wc .tile-3 { background-position:-32px -32px; }body.wc .tile-4 { background-position:-64px -32px; }body.wc .tile-5 { background-position:-96px -32px; }body.wc .tile-6 { background-position:-128px -32px; }body.wc .tile-7 { background-position:-160px -32px; }body.wc .tile-8 { background-position:-192px -32px; }
@media(max-width:767px) {
 body.wc .game-room .two,body.wc .game-filters { grid-template-columns:1fr; }
 body.wc .game-catalogue { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 body.wc .game-card { padding:10px; }body.wc .game-card .row { display:grid; }
 body.wc .game-card h3 { font-size:18px; }
 body.wc .game-menu { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 body.wc .game-controls { position:relative; padding-block:8px; }
 body.wc .game-board-section { max-width:100%; }
 body.wc .game-text { font-size:12px; }
 body.wc .game-room .field-row select { width:100%; }
 body.wc .mine-sprite { width:24px; height:24px; background-size:192px 48px; }
 body.wc .tile-clear { background-position:-24px 0; }body.wc .tile-flag { background-position:-48px 0; }
 body.wc .tile-1 { background-position:-168px 0; }body.wc .tile-2 { background-position:0 -24px; }body.wc .tile-3 { background-position:-24px -24px; }body.wc .tile-4 { background-position:-48px -24px; }body.wc .tile-5 { background-position:-72px -24px; }body.wc .tile-6 { background-position:-96px -24px; }body.wc .tile-7 { background-position:-120px -24px; }body.wc .tile-8 { background-position:-144px -24px; }
}
@media(prefers-reduced-motion:reduce) { body.wc .game-room *, body.wc .game-room *:before, body.wc .game-room *:after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
