:root{--bg:#070b16;--panel:#0a1020b8;--panel-edge:#ffffff1a;--text:#eef3ff;--muted:#9aa8c7;--accent:#dcff3a;--good:#3ee08f;--bad:#ff5b6e;--team0:#ff5b3a;--team1:#8b6dff;--font:"SF Pro Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--display:"Barlow Condensed", var(--font)}*{box-sizing:border-box}html,body{background:var(--bg);height:100%;color:var(--text);font-family:var(--font);-webkit-font-smoothing:antialiased;-webkit-user-select:none;user-select:none;margin:0;overflow:hidden}#stage{width:var(--stage-w,100vw);height:var(--stage-h,100vh);--safe-l:env(safe-area-inset-left,0px);--safe-r:env(safe-area-inset-right,0px);--safe-t:env(safe-area-inset-top,0px);--safe-b:env(safe-area-inset-bottom,0px);position:fixed;top:0;left:0;overflow:hidden;container:stage/size}body.rotated #stage{transform-origin:0 0;transform:translateX(var(--screen-w,100vw)) rotate(90deg);--safe-l:env(safe-area-inset-top,0px);--safe-r:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-right,0px);--safe-b:env(safe-area-inset-left,0px)}#stage>#hud,#stage>#touch,#stage>#menu,#stage>#install,#stage>#about,#stage>#paused{position:absolute}#app canvas{cursor:crosshair;width:100%;height:100%;display:block}.hidden{display:none!important}.panel{background:var(--panel);border:1px solid var(--panel-edge);-webkit-backdrop-filter:blur(10px);border-radius:12px}#hud{pointer-events:none;position:fixed;inset:0}#scoreboard{font-variant-numeric:tabular-nums;min-width:250px;padding:8px 6px 6px;position:absolute;top:16px;left:16px}.sb-row{letter-spacing:.04em;grid-template-columns:14px 1fr auto 30px 42px;align-items:center;gap:6px;padding:5px 8px;font-size:14px;font-weight:700;display:grid}.sb-row[data-team="0"]{border-left:3px solid var(--team0)}.sb-row[data-team="1"]{border-left:3px solid var(--team1)}.sb-row .srv{background:0 0;border-radius:50%;width:8px;height:8px}.sb-row .srv.on{background:var(--accent);box-shadow:0 0 8px var(--accent)}.sb-row .sets{color:var(--muted);gap:8px;font-weight:600;display:flex}.sb-row .games{text-align:center;font-size:16px}.sb-row .pts{text-align:center;background:#ffffff1a;border-radius:6px;padding:2px 0;font-size:16px}.sb-note{letter-spacing:.14em;color:var(--accent);text-align:right;min-height:14px;padding:2px 8px 0;font-size:11px}#practice{min-width:220px;padding:12px 16px;position:absolute;top:16px;left:16px}#practice .label{letter-spacing:.2em;color:var(--muted);font-size:11px}#practice .drill{text-transform:uppercase;margin:4px 0;font-size:20px;font-weight:800}#practice .stats{font-variant-numeric:tabular-nums;font-size:14px}#practice .keys{color:var(--muted);margin-top:6px;font-size:11px}#callout{text-align:center;opacity:0;transition:opacity .3s;position:absolute;top:22%;left:50%;transform:translate(-50%)}#callout.show{opacity:1}#callout .title{letter-spacing:.02em;text-shadow:0 4px 30px #0009;font-size:64px;font-style:italic;font-weight:900}#callout.big .title{font-size:96px}#callout.pop .title{animation:.45s cubic-bezier(.2,1.6,.4,1) pop}#callout.good .title{color:var(--good)}#callout.bad .title{color:var(--bad)}#callout.neutral .title{color:var(--text)}#callout .sub{color:var(--text);opacity:.85;text-shadow:0 2px 12px #000c;margin-top:4px;font-size:16px}@keyframes pop{0%{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}#shot{white-space:nowrap;text-shadow:0 2px 10px #000c;opacity:0;align-items:center;gap:10px;font-size:15px;font-weight:600;transition:opacity .4s;display:flex;position:absolute;bottom:56px;left:50%;transform:translate(-50%)}#shot.show{opacity:1}#shot .timing{font-size:18px;font-style:italic;font-weight:900}#shot .timing.PERFECT{color:var(--good)}#shot .timing.GOOD{color:var(--accent)}#shot .timing.LATE{color:var(--bad)}#hint{color:var(--muted);white-space:nowrap;text-shadow:0 2px 8px #000000e6;font-size:13px;position:absolute;bottom:22px;left:50%;transform:translate(-50%)}#badge{color:var(--muted);letter-spacing:.08em;font-size:11px;position:absolute;bottom:12px;left:16px}#help{width:min(520px,100cqw - 32px);padding:22px 26px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.help-title{letter-spacing:.2em;color:var(--muted);margin-bottom:12px;font-size:12px}#help .grid{grid-template-columns:auto 1fr;align-items:center;gap:8px 14px;font-size:14px;display:grid}#help p{color:var(--muted);margin:14px 0 0;font-size:13px}kbd{font-family:var(--font);white-space:nowrap;background:#ffffff1a;border:1px solid #ffffff29;border-radius:6px;padding:3px 7px;font-size:12px;font-weight:700}#menu{background:radial-gradient(#070b1659,#070b16cc);justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.menu-card{text-align:center;width:min(560px,100%)}#menu h1{letter-spacing:-.02em;text-shadow:0 8px 40px #0009;margin:0;font-size:clamp(56px,12cqw,104px);font-style:italic;font-weight:900;line-height:.9}#menu h1 span{letter-spacing:.5em;color:var(--accent);margin-top:8px;padding-left:.5em;font-size:.34em;font-style:normal;display:block}#menu .tag{color:var(--text);opacity:.85;max-width:440px;margin:18px auto 26px;font-size:15px;line-height:1.5}#menu .buttons{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}#menu button{font-family:var(--font);color:var(--text);cursor:pointer;background:#ffffff14;border:1px solid #fff3;border-radius:12px;min-width:200px;padding:14px 22px;font-size:17px;font-weight:800;transition:transform .12s,background .2s}#menu button small{opacity:.7;margin-top:3px;font-size:12px;font-weight:600;display:block}#menu button:hover{background:#ffffff24;transform:translateY(-2px)}#menu button.primary{background:var(--accent);color:#1a1400;border-color:var(--accent)}#menu .controls{color:var(--muted);flex-wrap:wrap;justify-content:center;gap:8px 18px;margin-top:28px;font-size:13px;display:flex}#menu .tip{color:var(--accent);margin-top:16px;font-size:13px}#paused{text-align:center;text-shadow:0 4px 30px #000000b3;pointer-events:none;font-size:56px;font-style:italic;font-weight:900;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}#paused small{color:var(--muted);font-size:14px;font-style:normal;font-weight:600;display:block}.lil-gui.lil-root{--width:280px;top:12px!important;right:12px!important}@container stage (width<=640px){#callout .title{font-size:40px}#callout.big .title{font-size:56px}#shot,#hint{font-size:12px}}html,body{-webkit-touch-callout:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;overscroll-behavior:none;touch-action:none}body{position:fixed;inset:0}body.touch .desktop-only,body:not(.touch) .touch-only{display:none!important}#touch{z-index:5;touch-action:none;position:fixed;inset:0}#stick{left:calc(var(--safe-l) + 104px);top:calc(100% - var(--safe-b) - 100px);opacity:.45;pointer-events:none;background:radial-gradient(circle,#ffffff1a,#ffffff08);border:2px solid #ffffff59;border-radius:50%;width:132px;height:132px;margin:-66px 0 0 -66px;transition:opacity .15s;position:absolute}#stick.active{opacity:.95}#stick .knob{background:#ffffffd9;border-radius:50%;width:58px;height:58px;margin:-29px 0 0 -29px;position:absolute;top:50%;left:50%;box-shadow:0 4px 16px #0006}#touch .shot{color:#fff;font-family:var(--font);letter-spacing:.04em;-webkit-backdrop-filter:blur(6px);touch-action:none;background:#0a102073;border:2px solid #ffffff8c;border-radius:50%;justify-content:center;align-items:center;padding:0;font-style:italic;font-weight:900;transition:transform 80ms,background .12s;display:flex;position:absolute}#touch .shot.pressed{background:#ffd23f8c;transform:scale(.9)}#touch .shot.big{width:96px;height:96px;right:calc(var(--safe-r) + 26px);bottom:calc(var(--safe-b) + 24px);border-color:var(--accent);background:#ffd23f38;font-size:15px}#touch .shot.mid{width:66px;height:66px;right:calc(var(--safe-r) + 136px);bottom:calc(var(--safe-b) + 22px);font-size:11px}#touch .shot.mid.alt{right:calc(var(--safe-r) + 40px);bottom:calc(var(--safe-b) + 134px)}#touch .shot.small.left{width:60px;height:60px;left:calc(var(--safe-l) + 24px);bottom:calc(var(--safe-b) + 196px);border-color:var(--accent);font-size:10px}#touch.committed .shot[data-shot=primary],#touch.committed .shot[data-shot=secondary],#touch.committed .shot[data-shot=special]{box-shadow:0 0 0 3px #3ee08f8c}#touch .topbar{top:calc(var(--safe-t) + 8px);right:calc(var(--safe-r) + 10px);gap:8px;display:flex;position:absolute}#touch .topbar button{touch-action:none;background:#0a10208c;border:1px solid #ffffff2e;border-radius:10px;width:40px;height:40px;padding:8px}#touch .topbar svg{fill:#fff;stroke:#fff;stroke-width:0;width:100%;height:100%}#touch .topbar [data-act=sound] svg path:last-child{fill:none;stroke-width:2px}body.touch #badge,body.touch #help{display:none!important}body.touch #scoreboard,body.touch #practice{top:calc(var(--safe-t) + 8px);left:calc(var(--safe-l) + 8px)}body.touch #shot{top:calc(var(--safe-t) + 10px);font-size:12px;bottom:auto}body.touch #shot .timing{font-size:14px}body.touch #hint{top:calc(var(--safe-t) + 32px);font-size:11px;bottom:auto}body.touch .lil-gui.lil-root{touch-action:pan-y;z-index:6;max-width:calc(100cqw - 20px);max-height:calc(100cqh - 70px);overflow-y:auto;top:calc(var(--safe-t) + 56px)!important;right:calc(var(--safe-r) + 10px)!important}@container stage (height<=520px){#scoreboard{min-width:176px;padding:4px 2px 2px}.sb-row{grid-template-columns:10px 1fr auto 22px 30px;padding:3px 6px;font-size:11px}.sb-row .games,.sb-row .pts{font-size:12px}#practice{min-width:170px;padding:8px 12px}#practice .drill{font-size:15px}#practice .stats{font-size:12px}#callout{top:16%}#callout .title{font-size:42px}#callout.big .title{font-size:58px}#callout .sub{font-size:13px}#menu h1{font-size:min(92px,17cqh)}#menu .tag{margin:10px auto 14px;font-size:13px}#menu button{min-width:170px;padding:10px 18px;font-size:15px}#menu .controls{margin-top:14px;font-size:12px}#menu .tip{margin-top:8px;font-size:12px}}#touch .topbar [data-act=fullscreen] svg path{fill:none;stroke-width:2.4px;stroke-linecap:round;stroke-linejoin:round}body.immersive [data-act=fullscreen]{display:none}#install,#about{z-index:60;background:#04070eb8;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}#install .sheet,#about .sheet{width:min(460px,100%);padding:20px 24px;font-size:14px;line-height:1.45}#install h2,#about h2{margin:0 0 6px;font-size:20px;font-style:italic;font-weight:900}#install p,#about p{color:var(--muted);margin:0 0 8px}#install ol{margin:0 0 14px;padding-left:20px}#install li{margin:4px 0}#install p.note{margin:10px 0 12px;font-size:12px}#about .sheet{touch-action:pan-y;max-height:calc(100cqh - 32px);overflow-y:auto}#about a{color:var(--accent);font-weight:700}#install .share{vertical-align:-3px;fill:none;stroke:#4ea1ff;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}#install button,#about button{font-family:var(--font);background:var(--accent);color:#1a1400;border:0;border-radius:10px;padding:10px 22px;font-size:15px;font-weight:800}@container stage (height<=340px){#stick{width:104px;height:104px;left:calc(var(--safe-l) + 78px);top:calc(100% - var(--safe-b) - 72px);margin:-52px 0 0 -52px}#stick .knob{width:46px;height:46px;margin:-23px 0 0 -23px}#touch .shot.big{width:76px;height:76px;right:calc(var(--safe-r) + 16px);bottom:calc(var(--safe-b) + 12px);font-size:13px}#touch .shot.mid{width:54px;height:54px;right:calc(var(--safe-r) + 104px);bottom:calc(var(--safe-b) + 10px);font-size:10px}#touch .shot.mid.alt{right:calc(var(--safe-r) + 26px);bottom:calc(var(--safe-b) + 98px)}#touch .shot.small.left{width:50px;height:50px;left:calc(var(--safe-l) + 14px);bottom:calc(var(--safe-b) + 142px)}#touch .topbar button{width:32px;height:32px;padding:6px}#scoreboard{min-width:150px}.sb-row{padding:2px 5px;font-size:10px}#callout .title{font-size:32px}#callout.big .title{font-size:44px}#callout .sub{font-size:11px}body.touch #hint{display:none}#menu h1{font-size:min(64px,18cqh)}#menu .tag{display:none}#menu .buttons{margin-top:10px}#menu button{min-width:150px;padding:8px 14px;font-size:14px}#menu .controls{margin-top:10px}}body.touch #practice .keys{display:none}@container stage (height<=340px){body.touch #practice{min-width:140px;padding:6px 10px}body.touch #practice .label{display:none}#touch .shot.small.left{bottom:calc(var(--safe-b) + 124px)}}#menu h1 img{filter:drop-shadow(0 10px 40px #0000008c);width:auto;height:min(250px,34cqh);margin:0 auto;display:block}#menu button,#callout .title,#paused,#shot .timing,.sb-row,#practice .drill,#touch .shot,#install h2,#about h2{font-family:var(--display)}#menu button{letter-spacing:.02em;font-size:19px}#callout .title{letter-spacing:.01em;font-weight:900}#touch .shot{font-size:15px;font-weight:800}#touch .shot.mid{font-size:13px}#touch .shot.small.left{font-size:12px}@container stage (height<=340px){#menu h1 img{height:26cqh}}#menu .langs{justify-content:center;gap:8px;margin-top:14px;display:flex}#menu .langs button{font:600 13px var(--font);letter-spacing:0;border-radius:999px;align-items:center;gap:7px;min-width:0;padding:6px 14px;font-style:normal;display:inline-flex}#menu .langs img{border-radius:3px;width:21px;height:16px;box-shadow:0 0 0 1px #ffffff4d}#menu .link{min-width:0;font:600 12px var(--font);letter-spacing:0;color:var(--muted);text-underline-offset:3px;background:0 0;border:0;margin-top:10px;padding:4px 8px;font-style:normal;text-decoration:underline}#menu .langs button.active{background:var(--accent);border-color:var(--accent);color:#1a1400}#touch,.lil-gui{direction:ltr}[dir=rtl] #callout .title,[dir=rtl] #shot .timing,[dir=rtl] #paused,[dir=rtl] #install h2,[dir=rtl] #about h2,[dir=rtl] #touch .shot,[dir=rtl] #menu button,[dir=rtl] #practice .drill,[dir=rtl] .sb-row{letter-spacing:0;font-style:normal}[dir=rtl] #install ol{padding-left:0;padding-right:20px}@container stage (height<=340px){#menu .langs{margin-top:8px}#menu .langs button{padding:4px 10px;font-size:12px}}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/barlow-condensed-vietnamese-700-normal-DYeBwlKR.woff2)format("woff2"),url(/assets/barlow-condensed-vietnamese-700-normal-DhIzd8Tb.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/barlow-condensed-latin-ext-700-normal-CwuXbfVR.woff2)format("woff2"),url(/assets/barlow-condensed-latin-ext-700-normal-BIHFfxf0.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/barlow-condensed-latin-700-normal-v1xN8_Wq.woff2)format("woff2"),url(/assets/barlow-condensed-latin-700-normal-Dmwat-ge.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow Condensed;font-style:italic;font-display:swap;font-weight:800;src:url(/assets/barlow-condensed-vietnamese-800-italic-DdsBx9lY.woff2)format("woff2"),url(/assets/barlow-condensed-vietnamese-800-italic-aDhyDJMT.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow Condensed;font-style:italic;font-display:swap;font-weight:800;src:url(/assets/barlow-condensed-latin-ext-800-italic-BbzArEj4.woff2)format("woff2"),url(/assets/barlow-condensed-latin-ext-800-italic-Ca7Cun8E.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow Condensed;font-style:italic;font-display:swap;font-weight:800;src:url(/assets/barlow-condensed-latin-800-italic-Cnej2eWp.woff2)format("woff2"),url(/assets/barlow-condensed-latin-800-italic-B5BpsPSY.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow Condensed;font-style:italic;font-display:swap;font-weight:900;src:url(/assets/barlow-condensed-vietnamese-900-italic-Pw11u57-.woff2)format("woff2"),url(/assets/barlow-condensed-vietnamese-900-italic-BnvR5tNv.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow Condensed;font-style:italic;font-display:swap;font-weight:900;src:url(/assets/barlow-condensed-latin-ext-900-italic-OCLYmYcb.woff2)format("woff2"),url(/assets/barlow-condensed-latin-ext-900-italic-Cy3mWZLr.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow Condensed;font-style:italic;font-display:swap;font-weight:900;src:url(/assets/barlow-condensed-latin-900-italic-BRE8F-lA.woff2)format("woff2"),url(/assets/barlow-condensed-latin-900-italic-CRRJoTIA.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
