:root{--bg:#f4efe6;--surface:#fffdf8;--text:#221d16;--muted:#6b6255;--border:#d9cfbf;--accent:#7a4a1e;--accent-text:#fffdf8;--error:#a32020;--focus:#1a73e8;--board-bg:#3b3026;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.45}@media (prefers-color-scheme:dark){:root{--bg:#17140f;--surface:#221e18;--text:#efe8dc;--muted:#a99f8f;--border:#3d362c;--accent:#d39a5c;--accent-text:#17140f;--error:#ff8a80;--focus:#8ab4f8;--board-bg:#0f0d0a}}*{box-sizing:border-box}body{background:var(--bg);margin:0}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.site-header{border-bottom:1px solid var(--border);background:var(--surface);align-items:center;gap:1.5rem;padding:.6rem 1rem;display:flex}.brand{letter-spacing:.02em;font-weight:700}.site-header nav a{color:var(--text);border-bottom:2px solid #0000;padding:.25rem 0;text-decoration:none}.site-header nav a[aria-current=page]{border-bottom-color:var(--accent)}main{padding:1rem}.game{align-items:flex-start;gap:1rem;max-width:1200px;margin:0 auto;display:flex}.board-area{background:var(--board-bg);border-radius:12px;flex:auto;min-width:0;position:relative}.hex-board{touch-action:manipulation;width:100%;height:min(100dvh - 6rem,1000px);min-height:320px}.hex-board canvas{display:block}.panel{border:1px solid var(--border);background:var(--surface);border-radius:12px;flex-direction:column;flex:0 0 300px;gap:1rem;padding:1rem;display:flex}.panel p{margin:0}.status{font-size:1.15rem;font-weight:600}.status.over{color:var(--accent)}.notice,.muted{color:var(--muted)}.notice:empty{display:none}.error{color:var(--error)}.row{gap:.5rem;display:flex}.controls{flex-direction:column;gap:.6rem;display:flex}label{flex-direction:column;gap:.25rem;display:flex}label.check{flex-direction:row;align-items:center;gap:.4rem}fieldset{border:1px solid var(--border);border-radius:8px;margin:0;padding:.4rem .75rem .6rem}input,select,button{font:inherit;border-radius:8px;min-height:2.5rem}input[type=checkbox],input[type=radio]{width:1.1rem;height:1.1rem;min-height:auto;accent-color:var(--accent)}input:not([type]),select{border:1px solid var(--border);background:var(--bg);color:var(--text);padding:.3rem .6rem}.typed-move input{flex:1;min-width:0}button{border:1px solid var(--accent);background:var(--accent);color:var(--accent-text);cursor:pointer;padding:.3rem .9rem}button.secondary{color:var(--text);border-color:var(--border);background:0 0}button:disabled{opacity:.45;cursor:not-allowed}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.promotion{border:1px solid var(--border);background:var(--surface);border-radius:10px;flex-wrap:wrap;justify-content:center;align-items:center;gap:.5rem;padding:.6rem .8rem;display:flex;position:absolute;bottom:1rem;left:50%;transform:translate(-50%);box-shadow:0 6px 24px #00000059}.promotion button{text-transform:capitalize}.moves h2{margin:0 0 .4rem;font-size:1rem}.moves ol{font-variant-numeric:tabular-nums;max-height:14rem;margin:0;padding:0;list-style:none;overflow-y:auto}.moves li{grid-template-columns:2.5rem 1fr 1fr;padding:.1rem 0;display:grid}.moves .n{color:var(--muted)}@media (width<=800px){main{padding:.5rem}.game{flex-direction:column;align-items:stretch}.hex-board{height:min(112vw,100dvh - 9rem)}.panel{flex-basis:auto}}.lobby{max-width:28rem;margin:1rem auto}.lobby h2{margin:0;font-size:1.2rem}.lobby a{color:var(--accent)}.players p{align-items:center;gap:.45rem;margin:.15rem 0;display:flex}.players .to-move{font-weight:600}.dot{border-radius:50%;flex:none;width:.6rem;height:.6rem;display:inline-block}.dot.on{background:#2e9d48}.dot.off{background:#d08a1c}.dot.empty{border:1px solid var(--muted)}.invite input{flex:1;min-width:0}.offer{border:1px solid var(--accent);border-radius:8px;flex-direction:column;gap:.4rem;padding:.6rem;display:flex}.site-header nav{gap:1rem;display:flex}
