:root{--ink:#18212b;--muted:#5b6875;--line:#d9dee3;--panel:#f5f6f4;--bg:#eceeea;--accent:#c8501e;--accent-soft:#fbe7dc;--navy:#1d2f45;--select:#2a7de1;--court-floor:#fff;--court-paint:#f3f1ec;color:var(--ink);background:var(--bg);-webkit-tap-highlight-color:transparent;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{overscroll-behavior:none}button{font:inherit;color:inherit;cursor:pointer;border:1px solid var(--line);touch-action:manipulation;background:#fff;border-radius:10px;min-height:40px;padding:0 14px}button:disabled{opacity:.4;cursor:default}button.danger:not(:disabled){color:#a32a17;border-color:#e7b8ad}.app{flex-direction:column;height:100%;display:flex}.topbar{background:var(--navy);color:#fff;flex-wrap:wrap;align-items:center;gap:14px;padding:10px 16px;display:flex}.brand{letter-spacing:.02em;align-items:center;gap:10px;font-weight:700;display:flex}.brand-mark{width:30px;height:30px}.brand-mark rect{fill:var(--accent)}.brand-mark path{fill:none;stroke:#fff;stroke-width:2.4px;stroke-linecap:round;stroke-linejoin:round}.brand-mark circle{fill:#fff}.play-name{min-width:140px;font:inherit;color:#fff;background:#ffffff14;border:1px solid #ffffff2e;border-radius:10px;flex:180px;padding:8px 12px;font-size:17px}.segmented{background:#ffffff1a;border-radius:12px;padding:3px;display:inline-flex}.segmented button{color:#cfd8e3;background:0 0;border:0;border-radius:9px}.segmented button.on{color:var(--navy);background:#fff;font-weight:600}.actions{gap:8px;display:flex}.topbar .actions button{color:var(--navy);background:#fffffff2;border:0}.topbar .actions button.danger:not(:disabled){color:#a32a17}.workspace{flex:1;grid-template-columns:112px 1fr 200px;min-height:0;display:grid}.rail,.palette{background:var(--panel);padding:12px 10px;overflow-y:auto}.rail{border-right:1px solid var(--line);flex-direction:column;gap:6px;display:flex}.rail-label,.palette h2{text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:10px 4px 2px;font-size:11px;font-weight:600}.tool{flex-direction:column;align-items:center;gap:2px;min-height:58px;padding:8px 4px;font-size:13px;display:flex}.tool.on{background:var(--accent-soft);border-color:var(--accent);color:#7a2e0f;font-weight:600}.tool-icon{width:64px;height:26px;overflow:visible}.tool-icon .line-stroke{stroke-width:.32px}.tool-icon-move{width:26px}.tool-icon-move path{fill:var(--ink)}.stage{flex-direction:column;gap:8px;min-width:0;min-height:0;padding:14px;display:flex}.board-wrap{background:#fff;border-radius:16px;flex:1;min-height:0;padding:10px;display:flex;box-shadow:0 1px 2px #0000000f,0 6px 24px #18212b0f}.board{touch-action:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;display:block}.hint{color:var(--muted);min-height:20px;margin:0;font-size:14px}.hint strong{color:var(--ink);text-transform:capitalize}.palette{border-left:1px solid var(--line)}.chips{grid-template-columns:repeat(3,1fr);gap:6px;display:grid}.chip{place-items:center;min-height:52px;padding:4px;display:grid}.chip svg{width:40px;height:40px;overflow:visible}.palette-foot{flex-direction:column;gap:8px;margin-top:18px;display:flex}.court path,.court rect,.court circle{fill:none;stroke:var(--ink);stroke-width:.17px}.court .court-floor{fill:var(--court-floor);stroke:none}.court .court-paint{fill:var(--court-paint);stroke:none}.court .court-boundary{stroke-width:.3px}.court .court-board{stroke-width:.35px}.court .court-rim{stroke:var(--accent);stroke-width:.2px}.court .court-ink-fill{fill:var(--ink);stroke:none}.piece-offense-body{fill:#fff;stroke:var(--ink);stroke-width:.22px}.piece-label{text-anchor:middle;dominant-baseline:central;fill:var(--ink);pointer-events:none;font-family:system-ui,-apple-system,sans-serif;font-size:1.55px;font-weight:700}.piece-defense-label{fill:#a32a17;font-size:1.45px}.piece-hit{fill:#0000}.piece-ball-body{fill:var(--accent);stroke:#6f2a0c;stroke-width:.12px}.piece-ball-seam{stroke:#6f2a0c;stroke-width:.08px}.piece-cone-body{fill:#f08a24;stroke:#8a4510;stroke-width:.12px;stroke-linejoin:round}.piece-halo{fill:#2a7de124;stroke:var(--select);stroke-width:.16px}.board.tool-select [data-piece-id]{cursor:grab}.board:not(.tool-select) [data-piece-id]{cursor:crosshair}.line-stroke{fill:none;stroke:var(--ink);stroke-width:.24px;stroke-linecap:round;stroke-linejoin:round}.line-arrow{fill:var(--ink)}.line-hit{fill:none;stroke:#0000;stroke-width:1.8px;cursor:pointer}.action-line.is-selected .line-stroke{stroke:var(--select)}.action-line.is-selected .line-arrow{fill:var(--select)}.action-line.is-draft{opacity:.55;pointer-events:none}.handle{fill:#fff;stroke:var(--select);stroke-width:.22px;cursor:move}.handle-curve{fill:var(--select);fill-opacity:.18}@media (width<=900px){.workspace{grid-template-columns:96px 1fr}.palette{border-left:0;border-top:1px solid var(--line);grid-column:1/-1}.chips{grid-template-columns:repeat(6,1fr)}}@media print{.topbar,.rail,.palette,.hint{display:none}.board-wrap{box-shadow:none}}
