:root{color-scheme:dark;--bg:#102124;--panel:#172d30;--line:#304c4d;--ink:#e3eddf;--muted:#90aaa6;--mint:#afd8bc;--sand:#e7bd92;font-family:Inter,"Avenir Next","Segoe UI","PingFang SC","Hiragino Sans",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.38}button,a,select{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--sand);outline-offset:3px}[hidden]{display:none!important}.game{width:min(990px,100%);padding:25px 24px 16px;margin:auto}.game-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.identity{display:flex;align-items:center;gap:13px}.mark{width:40px;height:40px;fill:none;stroke:var(--mint);stroke-width:1.7}.mark circle:first-child{fill:#0b1e24}.mark circle:nth-child(2){fill:var(--mint);stroke:var(--mint)}.eyebrow,.label{font-size:10px;letter-spacing:1.5px;font-weight:600;color:var(--muted)}.eyebrow{margin:0 0 7px}h1{margin:0;font-size:24px;font-weight:550;letter-spacing:1px}.language select{max-width:130px;border:1px solid var(--line);border-radius:6px;background:#1b3436;color:#c7d9cc;padding:9px 10px;font-size:12px}.cabinet{border:1px solid var(--line);border-radius:14px;background:var(--panel);overflow:hidden}.topline{display:flex;justify-content:space-between;gap:12px;padding:17px 23px;border-bottom:1px solid var(--line);font:9px ui-monospace,monospace;letter-spacing:1.7px;color:#a7c3b4}.topline i,.statusbar i{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--mint);margin-right:9px}.topline>span:last-child{font-size:8px;color:#729490;letter-spacing:1px}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:25px;padding:24px}.board-column{min-width:0}.turn-bar{display:flex;align-items:center;gap:9px;margin:0 0 15px;min-height:20px}.turn-symbol{display:inline-block;width:14px;height:14px;flex-shrink:0;border-radius:50%;background:#0b2229;box-shadow:0 0 0 1px #6d8f8b}.turn-symbol.white{background:#e7ebd8;box-shadow:0 0 0 1px #edf1df33}.turn-bar strong{font-size:12px;font-weight:500;color:#cadfd0;line-height:1.4}.turn-tag{margin-left:auto;flex-shrink:0;font:8px ui-monospace,monospace;letter-spacing:1px;color:#739992}.board-wrap{position:relative;padding:25px 12px 12px 25px;background:#112729;border:1px solid #42615a;border-radius:9px;overflow:hidden;aspect-ratio:1}.board{display:grid;grid-template-rows:repeat(8,1fr);gap:1px;width:100%;height:100%;background:#31544e;border:1px solid #527368;border-radius:3px;overflow:hidden}.board-row{display:grid;grid-template-columns:repeat(8,1fr);gap:1px;min-height:0}.cell{position:relative;padding:0;border:0;background:#244944;min-width:0;min-height:0;display:grid;place-items:center;isolation:isolate;touch-action:manipulation}.board-row:nth-child(even) .cell:nth-child(odd),.board-row:nth-child(odd) .cell:nth-child(even){background:#264d47}.cell:disabled{opacity:1}.cell:focus-visible{outline:2px solid var(--sand);outline-offset:-3px;z-index:2}.cell[aria-disabled=false]:hover{background:#35675a}.cell.legal:before{content:"";position:absolute;width:11%;height:11%;border-radius:50%;background:#b3dcb0;opacity:.65}.cell.legal:hover:before{width:60%;height:60%;background:#0b222955;box-shadow:0 0 0 1px #9ec5a777;opacity:1}.stone{display:block;width:76%;height:76%;border-radius:50%;position:relative;z-index:1;box-shadow:0 3px 3px #051c1b80,inset 0 1px 1px #fff2}.stone.black{background:radial-gradient(circle at 35% 27%,#2e4949,#122d31 45%,#071c22 100%);border:1px solid #071b21}.stone.white{background:radial-gradient(circle at 35% 27%,#f6f6e5,#e3e7cf 60%,#b9c6ac);border:1px solid #d8e4c8}.cell.last .stone:after{content:"";position:absolute;inset:34%;border:1.5px solid var(--sand);border-radius:50%}.cell.last .white:after{border-color:#708c7b}.coordinates{position:absolute;display:grid;font:9px ui-monospace,monospace;color:#779e8e;text-align:center;pointer-events:none}.coordinates.top{top:8px;left:25px;right:12px;grid-template-columns:repeat(8,1fr)}.coordinates.side{top:25px;bottom:12px;left:7px;width:10px;grid-template-rows:repeat(8,1fr);align-items:center}.screen{position:absolute;inset:0;display:grid;place-items:center;padding:23px;background:#0c2024d9;backdrop-filter:blur(5px);z-index:3}.screen-content{max-width:340px;text-align:center;display:flex;flex-direction:column;align-items:center}.screen-symbol{display:flex;align-items:center;justify-content:center;margin:0 0 23px;height:50px}.screen-symbol i{display:block;width:44px;height:44px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#325357,#0b2229 70%);border:1px solid #76978a66;box-shadow:0 6px 10px #06191b66}.screen-symbol i+ i{margin-left:-7px;transform:translateY(6px);background:radial-gradient(circle at 35% 30%,#f3f2de,#c5d2b5);border-color:#dbe5cf}.screen-symbol.won i:first-child{box-shadow:0 0 20px #afd8bc44;border-color:var(--mint)}.screen .eyebrow{font:7px ui-monospace,monospace;letter-spacing:1.6px}.screen h2{font-size:26px;font-weight:500;line-height:1.4;letter-spacing:.5px;margin:11px 0 13px}.screen p{font-size:13px;line-height:1.9;color:#a8c4b5;max-width:290px;margin:0 0 25px}.primary{display:flex;justify-content:space-between;align-items:center;gap:32px;min-width:170px;min-height:46px;border:0;border-radius:6px;background:var(--mint);color:#203d30;padding:12px 23px;font-size:14px;font-weight:650}.primary:hover{background:#d0ebc9}.primary b{font-size:18px}.board-notes{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px;color:#86a898;font-size:10px}.board-notes>span{display:flex;align-items:center;gap:7px}.board-notes i{display:inline-block;width:7px;height:7px;border-radius:50%;flex-shrink:0}.legal-dot{background:#b3dcb0}.last-dot{border:1px solid var(--sand)}.move-note{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:15px;color:#698f85;font-size:10px;min-height:17px;line-height:1.6}.move-note>span:last-child{font-size:17px;color:var(--sand)}.sidebar{display:flex;flex-direction:column;gap:17px;min-width:0}.scoreboard{display:grid;grid-template-columns:1fr 18px 1fr;position:relative;padding-bottom:20px;gap:5px}.player-score{display:flex;align-items:center;flex-direction:column;gap:10px}.player-score .label{font-size:9px;letter-spacing:1px;white-space:nowrap}.score-token{width:24px;height:24px;border-radius:50%;box-shadow:0 3px 3px #071c2180}.score-token.black{background:radial-gradient(circle at 35% 25%,#345354,#0b2229);border:1px solid #6b8e7b66}.score-token.white{background:radial-gradient(circle at 35% 25%,#f3f2dd,#c7d1b4)}.player-score strong{font:36px ui-monospace,monospace;color:#b4d7bf}.player-score:last-of-type strong{color:#e7ebd8}.versus{font:17px ui-monospace,monospace;color:#577e75;align-self:end;padding-bottom:8px;text-align:center}.balance{position:absolute;bottom:0;left:0;right:0;height:3px;background:#d2dac4;border-radius:2px;overflow:hidden}.balance i{display:block;width:50%;height:100%;background:#638e79}.stats{display:grid;grid-template-columns:1fr 1fr;gap:15px}.stats strong{display:block;font:25px ui-monospace,monospace;margin-top:8px;color:#d4e5ce}.difficulty-card{border:1px solid var(--line);border-radius:6px;padding:11px 11px 10px;margin:0;min-width:0}.difficulty-card legend{padding:0 5px}.difficulty-options{display:grid;grid-template-columns:1fr 1fr;gap:6px}.difficulty-options button{border:1px solid #3c5d51;border-radius:4px;background:#1b3533;color:#8cab99;padding:8px 4px;font-size:11px;min-height:36px}.difficulty-options button[aria-pressed=true]{background:#afd8bc18;color:var(--mint);border-color:#83ad8d}.difficulty-card p{font-size:9px;line-height:1.8;color:#789f8a;margin:10px 0 0}.record-card{padding-bottom:16px;border-bottom:1px solid var(--line)}.record-values{display:flex;justify-content:space-between;gap:14px;margin-top:12px}.record-values>div{display:flex;align-items:baseline;gap:6px}.record-values strong{font:20px ui-monospace,monospace;color:#b8cdb6}.record-values span{font-size:9px;color:#779c87}.actions{display:flex;flex-direction:column;gap:7px}.actions button{display:flex;align-items:center;gap:9px;padding:9px 12px;border:1px solid var(--line);border-radius:5px;background:#1c3735;color:#bcd1bd;min-height:40px;font-size:12px}.actions button:hover:enabled{background:#2c4e44;border-color:#719c80}.actions b{font-size:17px;font-weight:400;color:var(--mint)}kbd{font:10px ui-monospace,monospace;margin-left:auto;color:#73927b}.side-note{margin-top:auto;color:#587e71}.side-note svg{display:block;width:100%;height:28px;stroke:#587e71;stroke-width:1;fill:none}.side-note>span{font:6px ui-monospace,monospace;letter-spacing:1.4px}.statusbar{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:42px;border-top:1px solid var(--line);padding:12px 23px;font-size:10px;color:#91af9c}.statusbar>span:first-child{display:flex;align-items:center}.statusbar i{background:#5c8270;margin-right:7px;flex-shrink:0}.statusbar i.active{background:var(--mint);box-shadow:0 0 8px #afd8bc44}.statusbar i.thinking{background:var(--sand)}.statusbar>span:last-child{font:9px ui-monospace,monospace;color:#688e7c;flex-shrink:0}.instructions{margin:24px 2px 0}.instructions h2{font-size:15px;font-weight:500;letter-spacing:.5px;margin:0 0 10px}.instructions p{font-size:11px;line-height:1.9;color:var(--muted);margin:7px 0}.instructions details{margin-top:13px}.instructions summary{cursor:pointer;font-size:11px;color:#b0c9b4;width:max-content;padding:4px 0}.instructions details p{max-width:740px}.notice{font-size:11px;line-height:1.8;color:var(--sand);padding:10px 13px;background:#e7bd920a;border:1px solid #e7bd9222;border-radius:5px}footer{margin-top:23px;display:flex;justify-content:space-between;color:#648973;font-size:9px}footer a{color:#9cb99d;text-decoration:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:750px){.game{padding:18px 15px 15px}.play-layout{grid-template-columns:minmax(0,1fr) 175px;gap:17px;padding:17px}.label{font-size:9px;letter-spacing:1px}.sidebar{gap:14px}.scoreboard{padding-bottom:16px}.player-score{gap:8px}.player-score strong{font-size:30px}.player-score .label{font-size:8px;letter-spacing:0}.record-values{gap:6px}.record-values strong{font-size:18px}.record-values>div{gap:4px}.screen{padding:16px}.screen-symbol{margin-bottom:13px;height:40px}.screen-symbol i{width:35px;height:35px}.screen h2{font-size:22px;margin:9px 0 10px}.screen p{font-size:11px;line-height:1.8;margin-bottom:19px}.screen .eyebrow{font-size:6px;letter-spacing:1px}.primary{font-size:12px;min-height:42px;min-width:145px}.turn-bar strong{font-size:10px}.turn-tag{font-size:7px;letter-spacing:0}.board-notes{font-size:8px;gap:6px}.move-note{font-size:9px}.side-note>span{font-size:5px;letter-spacing:1px}.topline{padding:15px 18px;font-size:8px}.topline>span:last-child{font-size:7px;letter-spacing:.7px}.statusbar{padding:12px 18px;font-size:9px}.actions button{font-size:11px;min-height:38px}}
@media(max-width:560px){.game{padding:16px 12px 14px}.game-header{margin-bottom:17px}.identity{gap:9px}.mark{width:34px;height:34px}h1{font-size:21px}.game-header .eyebrow{font-size:7px;letter-spacing:1.1px}.language select{font-size:10px;padding:8px;max-width:112px}.topline{padding:13px;font-size:8px}.topline>span:last-child{font-size:6px;letter-spacing:.5px}.play-layout{display:flex;flex-direction:column;padding:12px;gap:20px}.turn-bar{margin-bottom:12px}.turn-bar strong{font-size:11px}.turn-tag{font-size:7px}.board-wrap{padding:22px 9px 9px 22px}.coordinates.top{top:6px;left:22px;right:9px}.coordinates.side{top:22px;bottom:9px;left:5px}.coordinates{font-size:8px}.board-notes{font-size:9px;margin-top:14px}.move-note{font-size:9px;margin-top:10px}.screen h2{font-size:23px}.screen p{font-size:12px;max-width:260px}.screen .eyebrow{font-size:6px;letter-spacing:1px}.primary{font-size:13px;min-width:160px}.sidebar{display:grid;grid-template-columns:1fr 1fr;gap:15px 20px}.scoreboard{grid-column:1;grid-row:1;gap:1px;padding-bottom:13px;grid-template-columns:1fr 14px 1fr}.player-score{gap:7px}.score-token{width:18px;height:18px}.player-score strong{font-size:29px}.player-score .label{font-size:8px}.versus{font-size:14px;padding-bottom:6px}.stats{grid-column:2;grid-row:1;align-content:center;gap:12px}.stats strong{font-size:27px;margin-top:8px}.difficulty-card{grid-column:1;grid-row:2;padding:7px 9px 8px}.difficulty-options button{min-height:33px;font-size:10px;padding:6px 3px}.difficulty-card p{font-size:8px;margin:7px 0 0}.record-card{grid-column:2;grid-row:2;border:0;padding:0;align-self:center}.record-values{gap:10px;margin-top:13px}.record-values>div{flex-direction:column;gap:5px;align-items:center}.record-values strong{font-size:21px}.record-values span{font-size:9px}.actions{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.actions button{min-height:43px;padding:8px;gap:5px;font-size:10px}.actions kbd{display:none}.side-note{display:none}.statusbar{padding:12px 13px;font-size:9px}.statusbar>span:last-child{font-size:8px}.instructions{margin-top:20px}.instructions>p{font-size:10px}}
@media(max-width:360px){h1{font-size:19px}.game-header .eyebrow{font-size:6px}.screen h2{font-size:20px}.screen p{font-size:11px}.screen-symbol{display:none}.board-notes{font-size:8px}.sidebar{gap:14px 13px}.turn-tag{font-size:6px}.record-values strong{font-size:19px}}
@media(prefers-reduced-motion:no-preference){.cell .stone{animation:place .18s ease-out}.statusbar i.thinking{animation:think 1s ease-in-out infinite}button{transition:background .15s,border-color .15s}}@keyframes place{from{transform:scale(.83);opacity:.6}to{transform:scale(1);opacity:1}}@keyframes think{50%{opacity:.35}}
