:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#f6f3e9;background:#061d1b}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top,#185044 0%,#061d1b 60%);min-height:100vh}header{height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100vw - 1260px)/2));border-bottom:1px solid #bca66d40;background:#061b18d9;gap:15px}.back{color:#e4cb8a;text-decoration:none}.brand{font-size:19px;font-weight:900;letter-spacing:.08em}.brand span{display:block;color:#d8b975;font-size:11px;letter-spacing:.25em}.tag{font-size:11px;letter-spacing:.12em;color:#d8c18a}main{max-width:1260px;margin:auto;padding:24px}.hero{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(110deg,#164c3e,#092a28);border:1px solid #bda2675c;border-radius:23px;padding:25px 36px;margin-bottom:24px;box-shadow:0 18px 50px #0004}.hero h1{font-size:clamp(30px,5vw,56px);margin:4px 0;font-family:Georgia,serif}.hero p{color:#d1dcd5;max-width:600px}.hero-symbol{font-size:85px;filter:drop-shadow(0 9px 20px #0007)}.eyebrow{color:#e1bf75;font-size:11px;font-weight:800;letter-spacing:.17em}.layout{display:grid;grid-template-columns:300px 1fr;gap:20px}aside,.play{background:#0b2b27;border:1px solid #baaa794d;border-radius:20px;padding:19px}aside h2{font-size:17px}.game-list{display:grid;gap:9px}.game-select{border:1px solid #ffffff20;background:#153a33;color:white;text-align:left;padding:14px;border-radius:12px;cursor:pointer;font-weight:700;display:flex;align-items:center;gap:12px;font-size:15px}.game-select span{font-size:25px}.game-select.active,.game-select:hover{border-color:#e7c879;background:#245445}.info{margin-top:20px;padding:13px;border-left:3px solid #cbb06b;color:#bbcdc6;font-size:12px;line-height:1.5}.play{min-height:530px}.play-top{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ffffff20;padding-bottom:14px;gap:12px}.play-top h2{margin:4px 0;font-size:24px}button{font:inherit;touch-action:manipulation}#restart,.action{background:#dfbb6d;color:#14241f;border:0;padding:11px 15px;border-radius:10px;font-weight:800;cursor:pointer}#game-root{padding:24px 0;min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}#message{text-align:center;min-height:30px;color:#f0d58b;font-weight:700}.board{display:grid;gap:6px;background:#123c34;border:8px solid #78562d;border-radius:16px;padding:10px;box-shadow:0 14px 30px #0007}.cell{border:0;display:grid;place-items:center;cursor:pointer;color:white}.c4{grid-template-columns:repeat(7,minmax(32px,64px))}.c4 .cell{aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 35% 25%,#0e2929,#041615);border:3px solid #34796b}.c4 .cell.p1{background:radial-gradient(circle at 35% 25%,#ffd6a1,#df6539 55%,#8c261b)}.c4 .cell.p2{background:radial-gradient(circle at 35% 25%,#fff8b1,#e0b933 55%,#90701a)}.ttt{grid-template-columns:repeat(3,minmax(75px,115px))}.ttt .cell{aspect-ratio:1;border-radius:10px;background:#1b5146;font-size:60px;font-weight:900}.ttt .cell:hover{background:#28695a}.status{color:#d2e1d9;text-align:center}.score{display:flex;gap:20px;justify-content:center;flex-wrap:wrap}.score strong{font-size:32px;color:#e7c879;display:block}.score>div{background:#123e35;border:1px solid #ffffff22;border-radius:12px;padding:13px 25px;text-align:center}.dartboard{position:relative;width:min(360px,80vw);aspect-ratio:1;border:12px solid #30271d;border-radius:50%;background:repeating-conic-gradient(#d9d3b7 0deg 18deg,#222f2c 18deg 36deg);box-shadow:0 15px 35px #0009;cursor:crosshair;touch-action:manipulation}.dartboard:before{content:"";position:absolute;inset:10%;border:18px solid #b53832;border-radius:50%;box-shadow:inset 0 0 0 20px #e2d6aa,inset 0 0 0 36px #267f57,inset 0 0 0 65px #e8dcc1}.dartboard:after{content:"";position:absolute;inset:45%;background:#bf3331;border:7px solid #258552;border-radius:50%;pointer-events:none}.dartmark{position:absolute;font-size:25px;transform:translate(-50%,-50%);z-index:3;pointer-events:none}.controls{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.controls button{background:#194e41;border:1px solid #c7ac6d;color:#fff;border-radius:10px;padding:10px 15px;cursor:pointer}.snakeboard{display:grid;grid-template-columns:repeat(16,1fr);width:min(440px,90vw);aspect-ratio:1;background:#09211d;border:8px solid #86643b;border-radius:12px;overflow:hidden}.snakeboard i{border:1px solid #ffffff07}.snakeboard .snake{background:#d8bd71;border-radius:4px}.snakeboard .food{background:#f27356;border-radius:50%}.memory{display:grid;grid-template-columns:repeat(4,minmax(65px,95px));gap:10px}.memory button{aspect-ratio:1;background:linear-gradient(145deg,#285e4d,#12392f);border:2px solid #b8a16d;border-radius:13px;color:#f7e1a0;font-size:35px;cursor:pointer}.memory button.open{background:#e7d7b4;color:#162a22}.memory button.matched{background:#397659;border-color:#70d69b}.sea{display:grid;grid-template-columns:repeat(6,minmax(38px,62px));gap:4px;background:#123e55;border:7px solid #84683f;border-radius:12px;padding:7px}.sea button{aspect-ratio:1;background:#205c73;border:1px solid #5e97a5;border-radius:4px;color:white;font-size:22px;cursor:pointer}.sea button.hit{background:#a34e38}.sea button.miss{background:#286b80}.wordgrid{display:grid;grid-template-columns:repeat(8,minmax(30px,47px));gap:4px}.wordgrid button{aspect-ratio:1;background:#1b5145;border:1px solid #57816e;border-radius:5px;color:white;font-size:19px;font-weight:800;cursor:pointer}.wordgrid button.chosen{background:#dfbb6d;color:#123329}.words{color:#d9c38d;text-align:center}.words s{color:#88ad96}.note{color:#b9cec6;font-size:13px;text-align:center;max-width:520px;line-height:1.5}@media(max-width:800px){.layout{grid-template-columns:1fr}.game-list{grid-template-columns:repeat(2,1fr)}.game-select{font-size:12px;padding:10px}.hero-symbol,.tag{display:none}.hero{padding:20px}.play{padding:12px}#game-root{padding:16px 0}.brand{font-size:14px}.back{font-size:12px}}@media(max-width:390px){.c4{grid-template-columns:repeat(7,38px);gap:2px}.board{padding:5px;border-width:4px}.memory{grid-template-columns:repeat(4,65px)}}

