:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:#f3eee3;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--panel:#102224d1;--panel-border:#dfbf8738;--accent:#d8a04f;--accent-soft:#d8a04f2e;--light-square:#e5d4b1;--dark-square:#876443;--highlight:#97d9ae;--danger:#f28f6b;--muted:#ccbfa6;background:radial-gradient(circle at top,#ca965247,#0000 30%),linear-gradient(#102224 0%,#0d1718 100%);font-family:Alegreya Sans,Trebuchet MS,sans-serif;font-weight:400;line-height:1.5}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button{border:1px solid var(--panel-border);color:#fff7e8;font:inherit;cursor:pointer;background:linear-gradient(#d8a04f4d,#d8a04f26);border-radius:999px;padding:.75rem 1.2rem;transition:transform .12s,border-color .12s,background .12s}button:hover:enabled{border-color:#d8a04f73;transform:translateY(-1px)}button:disabled{cursor:not-allowed;opacity:.45}#root{min-height:100vh}.app-shell{max-width:1380px;margin:0 auto;padding:2rem 1.2rem 3rem}.hero-panel{justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1.5rem;display:flex}.eyebrow{text-transform:uppercase;letter-spacing:.18em;color:var(--accent);margin:0 0 .4rem;font-size:.8rem}h1{margin:0;font-family:Georgia,Times New Roman,serif;font-size:clamp(2.2rem,4vw,3.6rem);line-height:.95}.subtitle{color:var(--muted);margin:.7rem 0 0;font-size:1.05rem}.hero-actions{flex-wrap:wrap;gap:.75rem;display:flex}.layout-grid{grid-template-columns:minmax(0,1.35fr) minmax(310px,.8fr);align-items:start;gap:1.25rem;display:grid}.board-panel,.panel{background:var(--panel);border:1px solid var(--panel-border);border-radius:28px;box-shadow:0 20px 60px #00000038}.board-panel{padding:1rem}.sidebar{gap:1rem;display:grid}.panel{padding:1rem 1.1rem}.panel h3{margin:0 0 .6rem;font-family:Georgia,Times New Roman,serif;font-size:1.05rem}.muted{color:var(--muted)}.status-line{margin:0}.status-line strong{color:#fff7e8}.turn-indicator{align-items:center;gap:.55rem;margin:0;display:flex}.turn-dot{border:1px solid #ffffff59;border-radius:50%;width:.8rem;height:.8rem;display:inline-block}.turn-dot.white{background:#fff1cf}.turn-dot.black{background:#251d18}.captured-list{flex-wrap:wrap;gap:.5rem;display:flex}.captured-pill{border:1px solid var(--panel-border);background:#ffffff0a;border-radius:999px;padding:.32rem .65rem}.history-list{gap:.45rem;max-height:320px;margin:0;padding:0;list-style:none;display:grid;overflow:auto}.history-item{border-bottom:1px solid #ffffff0f;grid-template-columns:3rem minmax(0,1fr);align-items:start;gap:.75rem;padding-bottom:.35rem;display:grid}.history-item:last-child{border-bottom:0;padding-bottom:0}.history-turn{color:var(--muted)}.round-board{width:100%;height:auto;display:block}.board-frame{fill:#fff7e808;stroke:#dfbf874d;stroke-width:2px}.file-label,.rank-label{fill:#f7ecdc;letter-spacing:.12em;text-transform:lowercase;font-size:16px}.rank-label{text-anchor:middle}.piece-symbol{text-anchor:middle;dominant-baseline:central;pointer-events:none;font-family:"Noto Sans Symbols 2",Segoe UI Symbol,Apple Symbols,serif;font-size:30px}.piece-symbol.white{fill:#fff9ec;paint-order:stroke;stroke:#22170fb3;stroke-width:1.2px}.piece-symbol.black{fill:#1d1713;paint-order:stroke;stroke:#fff1cf73;stroke-width:.9px}.square-overlay{cursor:pointer}.selection-ring{fill:none;stroke:var(--highlight);stroke-width:4px}.legal-target{fill:#97d9aee6;stroke:#102224b3;stroke-width:1.5px}.capture-target{fill:none;stroke:var(--danger);stroke-width:4px}.promotion-backdrop{background:#060808a6;place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.promotion-dialog{border:1px solid var(--panel-border);background:#102224;border-radius:24px;width:min(420px,100%);padding:1.2rem;box-shadow:0 24px 70px #00000059}.promotion-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:1rem 0;display:grid}.promotion-card{border:1px solid var(--panel-border);text-align:left;border-radius:18px;padding:.9rem}.promotion-card strong{margin-bottom:.2rem;display:block}.dialog-actions{justify-content:end;display:flex}@media (width<=1040px){.layout-grid{grid-template-columns:1fr}}@media (width<=700px){.app-shell{padding:1.2rem .8rem 2rem}.hero-panel{flex-direction:column;align-items:start}.board-panel{padding:.4rem}}
