.chess-page{max-width:76rem;padding-top:1.2rem;padding-bottom:3rem}.chess-breadcrumb{color:var(--muted-cream);justify-content:space-between;gap:1rem;font-size:.85rem;display:flex}.chess-heading{justify-content:space-between;align-items:end;gap:1rem;margin:1.6rem 0 1rem;display:flex}.chess-heading h1{margin:0;font-size:clamp(2.5rem,7vw,4rem);line-height:1.1}.chess-heading>p{color:var(--muted-cream);margin:0 0 .2rem;font-size:1rem}.chess-eyebrow{letter-spacing:.15em;color:var(--brass);margin:0 0 .5rem;font-size:.66rem}.chess-layout{grid-template-columns:minmax(0,1fr) minmax(260px,320px);align-items:start;gap:2rem;display:grid}.chess-table{min-width:0}.chess-player{align-items:center;gap:.65rem;min-height:64px;padding:.65rem .2rem;display:flex}.chess-player strong{font-size:1rem;line-height:1.2;display:block}.chess-player small{color:var(--muted-cream);font-size:.72rem;display:block}.chess-player-mark{color:#0c1812;text-shadow:0 0 1px #d9dece;font-size:1.8rem}.chess-player-mark--white{color:#f2e4c9;text-shadow:0 2px 3px #000}.chess-captures{flex-wrap:wrap;justify-content:end;gap:0;max-width:52%;margin-left:auto;display:flex}.chess-captures svg{filter:none;width:19px;height:24px}.chess-frame{background:linear-gradient(#3d201948, #1a0c0ad1), var(--texture) center/var(--wood-grain-size);border:1px solid #866543;border-radius:5px;padding:clamp(6px,1.2vw,13px);box-shadow:0 18px 45px #0007,inset 0 0 0 2px #20130d,inset 0 0 9px #000b}.chess-board{aspect-ratio:1;isolation:isolate;touch-action:pan-y;grid-template-columns:repeat(8,minmax(0,1fr));display:grid;box-shadow:0 0 0 1px #160f0c}.chess-square{aspect-ratio:1;-webkit-user-select:none;user-select:none;border:0;border-radius:0;place-items:center;width:100%;min-width:0;min-height:0;padding:0;line-height:1;display:grid;position:relative}.chess-square.is-light{color:#435044;background:#e4d6b5}.chess-square.is-dark{color:#f4e8c9;background:#49674e}.chess-square:disabled{cursor:default;opacity:1}.chess-square:focus-visible{outline-offset:-4px;z-index:2;outline:3px solid #df922f}.chess-piece{pointer-events:none;filter:drop-shadow(0 2px 1px #0006);z-index:1;width:85%;height:85%}.chess-piece--w{fill:#fcf0d5;stroke:#2a352b}.chess-piece--b{fill:#192d22;stroke:#e7d4af}.chess-square.is-last{background:#aaa364}.chess-square.is-last.is-dark{background:#829151}.chess-square.is-selected{background:#d8ad58;box-shadow:inset 0 0 0 3px #fff1b1}.chess-square.is-legal:after{content:"";z-index:2;pointer-events:none;background:#16332675;border-radius:50%;width:23%;height:23%;position:absolute}.chess-square.is-capture:after{background:0 0;border:5px solid #28463299;width:88%;height:88%}.chess-square.is-check{background:#b45f4c;box-shadow:inset 0 0 0 3px #f4b596}.chess-square.is-hint{box-shadow:inset 0 0 0 4px #74ced1}.chess-rank,.chess-file{z-index:3;pointer-events:none;font-size:clamp(9px,1.3vw,13px);font-weight:700;line-height:1;position:absolute}.chess-rank{top:3px;left:4px}.chess-file{bottom:3px;right:4px}.chess-status{background:#102d22d9;border:1px solid #7a88604d;border-radius:4px;align-items:center;gap:.7rem;min-height:76px;margin:.3rem 0 .7rem;padding:.85rem 1rem;display:flex}.chess-status strong{font-size:1.07rem;display:block}.chess-status span[data-instruction]{color:var(--muted-cream);font-size:.8rem;display:block}.chess-status-dot{background:#d1b279;border-radius:50%;flex:none;width:9px;height:9px;box-shadow:0 0 0 5px #d1b27910}.chess-app.is-busy .chess-status-dot{animation:1s infinite alternate chess-thinking}.chess-tools{flex-wrap:wrap;gap:.5rem;display:flex}.chess-app button:not(.chess-square){min-height:42px;color:var(--cream);background:#143323;border:1px solid #76866b80;border-radius:4px;padding:.65rem .85rem;font-size:.82rem;line-height:1.25}.chess-app button:not(.chess-square):hover:not(:disabled){border-color:var(--brass);background-color:#284732}.chess-app button:disabled:not(.chess-square){opacity:.43;cursor:not-allowed}.chess-app .chess-primary{text-shadow:0 1px 1px #000;font-weight:700;box-shadow:inset 0 0 0 1px #1b120e,inset 0 0 12px #0006;background:linear-gradient(#2e160c33, #160e06a1), var(--texture) center/var(--wood-grain-size)!important;color:var(--wood-ink)!important;border-color:#997454!important}.chess-save{color:var(--muted-cream);margin:.65rem 0 0;font-size:.72rem}.chess-sidebar{flex-direction:column;gap:.8rem;min-width:0;padding-top:.75rem;display:flex}.chess-panel{background:linear-gradient(155deg,#23432de6,#0b241bef);border:1px solid #81956d40;border-radius:5px;padding:1.15rem;box-shadow:0 6px 24px #0002}.chess-panel h2{margin:0 0 .85rem;font-size:1.25rem}.chess-panel label{color:#d6dec9;margin:0 0 .35rem;font-size:.78rem;display:block}.chess-panel select{width:100%;color:var(--cream);background:#0d281d;border:1px solid #657654;border-radius:3px;min-width:0;min-height:44px;padding:.65rem .45rem;font-size:.83rem}.chess-settings-row{grid-template-columns:1fr 1fr;gap:.7rem;margin:.8rem 0;display:grid}.chess-settings-row>div{min-width:0}.chess-panel .chess-primary{justify-content:space-between;align-items:center;width:100%;margin:1rem 0 .65rem;display:flex}.chess-panel small{color:var(--muted-cream);font-size:.7rem;line-height:1.6;display:block}.chess-panel-heading{justify-content:space-between;align-items:center;gap:.7rem;margin-bottom:.5rem;display:flex}.chess-panel-heading h2{margin:0}.chess-panel-heading button{white-space:nowrap;background:0 0!important;padding:.4rem!important;font-size:.68rem!important}.chess-moves-panel>p{color:var(--muted-cream);padding:.6rem 0;font-size:.8rem}.chess-moves{scrollbar-color:#718565 #132c1e;font-variant-numeric:tabular-nums;max-height:200px;margin:0;padding:0;font-size:.83rem;list-style:none;overflow:auto}.chess-moves li{border-bottom:1px solid #5c745338;grid-template-columns:2rem 1fr 1fr;padding:.35rem .5rem;display:grid}.chess-moves li:nth-child(odd){background:#34533b3b}.chess-moves li span:first-child{color:var(--brass)}.chess-moves li:last-child span:last-child{color:#f4d9a4}.chess-help,.chess-credits{font-size:.8rem}.chess-panel summary{color:#e8e5d1;font-size:.85rem}.chess-panel[open] summary{margin-bottom:1rem}.chess-panel p{margin-bottom:.8rem}.chess-panel p:last-child{margin-bottom:0}.chess-credits a{overflow-wrap:anywhere}.chess-error,.chess-notice{background:#493c22;border:1px solid #c6a669;border-radius:4px;margin:1rem 0;padding:1rem;font-size:.85rem}.chess-error button{margin:.3rem}.chess-dialog{border:1px solid var(--brass);max-width:min(450px,100vw - 30px);color:var(--cream);background:#183925;border-radius:6px;padding:1.5rem;box-shadow:0 25px 90px #000a}.chess-dialog::backdrop{backdrop-filter:blur(3px);background:#030d09b8}.chess-dialog h2{font-size:1.6rem}.chess-dialog p{font-size:.9rem}.chess-promotion-options{grid-template-columns:repeat(4,1fr);gap:.5rem;margin-bottom:1.2rem;display:grid}.chess-promotion-options button{min-width:0;padding:.3rem!important}.chess-promotion-options svg{width:100%;height:auto}.chess-promotion-options span{font-size:.68rem;display:block}.chess-breadcrumb a:focus-visible{outline-offset:3px}@keyframes chess-thinking{to{opacity:.4}}@media (width<=820px){.chess-layout{grid-template-columns:minmax(0,1fr);gap:1rem;max-width:620px;margin:auto}.chess-heading>p{display:none}.chess-sidebar{grid-template-columns:1fr 1fr;padding-top:0;display:grid}.chess-credits,.chess-help{grid-column:1/-1}.chess-heading{margin-top:1.2rem}.chess-player{min-height:54px}.chess-moves{max-height:265px}}@media (width<=480px){.chess-page{padding-inline:12px}.chess-sidebar{display:flex}.chess-panel{padding:1rem}.chess-heading h1{font-size:2.8rem}.chess-status{padding:.7rem}.chess-tools{gap:.4rem}.chess-tools>button{white-space:nowrap;flex:1;padding:.55rem .35rem!important;font-size:.74rem!important}.chess-breadcrumb{font-size:.75rem}.chess-moves{max-height:160px}.chess-captures svg{width:16px;height:20px}}@media (prefers-reduced-motion:reduce){.chess-app.is-busy .chess-status-dot{animation:none}}.st-page{max-width:78rem;padding-top:1.2rem;padding-bottom:3rem}.st-breadcrumb{color:var(--muted-cream);justify-content:space-between;gap:1rem;font-size:.85rem;display:flex}.st-heading{justify-content:space-between;align-items:end;gap:1rem;margin:1.6rem 0 1rem;display:flex}.st-heading h1{margin:0;font-size:clamp(2.5rem,7vw,4rem);line-height:1.1}.st-heading>p{max-width:17rem;color:var(--muted-cream)}.st-overline{letter-spacing:.13em;color:var(--brass);margin:0 0 .4rem;font-size:.65rem}.st-layout{grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:1.8rem;display:grid}.st-table{min-width:0}.st-army{align-items:center;gap:.65rem;min-height:65px;display:flex}.st-army strong,.st-army small{display:block}.st-army strong{font-size:1rem}.st-army small,.st-army>span:last-child{color:var(--muted-cream);font-size:.76rem}.st-army>span:last-child{margin-left:auto}.st-army-emblem{border:1px solid #c7ae7477;border-radius:4px;place-items:center;width:35px;height:38px;font-size:1.6rem;display:grid}.st-board-scroll{overscroll-behavior-x:contain;scrollbar-color:var(--brass) #17251b;border-radius:5px;overflow-x:auto}.st-frame{background:linear-gradient(#35171160, #120906aa), var(--texture) center/var(--wood-grain-size);border:1px solid #8c684b;border-radius:5px;padding:clamp(6px,1.1vw,12px);box-shadow:inset 0 0 0 2px #21120d,inset 0 0 12px #000}.st-board{aspect-ratio:1;border:1px solid #211a10;grid-template-columns:repeat(10,minmax(0,1fr));display:grid}.st-app .st-square{cursor:pointer;aspect-ratio:1;color:#2d3524;touch-action:manipulation;isolation:isolate;border:0;border-radius:0;place-items:center;min-width:0;min-height:0;padding:0;display:grid;position:relative;box-shadow:inset 0 0 0 .5px #4f53394d}.st-app .st-square:before,.st-app .st-square:after{display:none}.st-app .st-square.st-light{background:linear-gradient(135deg,#e5dabb,#cbbd95)}.st-app .st-square.st-dark{background:linear-gradient(135deg,#9ba77e,#7f9269)}.st-app .st-square.st-lake{color:#93b5a2;cursor:default;background:radial-gradient(at 30% 20%,#497e78,#244d4e);box-shadow:inset 0 0 0 1px #9ebbaa30}.st-water{opacity:.5;font-size:clamp(1rem,3vw,2rem);line-height:1}.st-piece{color:#fff0cb;pointer-events:none;border:1px solid #efd5a196;border-radius:18% 18% 10% 10%;flex-direction:column;justify-content:center;align-items:center;width:76%;height:86%;margin-bottom:2%;display:flex;position:relative;box-shadow:0 2px 2px #1b170d66,inset 0 1px 1px #ffffff36,inset 0 -3px 2px #0005}.st-red{color:#fff0cf;background:linear-gradient(135deg,#a75137,#703023 75%)}.st-blue{color:#e6eadc;background:linear-gradient(135deg,#3e6370,#233e49 75%)}.st-piece b{font-family:var(--font-brand);text-shadow:0 1px 1px #0008;font-size:clamp(.83rem,2.5vw,1.65rem);line-height:1}.st-piece-name{max-width:100%;margin-top:4px;font-size:clamp(5px,.65vw,8px);line-height:1}.st-piece svg{width:68%;height:73%}.st-hidden{border-color:#b7c6b984}.st-hidden svg{opacity:.6}.st-known{background:#f6d27b;border:1px solid #644414;border-radius:100%;width:5px;height:5px;position:absolute;top:1px;right:1px}.st-coordinate{color:#333e27;pointer-events:none;z-index:2;font-size:8px;line-height:1;position:absolute}.st-rank{top:1px;left:1px}.st-file{bottom:1px;right:1px}.st-app .st-square.is-last{box-shadow:inset 0 0 0 2px #6b470cb0}.st-app .st-square.is-selected{z-index:1;box-shadow:inset 0 0 0 3px #fff1a9}.st-app .st-square:focus-visible{outline-offset:-3px;z-index:3;outline:3px solid #fff4ad}.st-target{pointer-events:none;background:#163f2be0;border-radius:50%;width:24%;height:24%;position:absolute;box-shadow:0 0 0 2px #f8e7ab}.st-app .st-square.is-attack .st-target{width:90%;height:94%;box-shadow:none;background:0 0;border:3px solid #fff0a7;border-radius:10%}.st-status{border:1px solid var(--green-line);border-left:3px solid var(--brass);background:#0b2018d9;border-radius:3px;padding:1rem 1.1rem}.st-status strong{font-size:1.35rem;display:block}.st-status p{color:var(--muted-cream);margin:.35rem 0 0;font-size:.85rem}.st-status .st-overline{display:block}.st-game-ended{background:#2f4326;border-color:#d6ba7e}.st-setup{grid-template-columns:1fr 1.2fr;gap:.7rem;margin-top:.8rem;display:grid}.st-app button:not(.st-square){font-family:var(--font-brand);cursor:pointer;min-height:44px;padding:.65rem .8rem;font-size:.85rem;line-height:1.3}.st-app button:not(.st-square):not(.action--wood){border:1px solid var(--green-line);color:var(--cream);background:#143323;border-radius:4px}.st-app button:not(.st-square):hover:not(:disabled){border-color:var(--brass)}.st-app .st-primary{color:#fff0d2;border-color:#c7ac70}.st-selection{min-height:2.9em;color:var(--muted-cream);margin:.8rem 0;font-size:.79rem;line-height:1.5}.st-toolbar{flex-wrap:wrap;gap:.55rem;display:flex}.st-toolbar>button{white-space:nowrap;flex:1;padding:.6rem .7rem}.st-save,.st-pan{color:var(--muted-cream);font-size:.74rem}.st-sidebar{gap:.85rem;padding-top:.7rem;display:grid}.st-panel{border:1px solid var(--green-line);background:#102d20ed;border-radius:4px;padding:1.1rem;font-size:.85rem}.st-panel h2{margin:0 0 1rem;font-size:1.35rem}.st-panel h3{margin:1rem 0 .5rem;font-size:.9rem}.st-panel p{color:var(--muted-cream);margin:.8rem 0 0;font-size:.83rem}.st-panel p:first-child{margin-top:0}.st-panel summary{cursor:pointer;min-height:25px;font-size:1rem;font-weight:700}.st-panel summary:focus-visible{outline:2px solid var(--focus);outline-offset:4px}.st-settings label{margin-bottom:.35rem;font-size:.82rem;display:block}.st-settings select{border:1px solid var(--green-line);width:100%;min-height:44px;color:var(--cream);font-family:var(--font-brand);background:#091e15;padding:.5rem}.st-rank-list{grid-template-columns:1fr 1fr;gap:.45rem .8rem;margin-top:1rem;display:grid}.st-rank-list>div{align-items:center;gap:.4rem;font-size:.7rem;display:flex}.st-rank-list>div>span{color:#eed29b;background:#18291c;border:1px solid #698262;border-radius:3px;place-items:center;width:1.5rem;height:1.5rem;display:grid}.st-rank-list small{color:var(--muted-cream);margin-left:auto}.st-battle{color:var(--muted-cream);font-size:.85rem}.st-battle-pieces{justify-content:center;align-items:center;gap:1.4rem;display:flex}.st-battle-pieces .st-piece{width:49px;height:59px}.st-battle-pieces .st-piece b{font-size:1.6rem}.st-battle-pieces .st-piece-name{font-size:7px}.st-log{max-height:17rem;padding-left:1.2rem;font-size:.8rem;overflow-y:auto}.st-log li{border-bottom:1px solid #4b664841;padding:.45rem 0}.st-captured{color:var(--muted-cream);flex-wrap:wrap;gap:.4rem;font-size:.78rem;display:flex}.st-captured-piece{background:#071b13;border:1px solid #446246;border-radius:3px;padding:.25rem .45rem}.st-dialog{color:var(--cream);border:1px solid var(--brass);background:#102c20;border-radius:5px;width:min(27rem,100% - 2rem);padding:1.4rem}.st-dialog::backdrop{background:#030b08c9}.st-dialog h2{font-size:1.5rem}.st-dialog p{color:var(--muted-cream)}.st-app [hidden]{display:none!important}.st-app button:disabled{opacity:.55;cursor:not-allowed}@media (width<=900px){.st-layout{grid-template-columns:minmax(0,1fr);gap:1rem}.st-heading{align-items:start}.st-heading>p{max-width:11rem;font-size:.82rem}.st-table{width:100%;max-width:660px;margin-inline:auto}.st-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.st-piece b{font-size:clamp(1rem,4vw,1.8rem)}.st-piece-name{font-size:clamp(5px,1.3vw,8px)}}@media (width<=520px){.st-page{padding-inline:.65rem}.st-sidebar{grid-template-columns:minmax(0,1fr)}.st-frame{padding:5px}.st-piece{border-radius:4px 4px 2px 2px;width:78%;height:86%}.st-piece-name{display:none}.st-piece b{font-size:clamp(13px,4.2vw,20px)}.st-known{width:4px;height:4px;top:0;right:0}.st-coordinate{font-size:6px}.st-army{min-height:58px}.st-army strong{font-size:.9rem}.st-army small,.st-army>span:last-child{font-size:.7rem}.st-heading>p{max-width:8rem;font-size:.74rem}.st-status{padding:.8rem}.st-status strong{font-size:1.2rem}.st-app .st-toolbar>button{font-size:.76rem}.st-board-scroll.is-zoomed .st-frame{min-width:490px}.st-board-scroll.is-zoomed .st-piece b{font-size:23px}.st-board-scroll.is-zoomed .st-piece-name{font-size:6px;display:block}}@media (prefers-reduced-motion:reduce){.st-app *{scroll-behavior:auto}}@media (forced-colors:active){.st-piece{border:2px solid buttontext}.st-square.is-selected,.st-square.is-legal{outline-offset:-2px;outline:2px solid highlight}}
