:root{--app-h:var(--tg-viewport-stable-height,100dvh);--bg:#0f1624;--surface:#182234;--surface-2:#22304a;--text:#eef2f8;--muted:#8d9bb3;--accent:#ffc43d;--free-zone:#2a6496;--floor:#e2773f;--line:#fff;--net:#0d1320;--setter:#ffc43d;--opposite:#b07cff;--middle:#3fa7ff;--outside:#33d17a;--libero:#ff5a6e;--universal:#f0f0f0;--badge:#0f1624;--court-shadow:#00000059;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:var(--text);background:var(--bg);-webkit-tap-highlight-color:transparent;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}@media (prefers-color-scheme:light){:root:not([data-theme=dark]){--bg:#eef1f6;--surface:#fff;--surface-2:#d5dce7;--text:#121826;--muted:#566176;--accent:#ffb400;--universal:#fff;--court-shadow:#141e322e;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}}:root[data-theme=light]{--bg:#eef1f6;--surface:#fff;--surface-2:#d5dce7;--text:#121826;--muted:#566176;--accent:#ffb400;--universal:#fff;--court-shadow:#141e322e;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);overscroll-behavior:none}button{font:inherit;color:inherit;cursor:pointer;background:0 0;border:0;padding:0}button:disabled{cursor:default}.app{height:var(--app-h);max-width:520px;padding:env(safe-area-inset-top) 10px 0;flex-direction:column;margin:0 auto;display:flex}.top{justify-content:space-between;align-items:center;gap:12px;padding:10px 0 8px;display:flex}.brand{letter-spacing:.01em;align-items:center;gap:8px;font-size:15px;font-weight:700;display:flex}.brand-mark{width:22px;height:22px;display:block}.segmented{background:var(--surface);border-radius:12px;padding:3px;display:flex;position:relative}.segmented-item{min-width:52px;color:var(--muted);border-radius:9px;padding:7px 12px;font-size:14px;font-weight:700;transition:color .2s;position:relative}.segmented-item[aria-selected=true],.segmented-item[aria-pressed=true]{color:#10161f}.segmented-item:disabled{opacity:.45}.segmented-pill{background:var(--accent);border-radius:9px;position:absolute;inset:0}.segmented-text{position:relative}.soon{background:var(--surface-2);color:var(--muted);border-radius:4px;padding:1px 4px;font-size:9px;font-weight:600;position:absolute;top:-7px;right:-4px}.segmented.small{align-self:center}.segmented.small .segmented-item{padding:6px 10px;font-size:12px;font-weight:600}.stage{flex-direction:column;flex:1;align-items:center;gap:8px;min-height:0;display:flex;container-type:size}.court{width:min(100%, calc((var(--app-h) - 345px - env(safe-area-inset-top)) * 10.4 / 12));background:var(--free-zone);touch-action:pan-y;-webkit-user-select:none;user-select:none;width:min(100cqw,86.6667cqh - 178.533px);box-shadow:0 10px 30px var(--court-shadow);border-radius:16px;flex:none;position:relative;overflow:hidden}.court-lines{width:100%;height:100%;display:block;position:absolute;inset:0}.court-floor{fill:var(--floor)}.court-border{fill:none;stroke:var(--line);stroke-width:.1px}.attack-line{stroke:var(--line);stroke-width:.08px}.zone-line{stroke:#ffffff2e;stroke-width:.04px;stroke-dasharray:.25 .2}.net{stroke:var(--net);stroke-width:.22px;stroke-linecap:round}.zone-num{fill:#ffffff38;text-anchor:middle;font-size:1.3px;font-weight:800}.player{color:#10161f;will-change:transform;border-radius:50%;place-items:center;font-weight:800;display:grid;position:absolute;top:0;left:0;box-shadow:0 3px 8px #0000004d,inset 0 -2px #00000026}.player.kind-setter{background:var(--setter)}.player.kind-opposite{background:var(--opposite)}.player.kind-middle{background:var(--middle)}.player.kind-outside{background:var(--outside)}.player.kind-libero{background:var(--libero)}.player.kind-universal{background:var(--universal)}.player.is-selected{outline-offset:2px;z-index:2;outline:3px solid #fff}.ball{z-index:3;pointer-events:none;will-change:transform;background:radial-gradient(circle at 35% 30%,#fff 0 22%,#ffe066 23% 60%,#f5b700 61%);border-radius:50%;position:absolute;top:0;left:0;box-shadow:0 2px 5px #00000073}.arrow{fill:none;stroke-linecap:round}.arrow-attack{stroke:#fff6c9;stroke-width:.12px}.arrow-run{stroke:#ffffffd9;stroke-width:.08px;stroke-dasharray:.28 .2}.head-attack{fill:#fff6c9}.head-run{fill:#ffffffd9}.player-zone{background:var(--badge);color:#fff;border-radius:999px;place-items:center;min-width:42%;height:42%;padding:0 2px;font-size:.62em;display:grid;position:absolute;bottom:-6%;right:-6%}.hint-slot{flex:none;align-items:center;width:100%;height:55px;display:grid;overflow:hidden}.hint{color:var(--muted);text-align:center;margin:0;font-size:13.5px;line-height:1.35}.start-slot{place-items:center;min-height:34px;display:grid}.zone-picker{flex-direction:column;align-items:stretch;gap:5px;width:100%;margin-top:auto;display:flex}.zone-picker-label{color:var(--muted);justify-content:space-between;gap:8px;padding:0 2px;font-size:12px;display:flex}.zone-picker-label>span:first-child{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.zone-picker-order{opacity:.75;white-space:nowrap}.zone-picker-row{background:var(--surface);border-radius:12px;flex:1;grid-template-columns:repeat(6,1fr);gap:4px;padding:3px;display:grid}.zone-btn{height:38px;color:var(--muted);border-radius:9px;font-size:16px;font-weight:800;transition:color .2s;position:relative}.zone-btn[aria-pressed=true]{color:#10161f}.zone-pill{background:var(--accent);border-radius:9px;position:absolute;inset:0}.zone-btn-text{position:relative}.settings{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.toggle{color:var(--muted);cursor:pointer;align-items:center;gap:6px;font-size:12px;display:inline-flex}.toggle input{opacity:0;pointer-events:none;position:absolute}.toggle-track{background:var(--surface-2);border-radius:999px;width:34px;height:20px;transition:background .2s;position:relative}.toggle-thumb{background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .25s cubic-bezier(.3,1.4,.5,1);position:absolute;top:2px;left:2px}.toggle input:checked+.toggle-track{background:var(--accent)}.toggle input:checked+.toggle-track .toggle-thumb{transform:translate(14px)}.toggle input:focus-visible+.toggle-track{outline:2px solid var(--accent);outline-offset:2px}.phase-bar{padding:6px 6px calc(6px + env(safe-area-inset-bottom));background:var(--surface);border-radius:18px 18px 0 0;grid-template-columns:repeat(4,1fr);gap:4px;margin:8px 0 0;display:grid}.phase-btn{color:var(--muted);border-radius:12px;flex-direction:column;align-items:center;gap:3px;padding:8px 0;transition:color .2s;display:flex;position:relative}.phase-btn[aria-pressed=true]{color:#10161f}.phase-pill{background:var(--accent);border-radius:12px;position:absolute;inset:0}.phase-icon{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px;position:relative}.phase-title{font-size:12px;font-weight:700;position:relative}button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.top-actions{align-items:center;gap:8px;display:flex}.icon-btn{background:var(--surface);width:36px;height:36px;color:var(--muted);border-radius:10px;flex:none;place-items:center;display:grid}.icon-btn.small{background:var(--surface-2);width:30px;height:30px}.icon-btn svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.player.kind-universal{box-shadow:0 3px 8px #0000004d,inset 0 0 0 1px #00000014,inset 0 -2px #0000001f}.ball-rail{stroke:#ffffff59;stroke-width:.06px;stroke-dasharray:.12 .18;stroke-linecap:round}.ball.is-draggable{pointer-events:auto;cursor:grab;touch-action:none}.ball.is-draggable:active{cursor:grabbing}.ball.is-draggable:before{content:"";border-radius:50%;position:absolute;inset:-16px}.ball.is-draggable:after{content:"";border:2px solid #ffffffb3;border-radius:50%;animation:1.6s ease-out infinite ball-pulse;position:absolute;inset:-5px}@keyframes ball-pulse{0%{opacity:.9;transform:scale(.8)}to{opacity:0;transform:scale(1.7)}}@media (prefers-reduced-motion:reduce){.ball.is-draggable:after{animation:none}}.ball:focus-visible{outline-offset:3px;outline:2px solid #fff}.arrow-shot{stroke:#ff5a6ebf;stroke-width:.07px;stroke-dasharray:.18 .16}.head-shot{fill:#ff5a6ed9}.player-name{color:#fff;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;background:#0f1624a6;border-radius:4px;margin-top:2px;padding:1px 4px;font-size:10px;font-weight:700;line-height:1.2;position:absolute;top:100%;left:50%;overflow:hidden;transform:translate(-50%)}.menu-overlay{z-index:10;background:#050a1480;position:fixed;inset:0}.menu{z-index:11;overscroll-behavior:contain;width:min(380px,92vw);padding:calc(12px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));background:var(--bg);position:fixed;top:0;bottom:0;right:0;overflow:hidden auto;box-shadow:-10px 0 30px #0000004d}.menu-head{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.menu-title{font-size:17px;font-weight:800}.menu-section{border-top:1px solid var(--surface-2);flex-direction:column;gap:10px;padding:14px 0;display:flex}.menu-section .segmented{align-self:flex-start}.menu h2{margin:0;font-size:14px;font-weight:800}.menu h3{margin:6px 0 0;font-size:13px;font-weight:700}.menu-note{color:var(--muted);margin:0;font-size:12px;line-height:1.4}.roster{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.roster-row{align-items:center;gap:10px;display:flex}.roster-chip{color:#10161f;border-radius:50%;flex:none;place-items:center;width:34px;height:34px;font-size:11px;font-weight:800;display:grid}.roster-chip.kind-setter{background:var(--setter)}.roster-chip.kind-opposite{background:var(--opposite)}.roster-chip.kind-middle{background:var(--middle)}.roster-chip.kind-outside{background:var(--outside)}.roster-chip.kind-libero{background:var(--libero)}.roster-chip.kind-universal{background:var(--universal);box-shadow:inset 0 0 0 1px #00000026}.roster-field{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.roster-role{color:var(--muted);font-size:11px}.menu input:not([type=checkbox]),.menu select{width:100%;min-width:0;font:inherit;border:1px solid var(--surface-2);background:var(--surface);color:var(--text);border-radius:9px;padding:7px 10px;font-size:16px}.menu input:not([type=checkbox]):focus-visible,.menu select:focus-visible{outline:2px solid var(--accent);outline-offset:0}.sub-row{background:var(--surface);border-radius:12px;flex-direction:column;align-items:stretch;gap:6px;padding:8px}.sub-fields{align-items:center;gap:6px;display:flex}.sub-fields input{background:var(--bg);flex:1.3}.sub-fields select{background:var(--bg);flex:1}.sub-swaps{flex-wrap:wrap;gap:6px;display:flex}.swap-btn{background:var(--surface-2);border-radius:8px;padding:5px 9px;font-size:12px;font-weight:600}.text-btn{color:var(--accent);align-self:flex-start;padding:6px 0;font-size:13px;font-weight:700}.menu-actions{justify-content:space-between;align-items:center;gap:12px;margin-top:6px;display:flex}.primary-btn{background:var(--accent);color:#10161f;border-radius:10px;padding:10px 16px;font-size:14px;font-weight:700}.ov-line{stroke:#ffffff8c;stroke-width:.06px;stroke-dasharray:.16 .12;stroke-linecap:round;transition:stroke .2s,stroke-width .2s}.ov-line.ov-left-right{stroke-dasharray:.05 .12}.ov-line.is-bad{stroke:#ff5a6e;stroke-width:.09px;stroke-dasharray:none}.ov-line.is-mine{stroke:var(--accent);stroke-width:.11px}.ov-line.is-faded{opacity:.12!important}.app.is-match .court{width:min(100%, calc((var(--app-h) - 365px - env(safe-area-inset-top)) * 10.4 / 12));width:min(100cqw,86.6667cqh - 195.867px)}.scoreboard{align-items:center;gap:8px;width:100%;display:flex}.score-btn{background:var(--surface);border-radius:12px;flex:1;justify-content:center;align-items:center;gap:6px;height:46px;font-size:18px;font-weight:800;transition:transform .1s;display:flex}.score-btn:active{transform:scale(.96)}.score-btn small{color:var(--muted);font-size:12px;font-weight:700}.score-btn.wide{background:var(--accent);color:#10161f;flex:2;font-size:13px}.score{flex-direction:column;flex:none;align-items:center;gap:1px;min-width:92px;display:flex}.score-line{font-variant-numeric:tabular-nums;align-items:center;gap:5px;font-size:24px;font-weight:800;display:flex}.score-num{justify-items:center;min-width:1.2em;display:inline-grid;overflow:hidden}.score-num>span{grid-area:1/1}.score-sep{color:var(--muted)}.score-sub{color:var(--muted);white-space:nowrap;font-size:11px}.score-sub.link{background:var(--surface-2);color:var(--text);border-radius:999px;align-items:center;gap:4px;padding:2px 8px;font-weight:700;display:inline-flex}.serve-dot{background:0 0;border-radius:50%;width:8px;height:8px;transition:background .2s}.serve-dot.on{background:radial-gradient(circle at 35% 30%,#fff 0 22%,#ffe066 23% 60%,#f5b700 61%)}.undo-btn:disabled{opacity:.35}.app.is-match .start-slot{width:100%;min-height:46px}.menu-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.menu-label{color:var(--muted);font-size:13px}.text-btn.muted{color:var(--muted)}.tour{z-index:20;pointer-events:none;position:fixed;inset:0}.tour-spot{outline:2px solid #ffffff80;position:absolute;top:0;left:0;box-shadow:0 0 0 200vmax #050a149e}.tour-card{background:var(--surface);max-width:496px;color:var(--text);pointer-events:auto;border-radius:16px;margin:0 auto;padding:14px 16px 12px;position:absolute;left:12px;right:12px;box-shadow:0 12px 40px #0006}.tour-card.on-bottom{bottom:calc(16px + env(safe-area-inset-bottom))}.tour-card.on-top{top:calc(16px + env(safe-area-inset-top))}.tour-dots{gap:5px;margin-bottom:8px;display:flex}.tour-dots span{background:var(--surface-2);border-radius:3px;width:6px;height:6px;transition:width .25s,background .25s}.tour-dots span.on{background:var(--accent);width:18px}.tour-title{margin:0 0 4px;font-size:16px;font-weight:800}.tour-text{color:var(--muted);min-height:3.9em;margin:0;font-size:14px;line-height:1.4}.tour-actions{justify-content:space-between;align-items:center;margin-top:10px;display:flex}.tour-nav{align-items:center;gap:14px;display:flex}.toggle.setting{width:100%;color:var(--text);justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.toggle.setting .toggle-track{flex:none;margin-top:1px}.setting-text{flex-direction:column;gap:3px;min-width:0;display:flex}.setting-title{font-size:14px;font-weight:600}.setting-note{color:var(--muted);font-size:12px;line-height:1.4}.manual-url{flex-direction:column;gap:6px;display:flex}.manual-url input{font-size:13px!important}.player-name.above{margin:0 0 2px;top:auto;bottom:100%}.player-name.align-left{left:0;transform:none}.player-name.align-right{left:auto;right:0;transform:none}.tour-nav .text-btn{align-self:center}.menu-footer{border-top:1px solid var(--surface-2);color:var(--muted);padding:14px 0 4px;font-size:12px}.menu-footer p{margin:0 0 8px}.menu-footer-link{width:fit-content;color:inherit;margin-top:6px;display:block}.icon-btn,.primary-btn,.swap-btn,.text-btn,.segmented-text,.zone-btn-text,.phase-icon,.phase-title{transition:transform .12s}.icon-btn:active,.primary-btn:active,.swap-btn:active{transform:scale(.94)}.text-btn:active{transform:scale(.97)}.segmented-item:active:not(:disabled) .segmented-text,.zone-btn:active .zone-btn-text,.phase-btn:active .phase-icon,.phase-btn:active .phase-title{transform:scale(.88)}@media (prefers-reduced-motion:reduce){.icon-btn:active,.primary-btn:active,.swap-btn:active,.text-btn:active{opacity:.7;transform:none}}.confirm-layer{z-index:30;flex-direction:column;justify-content:flex-end;display:flex;position:fixed;inset:0}.confirm-overlay{background:#050a1480;position:absolute;inset:0}.confirm-sheet{width:100%;max-width:520px;padding:20px 16px calc(16px + env(safe-area-inset-bottom));background:var(--surface);color:var(--text);border-radius:20px 20px 0 0;margin:0 auto;position:relative;box-shadow:0 -10px 30px #0000004d}.confirm-text{text-align:center;margin:0 0 16px;font-size:16px;font-weight:600;line-height:1.4}.confirm-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}.confirm-btn{background:var(--surface-2);border-radius:12px;height:46px;font-size:15px;font-weight:700;transition:transform .12s}.confirm-btn:active{transform:scale(.96)}.confirm-btn.primary{background:var(--accent);color:#10161f}.confirm-btn.danger{color:#fff;background:#ff5a6e}.author-card{background:var(--surface);border-radius:14px;flex-direction:column;gap:10px;padding:14px;display:flex}.author-name{font-size:15px;font-weight:800}.author-links{gap:8px;display:flex}.chip-link{background:var(--surface-2);height:40px;color:var(--text);border-radius:10px;flex:1;justify-content:center;align-items:center;gap:6px;font-size:14px;font-weight:700;text-decoration:none;transition:transform .12s;display:inline-flex}.chip-link svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.chip-link:active{transform:scale(.96)}.chip-link:focus-visible,.donate-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.donate-btn{text-align:center;text-decoration:none;display:block}.donate-btn:disabled{opacity:.5}.stars{flex-direction:column;gap:8px;display:flex}.stars-title{font-size:13px;font-weight:700}.stars-row{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.stars-row .primary-btn{padding:10px 0}
