:root{--bg: #ffffff;--panel: #ffffff;--panel-2: #f4f4f5;--line: #e4e4e7;--text: #18181b;--muted: #71717a;--accent: #27272a;--green: #22a565;--red: #e5484d;--light: #ededed;--dark: #b4b4b4;--radius: 10px}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font:15px/1.4 Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased;-webkit-user-select:none;user-select:none}button,input{font:inherit;color:inherit}input{background:var(--panel-2);border:1px solid var(--line);border-radius:8px;padding:11px 12px;outline:none;width:100%}input:focus{border-color:var(--accent)}button{background:var(--panel-2);border:1px solid var(--line);border-radius:8px;padding:10px 16px;cursor:pointer;transition:background .15s,border-color .15s,opacity .15s}button:hover:not(:disabled){border-color:#a1a1aa}button:disabled{opacity:.35;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}button.primary:hover:not(:disabled){background:#3f3f46}button.icon{width:38px;height:38px;padding:0;font-size:20px;line-height:1;display:grid;place-items:center}button.wide{width:100%;margin-top:16px;padding:12px}.center{height:100%;display:grid;place-items:center}.muted{color:var(--muted)}.grow{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stack{display:flex;flex-direction:column;gap:10px}.spinner{width:22px;height:22px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--accent);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.page{max-width:520px;margin:0 auto;padding:48px 16px}.bar{display:flex;align-items:center;gap:12px;margin-bottom:20px}.bar h1{font-size:22px;font-weight:600;margin:0;flex:1;letter-spacing:-.01em}.list{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.row{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--panel)}.row+.row{border-top:1px solid var(--line)}.row.clickable{cursor:pointer}.row.clickable:hover{background:#fafafa}.row.empty{justify-content:center}.row.me{font-weight:600}.row.ghost{color:var(--muted)}.tag{font-size:12px;padding:2px 8px;border-radius:99px;background:var(--panel-2);border:1px solid var(--line);color:var(--muted)}.dot{width:8px;height:8px;border-radius:50%;background:var(--line);flex:none}.dot.host{background:var(--accent)}.row:not(.ghost) .dot:not(.host){background:var(--green)}.pulse{animation:pulse 1.4s ease-in-out infinite;letter-spacing:2px}@keyframes pulse{50%{opacity:.3}}.backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#18181b47;display:grid;place-items:center;padding:16px;z-index:10;animation:fadein .15s}.backdrop.soft{background:#ffffff73}.modal{width:100%;max-width:320px;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:0 12px 40px #0000001f}@keyframes fadein{0%{opacity:0}}.seg{display:flex;gap:6px}.seg button{flex:1}.seg button.on{border-color:var(--accent);background:var(--panel);font-weight:600}.result{text-align:center;display:flex;flex-direction:column;gap:16px}.big{font-size:30px;font-weight:600;letter-spacing:-.02em}.big.win{color:var(--green)}.big.lose{color:var(--red)}.game{--size: min(92vw, calc(100vh - 210px) , 640px);height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:12px}.player{width:var(--size);display:flex;align-items:center;gap:10px;font-weight:500}.player.top{color:var(--muted);flex-wrap:wrap;column-gap:18px;row-gap:4px}.opp{display:inline-flex;align-items:center;gap:8px}.opp.dead{opacity:.4;text-decoration:line-through}.swatch{width:14px;height:14px;border-radius:4px;border:1px solid var(--line)}.swatch.white{background:#fff;border-color:#a1a1aa}.swatch.black{background:#27272a;border-color:#27272a}.points{font-size:22px;font-weight:600;font-variant-numeric:tabular-nums}.points:before{content:"";display:inline-block;width:12px;height:12px;border-radius:50%;background:#fff;margin-right:8px;vertical-align:1px;box-shadow:inset 0 0 0 2px var(--text)}.board{width:var(--size);height:var(--size);flex:none;display:grid;grid-template:repeat(8,minmax(0,1fr)) / repeat(8,minmax(0,1fr));border-radius:8px;overflow:hidden;box-shadow:0 0 0 1px var(--line),0 8px 30px #00000014}.sq{position:relative;cursor:pointer}.sq.light{background:var(--light)}.sq.dark{background:var(--dark)}.sq.fog:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:#27272a80;pointer-events:none}.sq.spawn:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:#3dd68c80;box-shadow:inset 0 0 0 2px #3dd68ce6}.sq.sel:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:#18181b1a;box-shadow:inset 0 0 0 3px var(--accent)}.sq.target:before{content:"";position:absolute;top:36%;right:36%;bottom:36%;left:36%;border-radius:50%;background:#18181b4d}.sq.capture:before{content:"";position:absolute;top:4%;right:4%;bottom:4%;left:4%;border-radius:50%;box-shadow:inset 0 0 0 calc(var(--size) / 110) #e5484dbf}.sq.check:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle,rgba(229,72,77,.85) 0%,rgba(229,72,77,.35) 45%,transparent 72%);animation:glow 1s ease-in-out infinite}@keyframes glow{50%{opacity:.45}}.piece{display:block;pointer-events:none}.sq>.piece{position:absolute;z-index:1;top:6%;right:6%;bottom:6%;left:6%;width:88%;height:88%}.cd{position:absolute;z-index:2;top:4%;right:4%;bottom:4%;left:4%;width:92%;height:92%;pointer-events:none;transform:rotate(-90deg);animation:cdout .6s ease-out forwards}.cd circle{fill:none;stroke-width:3.2}.cd-track{stroke:#e5484d2e}.cd-fill{stroke:var(--red);stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;animation-name:cdfill;animation-timing-function:linear;animation-fill-mode:forwards}.cd-done{stroke:var(--green);opacity:0;animation:cdshow 1ms forwards}@keyframes cdfill{to{stroke-dashoffset:0}}@keyframes cdshow{to{opacity:1}}@keyframes cdout{0%{opacity:1}to{opacity:0}}.units{display:flex;gap:8px;margin-top:4px;flex-wrap:wrap;justify-content:center}.unit{display:flex;align-items:center;gap:6px;padding:6px 12px 6px 8px;background:var(--panel-2)}.unit .piece{width:32px;height:32px}.unit .cost{font-weight:600;font-variant-numeric:tabular-nums;color:var(--muted)}.unit.on{border-color:var(--green);background:#22a5651a}.unit.on .cost{color:var(--green)}
