:root{--bg:#f6f3ee;--fg:#1f1d1a;--muted:#6b655c;--panel:#fff;--line:#e3ddd3;--accent:#b5532d;--ok:#2f7a4b;--warn:#b5532d;--wood:#e2b979;--grid:#5b4326;--btn:#f1ece4;--btn-hover:#e7dfd3;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#161513;--fg:#ece7df;--muted:#a39b8f;--panel:#1f1d1a;--line:#34302b;--accent:#e0875f;--ok:#6cc28c;--warn:#e0875f;--wood:#c99a5b;--grid:#3d2b16;--btn:#2a2723;--btn-hover:#36322d;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}body{background:var(--bg);color:var(--fg);margin:0;padding:0 16px;font:15px/1.5 -apple-system,BlinkMacSystemFont,PingFang SC,Noto Sans SC,Segoe UI,sans-serif}.top{align-items:baseline;gap:12px;max-width:1120px;margin:0 auto;padding:18px 0 8px;display:flex}.top h1{letter-spacing:.04em;margin:0;font-size:22px}.rule{color:var(--muted);font-size:13px}.layout{grid-template-columns:minmax(0,1fr) 320px;align-items:start;gap:20px;max-width:1120px;margin:0 auto;display:grid}.board-wrap{justify-self:center;width:100%;max-width:min(760px,100vh - 120px)}.board{touch-action:manipulation;-webkit-user-select:none;user-select:none;cursor:pointer;width:100%;height:auto;display:block}.board.locked{cursor:default}.board .wood{fill:var(--wood)}.board .grid line{stroke:var(--grid);stroke-width:1.2px}.board .star{fill:var(--grid)}.board .label{fill:var(--grid);text-anchor:middle;dominant-baseline:central;opacity:.85;font-size:13px}.stone.black{fill:#1c1b19;stroke:#000;stroke-width:1px}.stone.white{fill:#fbfaf7;stroke:#8d8577;stroke-width:1px}.num{text-anchor:middle;dominant-baseline:central;pointer-events:none;font-size:15px;font-weight:600}.num.on-black{fill:#f4efe6}.num.on-white{fill:#1c1b19}.num.last,.last-dot{fill:#e0472a}.win-line{stroke:#e0472a;stroke-width:5px;stroke-linecap:round;opacity:.85}.ghost{opacity:.55;stroke-width:2.5px;stroke-dasharray:5 3;stroke:#e0472a!important}.ghost.black{fill:#1c1b19;stroke:#000}.ghost.white{fill:#fff;stroke:#5b4326}.ghost-num{font-size:16px;font-weight:700}.hover{opacity:.35;pointer-events:none}.hover.black{fill:#1c1b19}.hover.white{fill:#fff}.panel{background:var(--panel);border:1px solid var(--line);border-radius:12px;flex-direction:column;gap:14px;padding:14px 16px;display:flex}.status{align-items:center;gap:8px;min-height:24px;font-size:16px;display:flex}.dot{border:1px solid #8d8577;border-radius:50%;width:14px;height:14px;display:inline-block}.dot.b{background:#1c1b19}.dot.w{background:#fbfaf7}.group{border-top:1px solid var(--line);flex-direction:column;gap:8px;padding-top:12px;display:flex}.group h2{color:var(--muted);margin:0;font-size:14px;font-weight:600}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.row[hidden]{display:none}button,select,textarea{font:inherit;color:inherit}button{background:var(--btn);border:1px solid var(--line);cursor:pointer;border-radius:8px;padding:5px 12px}button:hover:not(:disabled){background:var(--btn-hover)}button:disabled{opacity:.45;cursor:default}.nav button{min-width:44px}select,textarea{background:var(--bg);border:1px solid var(--line);border-radius:8px;width:100%;padding:6px 8px}textarea{resize:vertical;font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:13px}.check{color:var(--muted);align-items:center;gap:4px;font-size:14px;display:flex}.hint{color:var(--muted);word-break:break-word;margin:0;font-size:13px}.hint:empty{display:none}.hint.ok{color:var(--ok)}.hint.warn{color:var(--warn)}.moves{counter-reset:mv;grid-template-columns:repeat(auto-fill,minmax(62px,1fr));gap:4px;max-height:168px;margin:0;padding:0;list-style:none;display:grid;overflow-y:auto}.moves li{counter-increment:mv}.moves button{width:100%;padding:2px 4px;font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:13px}.moves button:before{content:counter(mv) ". ";color:var(--muted)}.moves button.cur{border-color:var(--accent);color:var(--accent)}.moves button.future{opacity:.5}.foot{max-width:1120px;color:var(--muted);margin:20px auto;font-size:13px}.foot a{color:inherit;margin-left:8px}@media (width<=860px){.layout{grid-template-columns:minmax(0,1fr)}.board-wrap{max-width:100%}}
