/* Specific playing surfaces. Rules stay with each game's existing engine. */
body[data-game]:is([data-game="25"],[data-game="bridge"],[data-game="gin"],[data-game="rummy"],[data-game="shithead"],[data-game="dominoes"],[data-game="connect"],[data-game="chess"],[data-game="words"],[data-game="numbers"],[data-game="pool"],[data-game="jack"]) #app .game-more{position:relative;align-self:center;font-size:12px}
body[data-game]:is([data-game="25"],[data-game="bridge"],[data-game="gin"],[data-game="rummy"],[data-game="shithead"],[data-game="dominoes"],[data-game="connect"],[data-game="chess"],[data-game="words"],[data-game="numbers"],[data-game="pool"],[data-game="jack"]) #app .game-more summary{display:flex;align-items:center;min-height:44px;padding:10px 14px;background:#f1eee2;color:#25434a;border:1px solid #c9cfc1;border-radius:7px;cursor:pointer}
body[data-game]:is([data-game="25"],[data-game="bridge"],[data-game="gin"],[data-game="rummy"],[data-game="shithead"],[data-game="dominoes"],[data-game="connect"],[data-game="chess"],[data-game="words"],[data-game="numbers"],[data-game="pool"],[data-game="jack"]) #app .game-more>div{position:absolute;left:50%;right:auto;transform:translateX(-50%);top:100%;z-index:30;min-width:150px;background:#f9f5e9;color:#25434a;border:1px solid #bdc7b8;border-radius:6px;box-shadow:0 6px 20px #0003;padding:5px}
body[data-game]:is([data-game="25"],[data-game="bridge"],[data-game="gin"],[data-game="rummy"],[data-game="shithead"],[data-game="dominoes"],[data-game="connect"],[data-game="chess"],[data-game="words"],[data-game="numbers"],[data-game="pool"],[data-game="jack"]) #app .game-more a{display:flex;align-items:center;min-height:44px;padding:9px;color:inherit;text-decoration:none}
body[data-game]:is([data-game="25"],[data-game="bridge"],[data-game="gin"],[data-game="rummy"],[data-game="shithead"],[data-game="dominoes"],[data-game="connect"],[data-game="chess"],[data-game="words"],[data-game="numbers"],[data-game="pool"],[data-game="jack"]) #app .topbar{padding-bottom:15px}
body[data-game]:is([data-game="25"],[data-game="bridge"],[data-game="gin"],[data-game="rummy"],[data-game="shithead"],[data-game="dominoes"],[data-game="connect"],[data-game="chess"],[data-game="words"],[data-game="numbers"],[data-game="pool"],[data-game="jack"]) #app .topbar-links{display:none}
body[data-game]:is([data-game="25"],[data-game="bridge"],[data-game="gin"],[data-game="rummy"],[data-game="shithead"],[data-game="dominoes"],[data-game="connect"],[data-game="chess"],[data-game="words"],[data-game="numbers"],[data-game="pool"],[data-game="jack"]) #app .gameheader{background:none;border:0;border-radius:0;padding:0 0 17px;border-bottom:1px solid #ffffff30;gap:14px}
body[data-game]:is([data-game="25"],[data-game="bridge"],[data-game="gin"],[data-game="rummy"],[data-game="shithead"],[data-game="dominoes"],[data-game="connect"],[data-game="chess"],[data-game="words"],[data-game="numbers"],[data-game="pool"],[data-game="jack"]) #app .gameheader h1{font:600 30px/1.2 Arial,Helvetica,sans-serif;letter-spacing:-.6px}
body[data-game]:is([data-game="25"],[data-game="bridge"],[data-game="gin"],[data-game="rummy"],[data-game="shithead"],[data-game="dominoes"],[data-game="connect"],[data-game="chess"],[data-game="words"],[data-game="numbers"],[data-game="pool"],[data-game="jack"]) #app .gameheader .eyebrow{display:none}
body[data-game]:is([data-game="25"],[data-game="bridge"],[data-game="gin"],[data-game="rummy"],[data-game="shithead"],[data-game="dominoes"],[data-game="connect"],[data-game="chess"],[data-game="words"],[data-game="numbers"],[data-game="pool"]) #app .btn{border-radius:7px;box-shadow:none;background:#173b43;border:1px solid #ffffff38;min-height:44px}
body[data-game]:is([data-game="25"],[data-game="bridge"],[data-game="gin"],[data-game="rummy"],[data-game="shithead"],[data-game="dominoes"],[data-game="connect"],[data-game="chess"],[data-game="words"],[data-game="numbers"],[data-game="pool"]) #app .btn.secondary{background:#f1eee2;color:#233f40;border-color:#d2d1be}
body[data-game]:is([data-game="25"],[data-game="bridge"],[data-game="gin"],[data-game="rummy"],[data-game="shithead"],[data-game="dominoes"],[data-game="connect"],[data-game="chess"],[data-game="words"],[data-game="numbers"],[data-game="pool"]) #app .btn.gold{background:#e9bd74;color:#283a3c;border-color:#f3ce91}
body[data-game]:is([data-game="25"],[data-game="bridge"],[data-game="gin"],[data-game="rummy"],[data-game="shithead"],[data-game="dominoes"],[data-game="connect"],[data-game="chess"],[data-game="words"],[data-game="numbers"],[data-game="pool"]) #app .status{border-radius:6px;background:#09292f80;box-shadow:none;line-height:1.6;font-weight:400;padding:12px 16px}
body[data-game]:is([data-game="25"],[data-game="bridge"],[data-game="gin"],[data-game="rummy"],[data-game="shithead"]) #app .play-area{border:1px solid #d6e2c733;border-radius:14px;box-shadow:inset 0 0 0 5px #0000000c;background-color:#194c41;background-image:repeating-linear-gradient(25deg,#ffffff03 0 1px,transparent 1px 4px);padding:24px 16px}
body[data-game="25"]{background:#163c35!important}
body[data-game="bridge"]{background:#243c52!important}
body[data-game="gin"]{background:#29413e!important}
body[data-game="rummy"]{background:#324953!important}
body[data-game="shithead"]{background:#503941!important}
body[data-game="bridge"] #app .shell .play-area{background-color:#25475c}
body[data-game="gin"] #app .shell .play-area{background-color:#36594d}
body[data-game="rummy"] #app .shell .play-area{background-color:#315764}
body[data-game="shithead"] #app .shell .play-area{background-color:#64464b}
body[data-game]:is([data-game="25"],[data-game="bridge"],[data-game="gin"],[data-game="rummy"],[data-game="shithead"]) #app .card{border:1px solid #d6cdb9;box-shadow:0 2px 2px #0003;border-radius:5px;background:#fffdf4}
body[data-game]:is([data-game="25"],[data-game="bridge"],[data-game="gin"],[data-game="rummy"],[data-game="shithead"]) #app .card.back{background:repeating-linear-gradient(45deg,#34565d 0 3px,#426b70 3px 4px);border:3px double #e4e3cf;color:#e4e3cf}
body[data-game]:is([data-game="25"],[data-game="bridge"],[data-game="gin"],[data-game="rummy"],[data-game="shithead"]) #app .hand-label{font-size:10px;letter-spacing:1.6px;color:#d0ded0;margin-top:18px}
body[data-game]:is([data-game="25"],[data-game="bridge"],[data-game="gin"],[data-game="rummy"],[data-game="shithead"]) #app .chip{background:#ffffff0a;border-color:#ffffff25;border-radius:5px;color:#e3e7d8}
body[data-game="hearts"]{background:#482d36}
body[data-game="hearts"] .ng-hearts-table{background:repeating-linear-gradient(30deg,#ffffff03 0 1px,transparent 1px 4px),#704552;border:9px solid #38262b;box-shadow:0 0 0 2px #b28a68,0 12px 25px #0002;border-radius:38%}
body[data-game="hearts"] .ng-seat{background:#3d2934;border:1px solid #b48d83;border-radius:7px;padding:10px}
body[data-game="hearts"] .ng-seat.current{border:2px solid #e9c17f}
body[data-game="solitaire"]{background:repeating-linear-gradient(30deg,#ffffff03 0 1px,transparent 1px 4px),#1e5148}
body[data-game]:is([data-game="solitaire"],[data-game="hearts"]) .ng-card.back{background:repeating-linear-gradient(45deg,#294c56 0 3px,#557a7c 3px 4px);border:3px double #c5cfc5}
body[data-game]:is([data-game="solitaire"],[data-game="hearts"]) .ng-card{border-radius:5px;box-shadow:0 2px 3px #0004}
body[data-game]:is([data-game="tictactoe"],[data-game="tapmatch"],[data-game="backgammon"],[data-game="wordguess"],[data-game="mines"],[data-game="hangman"],[data-game="solitaire"],[data-game="sudoku"],[data-game="hearts"],[data-game="reversi"]) .ng-header{text-align:left;grid-template-columns:44px 1fr 44px;padding-bottom:15px;border-bottom:1px solid #ffffff25;gap:13px}
body[data-game]:is([data-game="tictactoe"],[data-game="tapmatch"],[data-game="backgammon"],[data-game="wordguess"],[data-game="mines"],[data-game="hangman"],[data-game="solitaire"],[data-game="sudoku"],[data-game="hearts"],[data-game="reversi"]) .ng-header h1{font:600 28px/1.2 Arial,Helvetica,sans-serif;letter-spacing:-.5px}
body[data-game]:is([data-game="tictactoe"],[data-game="tapmatch"],[data-game="backgammon"],[data-game="wordguess"],[data-game="mines"],[data-game="hangman"],[data-game="solitaire"],[data-game="sudoku"],[data-game="hearts"],[data-game="reversi"]) .ng-round{border-radius:9px;width:44px;height:44px;background:#ffffff0d;color:inherit;border:1px solid #b6c6bd66;box-shadow:none}
body[data-game]:is([data-game="tictactoe"],[data-game="tapmatch"],[data-game="backgammon"],[data-game="wordguess"],[data-game="mines"],[data-game="hangman"],[data-game="solitaire"],[data-game="sudoku"],[data-game="hearts"],[data-game="reversi"]) .ng-btn{border-radius:6px;box-shadow:0 2px #0002;background:#f3ecd9;border:1px solid #d6cdb9;color:#273d43;min-height:46px}
body[data-game]:is([data-game="tictactoe"],[data-game="tapmatch"],[data-game="backgammon"],[data-game="wordguess"],[data-game="mines"],[data-game="hangman"],[data-game="solitaire"],[data-game="sudoku"],[data-game="hearts"],[data-game="reversi"]) .ng-gold{background:#e8bd7d;border-color:#f5d6a3}
body[data-game]:is([data-game="tictactoe"],[data-game="tapmatch"],[data-game="backgammon"],[data-game="wordguess"],[data-game="mines"],[data-game="hangman"],[data-game="solitaire"],[data-game="sudoku"],[data-game="hearts"],[data-game="reversi"]) .ng-stat{background:transparent;border-bottom:1px solid #a5b4ab66;border-radius:0;font-size:10px;letter-spacing:1px;min-width:95px}
body[data-game]:is([data-game="tictactoe"],[data-game="tapmatch"],[data-game="backgammon"],[data-game="wordguess"],[data-game="mines"],[data-game="hangman"],[data-game="solitaire"],[data-game="sudoku"],[data-game="hearts"],[data-game="reversi"]) .ng-help{border-radius:6px;border:1px solid #a0b3ae38;background:#0000000c;font-size:13px}
body[data-game]:is([data-game="wordguess"],[data-game="sudoku"],[data-game="numbers"]){background:repeating-linear-gradient(0deg,transparent 0 31px,#637b9510 32px),#f6f2e8!important;color:#263c48}
body[data-game]:is([data-game="wordguess"],[data-game="sudoku"]) .ng-header{border-color:#c6cbc0}
body[data-game]:is([data-game="wordguess"],[data-game="sudoku"]) .ng-header small{color:#4c6869}
body[data-game]:is([data-game="wordguess"],[data-game="sudoku"]) .ng-message{color:#34515d;font-weight:400}
body[data-game]:is([data-game="wordguess"],[data-game="sudoku"]) .ng-stat b{color:#2d5962}
body[data-game]:is([data-game="wordguess"],[data-game="sudoku"]) .ng-linkbar{color:#36545c;opacity:1}
body[data-game="wordguess"] .ng-word{gap:7px;margin-top:24px;max-width:360px}
body[data-game="wordguess"] .ng-word-row{gap:7px}
body[data-game="wordguess"] .ng-letter{background:#fffdf6;color:#243e49;border:1.5px solid #9daea9;border-radius:2px;font-size:32px;font-family:Georgia,serif}
body[data-game="wordguess"] .ng-key{background:#e3e7de;border:1px solid #bac6c0;box-shadow:0 2px #bec9c3;color:#253e46;border-radius:4px;min-height:48px}
body[data-game="sudoku"] .ng-sudoku{border:2px solid #304d5e;border-radius:2px;box-shadow:0 8px 24px #374f5a12}
body[data-game="sudoku"] .ng-sudoku button{background:#fffdf5;color:#2a6687;font-family:Georgia,serif;border-color:#b8c3c1}
body[data-game="sudoku"] .ng-sudoku .given{background:#f0eee3;color:#2b4149}
body[data-game="sudoku"] .ng-sudoku .selected{background:#f3d58f;box-shadow:inset 0 0 0 2px #a57e30}
body[data-game="sudoku"] .ng-sudoku .same{background:#dce9df}
body[data-game="sudoku"] .ng-sudoku .box-right{border-right:2px solid #304d5e}
body[data-game="sudoku"] .ng-sudoku .box-bottom{border-bottom:2px solid #304d5e}
body[data-game="sudoku"] .ng-pad button{background:#e0e7df;color:#254857;border-radius:5px;border:1px solid #b8c6bb;min-height:46px}
body[data-game="numbers"] #app .brand,body[data-game="numbers"] #app .gameheader h1{color:#284a56!important}
body[data-game="numbers"] #app .play-area{background:#e9e6d8;border:1px solid #c6c9bc;border-radius:6px;padding:18px 10px}
body[data-game="numbers"] #app .number{background:#fffdf7;color:#315570;box-shadow:none;border:1px solid #c9cec2;font:24px Georgia,serif;border-radius:2px}
body[data-game="numbers"] #app .number.selected{background:#e9c77f;color:#273c43;outline:2px solid #917443}
body[data-game="numbers"] #app .number.empty{background:#e3e3d7;color:#b9bfaf}
body[data-game="numbers"] #app .shell>.status{background:#e3e8de;color:#2b4853;border-color:#c5cbbb}
body[data-game="tictactoe"]{background:#253d52}
body[data-game="tictactoe"] .ng-xo{background:#152b3c;padding:12px;gap:8px;border:1px solid #809295;border-radius:14px;box-shadow:0 10px 0 #10202c,0 22px 30px #0003}
body[data-game="tictactoe"] .ng-xo button{background:#f1eada;color:#c4664e;border:1px solid #c8c0b0;box-shadow:inset 0 -4px #d8ceba;font-family:Georgia,serif;border-radius:9px}
body[data-game="tictactoe"] .ng-xo button:nth-child(odd){background:#f1eada}
body[data-game="tictactoe"] .ng-xo button:disabled{opacity:1}
body[data-game="tictactoe"] .ng-stat b{color:#f0c187}
body[data-game="reversi"]{background:#243c34}
body[data-game="reversi"] .ng-rev{border:10px solid #71533d;box-shadow:0 0 0 2px #b99969,0 10px 0 #352d26,0 18px 30px #0003;border-radius:5px}
body[data-game="reversi"] .ng-rev button{background:#376c55;border:1px solid #184735;opacity:1}
body[data-game="reversi"] .ng-disc.black{background:radial-gradient(circle at 32% 28%,#566567,#172326 65%);border:1px solid #748480;box-shadow:0 3px 2px #0006}
body[data-game="reversi"] .ng-disc.white{background:radial-gradient(circle at 30% 25%,#fffdf0,#d7d6bd);border:1px solid #fff6da;box-shadow:0 3px 2px #0006}
body[data-game="reversi"] .ng-rev .legal:after{background:#e2c375;box-shadow:none;width:16%;height:16%;top:42%;left:42%}
body[data-game="backgammon"]{background:#3d3432}
body[data-game="backgammon"] .ng-bg{border:9px solid #68452f;box-shadow:0 0 0 2px #b58c56,0 12px 30px #0004;border-radius:7px}
body[data-game="backgammon"] .ng-checker{box-shadow:inset 0 0 0 2px #ccbb91,inset 0 0 0 4px #eee0bc,0 2px 2px #0006;background:#f2e5c5}
body[data-game="backgammon"] .ng-checker.red{background:#994e46;box-shadow:inset 0 0 0 2px #ba7663,inset 0 0 0 4px #884439,0 2px 2px #0006}
body[data-game="hangman"]{background:repeating-linear-gradient(15deg,#ffffff02 0 2px,transparent 2px 5px),#294840}
body[data-game="hangman"] .ng-hang g{stroke:#ebe8cf;stroke-width:6}
body[data-game="hangman"] .ng-hang-word span{border-color:#eee2bd;font-family:Georgia,serif;color:#fff6db}
body[data-game="hangman"] .ng-key{background:#e9e5d3;color:#2b4a43;border-radius:4px;box-shadow:0 2px #b9bca6}
body[data-game="mines"]{background:#283942}
body[data-game="mines"] .ng-mines{background:#718382;border:8px solid #7f918d;gap:2px;box-shadow:0 0 0 1px #c1c8b6,0 8px 22px #0003;border-radius:4px}
body[data-game="mines"] .ng-mines button{background:#c7d1c4;box-shadow:inset 2px 2px #edf0df,inset -2px -2px #80948c;color:#23658b;border-radius:1px}
body[data-game="mines"] .ng-mines button.open{background:#b2c2b8;box-shadow:none}
body[data-game="tapmatch"]{background:#594650}
body[data-game="tapmatch"] .ng-fruit{background:#f4eddc;border:2px solid #b5b5a2;border-radius:8px;box-shadow:0 5px 0 #989e8b,0 7px 4px #0004}
body[data-game="tapmatch"] .ng-fruit:disabled{filter:brightness(.68);opacity:1}
body[data-game="tapmatch"] .ng-fruit.ng-active{outline:3px solid #f2c37b;outline-offset:2px;border-color:#f4dfba}
body[data-game="tapmatch"] .craft-fruit{width:94%;height:94%;max-width:76px;display:block}
body[data-game="connect"]{background:#eef0e6!important;color:#233e55}
body[data-game="connect"] #app .brand,body[data-game="connect"] #app .gameheader h1{color:#233e55!important}
body[data-game="connect"] #app .gameheader{border-color:#b9c9c9!important}
body[data-game="connect"] #app .connect-table{color:#233e55;max-width:620px;margin:auto}
body[data-game="connect"] #app .connect-players{display:flex;align-items:center;justify-content:center;gap:22px;margin:8px auto 17px}
body[data-game="connect"] #app .connect-players>div{display:flex;gap:10px;align-items:center;padding:9px 13px;border:1px solid transparent;border-radius:9px}
body[data-game="connect"] #app .connect-players .at-turn{background:#fffdf5;border-color:#c0cbbf}
body[data-game="connect"] #app .connect-players span{font-size:17px;font-weight:700}
body[data-game="connect"] #app .connect-players small{display:block;font-size:8px;letter-spacing:1px;margin-top:3px;color:#57717c}
body[data-game="connect"] #app .connect-players>b{font-size:11px;color:#7b9195}
body[data-game="connect"] #app .connect-token{display:block;width:35px;height:35px;border-radius:50%;background:#d65c46;box-shadow:inset 0 0 0 4px #b34a3b,inset 0 0 0 5px #ed8d6e,0 2px 0 #8c3e32}
body[data-game="connect"] #app .connect-token.yellow{background:#e8bd4b;box-shadow:inset 0 0 0 4px #c99c38,inset 0 0 0 5px #ffe08b,0 2px 0 #a77d2d}
body[data-game="connect"] #app .connect-table .status{background:#dee7df;color:#2f4f5a;border:1px solid #c2cec2;min-height:48px;text-align:center;font-size:14px;margin:0 0 12px}
body[data-game="connect"] #app .connect-rack{position:relative;margin:0 auto 10px;padding:0 12px}
body[data-game="connect"] #app .column-controls{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin:0;padding:0 13px 10px;max-width:none}
body[data-game="connect"] #app .column-controls button{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-width:0;min-height:52px;border:1px solid #b9cac5;background:#fffdf7;color:#294d62;border-radius:8px;box-shadow:none;padding:3px}
body[data-game="connect"] #app .connect-drop{font-size:25px;line-height:1}
body[data-game="connect"] #app .column-controls small{font-size:10px;margin-top:3px;color:#597885}
body[data-game="connect"] #app .column-controls button:hover:not(:disabled){background:#f4d2be;border-color:#c96e53}
body[data-game="connect"] #app .connect-grid{background:#245f9b;border:3px solid #7faaca;border-radius:12px;padding:13px;gap:7px;max-width:none;box-shadow:0 8px 0 #17466c,0 17px 20px #1a426522;position:relative}
body[data-game="connect"] #app .connect-grid .disc{display:grid;place-items:center;padding:0;border:0;min-width:0;width:100%;border-radius:50%;aspect-ratio:1;background:#173e5d;box-shadow:inset 0 4px 4px #081f3688,0 1px 0 #94bed377;opacity:1}
body[data-game="connect"] #app .connect-grid .disc.p1{background:#e16b50;box-shadow:inset 0 0 0 4px #bb4c39,inset 0 0 0 5px #f5aa7f,inset 0 2px 2px #ffd1ab}
body[data-game="connect"] #app .connect-grid .disc.p2{background:#ecc351;box-shadow:inset 0 0 0 4px #c89a35,inset 0 0 0 5px #ffe7a0,inset 0 2px 2px #fff4c4}
body[data-game="connect"] #app .connect-grid .connect-win{outline:3px solid #fff6bc;outline-offset:2px;color:#fff8cf;font-size:20px}
body[data-game="connect"] #app .connect-grid .disc:not(:disabled):hover{outline:2px solid #d9ede0;outline-offset:-2px}
body[data-game="connect"] #app .connect-feet{display:flex;justify-content:space-between;padding:8px 8px 0}
body[data-game="connect"] #app .connect-feet i{width:13%;height:15px;border-radius:0 0 7px 7px;background:#245f9b;box-shadow:0 4px 0 #173f64}
body[data-game="connect"] #app .connect-caption{text-align:center;font-size:12px;color:#5e7882;margin:18px 0}
body[data-game="connect"] #app .chips{justify-content:center;gap:10px}
body[data-game="connect"] #app .game-footer{color:#607d81}
body[data-game="connect"] #app button:focus-visible{outline:3px solid #b35137;outline-offset:3px}
body[data-game="chess"]{background:#293b41!important}
body[data-game="chess"] #app .play-area{background:#1b3037;border:0;border-radius:8px;padding:18px}
body[data-game="chess"] #app .chess-board{border:10px solid #71523a;box-shadow:0 0 0 2px #b58d5f,0 8px 20px #0003;border-radius:4px}
body[data-game="chess"] #app .square{background:#e2d5b5;color:#273c42;position:relative;padding:0}
body[data-game="chess"] #app .square.dark{background:#839383}
body[data-game="chess"] #app .square:disabled{opacity:1}
body[data-game="chess"] #app .craft-chess-piece{width:94%;height:94%;max-height:62px;display:block;filter:drop-shadow(0 2px 1px #0004);pointer-events:none}
body[data-game="chess"] #app .square.selected{outline:3px solid #e1b85d;outline-offset:-3px;background:#d0bb77}
body[data-game="chess"] #app .square.legal:after{background:#31596b99}
body[data-game="chess"] #app .square.last{box-shadow:inset 0 0 0 2px #e3bd6b}
body[data-game="chess"] #app .coord{font-size:8px;color:#284c48;z-index:2}
body[data-game="chess"] #app .coach{background:#e8e8d9;border-radius:6px;box-shadow:none;border:1px solid #b5c1b0}
body[data-game="dominoes"]{background:repeating-linear-gradient(3deg,#ffffff03 0 2px,transparent 2px 7px),#4f4339!important}
body[data-game="dominoes"] #app .play-area{background:#456054;border:8px solid #866b50;border-radius:8px;box-shadow:inset 0 0 0 1px #c1b28e,0 6px 0 #362e27}
body[data-game="dominoes"] #app .domino{background:#f5edda;border:1px solid #b8b19e;border-radius:5px;box-shadow:2px 3px #c3baa2,3px 5px 5px #0003}
body[data-game="dominoes"] #app .domino.selected{outline:3px solid #f3c779}
body[data-game="dominoes"] #app .pip.filled{background:#263d3c;box-shadow:inset 0 1px #0a2028}
body[data-game="pool"]{background:#233d36!important}
body[data-game="pool"] #app .play-area{border:0;background:transparent;padding:12px 0}
body[data-game="pool"] #app canvas{box-shadow:0 0 0 4px #8b6846,0 0 0 6px #3c3028,0 12px 24px #0005;border-radius:12px;max-width:100%}
body[data-game="words"]{background:#345448!important}
body[data-game="words"] #app .play-area{background:#24463b;border:1px solid #b8c39a55;border-radius:7px}
body[data-game="words"] #app .rack{background:#aa8053;border-bottom:5px solid #614a35;border-radius:5px;padding:8px 5px 5px;box-shadow:0 4px 10px #0003}
body[data-game="words"] #app .chip.current{background:#f1d28d;color:#2d493d}
body[data-game="mosaic"]{background:#f0eddf;color:#244b59}
body[data-game="mosaic"] .factory{background:#faf9ef;border:5px double #5b8193;box-shadow:0 4px 0 #c0c8bb}
body[data-game="mosaic"] .tile{border:1px solid #ffffff88;border-radius:3px;box-shadow:inset 0 2px 0 #ffffff55,0 2px 1px #153b4229}
body[data-game="mosaic"] .tile-0{background:repeating-linear-gradient(45deg,#315f8f 0 5px,#487aa4 5px 7px)}
body[data-game="mosaic"] .tile-1{background:#deb955}
body[data-game="mosaic"] .tile-2{background:#bb6756}
body[data-game="mosaic"] .tile-3{background:#438980}
body[data-game="gems"]{background:#213443}
body[data-game="gems"] .gem{box-shadow:inset 0 0 0 2px #ffffff38,0 3px 0 #0003;border-radius:7px}
body[data-game="gems"] .market-card{border-radius:8px;box-shadow:0 4px 0 #0e2233;border-color:#8eaaab66}
body[data-game]:is([data-game="mosaic"],[data-game="gems"]) .learn{border-radius:7px;padding:18px;border-left-width:3px;box-shadow:none}
body[data-game="ludo"]{background:#e7e6d7}
body[data-game="ludo"] .board{background:#fffaf0;border:8px solid #526b67;border-radius:12px;box-shadow:0 7px 0 #374f4c,0 14px 25px #344f4c22}
body[data-game="ludo"] .board circle{filter:drop-shadow(0 2px 1px #0004)}
body[data-game="ludo"] .intro{font-size:14px;line-height:1.6;color:#49625f}
body[data-game="countdown"]{background:#f0eee2}
body[data-game="countdown"] h1{font-family:Arial,Helvetica,sans-serif;font-weight:600;letter-spacing:-1px}
body[data-game="countdown"] .panel{border-radius:6px;border-color:#c5cec2;box-shadow:none;background:#fffdf4}
body[data-game="countdown"] .choices button{border-radius:6px;background:#e0e8df;color:#21465d;border-color:#aabdb8}
body[data-game="countdown"] button{border-radius:6px;box-shadow:none}
body[data-game="mastermind"]{background:#eef0e7}
body[data-game="mastermind"] .hero{background:#233f4b;border-radius:7px;box-shadow:none;border:0;padding:28px;color:#f1eddb}
body[data-game="mastermind"] .hero h1{font:600 36px Arial,Helvetica,sans-serif;text-shadow:none;letter-spacing:-1px}
body[data-game="mastermind"] .hero p{color:#d1e1d9}
body[data-game="mastermind"] .chair-scene{height:190px;max-width:280px;background:#ffffff08;border:1px solid #ffffff20;border-radius:6px;box-shadow:none}
body[data-game="mastermind"] .chair-scene svg{height:170px;width:160px}
body[data-game="mastermind"] .subject{border-radius:5px;box-shadow:none;background:#fffdf3;border-color:#c8d0c3}
body[data-game="mastermind"] .subject.chosen{background:#dce8d9;border:2px solid #4a6c5b}
body[data-game="parish"] .setup,body[data-game="shelf"] .setup,body[data-game="zipopoly3d"] .setup{border-radius:10px;box-shadow:0 8px 28px #0002}
body[data-game="parish"] .setup h1,body[data-game="shelf"] .setup h1,body[data-game="zipopoly3d"] .setup h1{font-family:Arial,Helvetica,sans-serif;letter-spacing:-.6px}
body[data-game="parish"] .setup button,body[data-game="shelf"] .setup button,body[data-game="zipopoly3d"] .setup button{border-radius:6px}
body[data-game="property"] #app .property-page-header{box-shadow:none;border-bottom:1px solid #ccd4b755}
body[data-game="property"] #app .prop-setup{border-radius:10px}
body[data-game="jack"] #app .jack-setup{border-radius:10px;box-shadow:none}
body[data-game="freecell"] #app .fc-card{box-shadow:0 1px 2px #0004;border-color:#617576}
body[data-game="spades"] #app .sp-bid-sheet{border-radius:12px;background:#f0ebd9}
body[data-game="spades"] #app .sp-place-bid{background:#366c50;border:1px solid #8eb996;border-radius:7px}
body[data-game="poker"] #app .pk-controls{border-radius:8px;box-shadow:none}
body[data-game="water"] #app .wa-tool{box-shadow:none}
body[data-game="irish"] .f-rack-panel{border-radius:8px}
body[data-game="dice"] .five-guide{border-radius:8px}
body[data-game="cluedo"] .case-notebook{border-radius:6px}
body[data-game="seabattle"] .sea-placement{max-width:560px;margin:0 auto 18px}
body[data-game="seabattle"] .sea-ship-tray{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
body[data-game="seabattle"] .sea-ship-tray button{min-width:0;padding:10px 4px;background:#12313f;color:#c7ddd4;border:1px solid #6b939b77;border-radius:7px;min-height:84px;cursor:pointer}
body[data-game="seabattle"] .sea-ship-tray button.sea-ship-selected{border:2px solid #f1c27a;background:#26444b;color:#fff1d4}
body[data-game="seabattle"] .sea-ship-tray strong{display:block;font-size:10px;font-weight:600;margin:6px 0}
body[data-game="seabattle"] .sea-ship-tray small{display:block;font-size:8px;line-height:1.5}
body[data-game="seabattle"] .sea-ship-size{font-size:16px;letter-spacing:1px;color:#a9c1b3}
body[data-game="seabattle"] .sea-direction{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;color:#c7dcd3;font-size:12px}
body[data-game="seabattle"] .sea-direction .ng-btn{padding:10px 12px;font-size:12px}
body[data-game="seabattle"] .sea-deploy{max-width:560px;margin-left:auto;margin-right:auto}
body[data-game="seabattle"] .sea-placement-preview{display:none;position:absolute;left:0;top:0;width:calc(100% * var(--wide));height:calc(100% * var(--tall));background:#f0c87944;border:2px solid #ffe2a4;border-radius:8px;pointer-events:none;z-index:5}
body[data-game="seabattle"] .sea-place-valid:hover .sea-placement-preview,body[data-game="seabattle"] .sea-place-valid:focus-visible .sea-placement-preview{display:block}
body[data-game="seabattle"] .sea-place-blocked:hover{background:#ef8b5b33;cursor:not-allowed}
body[data-game="seabattle"] .sea-own-cells button{cursor:pointer}
body[data-game="seabattle"] .sea-placement-feedback{font-size:12px;line-height:1.5;color:#c4dbce;padding:10px 12px;background:#13323e;border:1px solid #6c97954d;border-radius:6px;margin:12px 0 0;min-height:40px}
body[data-game="seabattle"] .sea-placement-error{color:#ffe1bf;border-color:#e4a477;background:#604135}
@media(max-width:600px){
body[data-game="connect"] #app .shell{padding:18px 12px 32px}
body[data-game="connect"] #app .connect-rack{padding:0 3px}
body[data-game="connect"] #app .connect-grid{padding:10px;gap:5px}
body[data-game="connect"] #app .column-controls{padding:0 13px 10px;gap:5px}
body[data-game="connect"] #app .connect-players{gap:14px;margin:8px 0 12px}
body[data-game="connect"] #app .connect-players span{font-size:15px}
body[data-game="connect"] #app .connect-players>div{padding:7px 10px}
body[data-game="connect"] #app .connect-grid .disc.p1{box-shadow:inset 0 0 0 3px #bb4c39,inset 0 0 0 4px #f5aa7f}
body[data-game="connect"] #app .connect-grid .disc.p2{box-shadow:inset 0 0 0 3px #c89a35,inset 0 0 0 4px #ffe7a0}
body[data-game="connect"] #app .connect-grid .connect-win{font-size:15px;outline-width:2px}
body[data-game="chess"] #app .play-area{padding:12px 6px}
body[data-game="chess"] #app .chess-board{border-width:6px}
body[data-game="mastermind"] .hero{padding:22px 18px}
body[data-game="mastermind"] .hero h1{font-size:36px}
body[data-game="mastermind"] .chair-scene{height:150px;max-width:100%}
body[data-game="mastermind"] .chair-scene svg{height:135px;width:125px}
body[data-game="seabattle"] .sea-ship-tray{grid-template-columns:repeat(5,minmax(0,1fr))}
body[data-game="seabattle"] .sea-ship-tray button{min-height:70px}
body[data-game="seabattle"] .sea-ship-tray strong{font-size:9px}
body[data-game="seabattle"] .sea-ship-tray small{font-size:8px}
body[data-game="seabattle"] .sea-deploy{gap:7px}
body[data-game="seabattle"] .sea-deploy .ng-btn{padding:11px 5px;font-size:12px}
body[data-game="seabattle"] .sea-direction>span{font-size:11px}
}

body[data-game="seabattle"] #new-app:has(.sea-placement)>.ng-message{display:none}

/* Quiz Workshop: searchable subject rows, not decorative subject cards. */
body[data-game="mastermind"]{--ink:#182e48;--paper:#fff;--muted:#56697e;--line:#ccd7e3;background:#fff;color:#182e48}
body[data-game="mastermind"]>header{padding-top:16px;padding-bottom:16px;border-color:#ccd7e3}
body[data-game="mastermind"]>header .brand,body[data-game="mastermind"]>header .quiet{min-height:44px}
body[data-game="mastermind"] .quiz-brand{background:#183b63!important;color:#fff!important;letter-spacing:1px!important}
body[data-game="mastermind"] .hero{display:block;margin:22px 0;padding:22px 26px;background:#183b63;border:0;border-radius:4px;color:#fff}
body[data-game="mastermind"] .hero .chair-scene{display:none}
body[data-game="mastermind"] .hero h1{font:700 30px/1.12 Arial,Helvetica,sans-serif;letter-spacing:-.5px;margin:12px 0}
body[data-game="mastermind"] .hero h1 em{font-style:normal;font-weight:700;color:#c6ddf5}
body[data-game="mastermind"] .hero .eyebrow,body[data-game="mastermind"] .hero .intro{color:#deebf9}
body[data-game="mastermind"] .hero .intro{max-width:72ch;font-size:15px;line-height:1.5;margin:12px 0}
body[data-game="mastermind"] .hero .steps{margin-top:16px;gap:12px 22px;color:#fff}
body[data-game="mastermind"] .hero .steps span b{border-color:#9ab8da;color:#fff}
body[data-game="mastermind"] .selection{border:0;padding:8px 0 32px}
body[data-game="mastermind"] .selection .section-top{gap:12px;align-items:baseline}
body[data-game="mastermind"] .selection h2{font:700 23px/1.25 Arial,Helvetica,sans-serif;letter-spacing:-.3px;margin:0 0 16px;color:#182e48}
body[data-game="mastermind"] .selection .count{font-size:13px;color:#56697e}
body[data-game="mastermind"] .selection .search{min-height:48px;border:1px solid #9aafc6;border-radius:4px;background:#fff;color:#182e48;padding:12px 14px;font-size:16px}
body[data-game="mastermind"] .selection .filters{gap:0;padding:0;margin:16px 0 0;border-bottom:2px solid #ccd7e3;max-width:100%}
body[data-game="mastermind"] .selection .chip{flex:0 0 auto;min-height:44px;padding:10px 14px;border:0;border-bottom:3px solid transparent;border-radius:0;background:#fff;color:#405872;font-size:13px}
body[data-game="mastermind"] .selection .chip.active{border-bottom-color:#235b96;background:#eef4fc;color:#133b66;font-weight:700}
body[data-game="mastermind"] .selection #grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;background:#fff}
body[data-game="mastermind"] .selection .subject{display:grid;grid-template-columns:minmax(0,1fr) auto 22px;grid-template-rows:auto auto;align-items:center;gap:3px 12px;min-height:72px;padding:11px 12px;border:0;border-bottom:1px solid #d9e1eb;border-radius:0;box-shadow:none;background:#fff;color:#182e48;transform:none;transition:background .15s}
body[data-game="mastermind"] .selection .subject:hover{background:#f1f6fc;transform:none}
body[data-game="mastermind"] .selection .subject.chosen{border:0;border-bottom:1px solid #b9cce2;background:#eaf2fc;box-shadow:inset 3px 0 #235b96}
body[data-game="mastermind"] .selection .subject .category{grid-column:1;grid-row:1;font:600 10px/1.3 Arial,Helvetica,sans-serif;letter-spacing:.5px;color:#60748b}
body[data-game="mastermind"] .selection .subject strong{grid-column:1;grid-row:2;min-width:0;margin:0;font:600 16px/1.35 Arial,Helvetica,sans-serif;letter-spacing:0;overflow-wrap:anywhere;color:#182e48}
body[data-game="mastermind"] .selection .subject small{grid-column:2;grid-row:1/3;font:400 12px/1.4 Arial,Helvetica,sans-serif;color:#56697e;text-align:right}
body[data-game="mastermind"] .selection .subject .arrow{position:static;grid-column:3;grid-row:1/3;color:#235b96;font-size:18px;text-align:center}
body[data-game="mastermind"] .selection .empty{padding:24px 12px;font-size:14px;color:#56697e}
body[data-game="mastermind"] .selection .more{min-height:44px;margin:12px auto;font-size:14px;color:#174c83}
body[data-game="mastermind"] .selection .setup{margin-top:18px;padding:20px;border:1px solid #b9cce2;border-radius:4px;background:#f1f6fc;gap:24px}
body[data-game="mastermind"] .selection .setup h3{font:700 22px/1.25 Arial,Helvetica,sans-serif;margin:5px 0 8px;color:#182e48}
body[data-game="mastermind"] .selection .setup p{font-size:13px;line-height:1.5;color:#405872}
body[data-game="mastermind"] .selection .setup select{min-height:44px;padding:10px;background:#fff;border:1px solid #9aafc6;color:#182e48}
body[data-game="mastermind"] .selection .setup label{font-size:13px;color:#253f5d}
body[data-game="mastermind"] .selection .setup .toggle{min-height:44px;margin-top:8px}
body[data-game="mastermind"] .selection .setup .primary{min-height:48px;background:#183b63;color:#fff;font-weight:700}
body[data-game="mastermind"] .selection .setup .primary:hover{background:#25568c}
body[data-game="mastermind"] .selection .sources{margin:24px 0;font-size:12px;line-height:1.6}
body[data-game="mastermind"] button:focus-visible,body[data-game="mastermind"] input:focus-visible,body[data-game="mastermind"] select:focus-visible,body[data-game="mastermind"] a:focus-visible{outline:3px solid #2876c7;outline-offset:3px}
body[data-game="mastermind"] .selection .subject:focus-visible{z-index:1}
@media(max-width:760px){
body[data-game="mastermind"] main{padding-left:18px;padding-right:18px}
body[data-game="mastermind"] .hero{margin:14px 0 18px;padding:18px}
body[data-game="mastermind"] .hero h1{font-size:27px}
body[data-game="mastermind"] .hero .steps{gap:10px 14px}
body[data-game="mastermind"] .selection .section-top{flex-wrap:wrap;gap:0 12px;margin-bottom:12px}
body[data-game="mastermind"] .selection .section-top h2{margin-bottom:6px}
body[data-game="mastermind"] .selection #grid{grid-template-columns:1fr}
body[data-game="mastermind"] .selection .subject{grid-template-columns:minmax(0,1fr) 24px;grid-template-rows:auto auto auto;gap:3px 10px;min-height:78px}
body[data-game="mastermind"] .selection .subject small{grid-column:1;grid-row:3;text-align:left}
body[data-game="mastermind"] .selection .subject .arrow{grid-column:2;grid-row:1/4}
body[data-game="mastermind"] .selection .setup{grid-template-columns:1fr;padding:18px;gap:18px}
body[data-game="mastermind"] .selection .setup .fields{grid-template-columns:1fr}
}
