:root{color-scheme:light dark;--bg: #f4efe6;--fg: #1f1b16;--muted: #6b6257;--panel: #ffffff;--accent: #2f6f4f;--accent-fg: #ffffff;--danger: #a3361f;--line: #d9cfbf;font-family:system-ui,-apple-system,Segoe UI,Roboto,Noto Sans,Noto Sans CJK JP,Noto Sans KR,Noto Sans SC,sans-serif}@media(prefers-color-scheme:dark){:root{--bg: #1b1a18;--fg: #f1ece4;--muted: #a99f92;--panel: #262421;--accent: #4f9a72;--line: #3a3631}}*{box-sizing:border-box}body{margin:0;min-height:100svh;background:var(--bg);color:var(--fg)}#app{max-width:1100px;margin:0 auto;padding:12px}.btn{font:inherit;font-size:15px;min-height:44px;padding:8px 16px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--fg);cursor:pointer}.btn:disabled{opacity:.45;cursor:default}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-fg);font-weight:600}.btn-armed{background:var(--danger);border-color:var(--danger);color:#fff}.btn:focus-visible,.chip:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.menu{max-width:520px;margin:0 auto;display:flex;flex-direction:column;gap:14px}.menu h1{font-size:40px;margin:8px 0 0}.tagline,.note{color:var(--muted);margin:0}.choice{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}.choice legend{font-weight:600;margin-bottom:6px}.chip{font:inherit;min-height:44px;padding:8px 16px;border-radius:999px;border:1px solid var(--line);background:var(--panel);color:var(--fg);cursor:pointer}.chip[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 0 0 2px var(--accent);font-weight:600}.toggles{display:flex;gap:18px}.toggle{display:flex;align-items:center;gap:6px;min-height:44px}.btn-play{font-size:18px;min-height:52px}.game{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}@media(min-width:860px)and (orientation:landscape){.game{grid-template-columns:minmax(0,1fr) 300px;align-items:start}}.board-host{min-width:0}.side{display:flex;flex-direction:column;gap:10px}.players{display:flex;gap:10px}.player{flex:1;display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:10px;background:var(--panel);border:1px solid var(--line)}.game[data-turn=black] .player-black,.game[data-turn=white] .player-white{box-shadow:inset 0 0 0 2px var(--accent)}.stone-icon{width:18px;height:18px;border-radius:50%;flex:none}.stone-black{background:radial-gradient(circle at 35% 30%,#6b6b6b,#0b0b0b)}.stone-white{background:radial-gradient(circle at 35% 30%,#fff,#cfcac0);border:1px solid #888}.player-name{font-weight:600}.player-captures{margin-left:auto;color:var(--muted);font-size:14px;white-space:nowrap}.turn{min-height:22px;color:var(--muted)}.controls{display:flex;flex-wrap:wrap;gap:8px}.controls .btn{flex:1 1 auto}.vertex-form{display:flex;gap:8px}.vertex-form input{flex:1;min-width:0;font:inherit;min-height:44px;padding:8px 12px;border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--fg);text-transform:uppercase}.counting,.result{padding:12px;border-radius:12px;background:var(--panel);border:1px solid var(--line);display:flex;flex-direction:column;gap:8px}.result h2{margin:0}.count-line{font-weight:600}.status{min-height:22px;margin:0;color:var(--muted)}.link{font:inherit;background:none;border:0;padding:8px 0;color:var(--muted);text-decoration:underline;cursor:pointer;align-self:flex-start}.notices{max-width:760px;margin:0 auto}.notice{padding:10px 0;border-top:1px solid var(--line)}.notice h3{margin:0 0 4px;font-size:16px}.notice a{color:var(--accent)}.notice-licence{font-weight:600;margin:0}.notice-text{font-size:13px;color:var(--muted)}.nav{display:flex;gap:6px}.btn-nav{flex:1;min-width:44px}.game[data-view]:not([data-view=""]) .board-host{outline:3px dashed var(--muted);outline-offset:4px;border-radius:12px}body.gb-contrast{--bg: #ffffff;--fg: #000000;--muted: #222222;--panel: #ffffff;--line: #000000;--accent: #0b5d1e}[hidden]{display:none!important}.gb{--gb-wood: #dcb35c;--gb-wood-edge: #c99a42;--gb-line: #3b2a14;--gb-coord: #4a3519;--gb-ko: #b3261e;--gb-black-territory: #111;--gb-white-territory: #fafafa;position:relative;width:100%;max-width:min(100%,92svh);margin:0 auto;aspect-ratio:1;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}.gb-svg{display:block;width:100%;height:100%}.gb-wood{fill:var(--gb-wood);stroke:var(--gb-wood-edge);stroke-width:6}.gb-grid line{stroke:var(--gb-line);stroke-width:3;stroke-linecap:square}.gb-star{fill:var(--gb-line)}.gb-coords text{fill:var(--gb-coord);font:600 34px system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.gb-shadow{fill:#00000047}.gb-white .gb-body{stroke:#00000059;stroke-width:2}.gb-stone.gb-new{animation:gb-place .12s ease-out}@keyframes gb-place{0%{transform:scale(.75);opacity:.4}to{transform:scale(1);opacity:1}}.gb-stone.gb-fading{opacity:0;transition:opacity .22s ease-in}.gb-stone.gb-dead{opacity:.45}.gb-last{fill:none;stroke-width:7}.gb-last.gb-on-black{stroke:#f2f2f2}.gb-last.gb-on-white{stroke:#1a1a1a}.gb-ko{fill:none;stroke:var(--gb-ko);stroke-width:7}.gb-territory.gb-black{fill:var(--gb-black-territory)}.gb-territory.gb-white{fill:var(--gb-white-territory);stroke:#333;stroke-width:2}.gb-ghost{opacity:0;pointer-events:none}.gb-active .gb-ghost.gb-black{fill:#111;opacity:.45}.gb-active .gb-ghost.gb-white{fill:#fff;opacity:.6}.gb-active .gb-ghost.gb-ghost-illegal{opacity:0}.gb-marking .gb-stone{cursor:pointer}.gb-loupe{position:absolute;width:132px;height:132px;margin:-170px 0 0 -66px;border-radius:50%;overflow:hidden;border:3px solid #fff;box-shadow:0 6px 18px #00000059;pointer-events:none;background:var(--gb-wood)}.gb-loupe-svg{width:100%;height:100%}.gb.gb-contrast,.gb-contrast .gb{--gb-wood: #ffffff;--gb-wood-edge: #000000;--gb-line: #000000;--gb-coord: #000000}.gb-contrast .gb-grid line{stroke-width:5}@media(prefers-contrast:more){.gb{--gb-wood: #ffffff;--gb-line: #000000;--gb-coord: #000000}}@media(prefers-reduced-motion:reduce){.gb-stone.gb-new{animation:none}.gb-stone.gb-fading{transition:none}}
