@font-face{font-family:DM Sans;font-style:normal;font-weight:100 1000;font-display:swap;src:url(/fonts/dm-sans.woff2) format("woff2")}@font-face{font-family:Libre Caslon Display;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/libre-caslon-display.woff2) format("woff2")}:root{font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#303d36;background:#f7f8f4;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--bg:#f7f8f4;--surface:#fff;--surface-soft:#f2f4ee;--text:#303d36;--muted:#81897e;--line:#e6e9df;--green:#285746;--green-soft:#eaf0e5;--coral:#c98564;--cell-0:#eee9db;--cell-1:#b7c5aa;--cell-2:#7f9877;--shadow:0 12px 36px #263c2710;--serif:"Libre Caslon Display",Georgia,"Times New Roman",serif}:root[data-theme=dark]{--bg:#151f1b;--surface:#1f2b25;--surface-soft:#25352c;--text:#e0e6d9;--muted:#a0ad9e;--line:#354339;--green:#a4c4a7;--green-soft:#344a38;--coral:#d2a284;--shadow:0 12px 36px #0002;color:var(--text);background:var(--bg)}:root[data-board=stone]{--cell-0:#e7e9e7;--cell-1:#aabac3;--cell-2:#708b99}:root[data-board=walnut]{--cell-0:#f3e5cf;--cell-1:#c8a481;--cell-2:#96775d}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none;color:inherit}button:disabled{cursor:default;opacity:.4}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--coral);outline-offset:4px}button{transition:background .16s,color .16s,transform .16s}button:active:not(:disabled){transform:translateY(1px)}button svg{flex-shrink:0}h1,h2,h3,p{margin:0}h1,h2{font-family:var(--serif);font-weight:400;letter-spacing:-.025em}h1{font-size:52px;line-height:1.05}h2{font-size:36px;line-height:1.15}p{line-height:1.65}.eyebrow,.field-label,.section-number{font-size:11px;letter-spacing:.14em;font-weight:650;color:var(--muted)}.eyebrow{color:var(--coral)}.muted{color:var(--muted);font-size:14px}.text-button{display:inline-flex;align-items:center;gap:6px;padding:0;font-size:12px;font-weight:550;color:var(--green)}.text-button:hover{color:var(--coral)}.icon-button{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;color:var(--muted)}.icon-button:hover{background:var(--green-soft);color:var(--green)}.button{display:inline-flex;gap:9px;align-items:center;justify-content:center;min-height:43px;padding:11px 17px;border-radius:7px;font-size:13px;font-weight:600;letter-spacing:.005em;border:1px solid transparent}.button.primary{color:#fff;background:#285746;border-color:#285746}.button.primary:hover{background:#1d4536}.button.secondary{border:1px solid var(--line);background:var(--surface);color:var(--text)}.button.secondary:hover{border-color:var(--green);background:var(--green-soft)}.full-width{width:100%}.center{text-align:center}.small{font-size:12px!important}.app-shell{min-height:100vh}.sidebar{width:220px;position:fixed;inset:0 auto 0 0;padding:33px 23px 17px;background:var(--surface);border-right:1px solid var(--line);z-index:20;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:9px;font-family:var(--serif);font-size:32px;letter-spacing:-1.1px;font-weight:400;color:var(--green);white-space:nowrap}.brand-mark{position:relative;display:flex;align-items:center;justify-content:center;width:31px;height:34px}.brand-mark span{position:absolute;font-family:Georgia,serif;font-size:13px;letter-spacing:0}.brand-dot{color:var(--coral)}.sidebar-caption{margin:12px 0 49px 2px;font-size:8px;letter-spacing:.2em;color:var(--muted);font-weight:600}.sidebar nav{display:grid;gap:8px}.nav-item{display:flex;align-items:center;gap:12px;min-height:46px;text-align:left;padding:11px 12px;border-radius:6px;font-size:13px;color:var(--muted)}.nav-item span{flex:1}.nav-item.active{background:var(--green-soft);color:var(--green);font-weight:600}.nav-item:hover{background:var(--surface-soft)}.sidebar-note{margin-top:54px;padding:0 13px}.mini-hexes{display:flex;gap:0;margin-bottom:17px}.mini-hexes svg{width:24px;height:28px;stroke-width:1.2;color:#becbad;fill:#f0f3e9}.mini-hexes svg:nth-child(2){margin:11px -3px 0;color:#90a482;fill:#dfe7d4}.mini-hexes svg:nth-child(3){color:#b69c85;fill:#eadccc}.sidebar-note h3{font-family:var(--serif);font-weight:400;font-size:24px;line-height:1.23;letter-spacing:-.3px}.sidebar-note p{font-size:12px;color:var(--muted);margin:10px 0 16px;line-height:1.7}.sidebar-note .text-button{font-size:11px}.sidebar-bottom{margin-top:auto;padding-top:25px}.install-button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid var(--line);border-radius:7px;padding:12px 9px;color:var(--green)}.install-button>span{flex:1;font-size:11px;font-weight:600}.install-button small{display:block;color:var(--muted);font-weight:400;font-size:10px;margin-top:4px}.install-button:hover{background:var(--green-soft)}.sidebar-footer{display:flex;align-items:center;justify-content:space-between;margin-top:17px}.sidebar-footer>span{display:flex;gap:6px;align-items:center;font-size:10px;color:var(--muted)}.connection-dot{width:5px;height:5px;background:#81a172;border-radius:50%}.connection-dot.offline{background:var(--coral)}.main-area{margin-left:220px}.topbar{min-height:74px;padding:0 38px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.breadcrumb{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:12px}.breadcrumb strong{font-weight:500;color:var(--text)}.breadcrumb>span{color:#c7cdbf}.topbar-actions{display:flex;align-items:center;gap:19px}.variant-badge{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:10px}.variant-badge svg{color:var(--coral)}main{min-height:calc(100vh - 126px)}.play-page{max-width:1380px;margin:auto;padding:31px 38px 24px}.play-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.play-heading h1{margin:8px 0}.play-heading p{font-size:13px;color:var(--muted)}.new-game-top{align-self:center}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:29px;align-items:start}.board-section{min-width:0}.board-topline{display:flex;align-items:center;justify-content:space-between;margin:0 4px 18px;gap:8px}.board-variant{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:10px}.board-variant strong{font-weight:500}.board-topline .text-button{color:var(--muted);font-size:11px}.board-surface{position:relative;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:7px 20px 0;overflow:hidden}.board-wrap{width:100%;max-width:690px;margin:auto;position:relative}.hex-board{display:block;width:100%;height:auto;user-select:none;-webkit-user-select:none;overflow:visible}.hex-cell{cursor:pointer;outline:none}.hex-cell>polygon{stroke:transparent;stroke-width:1}.hex-cell.shade-0>polygon{fill:var(--cell-0)}.hex-cell.shade-1>polygon{fill:var(--cell-1)}.hex-cell.shade-2>polygon{fill:var(--cell-2)}.hex-cell:hover>polygon{filter:brightness(1.055)}.hex-cell.last-move>polygon{fill:#d1c78b}.hex-cell.selected>polygon{fill:#dec386}.hex-cell.hint-cell>polygon{fill:#ddc989}.hex-cell.in-check>polygon{fill:#d09b80}.hex-cell .selection-ring{fill:none!important;stroke:#597948!important;stroke-width:2.7}.hex-cell:focus-visible>polygon{stroke:var(--coral);stroke-width:3}.piece{filter:drop-shadow(0 2px 1px #142a2924);pointer-events:none;overflow:visible}.cell-coordinate{font-size:6.9px;font-family:DM Sans,sans-serif;fill:#465844;opacity:.65;pointer-events:none}.file-label{font-size:10px;fill:var(--muted)}.move-dot{fill:#34573a;opacity:.4;pointer-events:none}.capture-ring{stroke:#365a3a;stroke-width:3;fill:none;opacity:.65;pointer-events:none}.board-status{display:flex;align-items:center;gap:12px;margin-top:13px;border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:15px;min-height:69px}.status-mark{width:34px;height:34px;display:flex;align-items:center;justify-content:center;background:var(--green-soft);color:var(--green);border-radius:50%;flex-shrink:0}.board-status>div{flex:1;min-width:0}.board-status strong{display:block;font-size:12px;font-weight:600}.board-status>div>span{display:block;font-size:10px;color:var(--muted);margin-top:5px}.check-status .status-mark{background:#f3e1d5;color:#aa614d}.turn-indicator{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted)}.turn-indicator>span{width:10px;height:10px;border-radius:50%;border:1px solid #a0ab9a}.turn-indicator .white{background:#eee8d5}.turn-indicator .black{background:#294232}.board-toolbar{display:flex;justify-content:space-between;align-items:center;margin-top:13px;padding:0 2px}.board-toolbar>div{display:flex;gap:17px}.board-toolbar button{display:flex;align-items:center;gap:6px;padding:9px 3px;color:var(--muted);font-size:11px}.board-toolbar button:hover:not(:disabled){color:var(--green)}.board-toolbar button svg{width:16px}.board-footnote{display:flex;align-items:center;justify-content:space-between;margin-top:13px;padding:16px 3px 0;border-top:1px solid var(--line);gap:10px}.board-footnote>span{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted)}.board-footnote .text-button{font-size:10px}.game-panel{background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-top:0;box-shadow:0 4px 18px #31412a03}.opponent-tabs{display:flex;padding:7px;background:var(--surface-soft);gap:2px}.opponent-tabs button{flex:1;display:flex;gap:5px;align-items:center;justify-content:center;min-height:39px;border-radius:5px;font-size:10px;white-space:nowrap;color:var(--muted)}.opponent-tabs button.active{background:var(--surface);box-shadow:0 1px 4px #24361c0b;color:var(--green);font-weight:600}.player-card{display:flex;align-items:center;gap:10px;padding:21px 19px 15px;min-height:94px;position:relative}.player-card.active:before{content:"";width:3px;position:absolute;left:0;top:22px;bottom:22px;background:var(--green);border-radius:0 3px 3px 0}.player-avatar{width:40px;height:42px;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;border-radius:8px;background:var(--surface-soft);position:relative;flex-shrink:0}.avatar-badge{position:absolute;right:-4px;bottom:-3px;background:var(--green);color:var(--surface);border:2px solid var(--surface);border-radius:50%;width:20px;height:20px;display:flex;align-items:center;justify-content:center}.player-info{flex:1;min-width:0}.player-info strong{display:block;font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-info>span{display:block;font-size:10px;color:var(--muted);margin-top:4px}.captured-pieces{display:flex;flex-wrap:wrap;gap:0;margin-top:4px;max-width:136px}.captured-pieces:empty{display:none}.captured-pieces .piece{margin-left:-2px}.player-clock{text-align:right;min-width:68px;flex-shrink:0}.player-clock>span{font-size:27px;font-weight:500;line-height:1.2;letter-spacing:-1px;font-variant-numeric:tabular-nums;color:var(--muted)}.player-card.active .player-clock>span{color:var(--green)}.player-clock small{display:block;font-size:7px;letter-spacing:.12em;color:var(--muted);margin-top:3px}.player-card.low-time.active .player-clock>span{color:#c47752}.match-divider{display:flex;align-items:center;justify-content:space-between;margin:0 19px;padding:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:9px;color:var(--muted)}.match-divider span{display:flex;gap:5px;align-items:center}.moves-panel{margin:6px 18px 0;border:1px solid var(--line);border-radius:7px;overflow:hidden}.moves-heading{display:flex;align-items:center;gap:8px;padding:10px 11px;border-bottom:1px solid var(--line)}.moves-heading strong{font-size:11px;font-weight:600}.moves-heading>span{font-size:9px;color:var(--muted);flex:1}.moves-heading .icon-button{width:25px;height:25px}.move-column-labels,.move-row{display:grid;grid-template-columns:30px 1fr 1fr;gap:4px;padding:8px 12px;font-size:10px;align-items:center}.move-column-labels{color:var(--muted);background:var(--surface-soft);font-size:9px}.move-column-labels span:first-child{font-size:10px}.move-list{height:194px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.move-row:nth-child(odd){background:var(--surface-soft)}.move-row{padding:6px 10px}.move-row>span{color:var(--muted);font-size:10px}.move-row button{border-radius:4px;padding:6px 4px;text-align:left;font-variant-numeric:tabular-nums;font-size:11px;letter-spacing:-.15px}.move-row button.current{background:var(--green-soft);color:var(--green);font-weight:600}.move-row button:hover{background:var(--green-soft)}.empty-moves{padding:22px 12px;text-align:center;color:var(--muted)}.empty-hex{position:relative;margin:0 auto 10px;width:36px;display:flex;justify-content:center;color:#ccd5c2}.empty-hex span{position:absolute;font-size:11px;top:7px;left:15px}.empty-moves strong{font-family:var(--serif);font-weight:400;font-size:19px;line-height:1.25;color:#7b8772}.empty-moves p{margin-top:9px;font-size:10px}.move-navigation{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:5px 7px}.move-navigation .icon-button{width:24px;height:26px}.move-navigation span{font-size:9px;color:var(--muted)}.game-actions{display:flex;padding:16px 20px 15px;gap:12px}.game-actions button{display:flex;align-items:center;justify-content:center;gap:5px;flex:1;font-size:10px;color:var(--muted)}.game-actions button:hover:not(:disabled){color:var(--green)}.game-actions button span{display:flex}.share-button{margin:0 18px;width:calc(100% - 36px);background:var(--green-soft);color:var(--green);border:1px solid #dce5d3;font-size:11px;justify-content:center;min-height:40px;gap:8px}.share-button svg:last-child{margin-left:auto;width:14px}.share-button:hover{background:var(--line)}.panel-tip{margin:17px 18px 20px;padding:14px 12px;background:var(--surface-soft);border:1px solid var(--line);border-radius:6px}.panel-tip>span{font-size:8px;letter-spacing:.15em;color:var(--coral);font-weight:600}.panel-tip p{font-size:11px;color:var(--muted);margin:7px 0 10px;line-height:1.6}.panel-tip .text-button{font-size:10px}.main-footer{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 38px;padding:20px 0;font-size:10px;color:var(--muted)}.main-footer>span{display:flex;align-items:center;gap:7px}.main-footer>span>span{color:#b6bdaa}.sound-floating{position:fixed;right:17px;bottom:12px;display:flex;width:30px;height:30px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:50%;color:var(--muted);background:var(--surface);z-index:22}.board-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:color-mix(in srgb,var(--surface) 88%,transparent);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);text-align:center;padding:20px;z-index:4}.board-overlay>span{width:56px;height:56px;border-radius:50%;background:var(--green-soft);display:flex;align-items:center;justify-content:center;color:var(--green)}.board-overlay p{font-size:13px;color:var(--muted)}.board-overlay h2{font-size:38px}.thinking-dots{display:flex;gap:3px}.thinking-dots i{width:4px;height:4px;border-radius:50%;background:var(--green);animation:thinking 1s infinite}.thinking-dots i:nth-child(2){animation-delay:.15s}.thinking-dots i:nth-child(3){animation-delay:.3s}@keyframes thinking{50%{opacity:.3;transform:translateY(-2px)}}.modal-backdrop{position:fixed;inset:0;background:#152c2459;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:100;display:flex;align-items:center;justify-content:center;padding:25px;animation:fade-in .15s}.dialog{width:480px;max-height:calc(100dvh - 50px);overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:28px;box-shadow:0 30px 100px #14291c38;outline:none;animation:dialog-in .2s}.dialog-wide{width:640px}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:25px}.dialog-heading h2{font-size:34px;line-height:1.15}.dialog-heading p{color:var(--muted);font-size:12px;margin-top:8px}.dialog-heading .icon-button{flex-shrink:0;margin-top:-6px;margin-right:-8px}.mode-picker{display:flex;padding:4px;gap:4px;background:var(--surface-soft);border:1px solid var(--line);border-radius:8px}.mode-picker button{flex:1;display:flex;flex-direction:column;align-items:center;gap:7px;padding:12px 4px;font-size:11px;color:var(--muted);border-radius:5px}.mode-picker button.active{background:var(--surface);color:var(--green);box-shadow:0 2px 5px #1028180e}.form-note{font-size:13px;color:var(--muted);margin:15px 0 20px;line-height:1.65}.form-note.center{margin-bottom:0}.field-label{display:flex;gap:6px;align-items:center;margin:21px 0 11px;font-size:10px}.side-picker{display:flex;gap:10px}.side-picker button{flex:1;display:flex;align-items:center;gap:9px;background:var(--surface-soft);border:1px solid var(--line);border-radius:7px;padding:8px 13px;font-size:13px}.side-picker button.active{border-color:var(--green);background:var(--green-soft)}.side-picker button svg:last-child:not(.piece){margin-left:auto;color:var(--green)}input,select{background:var(--surface);border:1px solid var(--line);padding:11px 13px;border-radius:6px;color:var(--text);width:100%;min-height:43px;font-size:14px}input::placeholder{color:var(--muted)}select{appearance:auto}input:focus,select:focus{border-color:var(--green)}.name-fields{display:flex;gap:14px;margin:19px 0}.name-fields>label{flex:1;min-width:0;font-size:12px;color:var(--muted)}.name-fields input{display:block;margin-top:7px}.time-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.time-presets button{padding:10px 7px;border:1px solid var(--line);border-radius:6px;font-size:16px;font-weight:500;background:var(--surface)}.time-presets button small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:4px}.time-presets button.active{background:var(--green-soft);border-color:var(--green);color:var(--green)}.custom-button{margin-top:12px}.palette-picker{display:flex;gap:8px}.palette-picker button{flex:1;padding:13px 7px;display:flex;align-items:center;flex-direction:column;gap:8px;border:1px solid var(--line);border-radius:7px;font-size:12px;position:relative}.palette-picker button.active{border-color:var(--green);background:var(--green-soft)}.palette-picker button>svg{position:absolute;right:7px;top:7px;color:var(--green)}.palette-swatch{display:flex;border-radius:4px;overflow:hidden}.palette-swatch i{width:21px;height:25px}.palette-swatch.garden i:nth-child(1){background:#eee9db}.palette-swatch.garden i:nth-child(2){background:#b7c5aa}.palette-swatch.garden i:nth-child(3){background:#7f9877}.palette-swatch.stone i:nth-child(1){background:#e7e9e7}.palette-swatch.stone i:nth-child(2){background:#aabac3}.palette-swatch.stone i:nth-child(3){background:#708b99}.palette-swatch.walnut i:nth-child(1){background:#f3e5cf}.palette-swatch.walnut i:nth-child(2){background:#c8a481}.palette-swatch.walnut i:nth-child(3){background:#96775d}.preference-row{display:flex;align-items:center;gap:12px;margin:22px 0;position:relative;cursor:pointer}.preference-row>span:first-child{flex:1}.preference-row strong{display:block;font-size:13px;font-weight:550}.preference-row small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.preference-row input{position:absolute;right:0;width:40px;height:24px;opacity:0;min-height:0;cursor:pointer;z-index:2}.switch{width:37px;height:22px;border-radius:22px;background:var(--line);position:relative}.switch:after{content:"";position:absolute;width:16px;height:16px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .15s}.preference-row input:checked+.switch{background:#285746}.preference-row input:checked+.switch:after{transform:translate(15px)}.preference-row input:focus-visible+.switch{outline:3px solid var(--coral);outline-offset:3px}.dialog-divider{height:1px;background:var(--line);margin-top:28px}.two-buttons{display:flex;gap:10px}.two-buttons .button{flex:1}.confirm-copy{font-size:14px;color:var(--muted);margin-bottom:25px}.promotion-choices{display:flex;gap:9px}.promotion-choices button{flex:1;display:flex;flex-direction:column;align-items:center;gap:10px;padding:14px 4px;border:1px solid var(--line);border-radius:8px;font-size:12px}.promotion-choices button:hover{background:var(--green-soft);border-color:var(--green)}.share-illustration{height:84px;display:flex;align-items:center;justify-content:center;position:relative;color:var(--green);margin-bottom:15px}.share-illustration>svg:first-child{fill:var(--green-soft);stroke:#c5d2bb}.share-illustration>svg:last-child{position:absolute}.share-steps p{font-size:13px;display:flex;align-items:center;gap:10px;margin:11px 0}.share-steps p>span{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;border-radius:50%;background:var(--green-soft);color:var(--green);font-size:11px;flex-shrink:0}.share-notice{font-size:12px;color:var(--muted);background:var(--surface-soft);border:1px solid var(--line);border-radius:7px;padding:12px;margin:18px 0;line-height:1.65}.share-link-field{display:flex;align-items:center;border:1px solid var(--line);border-radius:6px;overflow:hidden;margin-bottom:13px}.share-link-field input{border:0;border-radius:0;font-size:12px;color:var(--muted);background:var(--surface-soft);flex:1;min-width:0}.share-link-field .icon-button{width:42px}.native-share{margin-top:10px}.install-instructions>p{font-size:14px;color:var(--muted);margin:18px 0}.install-instructions>p strong{color:var(--text)}.install-instructions .callout{margin-top:24px}.toast{position:fixed;left:calc(50% + 110px);bottom:25px;transform:translate(-50%);z-index:150;display:flex;align-items:center;gap:11px;border:1px solid var(--line);box-shadow:var(--shadow);background:var(--surface);border-radius:9px;padding:14px 16px;max-width:calc(100vw - 44px);width:max-content;font-size:12px;color:var(--text);animation:fade-in .2s}.toast>svg{color:var(--green);flex-shrink:0}.toast span{max-width:420px;line-height:1.5}.toast button{display:flex;color:var(--muted);padding:3px}.learn-page,.tutorial-page{max-width:1380px;margin:auto;padding:37px 38px 30px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:38px}.page-heading h1{font-size:43px;margin:12px 0}.page-heading p{font-size:14px;color:var(--muted)}.page-heading .button{flex-shrink:0}.rules-intro{display:grid;grid-template-columns:1fr 1fr;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:28px 36px;gap:30px}.intro-copy h2{font-size:42px;margin:18px 0}.intro-copy p{color:var(--muted);font-size:14px;max-width:410px}.intro-copy p strong{color:var(--text);font-weight:500}.rule-stats{display:flex;gap:36px;margin-top:28px}.rule-stats>div{display:flex;flex-direction:column}.rule-stats strong{font-family:var(--serif);font-size:37px;color:var(--green);font-weight:400}.rule-stats span{font-size:10px;color:var(--muted);margin-top:5px}.intro-board{max-width:400px;width:100%;justify-self:center}.rules-section{margin-top:48px;padding-top:28px;border-top:1px solid var(--line)}.rules-section h2{margin:14px 0 23px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.section-heading .muted{font-size:11px}.piece-tabs{display:flex;gap:6px;border:1px solid var(--line);border-radius:9px;padding:6px;background:var(--surface);margin-bottom:24px}.piece-tabs button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:6px;font-size:12px;color:var(--muted);border-radius:5px}.piece-tabs button.active{background:var(--green-soft);color:var(--green);font-weight:550}.movement-layout{display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:center}.movement-demo{padding:14px 20px;background:var(--surface);border:1px solid var(--line);border-radius:10px;text-align:center}.movement-demo .board-wrap{max-width:410px}.demo-caption{font-size:11px;color:var(--muted)}.movement-copy h2{font-size:44px;margin:13px 0 18px}.movement-copy>p{font-size:14px;color:var(--muted);margin:15px 0}.movement-copy>p.lead,.lead{color:var(--text);font-size:17px;line-height:1.7}.callout{display:flex;gap:12px;padding:16px;border:1px solid var(--line);border-radius:7px;background:var(--green-soft);margin-top:25px}.callout svg{flex-shrink:0;color:var(--green);margin-top:2px}.callout p{color:var(--green);font-size:12px;line-height:1.7}.rule-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.rule-grid article{border:1px solid var(--line);border-radius:9px;padding:22px;background:var(--surface)}.rule-icon{width:42px;height:42px;background:var(--surface-soft);display:flex;align-items:center;justify-content:center;border-radius:7px;margin-bottom:18px}.rules-section h3{font-size:16px;font-weight:550;margin-bottom:12px}.rules-section article p{font-size:13px;color:var(--muted);line-height:1.8;margin-top:9px}.rule-grid article p.rule-example{font-size:11px;padding-top:13px;border-top:1px solid var(--line);margin-top:18px;color:var(--green)}.ending-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px 38px}.ending-grid article{padding:5px 0}.ending-grid strong{font-weight:550;color:var(--text)}.strategy-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}.strategy-grid article>span{font-family:var(--serif);font-size:33px;color:var(--coral);display:block;margin-bottom:13px}.strategy-grid h3{font-size:15px}.resource-layout{display:grid;grid-template-columns:1fr 1fr;gap:28px}.video-card{min-width:0}.video-cover{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;aspect-ratio:16/9;background:#294e3e;position:relative;color:#f7f6e8;border-radius:9px;overflow:hidden}.video-geometry{position:absolute;font-size:400px;font-weight:100;color:#3a604c;transform:rotate(30deg);line-height:1;right:-140px;bottom:-90px}.video-play{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:#e9debc;color:#244b3c;margin-bottom:17px;z-index:1}.video-cover strong{font-family:var(--serif);font-size:35px;font-weight:400;line-height:1.1;z-index:1}.video-cover>span:last-child{font-size:10px;color:#c1cfb8;margin-top:13px;z-index:1}.video-card iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:9px;display:block}.video-fallback{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:12px;font-size:11px;color:var(--green)}.resource-list>a,.book-reference{display:flex;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);align-items:flex-start}.resource-list svg{color:var(--green);flex-shrink:0}.resource-list>a>div,.book-reference>div{flex:1}.resource-list strong{display:block;font-size:13px;font-weight:550}.resource-list span{display:block;font-size:11px;line-height:1.7;color:var(--muted);margin-top:5px}.resource-list>a:hover strong{color:var(--green)}.resource-list .form-note{font-size:11px}.learn-footer{display:flex;align-items:center;justify-content:space-between;margin-top:43px;border-top:1px solid var(--line);padding-top:28px}.tutorial-progress{display:flex;align-items:center;justify-content:space-between;padding:20px 0;gap:8px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:30px}.tutorial-progress button{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.tutorial-progress button>span:first-child{width:27px;height:27px;border-radius:50%;background:var(--surface);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:11px}.tutorial-progress .current{color:var(--green);font-weight:600}.tutorial-progress .current>span:first-child{background:#285746;color:#fff;border-color:#285746}.tutorial-progress .complete>span:first-child{background:var(--green-soft);color:var(--green)}.tutorial-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:44px;align-items:center}.tutorial-board{padding:17px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.tutorial-copy h2{font-size:44px;margin:15px 0 22px}.tutorial-copy .lead{font-size:16px}.lesson-feedback{min-height:57px;margin:20px 0 3px;font-size:13px;color:var(--coral)}.lesson-feedback.success{color:var(--green);font-weight:550}.tutorial-navigation{display:flex;justify-content:space-between;align-items:center;margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}.tutorial-navigation .text-button{color:var(--muted)}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes dialog-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1500px){.play-page{padding-top:43px}.game-layout{grid-template-columns:minmax(0,1fr) 350px;gap:40px}.game-panel{margin-top:36px}.move-list{height:245px}.board-topline{margin-bottom:21px}.opponent-tabs button{font-size:11px}.player-card{padding:24px 22px 20px}.player-info strong{font-size:14px}.player-info>span{font-size:11px}.player-clock>span{font-size:30px}.moves-panel{margin:8px 22px 0}.panel-tip{margin:22px}.share-button{margin:0 22px;width:calc(100% - 44px)}.game-actions{padding:20px 22px}.board-status strong{font-size:13px}.board-status>div>span{font-size:11px}.board-toolbar button{font-size:12px}.board-toolbar,.board-footnote{margin-top:15px}.play-heading{margin-bottom:33px}}@media(max-width:1200px){.sidebar{width:190px;padding:28px 16px 16px}.brand{font-size:29px}.main-area{margin-left:190px}.topbar{padding:0 25px}.play-page,.learn-page,.tutorial-page{padding-left:25px;padding-right:25px}.game-layout{grid-template-columns:minmax(0,1fr) 280px;gap:20px}.board-surface{padding:8px 7px 0}.game-panel{margin-top:0}.player-card{padding:18px 14px 13px;gap:8px;min-height:86px}.player-avatar{width:35px;height:37px}.player-clock>span{font-size:25px}.match-divider{margin:0 14px}.moves-panel{margin:7px 13px 0}.panel-tip{margin:15px 13px}.share-button{margin:0 13px;width:calc(100% - 26px)}.move-list{height:166px}.game-actions{padding:16px 13px}.main-footer{margin:0 25px}.sidebar-note{padding:0 9px}.sidebar-note .text-button{font-size:10px}.toast{left:calc(50% + 95px)}.page-heading h1{font-size:37px}.page-heading .button{font-size:11px;padding:10px 12px}.intro-copy h2{font-size:34px}.rules-intro{padding:25px;gap:20px}.movement-layout{gap:26px}.rules-section article p{font-size:12px}.rule-grid article{padding:17px}.tutorial-layout{gap:30px}.variant-badge{display:none}}@media(max-width:1020px)and (min-width:761px){.sidebar{width:165px;padding:26px 11px 16px}.brand{font-size:26px;gap:5px}.brand-mark{width:27px}.sidebar-caption{font-size:7px}.main-area{margin-left:165px}.nav-item{font-size:11px;padding:10px 9px;gap:9px}.sidebar-note{margin-top:35px}.sidebar-note h3{font-size:21px}.sidebar-note p{font-size:11px}.sidebar-note .text-button svg{display:none}.install-button{padding:10px 7px;gap:6px}.install-button>svg:last-child{display:none}.install-button>span{font-size:10px}.game-layout{grid-template-columns:minmax(0,1fr) 250px;gap:15px}.play-page,.learn-page,.tutorial-page{padding:28px 20px 24px}.topbar{padding:0 20px}.player-info strong{font-size:11px}.player-info>span{font-size:9px}.player-clock>span{font-size:22px;letter-spacing:-.7px}.player-clock{min-width:57px}.player-avatar{width:31px;height:33px}.player-avatar .piece{width:29px}.player-card{padding-left:11px;padding-right:11px;gap:7px}.opponent-tabs button{font-size:9px;gap:3px}.opponent-tabs button svg{width:14px}.board-variant{font-size:9px}.board-topline .text-button{font-size:10px}.board-status{padding:12px;gap:8px}.board-status>div>span{font-size:9px}.turn-indicator{display:none}.board-status strong{font-size:11px}.board-toolbar>div{gap:10px}.board-toolbar button{font-size:10px}.board-footnote>span{font-size:8px}.board-footnote .text-button,.game-actions button{font-size:9px}.move-list{height:138px}.empty-moves{padding:15px 7px}.empty-moves strong{font-size:17px}.empty-moves p{font-size:9px}.share-button{font-size:10px}.panel-tip{padding:11px 9px}.panel-tip p{font-size:10px}.main-footer{margin:0 20px;font-size:9px}.toast{left:calc(50% + 82px)}.movement-copy h2,.tutorial-copy h2{font-size:36px}.page-heading{align-items:flex-start}.page-heading h1{font-size:34px}.page-heading .button{max-width:140px}.rule-stats{gap:20px}.piece-tabs button{flex-direction:column;gap:3px;font-size:11px}.resource-layout{grid-template-columns:1fr}.rule-grid{gap:10px}}@media(max-width:760px){.sidebar{width:100%;height:66px;inset:0 0 auto;display:flex;flex-direction:row;align-items:center;padding:0 19px;border-right:0;border-bottom:1px solid var(--line);gap:12px}.brand{font-size:27px;gap:5px}.brand-mark{width:28px}.brand-mark svg{width:25px}.sidebar-caption,.sidebar-note,.sidebar-bottom{display:none}.sidebar nav{display:flex;gap:3px;margin-left:auto}.nav-item{min-height:38px;padding:9px;gap:0;position:relative}.nav-item span,.nav-item>svg:last-child:not(:first-child){display:none}.nav-item>svg:first-child{width:19px}.nav-item.active:after{content:"";position:absolute;bottom:-9px;left:9px;right:9px;height:2px;background:var(--green)}.main-area{margin-left:0;padding-top:66px}.topbar{min-height:48px;padding:0 20px}.breadcrumb{font-size:10px;gap:9px}.topbar-actions{gap:0}.topbar-actions .icon-button{width:27px;height:27px}.topbar-actions .icon-button svg{width:18px}.play-page{padding:25px 19px}.play-heading{margin-bottom:25px}.play-heading h1{font-size:43px;margin:7px 0 8px}.play-heading p{font-size:12px}.eyebrow{font-size:9px}.new-game-top{min-height:37px;padding:9px 12px;font-size:11px}.new-game-top svg{width:15px}.game-layout{grid-template-columns:1fr;gap:24px}.board-topline{margin:0 2px 13px}.board-variant,.board-topline .text-button{font-size:10px}.board-surface{padding:5px 8px 0;border-radius:9px}.board-wrap{max-width:610px}.board-status{margin-top:11px;min-height:67px;padding:13px;gap:10px}.board-status strong{font-size:12px}.board-status>div>span{font-size:10px;line-height:1.5}.board-toolbar{margin-top:11px}.board-toolbar>div{gap:22px}.board-toolbar button{font-size:11px;padding:11px 4px}.board-footnote{margin-top:6px;padding-top:13px}.board-footnote>span{font-size:9px}.board-footnote .text-button{font-size:9px}.game-panel{margin-top:0;display:grid;grid-template-columns:1fr 1fr;gap:0;max-width:610px;width:100%;justify-self:center}.opponent-tabs{grid-column:1/-1}.opponent-tabs button{font-size:11px;min-height:40px;gap:6px}.player-card{padding:18px 14px;min-height:89px;gap:8px}.player-card:nth-of-type(2){grid-column:2;grid-row:2}.player-card:nth-of-type(4){grid-column:1;grid-row:2;border-right:1px solid var(--line)}.player-card.active:before{inset:auto 14px 0;width:auto;height:2px;border-radius:2px}.player-avatar{width:31px;height:35px}.player-avatar .piece{width:28px}.player-info strong{font-size:11px}.player-info>span{font-size:9px}.player-clock{min-width:55px}.player-clock>span{font-size:22px}.player-clock small{font-size:6px}.match-divider{grid-column:1/-1;grid-row:3;margin:0 14px;font-size:10px;padding:12px 0}.moves-panel{grid-column:1/-1;margin:16px 14px 0}.moves-heading{padding:11px 13px}.moves-heading strong{font-size:12px}.moves-heading>span{font-size:10px}.move-column-labels{font-size:10px}.move-list{height:168px}.move-row{font-size:12px;padding:6px 13px}.move-row button{font-size:12px}.empty-moves{padding:20px 10px}.empty-moves strong{font-size:20px}.empty-moves p{font-size:11px}.move-navigation{padding:7px 13px}.move-navigation span{font-size:10px}.game-actions{grid-column:1/-1;padding:20px}.game-actions button{font-size:12px}.share-button{grid-column:1/-1;width:calc(100% - 28px);margin:0 14px;font-size:12px;min-height:44px}.panel-tip{grid-column:1/-1;margin:17px 14px;font-size:12px}.panel-tip>span{font-size:9px}.panel-tip p{font-size:12px}.panel-tip .text-button{font-size:11px}.main-footer{margin:0 19px;padding:18px 0 25px;font-size:9px}.main-footer>span:last-child{display:none}.toast{left:50%;bottom:18px;font-size:12px;width:calc(100% - 34px)}.toast span{flex:1;max-width:none}.toast button{margin-left:auto}.sound-floating{bottom:12px;right:14px}.modal-backdrop{padding:18px}.dialog{width:100%;max-width:480px;padding:24px;max-height:calc(100dvh - 36px);border-radius:13px}.dialog-heading h2{font-size:32px}.dialog-heading p{font-size:12px}.mode-picker button{font-size:10px}.form-note{font-size:13px}.share-link-field input{font-size:12px}.share-steps p{font-size:13px}.learn-page,.tutorial-page{padding:28px 19px}.page-heading{display:block;margin-bottom:27px}.page-heading h1{font-size:37px;line-height:1.08;max-width:450px}.page-heading p{font-size:13px}.page-heading .button{margin-top:19px;font-size:12px}.rules-intro{grid-template-columns:1fr;padding:24px;gap:20px}.intro-copy h2{font-size:36px}.intro-copy p{font-size:14px}.rule-stats{gap:36px;margin-top:22px}.rule-stats strong{font-size:34px}.intro-board{max-width:350px}.rules-section{margin-top:36px;padding-top:22px}.rules-section h2{font-size:32px}.section-heading{display:block}.section-heading .muted{display:block;margin:-10px 0 19px;font-size:12px}.piece-tabs{gap:2px;padding:4px}.piece-tabs button{flex-direction:column;gap:2px;padding:7px 2px;font-size:10px}.piece-tabs .piece{width:31px;height:31px}.movement-layout{grid-template-columns:1fr;gap:26px}.movement-demo{padding:12px;order:2}.movement-copy h2{font-size:40px}.movement-copy>p{font-size:14px}.movement-copy>p.lead{font-size:17px}.callout p{font-size:13px}.rule-grid,.strategy-grid{grid-template-columns:1fr;gap:15px}.rule-grid article{padding:22px}.rules-section h3{font-size:17px}.rules-section article p{font-size:14px}.rule-grid article p.rule-example{font-size:12px}.ending-grid{grid-template-columns:1fr;gap:23px}.strategy-grid article>span{font-size:30px;margin-bottom:9px}.resource-layout{grid-template-columns:1fr;gap:15px}.video-cover strong{font-size:34px}.video-cover>span:last-child{font-size:11px}.resource-list strong{font-size:14px}.resource-list span,.resource-list .form-note{font-size:12px}.learn-footer h2{font-size:37px}.tutorial-progress{padding:16px 0;gap:3px;align-items:flex-start}.tutorial-progress button{flex-direction:column;gap:6px;padding:0;font-size:10px;flex:1}.tutorial-progress button>span:first-child{width:28px;height:28px}.tutorial-layout{grid-template-columns:1fr;gap:24px}.tutorial-board{padding:9px;order:2}.tutorial-copy h2{font-size:37px;margin:12px 0 15px}.tutorial-copy .lead{font-size:16px}.tutorial-copy .callout{margin-top:18px}.lesson-feedback{min-height:32px;margin:15px 0;font-size:13px}.tutorial-copy .button{width:100%}.tutorial-navigation{margin-top:20px;padding-top:15px}.tutorial-navigation .text-button{font-size:12px}}@media(max-width:380px){.sidebar{padding:0 14px}.brand{font-size:25px}.sidebar nav{gap:0}.nav-item{padding:8px}.play-page,.learn-page,.tutorial-page{padding-left:12px;padding-right:12px}.topbar{padding:0 14px}.breadcrumb{font-size:9px;gap:6px}.player-card{padding:16px 10px;gap:6px}.player-info>span{font-size:8px}.player-avatar{width:27px}.player-clock{min-width:49px}.player-clock>span{font-size:20px}.board-status{padding:11px;gap:8px}.turn-indicator{display:none}.board-footnote>span{font-size:8px}.board-footnote .text-button{font-size:8px}.dialog{padding:20px}.promotion-choices{gap:5px}.promotion-choices .piece{width:50px}.mode-picker button{font-size:9px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.mobile-clocks{display:none}.install-in-prefs{margin-top:13px}@media(max-width:760px){.mobile-clocks{display:flex;margin-bottom:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);overflow:hidden}.mobile-clocks .player-card{flex:1;min-width:0;padding:11px 12px;min-height:70px}.mobile-clocks .player-card:first-child{border-right:1px solid var(--line)}.mobile-clocks .player-info>span{font-size:8px}.mobile-clocks .player-clock>span{font-size:21px}.mobile-clocks .captured-pieces{display:none}.game-panel>.player-card{display:none}.game-panel>.match-divider{grid-row:2}.play-heading{margin-bottom:18px}.board-topline{margin-bottom:11px}.play-page{padding-top:20px}.cell-coordinate{font-size:7.5px}}@media(max-width:380px){.mobile-clocks .player-avatar{display:none}.mobile-clocks .player-info>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-clocks .player-card{gap:8px}.mobile-clocks .player-info strong{font-size:12px}}.zen-toggle{display:inline-flex;align-items:center;gap:7px;padding:9px 11px;border:1px solid var(--line);border-radius:7px;font-size:12px;white-space:nowrap;color:var(--green);background:var(--surface);min-height:40px}.zen-toggle:hover{background:var(--green-soft)}.zen-header{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:780px;margin:auto;padding:16px 24px 12px}.zen-header .brand{font-size:27px;gap:6px}.zen-match{font-size:11px;color:var(--muted);margin-left:auto}.is-zen .sidebar,.is-zen .topbar,.is-zen .play-heading,.is-zen .board-topline,.is-zen .board-footnote,.is-zen .main-footer,.is-zen .sound-floating{display:none}.is-zen .main-area{margin-left:0;padding-top:0}.is-zen main{min-height:0}.is-zen .play-page{padding:0 24px 18px;max-width:780px}.is-zen .game-layout{display:flex;flex-direction:column;align-items:center;gap:4px}.is-zen .board-section{width:100%;max-width:min(700px,calc((100dvh - 285px)*.984))}.is-zen .board-surface{padding:2px 12px 0;border-radius:13px}.is-zen .mobile-clocks{display:flex;gap:12px;border:0;background:none;margin:0 0 10px;overflow:visible}.is-zen .mobile-clocks .player-card{flex:1;min-width:0;min-height:62px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);gap:9px}.is-zen .mobile-clocks .player-card.active{border-color:var(--green)}.is-zen .mobile-clocks .player-card:before{display:none}.is-zen .mobile-clocks .player-avatar{width:32px;height:34px}.is-zen .mobile-clocks .player-clock>span{font-size:24px}.is-zen .mobile-clocks .captured-pieces{display:none}.is-zen .board-status{margin-top:9px;min-height:59px;padding:10px 12px}.is-zen .board-toolbar{margin-top:3px}.is-zen .board-toolbar>div{gap:18px}.is-zen .board-toolbar button{padding:10px 4px}.is-zen .game-panel{display:flex;align-items:center;justify-content:center;gap:24px;background:none;border:0;box-shadow:none;margin:0;width:100%;max-width:700px;overflow:visible}.is-zen .game-panel>.opponent-tabs,.is-zen .game-panel>.player-card,.is-zen .game-panel>.match-divider,.is-zen .game-panel>.moves-panel,.is-zen .game-panel>.panel-tip{display:none}.is-zen .game-actions{padding:0;gap:18px}.is-zen .game-actions button{font-size:11px;flex:none;min-height:40px}.is-zen .share-button{width:auto;margin:0;min-height:38px;padding:8px 12px;font-size:11px}.is-zen .toast{left:50%}@media(max-width:760px){.zen-header{padding:12px 14px;gap:8px}.zen-header .brand{font-size:25px}.zen-match{font-size:9px;max-width:120px;text-align:right;line-height:1.5}.zen-toggle{font-size:11px;padding:8px}.is-zen .play-page{padding:0 12px 16px}.is-zen .board-section{max-width:610px}.is-zen .board-surface{padding:3px 5px 0}.is-zen .mobile-clocks{gap:8px;margin-bottom:9px}.is-zen .mobile-clocks .player-card{padding:9px 10px;gap:7px}.is-zen .mobile-clocks .player-clock>span{font-size:22px}.is-zen .mobile-clocks .player-info>span{font-size:8px}.is-zen .game-panel{gap:14px;flex-wrap:wrap}.is-zen .game-actions{gap:16px}.is-zen .board-status>div>span{line-height:1.5}.is-zen .board-toolbar button{min-height:44px}.topbar-actions .zen-toggle span{display:none}}@media(max-width:380px){.zen-match,.is-zen .mobile-clocks .player-avatar{display:none}.is-zen .game-panel{gap:8px}.is-zen .game-actions{gap:12px}.is-zen .share-button{padding:8px;font-size:10px}.is-zen .board-status>div>span{font-size:9px}}:root{--bg:#f6f6f3;--text:#32363b;--cell-0:#f0efeb;--cell-1:#b9babc;--cell-2:#787d83}:root[data-board=classic]{--green:#363d47;--green-soft:#e9ecf0;--coral:#987547;--muted:#757a81;--line:#e2e4e5}:root[data-theme=dark][data-board=classic]{--green:#d3d9e2;--green-soft:#343a43;--muted:#a3aab4;--line:#3a414b;--bg:#1b1e23;--surface:#24282e;--surface-soft:#2c3139;--text:#e4e6e9}:root[data-board=garden]{--cell-0:#eee9db;--cell-1:#b7c5aa;--cell-2:#7f9877}:root[data-board=classic] .button.primary{background:#363d47;border-color:#363d47}:root[data-board=classic] .button.primary:hover{background:#262c34}:root[data-board=classic] .hex-cell.last-move>polygon{fill:#d6cba8}:root[data-board=classic] .hex-cell.selected>polygon{fill:#d8bb80}.piece{filter:drop-shadow(0 1px 1px #0000001c)}.palette-picker{grid-template-columns:repeat(4,minmax(0,1fr))}.palette-swatch.classic i:nth-child(1){background:#f0efeb}.palette-swatch.classic i:nth-child(2){background:#b9babc}.palette-swatch.classic i:nth-child(3){background:#787d83}.board-annotations{pointer-events:none}.board-arrow{opacity:.78}.board-arrow line{stroke:currentColor}.board-arrow polygon{fill:currentColor}.board-mark{stroke:currentColor;opacity:.8}.mark-amber{color:#cf862c}.mark-blue{color:#4886c8}.mark-red{color:#ca5755}.mark-green{color:#528c62}.mark-preview{opacity:.45}.drawing-mode .hex-board{touch-action:none}.drawing-mode .hex-cell{cursor:crosshair}.hex-cell.premove-cell>polygon{fill:#9ab5d3}.hex-cell.premove-cell .selection-ring{stroke:#3e6f9d!important}.premove-notice{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:7px;padding:6px 10px;border-radius:6px;background:#dce7f2;color:#345a7e;font-size:11px}.premove-notice button{display:flex;align-items:center;gap:4px;font-weight:600;padding:5px}.board-toolbar button[aria-pressed=true]{color:var(--green);background:var(--green-soft);border-radius:5px}.board-toolbar>div{flex-wrap:wrap;gap:12px}.is-zen .board-toolbar>div{gap:12px}@media(max-width:760px){.board-toolbar>div,.is-zen .board-toolbar>div{gap:10px}.palette-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.premove-notice{font-size:10px}}@media(max-width:380px){.board-toolbar>div,.is-zen .board-toolbar>div{gap:7px}.board-toolbar button{font-size:10px}}:root[data-theme=dark] .player-avatar.black{background:#8b929b}:root[data-theme=dark] .promotion-choices button{background:#787d83}.guided-board .hex-cell.shade-0.selected>polygon{fill:var(--cell-0)}.guided-board .hex-cell.shade-1.selected>polygon{fill:var(--cell-1)}.guided-board .hex-cell.shade-2.selected>polygon{fill:var(--cell-2)}.guided-board .selection-ring{fill:none!important;stroke:#fff!important;stroke-width:3;filter:drop-shadow(0 0 1px #202a35)}.guided-board .move-dot{fill:#263341;opacity:.7;stroke:#fff;stroke-width:1.5}.guided-board .capture-ring{stroke:#fff;stroke-width:2;stroke-dasharray:4 3;opacity:1;filter:drop-shadow(0 0 1px #263341)}.lesson-target{pointer-events:none}.lesson-target .target-halo{fill:none;stroke:#fff;stroke-width:6}.lesson-target .target-outline{fill:none;stroke:#2362ad;stroke-width:3}.lesson-target rect{fill:#2362ad;stroke:#fff;stroke-width:1}.lesson-target text{fill:#fff;font:700 11px DM Sans,sans-serif}.lesson-target path{fill:none;stroke:#2362ad;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.quickstart{list-style:decimal;padding-left:22px;margin:21px 0;display:grid;gap:13px;font-size:14px;line-height:1.6}.quickstart strong{color:var(--text)}.intro-copy .board-shades-note{font-size:12px;color:var(--muted)}.rules-details summary{display:flex;align-items:center;justify-content:space-between;gap:15px;cursor:pointer;list-style:none;padding:5px 0}.rules-details summary::-webkit-details-marker{display:none}.rules-details summary .section-number{display:block;margin-bottom:9px}.rules-details summary strong{display:block;font-family:var(--serif);font-weight:400;font-size:28px;letter-spacing:-.02em}.rules-details summary small{display:block;color:var(--muted);font-size:13px;margin-top:8px}.rules-details[open]>summary{margin-bottom:25px}.rules-details[open]>summary>svg{transform:rotate(90deg)}.rules-details summary:focus-visible{outline:3px solid var(--coral);outline-offset:5px}.beginner-winning article p{font-size:14px}.tutorial-layout{grid-template-areas:"board copy" "board tip" "board controls";grid-template-rows:auto auto auto;gap:0 40px;align-items:start}.tutorial-board{grid-area:board;align-self:center}.tutorial-copy{grid-area:copy}.tutorial-controls{grid-area:controls}.tutorial-copy h2{font-size:38px;margin:13px 0 18px}.tutorial-tip{grid-area:tip}.tutorial-tip .callout{margin:22px 0 0}.lesson-steps{padding:0;list-style:none;display:grid;gap:12px;margin:22px 0 0}.lesson-steps li{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:14px;line-height:1.5;color:var(--muted)}.lesson-steps li>span{display:flex;align-items:center;justify-content:center;width:23px;height:23px;border:1px solid var(--line);border-radius:50%;font-size:11px;flex-shrink:0;margin-right:3px}.lesson-steps .step-active{color:var(--text)}.lesson-steps .step-active>span{background:#2362ad;border-color:#2362ad;color:#fff}.lesson-steps .step-done{color:var(--green)}.lesson-steps .step-done>span{background:var(--green-soft)}.board-legend{display:flex;gap:17px;flex-wrap:wrap;justify-content:center;font-size:11px;color:var(--muted);padding:5px 0 8px}.board-legend>span{display:flex;align-items:center;gap:6px}.board-legend i{display:inline-block;flex-shrink:0}.legend-target{width:14px;height:14px;border:2px solid #2362ad;border-radius:3px;background:#fff}.legend-move{width:8px;height:8px;background:#263341;border:1px solid white;border-radius:50%;box-shadow:0 0 0 1px #88919b}.tutorial-controls .lesson-feedback{display:flex;align-items:flex-start;gap:8px;min-height:48px;margin:20px 0 14px;line-height:1.6}.lesson-feedback>svg{flex-shrink:0;margin-top:2px}.lesson-actions{display:flex;gap:20px;align-items:center}.tutorial-finish{max-width:850px;margin:45px auto;padding:32px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.tutorial-finish h2{margin:14px 0 20px;font-size:38px}.tutorial-finish>p{font-size:16px}.first-game-reminders{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin:28px 0;padding:24px 0;border-block:1px solid var(--line)}.first-game-reminders strong{font-size:14px}.first-game-reminders p{font-size:13px;color:var(--muted);margin-top:7px}.finish-actions{display:flex;align-items:center;flex-wrap:wrap;gap:17px}@media(max-width:1020px){.tutorial-layout{gap:0 25px}.tutorial-copy h2{font-size:32px}.lesson-steps li{font-size:13px}}@media(max-width:760px){.tutorial-page .page-heading h1{font-size:32px}.tutorial-page .page-heading{margin-bottom:20px}.tutorial-page .page-heading .button{margin-top:13px}.tutorial-progress{margin-bottom:22px}.tutorial-layout{grid-template-areas:"copy" "board" "tip" "controls";grid-template-columns:1fr;gap:18px}.tutorial-board{order:0;padding:8px}.tutorial-copy h2{font-size:30px;margin:10px 0 12px}.tutorial-copy .lead{font-size:14px}.tutorial-tip .callout{margin:0;padding:12px;gap:9px}.tutorial-tip .callout p{font-size:12px}.lesson-steps{gap:9px;margin-top:15px}.lesson-steps li{font-size:13px;gap:5px}.tutorial-controls .lesson-feedback{min-height:0;margin:0 0 15px}.lesson-actions>.button{flex:1}.tutorial-navigation{margin-top:18px}.board-legend{font-size:10px;gap:15px;padding-bottom:5px}.tutorial-finish{padding:22px;margin:20px 0}.tutorial-finish h2{font-size:32px}.first-game-reminders{grid-template-columns:1fr;gap:18px}.finish-actions{align-items:stretch;flex-direction:column}.finish-actions>.text-button{justify-content:center}.rules-details summary strong{font-size:25px}}.guided-board .lesson-source-label{font-size:10px;font-weight:700;fill:#263341;paint-order:stroke;stroke:#fff;stroke-width:2px;stroke-linejoin:round;opacity:1}.tutorial-controls .lesson-feedback{color:var(--text)}.tutorial-controls .lesson-feedback.success{color:var(--green)}@media(max-width:760px){.tutorial-page .page-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px}.tutorial-page .page-heading h1{font-size:28px}.tutorial-page .page-heading p{display:none}.tutorial-page .page-heading .button{margin:0;white-space:nowrap;font-size:11px;padding:9px;min-height:36px}.tutorial-progress{padding:12px 0;margin-bottom:18px}.tutorial-layout{gap:16px}}.board-edge-labels .file-label,.board-edge-labels .rank-label{font:600 13px DM Sans,sans-serif;fill:var(--text);opacity:.8;pointer-events:none}.cell-label{opacity:0;pointer-events:none}.cell-label.is-visible,.hex-cell:hover .cell-label,.hex-cell:focus-visible .cell-label{opacity:1}.cell-label rect{fill:#fafaf6;fill-opacity:.94}.cell-label text{fill:#30363e;font:650 9px DM Sans,sans-serif;letter-spacing:.1px}.intro-copy .coordinate-explainer{font-size:12px;color:var(--muted);margin-top:14px}.preview-dot{fill:#fff;stroke:#ba4053;stroke-width:3;pointer-events:none}.preview-capture,.preview-pawn-attack{fill:none;stroke:#ba4053;stroke-width:3;stroke-dasharray:4 3;pointer-events:none;filter:drop-shadow(0 0 1px white)}.preview-pawn-attack{stroke-width:2}.inspection-ring{pointer-events:none}.inspection-halo{fill:none!important;stroke:#fff!important;stroke-width:5}.inspection-outline{fill:none!important;stroke:#ba4053!important;stroke-width:2.7;stroke-dasharray:5 2}.preview-legend{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;padding:7px 5px 12px;color:var(--muted);font-size:11px}.preview-legend>span{display:flex;align-items:center;gap:6px}.preview-legend i{display:inline-block;width:11px;height:11px;flex-shrink:0;border:2px solid #ba4053;background:#fff;border-radius:50%}.preview-legend .preview-capture-key{border-style:dashed;background:none}.clear-preview{white-space:nowrap}.board-status:has(.clear-preview){flex-wrap:wrap}.board-status:has(.clear-preview)>div{flex:1;min-width:180px}.move-row{align-items:stretch;padding:4px 9px;gap:4px}.move-row>span{padding-top:8px;font-size:11px}.move-row button{min-width:0;padding:6px 5px;border-radius:5px;align-self:stretch;text-align:left}.move-notation{display:flex;flex-direction:column;gap:2px;min-width:0}.move-piece-name{display:flex;align-items:center;gap:4px;font-size:10px;color:var(--muted);font-weight:550}.move-piece-name .piece{flex-shrink:0;width:18px;height:18px}.move-route{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:.02em}.move-route svg{opacity:.65}.move-route.is-capture svg{color:#ba4053;opacity:1}.move-tags{display:flex;flex-wrap:wrap;gap:3px;margin-top:2px}.move-tags small{padding:1px 4px;border-radius:3px;background:var(--surface-soft);color:var(--muted);font-size:8px;line-height:1.5}.move-tags .check-tag{color:#a53648;background:#f9e6e9}.move-tags .promotion-tag{color:var(--green);background:var(--green-soft)}.unplayed-move{display:block;padding-top:18px;color:var(--muted)}.notation-guide{border-top:1px solid var(--line);font-size:11px}.notation-guide summary{display:flex;align-items:center;gap:5px;padding:9px 13px;color:var(--muted);list-style:none;cursor:pointer}.notation-guide summary::-webkit-details-marker{display:none}.notation-guide summary:focus-visible{outline:2px solid var(--coral);outline-offset:-2px}.notation-guide p{padding:0 13px 12px;font-size:11px;color:var(--muted);line-height:1.7}.notation-guide strong{color:var(--text);font-weight:550}@media(max-width:760px){.preview-legend{font-size:10px;gap:13px;padding:4px 3px 10px}.preview-legend>span:last-child{font-size:9px}.board-status:has(.clear-preview)>div{min-width:160px}.board-status .clear-preview{margin-left:34px;font-size:11px;min-height:24px}.board-edge-labels .file-label,.board-edge-labels .rank-label{font-size:14px}.cell-label text{font-size:10px}.move-row{padding:4px 11px}.move-route{font-size:14px}.move-piece-name{font-size:11px}.move-tags small{font-size:9px}}:root[data-theme=dark] .move-piece-name .piece{background:#c4cbc6;border-radius:3px}.hex-cell.draggable{cursor:grab;touch-action:none}.hex-cell.draggable .piece{touch-action:none}.dragging-piece .hex-cell,.dragging-piece .hex-board{cursor:grabbing}.drag-source{opacity:.18;pointer-events:none}.dragged-piece{pointer-events:none;filter:drop-shadow(0 5px 3px #16232b50)}.dragged-piece .piece{filter:none}.drop-ring{pointer-events:none}.drop-ring .drop-halo{fill:none!important;stroke:#fff!important;stroke-width:6}.drop-ring .drop-outline{fill:none!important;stroke:#285746!important;stroke-width:3}.phone-header,.board-toolbar .phone-moves{display:none}.phone-menu{display:grid;grid-template-columns:1fr 1fr;gap:8px}.phone-menu button{display:flex;align-items:center;gap:10px;text-align:left;min-height:56px;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--surface-soft);font-size:12px}.phone-menu svg{width:19px;flex-shrink:0}.dialog .moves-panel{border:1px solid var(--line);border-radius:9px;margin-bottom:14px;overflow:hidden}.dialog .move-list{max-height:45dvh;min-height:130px}@media(max-width:760px){.mobile-play .sidebar,.mobile-play .topbar,.mobile-play .zen-header,.mobile-play .play-heading,.mobile-play .board-topline,.mobile-play .board-footnote,.mobile-play .game-panel,.mobile-play .main-footer,.mobile-play .sound-floating{display:none}.mobile-play .main-area{margin:0;padding:0}.mobile-play main{min-height:0}.mobile-play .phone-header{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:4px 12px;padding-top:max(4px,env(safe-area-inset-top))}.phone-header .brand{font-size:25px;gap:5px}.phone-header>div{display:flex;gap:2px}.phone-header .icon-button{width:44px;height:44px}.mobile-play .play-page{padding:0 4px max(8px,env(safe-area-inset-bottom));max-width:none}.mobile-play .game-layout{display:block}.mobile-play .board-section{width:100%;max-width:560px;margin:auto}.mobile-play .board-surface{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;overflow:visible}.mobile-play .board-wrap{max-width:none}.mobile-play .mobile-clocks{display:flex;gap:8px;margin:0 8px 2px;border:0;background:none;overflow:visible}.mobile-play .mobile-clocks .player-card{border:1px solid var(--line);background:var(--surface);border-radius:8px;min-height:50px;padding:5px 8px;gap:6px}.mobile-play .mobile-clocks .player-card.active{border-color:var(--green);background:var(--green-soft)}.mobile-play .mobile-clocks .player-card:before{display:none}.mobile-play .mobile-clocks .player-avatar{width:25px;height:29px}.mobile-play .mobile-clocks .player-avatar>.piece{width:26px}.mobile-play .mobile-clocks .player-info strong{font-size:11px;max-width:85px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-play .mobile-clocks .player-info>span{font-size:8px}.mobile-play .mobile-clocks .player-clock>span{font-size:21px}.mobile-play .mobile-clocks .player-clock small{font-size:6px}.mobile-play .mobile-clocks .captured-pieces{display:none}.mobile-play .board-status{margin:4px 8px 0;min-height:54px;padding:8px;gap:7px}.mobile-play .board-status>div{min-width:0;flex:1}.mobile-play .board-status strong{font-size:12px}.mobile-play .board-status>div>span{font-size:10px;line-height:1.4}.mobile-play .turn-indicator{display:none}.mobile-play .board-toolbar{margin:2px 8px 0;gap:6px;justify-content:space-between}.mobile-play .board-toolbar>div{gap:4px;flex:1}.mobile-play .board-toolbar button{min-width:40px;min-height:44px;padding:8px 4px;font-size:10px;gap:4px}.mobile-play .board-toolbar button[aria-label="Flip board"] span{display:none}.mobile-play .board-toolbar>div button:first-child:nth-last-child(n+5) span{display:none}.mobile-play .phone-moves{display:flex;align-items:center}.mobile-play .board-toolbar .toolbar-settings{min-width:40px}.mobile-play .premove-notice{margin:4px 8px}.mobile-play .preview-legend{font-size:9px;gap:8px;margin:0 8px}.mobile-play .toast{left:12px;right:12px;bottom:12px;transform:none;width:auto;max-width:none;font-size:11px}}@media(max-width:380px){.mobile-play .mobile-clocks .player-avatar{display:none}.mobile-play .board-toolbar>div{gap:0}.mobile-play .board-toolbar button{font-size:9px;gap:3px;min-width:36px}.mobile-play .board-toolbar button svg{width:16px}}@media(max-width:760px)and (orientation:landscape){.mobile-play .board-section{display:grid;grid-template-columns:calc((100dvh - 65px)*.903) minmax(0,1fr);grid-template-rows:auto auto 1fr;max-width:none;gap:8px;align-items:start}.mobile-play .board-surface{grid-column:1;grid-row:1/5}.mobile-play .mobile-clocks{grid-column:2;grid-row:1;margin:0 8px 0 0}.mobile-play .board-status{grid-column:2;grid-row:2;margin:0 8px 0 0}.mobile-play .board-toolbar{grid-column:2;grid-row:3;margin:0 8px 0 0;flex-wrap:wrap;justify-content:flex-start}.mobile-play .board-toolbar>div{flex-basis:100%}.mobile-play .premove-notice{grid-column:2;grid-row:4}}
