/* Games Room 2.0 — shared responsive game surfaces */
#tl191-play .play{background:linear-gradient(145deg,#10392f,#071e1c);box-shadow:0 20px 50px #0005}
#tl191-play button:focus-visible,#tl191-library button:focus-visible{outline:3px solid #f8d27a;outline-offset:3px}
#game-root .board,#game-root .reversi-grid,#game-root .blocks-grid,#game-root .snakeboard,#game-root .memory,#game-root .sea,#game-root .wordgrid{max-width:100%;box-shadow:0 14px 35px #0008}
#game-root .board{background:linear-gradient(135deg,#1b5547,#0c332c);border-color:#9d7741;box-shadow:inset 0 0 0 2px #d7b77a,0 14px 35px #0008}
#game-root .c4{gap:clamp(2px,.6vw,8px);grid-template-columns:repeat(7,minmax(0,1fr));width:min(100%,560px)}
#game-root .c4 .cell{width:100%;min-width:0;aspect-ratio:1}
#game-root .ttt{width:min(100%,380px);grid-template-columns:repeat(3,minmax(0,1fr))}
#game-root .ttt .cell{font-family:Georgia,serif;aspect-ratio:1;font-size:clamp(35px,9vw,76px)}
#game-root .reversi-grid{width:min(100%,480px);grid-template-columns:repeat(8,minmax(0,1fr));border:8px solid #8a6135;box-shadow:inset 0 0 0 2px #d2ac70,0 16px 35px #0008}
#game-root .reversi-cell{min-width:0;font-size:clamp(14px,4vw,34px);background:radial-gradient(circle at 35% 20%,#2c986f,#176348);box-shadow:inset 0 0 0 1px #063d2e}
#game-root .reversi-cell.rv-player{color:#f5f1df;text-shadow:1px 3px 4px #0009}
#game-root .reversi-cell.rv-bot{color:#172725;text-shadow:1px 2px 2px #0009}
#game-root .blocks-grid{grid-template-columns:repeat(4,minmax(0,1fr));width:min(100%,390px);background:#4b3a2c;border:8px solid #947045;box-shadow:inset 0 0 0 2px #c5a16b,0 14px 30px #0007}
#game-root .block-cell{height:auto;aspect-ratio:1;font-size:clamp(18px,5vw,32px)}
#game-root .memory{width:min(100%,450px);grid-template-columns:repeat(4,minmax(0,1fr))}
#game-root .memory button{min-width:0;aspect-ratio:5/7;background:repeating-linear-gradient(45deg,#16445b 0 6px,#266a83 6px 12px);border:3px double #ead6a5;border-radius:9px;box-shadow:0 4px 8px #0007;font-size:clamp(22px,5vw,44px)}
#game-root .memory button.open{background:#fff9e9;color:#19342d}
#game-root .memory button.matched{background:#d6e7c7;border-color:#7bb77d}
#game-root .snakeboard{width:min(100%,500px);background:#091e1a;border:9px solid #78502c;box-shadow:inset 0 0 0 2px #d2a765,0 14px 35px #0008}
#game-root .snakeboard .snake{background:linear-gradient(135deg,#e2cc81,#b99a4c);box-shadow:inset 0 0 0 1px #f4dfa2}
#game-root .snakeboard .food{background:radial-gradient(circle at 30% 25%,#ffcfb7,#d84337 70%);box-shadow:0 0 8px #e34d41}
#game-root .wordgrid{width:min(100%,440px);grid-template-columns:repeat(8,minmax(0,1fr))}
#game-root .wordgrid button{min-width:0;font-size:clamp(12px,3.5vw,22px);background:linear-gradient(135deg,#245d4d,#133d32)}
#game-root .sea{width:min(100%,440px);grid-template-columns:repeat(6,minmax(0,1fr))}
#game-root .sea button{min-width:0;background:radial-gradient(circle at 30% 20%,#397f9d,#1a4b66);font-size:clamp(14px,4vw,24px)}
#game-root .v192-battle-grid{max-width:100%;box-shadow:0 12px 32px #0007}
#game-root .v192-dartboard,#game-root .v192-cue-canvas{max-width:100%;height:auto;touch-action:none}
#game-root .direction-controls,#game-root .controls{flex-wrap:wrap}
#game-root button{touch-action:manipulation}
@media(max-width:480px){#game-root{min-width:0}#game-root .board{padding:5px;border-width:5px}#game-root .memory{gap:5px}#game-root .memory button{border-width:2px}#game-root .wordgrid{gap:2px}#game-root .wordgrid button{padding:0}}
@media(prefers-reduced-motion:reduce){#game-root *,#game-root *:before,#game-root *:after{animation:none!important;transition:none!important}}

/* Games Room 2.0 puzzle controls */
#game-root .tl2-memory-toolbar,#game-root .tl2-word-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:space-between;margin:0 0 14px;color:#f6d9a0}
#game-root .tl2-memory-toolbar button,#game-root .tl2-word-tools button{background:#194d3e;border:1px solid #c3a36a;color:#fff;border-radius:9px;padding:9px 15px;cursor:pointer}
#game-root .wordgrid button.matched{background:#bbdba0!important;color:#153b2b!important;box-shadow:inset 0 0 0 2px #e6f6ce}
#game-root .wordgrid button.chosen{outline:3px solid #ffdc75;outline-offset:-3px}
#game-root .tl2-word-shell .words{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px;font-weight:700;letter-spacing:.08em}

#online-games{margin:24px auto;max-width:1160px;padding:24px;background:#113c30;border:1px solid #b6975a;border-radius:16px;color:#f7efda}
#online-games input,#online-games select,#online-games button{font:inherit;min-height:44px;max-width:100%}
#online-games .v192-actions{display:flex;gap:12px;flex-wrap:wrap}
#online-games label{display:flex;flex-direction:column;gap:5px}
#online-games .online-match>label{display:block;margin:14px 0}
#online-games .online-match>label input{width:100%}
#online-games .board,#online-games .reversi-grid{display:grid;max-width:560px;width:100%;gap:5px}
#online-games .c4{grid-template-columns:repeat(7,minmax(0,1fr))}
#online-games .ttt{grid-template-columns:repeat(3,minmax(0,1fr))}
#online-games .reversi-grid{grid-template-columns:repeat(8,minmax(0,1fr))}
#online-games .cell,#online-games .reversi-cell{aspect-ratio:1;min-width:0;border:1px solid #bda26d;background:#184c3c;font-size:2rem}
#online-games .p1,#online-games .rv-player{background:radial-gradient(circle,#f1b044 58%,#153d30 62%);color:#fff}
#online-games .p2,#online-games .rv-bot{background:radial-gradient(circle,#e56749 58%,#153d30 62%);color:#fff}
#online-games .sea{display:grid;gap:3px;width:min(100%,480px)}
#online-games .sea button{aspect-ratio:1;min-width:0;min-height:0;font-size:1.2rem;padding:2px;background:#205d78;border:1px solid #6ca3af;color:white}
#online-games .sea .hit{background:#a64036}
#online-games button:focus-visible{outline:3px solid #f9d77f;outline-offset:3px}
#online-games .online-connection{font-size:.9rem}

/* Original equipment surfaces; preserve existing game state and controls. */
#game-root .v192-battle-grid{background:linear-gradient(135deg,#153d53,#081d30);padding:6px;border:2px solid #7798ac;border-radius:8px;gap:2px}
#game-root .v192-battle-cell{position:relative;overflow:hidden;background:linear-gradient(155deg,#245f7a,#10344f);border:1px solid #54839a;color:#fff;opacity:1}
#game-root .v192-battle-cell.tl-fleet-visible{background:#17465f;isolation:isolate}
#game-root .tl-fleet-hull{position:absolute;inset:20% 0;background:linear-gradient(#a9b9bf,#596d77 45%,#263b49 48%,#84969d 55%,#344a55);border-block:1px solid #d0dce0;z-index:-1}
#game-root [data-section=bow] .tl-fleet-hull{border-radius:65% 0 0 65%}
#game-root [data-section=stern] .tl-fleet-hull{border-radius:0 40% 40% 0}
#game-root [data-orientation=vertical] .tl-fleet-hull{inset:0 20%;background:linear-gradient(90deg,#a9b9bf,#596d77 45%,#263b49 48%,#84969d 55%,#344a55);border:0;border-inline:1px solid #d0dce0;border-radius:0}
#game-root [data-orientation=vertical][data-section=bow] .tl-fleet-hull{border-radius:65% 65% 0 0}
#game-root [data-orientation=vertical][data-section=stern] .tl-fleet-hull{border-radius:0 0 40% 40%}
#game-root .v192-battle-cell.hit{color:#ffdb9a;text-shadow:0 0 5px #ff3d00;background:radial-gradient(circle,#a73522,#472c36)}
#game-root .v192-battle-cell.miss{color:#b9e9ff}
#game-root .board.c4{background:linear-gradient(145deg,#244d9d,#10265d);border:5px solid #5178bc;padding:12px;border-radius:18px;box-shadow:inset 0 2px 3px #a9c6ff66,0 14px 0 #0a183c,0 24px 30px #0008}
#game-root .c4 .cell{border-radius:50%;background:radial-gradient(circle at 50% 65%,#0d162a,#050c18 75%);border:2px solid #6787c4;box-shadow:inset 0 4px 7px #0009}
#game-root .c4 .cell.p1{background:radial-gradient(circle at 35% 25%,#ffe48b,#e5a510 55%,#a85c06 90%);box-shadow:inset 0 0 0 5px #f9c64955,0 3px 5px #0008}
#game-root .c4 .cell.p2{background:radial-gradient(circle at 35% 25%,#ff9c91,#d32b2b 55%,#7c101a 90%);box-shadow:inset 0 0 0 5px #ff5b5b55,0 3px 5px #0008}
#game-root .ttt{background:linear-gradient(120deg,#8b5b31,#4b2d1a);border:6px solid #b48a54}
#game-root .ttt .cell{background:linear-gradient(145deg,#f0d6a2,#b88c55);color:#422819;border:1px solid #6e4828;text-shadow:0 2px 1px #fff5}
#game-root .reversi-cell.rv-player,#game-root .reversi-cell.rv-bot{position:relative;text-shadow:none}
#game-root .block-cell{border-radius:7px;box-shadow:inset 0 2px 1px #fff3,0 3px 3px #0005;font-variant-numeric:tabular-nums}
#game-root .wordgrid button{font-family:Georgia,serif;letter-spacing:.02em;border:1px solid #a28c62;background:#f4e7c9;color:#29261f}
#game-root .snakeboard .snake{border-radius:35%;background:radial-gradient(circle at 30% 20%,#d2ef84,#4d8c35 65%,#244e26)}
#game-root .memory button:not(.open):not(.matched){background:repeating-linear-gradient(45deg,#17385a 0 2px,#355d82 2px 4px);box-shadow:inset 0 0 0 4px #f4e9d3,inset 0 0 0 6px #244669,0 4px 8px #0008}
