:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#f4f3e9;background:#0b202c;font-synthesis:none;color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 15%,#1a4051,#0b202c 65%);min-width:320px}button,summary{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:1px solid #49616b;color:#f4f3e9;background:#1b3947;border-radius:10px;min-height:46px;padding:10px 14px;touch-action:manipulation}button:hover{background:#284b5b}button:focus-visible,summary:focus-visible{outline:3px solid #ffd78a;outline-offset:3px}button:disabled{cursor:default;opacity:.6}.app{max-width:760px;margin:auto;padding:24px 20px max(24px,env(safe-area-inset-bottom))}header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:24px}.brand{display:flex;gap:12px;align-items:center}.brand-mark{font-size:42px;color:#7cd4da;line-height:1}h1{font-size:25px;letter-spacing:-1px;margin:0;font-weight:650}h1 span{font-weight:350;color:#91c6cb;margin-left:3px}.brand p{font-size:9px;letter-spacing:2px;margin:4px 0 0;color:#a4bfc7}.version{font-size:9px;letter-spacing:1.5px;color:#9eb8c0;white-space:nowrap}.status-card{border:1px solid #43606b;border-radius:16px;background:#153442d9;padding:20px 22px;margin-bottom:16px}.status-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#a4bec6;gap:8px}.player{font-weight:650;color:#f5f5ee;display:flex;align-items:center;gap:8px}.player:before{content:"";width:10px;height:10px;border-radius:50%;background:#438ff6;box-shadow:0 0 0 4px #438ff61c}.player[data-player="1"]:before{background:#f28067;box-shadow:0 0 0 4px #f280671c}h2{font-size:23px;font-weight:550;letter-spacing:-.5px;margin:16px 0 8px}.status-card p{font-size:13px;line-height:1.6;color:#b8cdd2;margin:0;min-height:42px}.board-shell{overflow:hidden;border-radius:18px;border:1px solid #355463;background:#112e40}.board-caption{display:flex;justify-content:space-between;padding:16px 18px 0;font-size:9px;letter-spacing:2px;color:#8eafb9}#phase-tag{color:#d3d8bd}#board{height:clamp(340px,54svh,560px);width:100%;display:flex;align-items:center;justify-content:center}canvas{display:block;width:100%;height:100%;touch-action:none}.board-footer{display:flex;gap:16px;align-items:center;justify-content:center;padding:0 12px 17px;color:#a4c0c8;font-size:10px}.board-footer span{display:flex;align-items:center;gap:5px}.dot{width:6px;height:6px;border-radius:50%;display:inline-block}.move-dot{background:#36edcf}.build-dot{background:#ffc759}.toolbar{display:flex;gap:10px;margin-top:14px}.toolbar button{flex:1;font-size:12px}.toolbar #new{background:#e0d5ad;color:#182e35;border-color:#e0d5ad;font-weight:650}.toolbar #new:hover{background:#f1e8cb}.message{color:#ffd78a;line-height:1.5;font-size:12px;min-height:18px;margin:12px 0}details{border-top:1px solid #2c4a57;padding:14px 0;color:#b3c8cf;font-size:12px;line-height:1.8}summary{cursor:pointer;color:#e0e8e6;min-height:26px;font-weight:600}ol{padding-left:20px}li{margin:8px 0}.cell-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin-top:10px}.cell-grid button{font-size:10px;padding:6px 2px;min-height:48px;border-radius:7px}.cell-grid button.legal-move{border-color:#36edcf;color:#7cf6df;background:#154a4c}.cell-grid button.legal-build{border-color:#ffc759;color:#ffdc98;background:#504831}.cell-grid button.selected{outline:2px solid white}.cell-grid button:disabled{opacity:.65}footer{text-align:center;color:#6e939f;font-size:10px;margin-top:16px;letter-spacing:.5px}dialog{max-width:calc(100% - 32px);width:360px;background:#173746;color:#f4f3e9;border:1px solid #78939d;border-radius:18px;padding:24px}dialog::backdrop{background:#02121bd9}dialog h2{margin-top:0}dialog p{color:#b8cdd2;font-size:14px}dialog form{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}.primary{background:#e0d5ad;color:#182e35}@media(max-width:420px){.app{padding:12px 8px 24px}header{margin-bottom:14px}.version{font-size:8px;letter-spacing:.5px}.status-card{padding:14px;margin-bottom:12px}h2{font-size:21px}.board-footer{gap:10px;font-size:9px}.brand-mark{font-size:36px}h1{font-size:23px}#board{height:clamp(340px,54svh,500px)}}
