:root{--bg-app:#efece4;--bg-surface:#fbfaf6;--court-floor:#fbfaf6;--court-paint:#e9e5da;--court-line:#16181d;--ink:#16181d;--ink-2:#5b5f69;--border:#16181d;--border-soft:#d5d0c4;--offense:#16181d;--defense:#1d4ed8;--ball:#ea580c;--line-person:#16181d;--line-ball:#c2410c;--accent:#c2410c;--on-accent:#fff;--danger:#b91c1c;--focus:#1d4ed8}@media (prefers-color-scheme:dark){:root{--bg-app:#0e1116;--bg-surface:#171b22;--court-floor:#171b22;--court-paint:#1f242d;--court-line:#c9c6bc;--ink:#f2efe6;--ink-2:#a3a7b0;--border:#f2efe6;--border-soft:#2a303a;--offense:#f2efe6;--defense:#7fb2ff;--ball:#ff8a3d;--line-person:#f2efe6;--line-ball:#ff8a3d;--accent:#ff8a3d;--on-accent:#16181d;--danger:#f87171;--focus:#7fb2ff}}.court-floor{fill:var(--court-floor)}.court-paint{fill:var(--court-paint)}.court-lines{fill:none;stroke:var(--court-line);stroke-width:.06px}.line{fill:none;stroke-width:.09px;stroke-linecap:round;stroke-linejoin:round}.line-cut,.line-screen{stroke:var(--line-person)}.line-dribble,.line-handoff{stroke:var(--line-ball)}.line-pass{stroke:var(--line-ball);stroke-dasharray:.3 .22}.arrow.person{fill:var(--line-person)}.arrow.ball-line{fill:var(--line-ball)}.hit{fill:#0000}.player.offense .body{fill:var(--offense)}.player.offense text{fill:var(--court-floor)}.player.defense .body{fill:var(--court-floor);stroke:var(--defense);stroke-width:.1px}.player.defense text{fill:var(--defense)}.player text{text-anchor:middle;dominant-baseline:central;pointer-events:none;font:700 .55px system-ui,sans-serif}.player.selected .ring{fill:none;stroke:var(--accent);stroke-width:.1px}.player .ring{fill:none;stroke:none}.ball{fill:var(--ball);stroke:var(--court-floor);stroke-width:.04px;pointer-events:none}.handle{fill:var(--court-floor);stroke:var(--accent);stroke-width:.08px}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg-app);color:var(--ink);overscroll-behavior:none;-webkit-user-select:none;user-select:none;font:15px/1.4 system-ui,PingFang TC,Noto Sans TC,sans-serif}.app{flex-direction:column;height:100dvh;display:flex}.board{touch-action:none;flex:1;min-height:0;padding:4px}.play-view{width:100%;height:100%;display:block}.caption{text-align:center;height:42px;color:var(--ink-2);justify-content:center;align-items:center;margin:0;padding:0 16px;display:flex;overflow:hidden}.panel{background:var(--bg-surface);border-top:1.5px solid var(--border);padding:8px 12px calc(8px + env(safe-area-inset-bottom));flex-direction:column;gap:8px;display:flex}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.row.scroll{flex-wrap:nowrap;overflow-x:auto}.spacer{flex:1}.edit-tools{flex-direction:column;gap:8px;display:flex}.edit-tools.hidden{visibility:hidden}.action-menu .row{flex-wrap:nowrap;min-height:44px;overflow-x:auto}.hint{color:var(--ink-2);margin:0 0 6px;font-size:13px}button{border:1.5px solid var(--border);background:var(--bg-surface);min-height:44px;color:var(--ink);font:inherit;white-space:nowrap;border-radius:6px;padding:0 14px}button:disabled{opacity:.35}button:focus-visible,input:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.chip.active,.frame.active,.primary{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}.chip.danger{color:var(--danger);border-color:var(--danger)}.frame{min-width:44px;padding:0;font-weight:700}.note{border:1.5px solid var(--border-soft);background:var(--bg-surface);width:100%;min-height:44px;color:var(--ink);font:inherit;-webkit-user-select:text;user-select:text;border-radius:6px;padding:0 12px;font-size:16px}.check{align-items:center;gap:4px;min-height:44px;display:flex}.topbar{justify-content:space-between;align-items:center;gap:8px;padding:6px 12px 0;display:flex}.topbar .title{text-overflow:ellipsis;white-space:nowrap;font-weight:700;overflow:hidden}.library{z-index:10;background:#0006;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--bg-surface);border-top:1.5px solid var(--border);width:100%;max-height:80dvh;padding:12px 12px calc(12px + env(safe-area-inset-bottom));border-radius:12px 12px 0 0;overflow-y:auto}.sheet-head{justify-content:space-between;align-items:center;display:flex}.sheet-head h2{margin:0;font-size:18px}.preset-list{flex-direction:column;gap:8px;display:flex}.preset{text-align:left;white-space:normal;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;display:flex}.preset-name{font-weight:700}.preset-name small{color:var(--ink-2);margin-left:8px;font-weight:400}.preset-summary{color:var(--ink-2);font-size:14px}