.new-game{display:grid;gap:14px;justify-items:center}.scorebar{font-weight:900;color:#f2d68b;font-size:22px}.blocks-grid{display:grid;grid-template-columns:repeat(4,minmax(52px,78px));gap:8px;padding:10px;background:#0b332b;border:3px solid #b99b54;border-radius:15px}.block-cell{height:68px;display:grid;place-items:center;border-radius:8px;background:#214b40;color:#f8ebc9;font-size:25px;font-weight:900}.block-cell:not([data-value="0"]){background:#d3b16b;color:#163d31}.block-cell[data-value="8"],.block-cell[data-value="16"],.block-cell[data-value="32"]{background:#ed9a5a}.block-cell[data-value="64"],.block-cell[data-value="128"],.block-cell[data-value="256"]{background:#e77c54}.direction-controls{display:flex;gap:8px}.direction{background:#d2af63;color:#153a2f;border:0;border-radius:8px;padding:12px 20px;font-size:20px;cursor:pointer}.reversi-grid{display:grid;grid-template-columns:repeat(8,minmax(32px,48px));border:5px solid #bc9850;border-radius:10px;overflow:hidden}.reversi-cell{aspect-ratio:1;background:#237457;border:1px solid #164b38;color:#e8e9df;font-size:30px;cursor:pointer}.rv-player{color:#e6d5a3}.rv-bot{color:#10251e}.rv-hint:after{content:'·';opacity:.4}.solitaire-game{width:min(100%,640px);overflow-x:auto;padding:8px}.sol-top{display:grid;grid-template-columns:repeat(6,minmax(42px,1fr));gap:7px;margin-bottom:20px}.sol-cols{display:grid;grid-template-columns:repeat(7,minmax(42px,1fr));gap:5px;min-height:400px}.sol-column{position:relative;min-height:350px;border:1px dashed #5d9b7a;border-radius:6px}.sol-card,.sol-found,.sol-empty{background:#fff8e9;color:#1c302b;border:1px solid #ae9666;border-radius:6px;min-height:63px;font-weight:800;font-size:clamp(11px,2vw,18px);cursor:pointer}.sol-card{width:100%;box-shadow:0 2px 5px #0004}.sol-column .sol-card{position:absolute;left:0;height:65px}.sol-red{color:#b02e32}.sol-picked{outline:3px solid #f5c653;z-index:4}.sol-back,.sol-stock{background:repeating-linear-gradient(45deg,#22594a,#22594a 7px,#34715e 7px,#34715e 14px);color:#f5d98d}.sol-found,.sol-empty{width:100%;background:#164d3e;color:#e9d19c;border:1px dashed #c4a760}.sol-slot{min-width:0}@media(max-width:500px){.block-cell{height:54px}.reversi-cell{font-size:23px}.solitaire-game{padding:0}.sol-column{min-height:330px}.sol-card,.sol-found,.sol-empty{min-height:55px}}
/* v119: real playing-card faces and fleet-sunk notification */
.solitaire-game{width:min(100%,780px);padding:12px 4px 20px}.sol-counter{color:#e8cb86;font-weight:800;letter-spacing:.12em;font-size:12px;margin-bottom:12px}.sol-top{grid-template-columns:repeat(6,minmax(48px,1fr));gap:9px}.sol-cols{grid-template-columns:repeat(7,minmax(44px,1fr));gap:7px;min-height:450px}.sol-column{min-height:400px}.sol-card,.sol-found,.sol-empty{height:86px;min-height:86px;border-radius:8px}.sol-face{position:relative;background:linear-gradient(150deg,#fffefb,#f5f0e5);border:2px solid #ddd6c6;box-shadow:0 3px 7px #0006;color:#171c24;padding:0;overflow:hidden}.sol-face.sol-red{color:#c42f38}.sol-corner{position:absolute;top:5px;left:6px;display:flex;flex-direction:column;align-items:center;font-size:clamp(12px,1.8vw,18px);font-weight:900;line-height:1.05}.sol-corner small{font-size:clamp(11px,1.7vw,17px)}.sol-invert{top:auto;left:auto;bottom:5px;right:6px;transform:rotate(180deg)}.sol-pip{font-family:Georgia,serif;font-size:clamp(23px,4vw,42px);line-height:1}.sol-column .sol-card{height:86px}.sol-back,.sol-stock{border:3px solid #e8dfc7;box-shadow:inset 0 0 0 3px #235948,0 3px 8px #0007;background:repeating-linear-gradient(45deg,#153d42,#153d42 6px,#397c83 6px,#397c83 10px);color:#e7d7ad;font-size:28px}.sol-picked{outline:4px solid #f6cb54;outline-offset:1px;z-index:60!important}.sol-found{font-size:25px}.sol-filled{background:#f9f4e8;border:2px solid #ddd6c6;color:#202a27}.sol-filled.sol-red{color:#c42f38}.sol-found-label{font-size:clamp(15px,2.6vw,24px);font-weight:900}.sea-wrap{position:relative}.sea-toast{position:absolute;z-index:10;top:50%;left:50%;transform:translate(-50%,-40%) scale(.9);width:max-content;max-width:94%;padding:17px 24px;border:2px solid #f1d281;border-radius:14px;background:linear-gradient(130deg,#173f37,#0a2522);box-shadow:0 15px 40px #000b;color:#fff4cb;text-align:center;font-size:clamp(17px,4vw,25px);font-weight:900;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s,transform .2s,visibility .2s}.sea-toast.show{opacity:1;visibility:visible;transform:translate(-50%,-50%) scale(1)}.sea button.sunk{background:#783f2b;border-color:#e9b766;box-shadow:inset 0 0 0 2px #e9b766}@media(max-width:500px){.sol-top{gap:4px}.sol-cols{gap:3px}.sol-card,.sol-found,.sol-empty,.sol-column .sol-card{height:67px;min-height:67px}.sol-corner{top:3px;left:3px}.sol-invert{top:auto;left:auto;bottom:3px;right:3px}.sol-column{min-height:340px}.solitaire-game{padding:4px 0}}

/* v141 practice table */
.tl141-pool{background:#07251c;border:2px solid #d8ad57;border-radius:16px;padding:8px;max-width:100%;overflow:hidden}
.tl141-pool-canvas{display:block;width:100%;height:auto;touch-action:none;border-radius:9px;cursor:crosshair}

/* v184: mobile-friendly coach */
.tl184-coach{border:1px solid #d2b06c88;background:linear-gradient(135deg,#174c3c,#0b2927);border-radius:16px;padding:16px;margin:0 0 18px;color:#f5f0dd}.tl184-coach-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.tl184-coach-head strong{font-size:17px;color:#f5d78d}.tl184-coach-head p{margin:4px 0 0;font-size:13px;color:#c9d7d0}.tl184-coach-head label{font-size:12px;display:grid;gap:5px}.tl184-coach select{background:#08241e;border:1px solid #c6a65f;color:white;padding:8px;border-radius:8px}.tl184-coach-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:13px}.tl184-coach-actions button{background:#d8b66b;color:#13271e;border:0;border-radius:10px;padding:10px 16px;font-weight:800;cursor:pointer}.tl184-coach-actions span{font-size:12px;color:#d1dfd7}#coach-answer{padding:11px;background:#081f1bcc;border-radius:10px;line-height:1.5;font-size:14px;margin:12px 0 0}@media(max-width:640px){.tl184-coach-head{align-items:stretch}.tl184-coach-actions{align-items:stretch}.tl184-coach-actions button{width:100%}}
