:root{font-family:system-ui,-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;color:#294c40;background:#f7f5eb;font-synthesis:none;--green:#3f755f;--orange:#d79b64}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 15% 0,#e4ebd4,transparent 55%),#f7f5eb}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer;touch-action:manipulation;border:0}button:disabled{cursor:default;opacity:.45}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:3px solid #e7a163;outline-offset:3px}[hidden]{display:none!important}.site-nav{max-width:1160px;padding:26px 18px;margin:auto;display:flex;align-items:center;justify-content:space-between;font-size:12px}.brand{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:800}.brand>span{width:34px;height:34px;display:grid;place-items:center;border:2px solid #294c40;border-radius:11px;background:#dce8bc;box-shadow:2px 2px #294c40}.brand small{font-size:10px;color:#859286;font-weight:500;margin-left:5px}main{max-width:1160px;margin:auto;padding:0 18px}.shell{border:1px solid #c4d0bd;border-radius:20px;overflow:hidden;background:#f9f7eb;box-shadow:0 15px 45px #345e4117}.heading{display:flex;align-items:center;justify-content:space-between;min-height:65px;padding:12px 22px;gap:10px;border-bottom:1px solid #dce2d0}.heading>div{display:flex;gap:12px;align-items:center}.heading b{font-size:18px;letter-spacing:3px}.heading small{font:9px ui-monospace,monospace;letter-spacing:2px;color:#8b9b87}.number{font:700 15px ui-monospace,monospace;border:1px solid #8fa887;border-radius:50%;width:31px;height:31px;display:grid;place-items:center;color:#6b8a63}.heading nav{display:flex;gap:7px}.heading button{color:#607860;border:1px solid #d3dcc9;border-radius:6px;background:#eef2e3;padding:8px 10px;font-size:11px}.heading button:hover{background:#e0e9d7}.stage{position:relative;aspect-ratio:5/3;overflow:hidden;isolation:isolate;background:#d9ece3}canvas{width:100%;height:100%;display:block;touch-action:none}.screen{position:absolute;inset:0;z-index:3}.home{display:flex;align-items:center;padding:4% 6%;background:linear-gradient(90deg,#fcf7e7fa,#fbf7e7f5 39%,#fbf7e700 76%)}.hero-copy{max-width:500px;width:56%}.eyebrow{font-size:10px;font-weight:750;letter-spacing:3px;color:#839170;margin:0 0 12px}.hero-copy h1{font-size:clamp(40px,5.8vw,69px);font-weight:900;line-height:1.05;letter-spacing:6px;margin:0;color:#3f745e}.hero-copy h1 span{display:block;margin-top:5px;color:#416152}.hero-copy h1 i{font-style:normal;color:#dcaa75;font-size:.85em;margin-left:12px}.english{font:9px ui-monospace,monospace;letter-spacing:2px;color:#a0a184;margin:18px 0}.intro{font-size:14px;line-height:1.8;color:#798772;margin:0 0 20px}.mode-tabs{display:flex;border:1px solid #aabc9b;border-radius:8px;overflow:hidden;max-width:330px;background:#edf1e0}.mode-tabs button{flex:1;padding:9px 12px;background:none;color:#7e8d71;font-size:12px}.mode-tabs button.active{background:#49735c;color:#f6f2d5}.difficulty{display:flex;gap:7px;margin:12px 0}.difficulty button{background:transparent;color:#93a082;border:1px solid #cbd4bb;padding:6px 9px;border-radius:20px;font-size:10px}.difficulty button.active{border-color:#af976d;color:#987a49;background:#f3e7ca}.courts{display:flex;gap:7px;margin-bottom:13px}.court-button{border:1px solid #c7d1b7;background:#fffbedb3;border-radius:8px;padding:8px 10px;text-align:left;min-width:87px;color:#75866b}.court-button.active{border:2px solid #679172;padding:7px 9px;background:#eaf1d9}.court-button b{display:block;font-size:11px}.court-button span{display:block;font-size:10px;letter-spacing:2px;margin-top:4px;color:#b39a60}.primary,.secondary{display:block;min-height:44px;width:100%;padding:12px 19px;border-radius:8px;font-size:13px;font-weight:750;margin-top:10px}.primary{background:#3f745e;color:#fff5d8;box-shadow:0 3px #2f5544}.primary:hover{background:#4f846b}.primary span{float:right;color:#e8c38f}.hero-copy>.primary{max-width:330px}.secondary{border:1px solid #becdb4;background:#edf2e1;color:#637d5b}.text-button{display:block;background:transparent;color:#839475;font-size:11px;margin:10px auto 0;padding:8px}.save-note{font-size:9px;color:#929b7e;margin:15px 0 0}.hero-badge{position:absolute;right:7%;top:10%;color:#496d57;transform:rotate(5deg);border-top:1px solid #97b698;padding-top:12px}.hero-badge span{font:10px ui-monospace;letter-spacing:2px}.hero-badge b{display:block;font-size:25px;line-height:1.4;letter-spacing:4px;margin:12px 0}.hero-badge i{font-size:36px;font-style:normal;color:#c99e65}.scoreboard{display:flex;align-items:center;padding:10px 22px;gap:18px;background:#f1f4e6;border-bottom:1px solid #c7d7b8;min-height:76px}.score-side{display:flex;align-items:center;gap:20px;flex:1}.score-side.right{justify-content:flex-end}.score-side span{font-size:11px;color:#829273}.score-side b{font:750 42px ui-monospace,monospace;line-height:1;color:#43775d}.score-side.right b{color:#bc875b}.match-info{display:flex;flex-direction:column;align-items:center;gap:5px}.match-info>span{font-size:10px;color:#839676}.match-info b{font-size:12px;letter-spacing:1px}.match-info small{font-size:9px;color:#9ba78b}.scoreboard>button{background:#e3ebd6;border:1px solid #c6d7b7;color:#68815c;padding:9px 12px;border-radius:6px}.shade{display:grid;place-items:center;background:#203e30ad;backdrop-filter:blur(5px);padding:16px;overflow:auto}.panel{width:350px;max-width:100%;text-align:center;padding:28px;background:#fcf7e7;border:1px solid #dce4c4;border-radius:17px;box-shadow:0 15px 45px #173d3225}.panel h2{font-size:27px;letter-spacing:2px;margin:8px 0 17px}.panel>p:not(.eyebrow){font-size:12px;line-height:1.8;color:#8b967c;margin:13px 0 20px}.guide{width:720px;text-align:left}.guide h2{font-size:25px}.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 24px;margin:23px 0}.guide-grid b{font-size:13px;color:#527859}.guide-grid p{font-size:11px;line-height:1.85;color:#819075;margin:8px 0 0}.guide .help-note{font-size:11px!important;margin:15px 0!important}.guide .primary{max-width:280px;text-align:center;margin:10px auto 0}.final-score{font:800 47px ui-monospace;color:#63815c;letter-spacing:7px}.stars{color:#c4a05a;letter-spacing:7px;font-size:25px;margin-top:9px}.result-stats{display:flex;justify-content:center;gap:9px;margin:17px 0}.result-stats span{font-size:10px;color:#859575;background:#edf0dd;border-radius:7px;padding:9px 11px}.control-strip{display:flex;justify-content:space-between;gap:10px;background:#edf1e0;color:#8b997c;padding:12px 20px;font-size:10px;border-top:1px solid #d7dfc8}.control-strip b{color:#5c7b54;margin-right:6px}.game-footer{display:flex;justify-content:space-between;gap:12px;padding:11px 20px;border-top:1px solid #dce2cf;color:#8d9a7b;font-size:9px}.game-footer span:last-child{font:9px ui-monospace;letter-spacing:1px;white-space:nowrap}.features{display:grid;grid-template-columns:repeat(3,1fr);gap:25px;padding:33px 5px}.features article{display:flex;gap:14px}.features article>span{font-size:29px;color:#b8ac7b}.features h2{font-size:13px;font-weight:700;margin:0 0 7px}.features p{font-size:11px;color:#95a084;line-height:1.85;margin:0}footer{max-width:1160px;margin:auto;padding:0 20px 30px;text-align:center;font-size:9px;line-height:2;color:#9ba48c}footer a{text-decoration:underline;text-underline-offset:3px}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,15px);background:#355b48ed;color:#fff6d8;padding:12px 19px;border-radius:8px;font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:99;text-align:center;max-width:90vw}#toast.show{opacity:1;transform:translate(-50%,0)}.touch-controls{position:absolute;inset:auto 15px 14px;z-index:2;display:none;justify-content:space-between;pointer-events:none}.move-pad,.shot-pad{display:flex;align-items:end;gap:10px}.touch-controls button{pointer-events:auto;touch-action:none;width:48px;height:48px;border:1px solid #f8f4cf99;border-radius:50%;background:#365c48ba;color:#faf4d7;backdrop-filter:blur(3px);font-size:12px;user-select:none}.touch-controls .hit-button{width:57px;height:57px;background:#47775bc9}.touch-controls .smash-button{background:#b78155c9}.touch-controls button.pressed{background:#d4a867}.shell:fullscreen{width:100%;height:100%;display:flex;flex-direction:column;border-radius:0;border:0;justify-content:center;background:#d9ece3}.shell:fullscreen .stage{flex:1;min-height:0;aspect-ratio:auto}.shell:fullscreen canvas{object-fit:contain}
@media(pointer:coarse){.touch-controls:not([hidden]){display:flex}.control-strip{display:none}.stage{user-select:none}}
@media(max-width:850px){.heading small{display:none}.heading{padding:10px 15px;min-height:56px}.heading b{font-size:15px}.heading nav button{font-size:10px;padding:7px}.hero-copy h1{font-size:48px}.hero-copy{width:60%}.home{padding:3% 5%}.intro{font-size:11px;margin-bottom:12px}.english{font-size:7px;margin:11px 0}.eyebrow{font-size:8px;margin-bottom:9px}.mode-tabs{max-width:285px}.mode-tabs button{padding:7px;font-size:10px}.difficulty{margin:9px 0;gap:5px}.difficulty button{font-size:9px;padding:5px 7px}.courts{gap:5px;margin-bottom:9px}.court-button{min-width:77px;padding:6px 8px}.court-button.active{padding:5px 7px}.court-button b{font-size:10px}.court-button span{font-size:9px}.hero-copy>.primary{max-width:285px;font-size:12px;min-height:37px;padding:10px 14px}.save-note{font-size:8px;margin-top:12px}.hero-badge b{font-size:20px}.hero-badge span{font-size:8px}.scoreboard{padding:9px 15px;gap:12px}.score-side{gap:12px}.score-side b{font-size:36px}.score-side span{font-size:10px}.match-info b{font-size:11px}.control-strip{font-size:8px;padding:10px 13px}.features{gap:16px}.features article{gap:9px}.guide{padding:20px}.guide h2{font-size:21px}.guide-grid{margin:17px 0;gap:15px}.panel{padding:23px}}
@media(max-width:560px){.site-nav{padding:16px 12px;font-size:10px}.brand{font-size:14px;gap:8px}.brand small{display:none}.brand>span{width:29px;height:29px;font-size:14px}main{padding:0 9px}.shell{border-radius:13px}.heading{padding:9px 10px;min-height:49px}.heading b{font-size:12px;letter-spacing:2px}.heading>div{gap:7px}.number{width:25px;height:25px;font-size:12px}.heading nav{gap:4px}.heading nav button{padding:6px 5px;font-size:9px}.stage{aspect-ratio:4/3}.stage canvas{object-fit:fill}.home{padding:4% 5%;background:linear-gradient(90deg,#fcf7e7fa,#fbf7e7ed 46%,#fbf7e700 90%)}.hero-copy{width:76%;max-width:285px}.hero-copy h1{font-size:35px;letter-spacing:4px;display:flex;gap:7px}.hero-copy h1 span{margin:0}.hero-copy h1 i{display:none}.eyebrow{font-size:7px;letter-spacing:2px}.english{font-size:6px;letter-spacing:1px;margin:11px 0}.intro{font-size:9px;line-height:1.6;margin-bottom:11px}.mode-tabs{max-width:225px}.mode-tabs button{font-size:10px;padding:6px}.difficulty{margin:9px 0 8px}.difficulty button{font-size:8px;padding:4px 6px}.court-button{min-width:65px;padding:5px 6px}.court-button.active{padding:4px 5px}.court-button b{font-size:8px}.court-button span{font-size:8px;letter-spacing:1px;margin-top:3px}.hero-copy>.primary{max-width:225px;min-height:33px;padding:9px 12px;font-size:10px;margin-top:7px}.save-note{font-size:7px;margin-top:10px}.hero-badge{right:5%;top:9%;padding-top:8px}.hero-badge span{font-size:6px;letter-spacing:1px}.hero-badge b{font-size:13px;letter-spacing:2px;margin:10px 0}.hero-badge i{font-size:25px}.scoreboard{padding:9px 10px;gap:9px;min-height:65px}.score-side{gap:7px}.score-side b{font-size:29px}.score-side span{font-size:8px;max-width:48px;line-height:1.7}.match-info{gap:4px}.match-info>span,.match-info small{font-size:8px}.match-info b{font-size:9px;letter-spacing:0}.scoreboard>button{padding:7px 9px}.game-footer{padding:9px 10px;font-size:8px}.game-footer span:last-child{font-size:7px;letter-spacing:0}.features{grid-template-columns:1fr;gap:18px;padding:24px 5px}.features h2{font-size:12px;margin-bottom:4px}.features p{font-size:10px}.features article>span{font-size:25px}.touch-controls{inset:auto 10px 11px}.move-pad,.shot-pad{gap:6px}.touch-controls button{width:38px;height:38px;font-size:10px}.touch-controls .hit-button{width:46px;height:46px}.panel{padding:17px;width:290px}.panel h2{font-size:21px;margin:8px 0 11px}.panel>p:not(.eyebrow){font-size:10px;margin:10px 0 14px}.panel .primary,.panel .secondary{min-height:35px;padding:9px 12px;font-size:11px}.guide{margin:12px 0}.guide h2{font-size:17px;letter-spacing:1px}.guide-grid{grid-template-columns:1fr;gap:12px;margin:14px 0}.guide-grid b{font-size:11px}.guide-grid p{font-size:10px;line-height:1.7;margin:5px 0 0}.guide .help-note{font-size:9px!important}.final-score{font-size:35px}.stars{font-size:21px}.result-stats{margin:12px 0}.result-stats span{font-size:9px;padding:8px}}
@media(max-height:550px) and (orientation:landscape){.site-nav,.features,body>footer{display:none}main{padding:0 9px}.heading{min-height:40px;padding:6px 13px}.stage{aspect-ratio:5/3;max-height:calc(100dvh - 130px)}.home{padding:2% 5%}.hero-copy{width:60%;max-width:470px}.hero-copy h1{display:flex;font-size:32px;gap:10px}.hero-copy h1 span{margin:0}.hero-copy .eyebrow,.english,.save-note,.intro{display:none}.mode-tabs{max-width:255px}.mode-tabs button{padding:5px 9px;font-size:10px}.difficulty{margin:7px 0}.difficulty button{padding:3px 7px;font-size:9px}.courts{margin:7px 0}.court-button{padding:4px 9px}.court-button.active{padding:3px 8px}.hero-copy>.primary{min-height:30px;padding:7px 12px;margin-top:6px;font-size:11px;max-width:255px}.hero-badge b{font-size:16px}.scoreboard{min-height:54px;padding:7px 15px}.score-side b{font-size:31px}.game-footer{padding:6px 12px}.control-strip{padding:6px 12px}.panel{padding:16px}.panel h2{font-size:21px;margin:5px 0 9px}.panel>p:not(.eyebrow){font-size:11px;margin:9px 0}.panel .primary,.panel .secondary{min-height:32px;padding:8px}.final-score{font-size:32px}.stars{font-size:20px;margin-top:5px}.result-stats{margin:8px 0}.guide{max-width:750px}.guide h2{font-size:19px}.guide-grid{grid-template-columns:1fr 1fr;gap:8px 17px;margin:10px 0}.guide-grid p{font-size:9px;margin:4px 0}.guide-grid b{font-size:11px}.guide .help-note{font-size:9px!important;margin:7px 0!important}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Keep the full court visible while a match is active. */
canvas{object-fit:contain}.stage{width:100%}.panel{max-height:100%;overflow:auto}
body:has(#scoreboard:not([hidden])) .site-nav,body:has(#scoreboard:not([hidden])) .features,body:has(#scoreboard:not([hidden]))>footer{display:none}
body:has(#scoreboard:not([hidden])) main{padding-top:10px}
body:has(#scoreboard:not([hidden])) .stage{height:min(56vw,calc(100dvh - 225px));min-height:210px;aspect-ratio:auto}
@media(max-width:560px){.stage:has(#home-screen:not([hidden])){height:390px;aspect-ratio:auto}.home{overflow:auto}.hero-copy{width:88%}.stage canvas{object-fit:contain}.touch-controls:not([hidden]){display:flex}.control-strip{display:none}.game-footer span:last-child{display:none}body:has(#scoreboard:not([hidden])) .stage{height:300px;min-height:0}}
@media(max-height:550px) and (orientation:landscape){body:has(#scoreboard:not([hidden])) main{padding-top:0}body:has(#scoreboard:not([hidden])) .stage{height:calc(100dvh - 150px);min-height:0;max-height:none;aspect-ratio:auto}.touch-controls:not([hidden]){display:flex}.control-strip{display:none}.stage canvas{object-fit:contain}.game-footer{min-height:28px}}
