:root{--ground: #000000;--surface: #111111;--raised: #2a2a2a;--border: #1a1a1a;--rule: #1a1a1a;--control: #444444;--text: #ffffff;--muted: #b4b4b4;--faint: #949494;--nav: #bbbbbb;--accent: #c9a96b;--negative: #e5484d;--neg-ink: #f2777b;--warning: #e5a93b;--positive: #6fcf97;--pill-pos-bg: #14281c;--pill-pos-ink: #7fd8a0;--pill-neg-bg: #2c1a20;--pill-neg-ink: #f2777b;--pill-warn-bg: #2b2414;--pill-warn-ink: #e5a93b;--pill-neu-bg: #222222;--pill-neu-ink: #ffffff;--sq-lt: #e4d9bf;--sq-dk: #6b5a40;--co-lt: #4a3b22;--co-dk: #f1e8d3;--radius-card: 20px;--gap: 14px;--pad: 22px;--h: 36px;--side: 210px;--top: 64px;color-scheme:dark}*{box-sizing:border-box}html{background:var(--ground)}body{margin:0;background:var(--ground);color:var(--text);font:400 14px/1.5 Inter Variable,Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit;color:inherit}button{background:none;border:0;cursor:pointer;padding:0}button:disabled{cursor:not-allowed}a{color:inherit;text-decoration:none}:focus-visible{outline:2px solid #fff;outline-offset:2px}h1,h2,h3,p{margin:0}h1{font-size:20px;line-height:1.3;font-weight:600;letter-spacing:-.01em}h2{font-size:16px;line-height:1.4;font-weight:600}.small{font-size:13px}.muted{color:var(--muted)}.faint{color:var(--faint)}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}[hidden]{display:none!important}.ic{width:16px;height:16px;flex:none}.shell{display:grid;grid-template-columns:var(--side) minmax(0,1fr);grid-template-rows:var(--top) 1fr;min-height:100vh}.side{grid-row:1 / 3;border-right:1px solid var(--rule);display:flex;flex-direction:column;padding:0 12px 16px;min-width:0}.brand{height:var(--top);display:flex;align-items:center;padding:0 8px;font-size:16px;color:var(--text)}.brand .sa-word{font-size:16px;font-weight:600}.nav{display:flex;flex-direction:column;gap:0;margin-top:8px}.nav a{height:34px;display:flex;align-items:center;gap:10px;padding:0 8px;border-radius:10px;color:var(--nav);font-weight:500}.nav a:hover,.nav a[aria-current=page]{color:#fff}.side-foot{margin-top:auto;padding:0 8px;color:var(--faint);font-size:13px}.top{border-bottom:1px solid var(--rule);display:flex;align-items:center;gap:12px;padding:0 29px;min-width:0}.top-l{display:flex;align-items:center;gap:10px;min-width:0;flex:1;color:var(--muted)}.top-l>*{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-r{display:flex;align-items:center;gap:12px;height:100%;padding-left:14px;border-left:1px solid var(--rule)}.who{display:flex;flex-direction:column;line-height:1.25;text-align:right}.who b{font-weight:600}.who span{color:var(--muted);font-size:13px}.view{padding:24px 29px 40px;min-width:0;outline:none}.tabbar{display:none}.btn{height:var(--h);padding:0 16px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:500;white-space:nowrap;background:var(--raised);color:#fff}.btn:hover:not(:disabled){background:#363636}.btn.primary{background:#fff;color:#000;font-weight:600}.btn.primary:hover:not(:disabled){background:#e6e6e6}.btn.ghost{background:transparent;color:var(--muted)}.btn.ghost:hover:not(:disabled){color:#fff;background:var(--surface)}.btn.danger{color:var(--neg-ink)}.btn.sm{height:32px;padding:0 12px;font-size:13px}.btn:disabled{opacity:.45}.btn .ic{width:16px;height:16px}.iconbtn{width:36px;height:36px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--raised)}.iconbtn:hover:not(:disabled){background:#363636}.iconbtn:disabled{opacity:.4}.field{display:flex;flex-direction:column;gap:6px}.field>label,.lbl{font-size:13px;color:var(--muted);font-weight:500}.input,.textarea,.select{width:100%;background:var(--raised);border:1px solid transparent;color:#fff;border-radius:999px;height:var(--h);padding:0 16px}.input::placeholder,.textarea::placeholder{color:var(--faint);opacity:1}.textarea{height:auto;min-height:120px;padding:12px 16px;border-radius:14px;resize:vertical;font-size:13px;line-height:1.5}.input:focus,.textarea:focus,.select:focus{outline:2px solid #fff;outline-offset:0}.input[aria-invalid=true],.textarea[aria-invalid=true]{border-color:var(--negative)}.err{color:var(--neg-ink);font-size:13px;min-height:0}.seg{display:flex;flex-wrap:wrap;gap:8px}.seg input{position:absolute;opacity:0;pointer-events:none}.seg label{height:var(--h);padding:0 16px;border-radius:999px;background:var(--raised);display:inline-flex;align-items:center;cursor:pointer;font-weight:500;color:#fff}.seg input:checked+label{background:#fff;color:#000;font-weight:600}.seg input:focus-visible+label{outline:2px solid #fff;outline-offset:2px}.seg input:disabled+label{opacity:.45;cursor:not-allowed}.check{display:flex;align-items:center;gap:10px;cursor:pointer}.check input{width:18px;height:18px;accent-color:#fff}.pill{display:inline-flex;align-items:center;height:22px;padding:0 10px;border-radius:999px;font-size:13px;font-weight:500;background:var(--pill-neu-bg);color:var(--pill-neu-ink);white-space:nowrap}.pill.win{background:var(--pill-pos-bg);color:var(--pill-pos-ink)}.pill.loss{background:var(--pill-neg-bg);color:var(--pill-neg-ink)}.pill.draw{background:var(--pill-warn-bg);color:var(--pill-warn-ink)}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}.page-head p{color:var(--muted);margin-top:2px}.card{background:var(--surface);border-radius:var(--radius-card);padding:var(--pad);min-width:0}.card.inset{background:var(--raised)}.card>h2{margin-bottom:14px}.stack{display:flex;flex-direction:column;gap:var(--gap);min-width:0}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap)}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.row.between{justify-content:space-between}.form{display:flex;flex-direction:column;gap:18px}.play{display:grid;grid-template-columns:minmax(0,520px) minmax(300px,380px);gap:22px;align-items:start}.board-col{display:flex;flex-direction:column;gap:10px;min-width:0}.board-wrap{position:relative;width:100%}.board{aspect-ratio:1;width:100%;border-radius:12px;overflow:hidden;background:var(--sq-dk);touch-action:none;user-select:none;-webkit-user-select:none}.board:focus-visible{outline:2px solid #fff;outline-offset:3px}.board svg{display:block;width:100%;height:100%;touch-action:none}.sq.lt{fill:var(--sq-lt)}.sq.dk{fill:var(--sq-dk)}.hl-last{fill:#c9a96b8c}.hl-sel{fill:#ffffff61}.hl-check{fill:#e5484d8c}.hl-check-ring{fill:none;stroke:#e5484d;stroke-width:.7}.dot{fill:#00000052}.dot-cap{fill:none;stroke:#00000061;stroke-width:1}.cursor{fill:none;stroke:#fff;stroke-width:.6;stroke-dasharray:1.6 1}.co{font:600 2.6px Inter Variable,Inter,sans-serif;pointer-events:none}.co.on-lt{fill:var(--co-lt)}.co.on-dk{fill:var(--co-dk)}.pcw{pointer-events:none}.pcw.movable{cursor:grab}.pcw.drag-src{opacity:.28}.ghost{pointer-events:none}.pc{stroke-linejoin:round;stroke-width:3}.pc-w{fill:#fbf8f1;stroke:#161616}.pc-b{fill:#232323;stroke:#e9e0cc}.pc-w .cut{fill:#161616;stroke:none}.pc-b .cut{fill:#e9e0cc;stroke:none}.pc .slit{fill:none;stroke-linecap:round}.pc-w .slit{stroke:#161616}.pc-b .slit{stroke:#e9e0cc}.mini{display:block;flex:none}.promo{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#0000009e;border-radius:12px;z-index:5;padding:12px}.promo-card{background:var(--surface);border-radius:var(--radius-card);padding:18px;display:flex;flex-direction:column;align-items:center;gap:14px;max-width:100%}.promo-row{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.promo-btn{background:var(--raised);border-radius:16px;padding:10px 8px 8px;width:74px;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:13px;font-weight:500}.promo-btn:hover{background:#3a3a3a}.strip{display:flex;align-items:center;gap:10px;min-height:44px;min-width:0}.avatar{width:32px;height:32px;border-radius:999px;background:var(--raised);display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-size:13px;flex:none}.strip-id{display:flex;flex-direction:column;min-width:0;line-height:1.25}.strip-id b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.strip-id span{color:var(--muted);font-size:13px}.caps{display:flex;align-items:center;min-width:0;flex-wrap:wrap;margin-left:4px}.caps .mini{margin-right:-6px}.diff{margin-left:12px;font-size:13px;font-weight:600;color:var(--muted)}.clock{margin-left:auto;min-width:82px;text-align:center;font-size:20px;font-weight:600;background:var(--surface);border-radius:12px;padding:4px 12px}.clock.run{background:#fff;color:#000}.clock.low{color:var(--neg-ink)}.clock.run.low{color:#b3121a}.status{display:flex;align-items:center;gap:8px;min-height:28px;font-weight:500}.status .dotmark{width:8px;height:8px;border-radius:999px;background:var(--faint);flex:none}.status.turn .dotmark{background:#fff}.status.check .dotmark{background:var(--negative)}.status.over .dotmark{background:var(--accent)}.moves{max-height:280px;overflow:auto;display:grid;grid-template-columns:36px 1fr 1fr;gap:2px 8px;align-content:start}.moves .n{color:var(--faint);padding:4px 0}.moves .m{padding:4px 10px;border-radius:8px;font-weight:500;text-align:left}.moves button.m:hover{background:var(--raised)}.moves .m.cur{background:#fff;color:#000;font-weight:600}.empty{color:var(--muted);padding:18px 0;text-align:center}.empty h2{margin-bottom:4px;color:#fff}.over-card{display:flex;flex-direction:column;gap:10px}.over-card h2{font-size:16px}.callout{background:var(--raised);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:10px}.callout.err-box{color:var(--neg-ink)}.moveform{display:flex;gap:8px}.moveform .input{flex:1;min-width:0}.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pre{background:var(--raised);border-radius:14px;padding:12px 14px;font:13px/1.5 Inter Variable,Inter,system-ui,sans-serif;word-break:break-all;white-space:pre-wrap;max-height:160px;overflow:auto;-webkit-user-select:all;user-select:all}.preview{max-width:360px;width:100%}.plist{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:var(--gap)}.pz{background:var(--surface);border-radius:var(--radius-card);padding:18px 20px;display:flex;flex-direction:column;gap:10px;min-width:0}.pz:hover{background:#181818}.pz-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.pz h2{font-size:16px}.msg{min-height:48px;display:flex;align-items:center;gap:8px;border-radius:14px;padding:10px 14px;background:var(--raised);font-weight:500}.msg.ok{background:var(--pill-pos-bg);color:var(--pill-pos-ink)}.msg.bad{background:var(--pill-neg-bg);color:var(--pill-neg-ink)}.tbl-wrap{overflow-x:auto;border-radius:var(--radius-card);background:var(--surface)}table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}th{text-align:left;font-weight:500;font-size:13px;color:var(--muted);padding:14px 16px 10px;white-space:nowrap}td{padding:0 16px;height:52px;border-top:1px solid var(--rule);white-space:nowrap}td.num,th.num{text-align:right}tbody tr:hover td{background:#181818}td a{font-weight:500;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--control)}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--gap)}.kpi{background:var(--surface);border-radius:var(--radius-card);padding:18px 20px;display:flex;flex-direction:column;gap:2px}.kpi span{color:var(--muted);font-size:13px;font-weight:500}.kpi b{font-size:24px;font-weight:600;line-height:1.25}.chart{width:100%;height:auto;display:block}.chart text{font:500 11px Inter Variable,Inter,sans-serif;fill:var(--muted)}.chart .axis{stroke:var(--rule);stroke-width:1}.chart .line{fill:none;stroke:var(--accent);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.chart .pt{fill:var(--accent)}.replay{display:grid;grid-template-columns:minmax(0,520px) minmax(300px,380px);gap:22px;align-items:start}.rctl{display:flex;gap:8px;justify-content:center}.guard{max-width:460px;margin:40px auto;text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px}.guard .ic{width:28px;height:28px}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b8;display:flex;align-items:center;justify-content:center;padding:16px;z-index:50}.modal{background:var(--surface);border-radius:var(--radius-card);padding:24px;width:100%;max-width:460px;display:flex;flex-direction:column;gap:16px;max-height:100%;overflow:auto}.modal .row.end{justify-content:flex-end}.toasts{position:fixed;left:0;right:0;bottom:24px;display:flex;flex-direction:column;align-items:center;gap:8px;z-index:60;pointer-events:none;padding:0 16px}.toast{background:var(--raised);color:#fff;padding:10px 18px;border-radius:999px;font-weight:500;max-width:100%}.toast.bad{background:var(--pill-neg-bg);color:var(--pill-neg-ink)}.skel{background:var(--surface);border-radius:var(--radius-card);animation:pulse 1.2s ease-in-out infinite}@keyframes pulse{50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.skel{animation:none}}.login{width:100%;max-width:360px;display:flex;flex-direction:column;gap:18px}.login .sa-logo{margin-bottom:4px}.demo{display:flex;flex-direction:column;gap:8px}.demo button{text-align:left;background:var(--raised);border-radius:14px;padding:10px 14px;display:flex;flex-direction:column;line-height:1.35}.demo button:hover{background:#363636}.demo small{color:var(--muted);font-size:13px}.sa-split__form{background:var(--ground)}@media(max-width:1100px){.play,.replay{grid-template-columns:minmax(0,520px);justify-content:center}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:860px){.shell{grid-template-columns:minmax(0,1fr);grid-template-rows:52px 1fr}.side{display:none}.top{padding:0 16px;grid-column:1}.top-l .crumb{display:none}.top-l{flex:0 0 auto}.top-r{margin-left:auto;border-left:0;padding-left:0}.view{padding:16px 16px 88px}.tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;height:60px;background:var(--ground);border-top:1px solid var(--rule);z-index:20}.tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:13px;font-weight:500;color:var(--nav)}.tabbar a[aria-current=page]{color:#fff}.card{padding:18px}.grid2,.plist{grid-template-columns:minmax(0,1fr)}.who span{display:none}}@media(max-width:480px){.clock{font-size:18px;min-width:72px}.kpi b{font-size:20px}.actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
