:root{--paper:#f4f3eb;--ink:#203326;--muted:#818778;--line:#dedfd3;--lime:#d2f784;--court:#1c3026;--peach:#edac8e;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);font-synthesis:none;background:var(--paper);font-size:14px}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0}button:disabled{cursor:default;opacity:.58}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #80a543;outline-offset:4px}input{min-width:0}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.app{max-width:1540px;margin:auto;padding:0 54px}.header{height:106px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:24px}.brand{display:flex;align-items:center;gap:13px;font-size:27px;letter-spacing:-1.2px;font-weight:900}.brand-duo{font-size:11px;font-weight:750;letter-spacing:1.1px;border:1px solid var(--ink);padding:3px 5px;border-radius:4px;margin-left:8px;vertical-align:middle}.brandmark{width:35px;height:39px;display:block;position:relative;transform:rotate(-37deg)}.brandmark i{position:absolute;left:3px;top:0;width:28px;height:29px;border-radius:50%;background:var(--ink)}.brandmark:after{content:"";position:absolute;left:13px;bottom:0;width:8px;height:14px;background:var(--ink);border-radius:3px}.brandmark b{position:absolute;right:-3px;top:3px;background:#a6c86e;width:9px;height:9px;border-radius:50%;border:2px solid var(--paper)}.header-note{font-size:10px;font-weight:700;letter-spacing:1.9px;color:#87907f;margin-left:auto;margin-right:32px}.header-actions{display:flex;align-items:center;gap:10px}.players-pill{border:1px solid var(--line);border-radius:30px;padding:10px 13px;display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:1px;font-weight:700}.dot{display:inline-block;width:6px;height:6px;background:#94b564;border-radius:50%;flex-shrink:0}.dot.muted{background:#a0a99a}.icon-btn{height:33px;width:33px;border:1px solid var(--line);background:transparent;border-radius:50%;font-size:16px;transition:background .2s}.icon-btn:hover{background:#e8ebdc}.layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:46px;padding:34px 0 24px}.sidebar{padding-top:10px}.eyebrow{font-size:9px;letter-spacing:1.6px;font-weight:750;display:flex;align-items:center;gap:8px;margin:0 0 18px}.tiny-line{width:16px;height:2px;background:#8ba64f;display:inline-block}h1{font-size:51px;letter-spacing:-2.9px;line-height:1.1;font-weight:770;margin:0 0 18px}h1 em{font-style:normal;color:#7b8a5e}.intro{font-size:13px;line-height:1.85;color:#818779;margin:0 0 26px}.mode-switch{display:flex;padding:4px;background:#e8eadf;border:1px solid #e0e3d5;border-radius:10px;margin-bottom:24px}.mode-switch button{flex:1;display:flex;justify-content:center;align-items:center;gap:9px;border-radius:7px;background:none;padding:11px 7px;font-size:12px;font-weight:650;color:#7c8473}.mode-switch button.active{background:var(--paper);color:var(--ink);box-shadow:0 1px 4px #2833150e}.mode-switch button span{font-size:17px;line-height:12px}.field-label{display:block;font-size:9px;letter-spacing:1.4px;font-weight:700;color:#818877;margin:0 0 9px}.name-field{height:45px;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;padding:0 13px;gap:9px;margin-bottom:22px;background:#f8f8f0}.name-icon{font-size:18px;color:#8a947d}.name-field input{background:none;border:0;outline:none;flex:1;color:var(--ink);font-size:12px;height:100%}.name-field:focus-within{border-color:#92aa66}.difficulty{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.difficulty button{display:flex;justify-content:center;align-items:center;gap:7px;background:transparent;border:1px solid var(--line);border-radius:7px;padding:12px 6px;font-size:12px;font-weight:600}.difficulty button.active{border-color:#8f9f75;background:#e9efd8}.difficulty-bars{height:13px;display:flex;align-items:end;gap:2px}.difficulty-bars i{display:block;width:3px;height:5px;background:currentColor;border-radius:1px}.difficulty-bars i:nth-child(2){height:9px}.difficulty-bars i:nth-child(3){height:13px}.helper{font-size:11px;color:#8a8f80;margin:10px 0 22px;min-height:14px}.button{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 19px;min-height:49px;border-radius:8px;font-weight:700;font-size:13px;transition:transform .15s,background .15s;touch-action:manipulation}.button:not(:disabled):active{transform:translateY(1px)}.button.primary{background:var(--lime);color:#243820;width:100%}.button.primary:hover:not(:disabled){background:#c8ef78}.button.primary>span:last-child{font-size:22px;line-height:14px}.button.dark{background:var(--ink);color:var(--paper)}.micro-note{font-size:9px;text-align:center;color:#959b8a;margin:11px 0 26px}.sidebar-stats{margin-top:30px;padding-top:23px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:20px}.sidebar-stats>div+div{border-left:1px solid var(--line);padding-left:25px}.sidebar-stats strong{font-size:29px;font-weight:600;letter-spacing:-1px;font-variant-numeric:tabular-nums}.sidebar-stats strong span{font-size:10px;color:#999d90;letter-spacing:0;font-weight:400}.sidebar-stats .field-label{font-size:8px;letter-spacing:1px}.sidebar-foot{font-size:10px;color:#919883;margin-top:24px;display:flex;gap:8px;align-items:center}.sidebar-foot span{font-size:18px;color:#8e9d76}.court-topline{display:flex;align-items:center;justify-content:space-between;font-size:9px;font-weight:700;letter-spacing:1.2px;height:30px;margin-bottom:12px}.court-number{display:inline-block;padding:4px 6px;background:#e5e8da;border-radius:4px;font-size:9px;margin-right:7px}.slash{color:#bcc0b2;margin:0 7px}.mode-badge{font-size:8px;letter-spacing:1.1px;border:1px solid #dce0cf;border-radius:5px;padding:6px 9px;color:#7a8768}.stage{height:540px;min-height:380px;position:relative;border-radius:14px;overflow:hidden;background:var(--court);box-shadow:0 15px 34px -25px #15261780}#court{width:100%;height:100%;display:block;touch-action:none;cursor:crosshair;outline-offset:-4px}.stage-top{position:absolute;left:22px;right:19px;top:20px;display:flex;justify-content:space-between;align-items:center;pointer-events:none}.stage-tag{font-size:8px;letter-spacing:1.2px;color:#b0b99f;display:flex;gap:7px;align-items:center}.stage-tag .dot{width:5px;height:5px;background:#c9f28a}.stage-icon{pointer-events:auto;background:#dcebb50c;border:1px solid #cfdfb226;width:29px;height:29px;border-radius:7px;color:#dbe4c9;font-size:12px}.scoreboard{position:absolute;left:50%;transform:translateX(-50%);top:45px;display:flex;align-items:center;justify-content:center;gap:25px;pointer-events:none}.score-side{position:relative;display:flex;flex-direction:column;align-items:center;min-width:100px}.score-name{font-size:9px;font-weight:650;letter-spacing:1px;color:#bfcda8;white-space:nowrap;max-width:130px;overflow:hidden;text-overflow:ellipsis;text-align:center}.score-side strong{font-size:60px;line-height:1.2;color:#d8f7a0;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:-2px}.score-side.opponent strong{color:#f0c1a5}.score-side.opponent .score-name{color:#cbb6a0}.score-colon{color:#6f8270;font-size:30px;font-weight:300;margin-top:15px}.service-dot{height:4px;width:15px;border-radius:10px;background:#d4f095;display:block;margin:4px auto}.opponent .service-dot{background:#efbea0}.stage-bottom{position:absolute;bottom:20px;left:24px;right:24px;display:flex;justify-content:space-between;align-items:end;gap:14px;pointer-events:none}.rally-counter{display:flex;flex-direction:column;gap:3px;min-width:60px}.rally-counter span{font-size:8px;letter-spacing:1.9px;color:#839777}.rally-counter strong{font-size:30px;font-weight:450;line-height:1;letter-spacing:-1px;color:#d3dec6;font-variant-numeric:tabular-nums}.status-wrap{display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;max-width:65%}#phase-text{color:#dbe5c8;font-size:12px;font-weight:600}#phase-sub{color:#8f9d82;font-size:9px}.latency{font-size:8px;color:#8b9b7d;letter-spacing:.9px;text-align:right;min-width:70px;margin-bottom:3px}.controlbar{margin-top:15px;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 20px;background:#eeefe5;border:1px solid #e1e4d4;border-radius:9px}.move-guide{display:flex;align-items:center;gap:13px}.keycaps{display:flex;gap:4px;align-items:center}.keycaps kbd{display:inline-flex;width:25px;height:27px;border:1px solid #cbd1be;border-bottom-width:3px;border-radius:4px;align-items:center;justify-content:center;font-size:10px;background:#f8f8ef;color:#737e65}.keycaps>span{color:#99a08f;font-size:11px;margin-left:4px}.keycaps .mouse-glyph{font-size:23px;color:#6d7f57}.move-guide strong{display:block;font-size:10px;font-weight:650;line-height:1.7}.move-guide>div>span{font-size:9px;color:#959b88}.power-control{display:flex;align-items:center;gap:16px}.power-meters{width:114px}.power-meters label{font-size:7px;letter-spacing:1px;font-weight:700;display:flex;justify-content:space-between;margin-bottom:6px}.power-meters label span{color:#819267;letter-spacing:0}progress{display:block;width:100%;height:5px;border:0;overflow:hidden;border-radius:10px;appearance:none;-webkit-appearance:none;background:#d9decc}progress::-webkit-progress-bar{background:#d9decc;border-radius:10px}progress::-webkit-progress-value{background:#87a856;border-radius:10px}progress::-moz-progress-bar{background:#87a856;border-radius:10px}.energy-row{display:flex;align-items:center;gap:7px;margin-top:6px}.energy-row>span{white-space:nowrap;font-size:7px;color:#929985}.energy-row progress{height:3px;opacity:.7}.power-btn{border:1px solid #c7ceba;background:#f9faf0;border-radius:6px;padding:9px 13px;text-align:left;touch-action:none;user-select:none}.power-btn span{display:block;font-size:7px;letter-spacing:1.1px;color:#94a083;margin-bottom:3px}.power-btn strong{font-size:10px;font-weight:700}.power-btn.held{background:#d8efaf;border-color:#9cb776}.tips{display:grid;grid-template-columns:repeat(3,1fr);gap:23px;margin-top:25px}.tips>div{display:flex;gap:10px}.tips>div>span{font-size:9px;color:#939f81;line-height:1.8}.tips p{margin:0;font-size:9px;color:#939989;line-height:1.7}.tips strong{display:block;font-size:10px;color:#657257;font-weight:600;margin-bottom:3px}.footer{border-top:1px solid var(--line);margin-top:8px;padding:21px 0 25px;display:flex;justify-content:space-between;font-size:8px;font-weight:600;letter-spacing:1.25px;color:#969d8b}.footer-dot{margin:0 8px;color:#bbc1af}.connection-text{font-size:10px;color:#7f8b72;margin:-7px 0 17px;line-height:1.6}.divider{display:flex;align-items:center;gap:8px;font-size:9px;color:#949d86;margin:19px 0}.divider:before,.divider:after{content:"";height:1px;flex:1;background:var(--line)}.join-row{display:flex;gap:8px}.join-row input{background:#f8f8f0;border:1px solid var(--line);border-radius:7px;width:100%;padding:10px 13px;letter-spacing:3px;text-transform:uppercase;font-size:13px;font-weight:700}.join-row .button{min-width:60px;padding:12px 18px;justify-content:center}.room-code-card{background:#e9eedc;border:1px solid #d9e1c9;border-radius:9px;padding:14px 16px;margin-bottom:14px}.room-code-card .field-label{font-size:8px;margin:0 0 6px}.room-code-card>div{display:flex;align-items:center;justify-content:space-between}.room-code-card strong{font-size:26px;letter-spacing:3px;font-weight:700}.copy-btn{background:transparent;border:1px solid #b9c6a3;border-radius:5px;width:28px;height:29px;font-size:17px}.text-btn{border:0;background:none;padding:8px 0;font-size:10px;color:#7d8c65;text-decoration:underline;text-underline-offset:3px}.room-code-card .text-btn{font-size:9px;padding-bottom:0}.room-player{display:flex;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid var(--line)}.avatar{display:flex;justify-content:center;align-items:center;width:30px;height:30px;border-radius:8px;background:#e0ebc4;font-size:11px;font-weight:650}.avatar.peach{background:#f0ddca;color:#947258}.room-player>div{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.room-player strong{font-size:11px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-player>div>span{font-size:9px;color:#939c85}#ready-btn{margin-top:18px}.leave{display:block;margin:5px auto -10px;color:#909782}.error-text{font-size:11px;color:#a5533d;background:#f4e8de;padding:10px;border-radius:6px;line-height:1.6}.countdown{position:absolute;left:50%;top:40%;transform:translate(-50%,-50%);font-size:90px;line-height:1;font-weight:700;color:#e8ffbc;text-shadow:0 3px 30px #1c302680;pointer-events:none}.result-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:4;background:#12221988;backdrop-filter:blur(4px);padding:22px}.result-card{width:330px;text-align:center;background:#f4f3eb;border:1px solid #e7ecd7;border-radius:13px;padding:29px 27px;box-shadow:0 10px 50px #0b191850}.result-card .eyebrow{justify-content:center;color:#839268;font-size:8px;margin-bottom:12px}.result-card h2{font-size:30px;letter-spacing:-1.2px;line-height:1.2;margin:0 0 13px}.result-card p{font-size:12px;line-height:1.8;color:#8a927f;margin:0 0 23px}.result-card .button{justify-content:center;font-size:12px}.result-card .text-btn{margin-top:8px}.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);background:#253927;color:#f2f5e8;padding:13px 20px;border-radius:9px;box-shadow:0 5px 25px #15231630;font-size:12px;max-width:calc(100% - 30px);z-index:30;text-align:center;line-height:1.6}.noscript{position:fixed;inset:0;display:grid;place-items:center;background:var(--paper);font-size:20px}dialog{border:1px solid #d8dfc7;border-radius:16px;padding:28px 30px;max-width:530px;width:calc(100% - 32px);max-height:85dvh;color:var(--ink);background:var(--paper);box-shadow:0 30px 100px #17220e50}dialog::backdrop{background:#152c2299;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.dialog-heading .eyebrow{margin:0;font-size:8px}dialog h2{font-size:39px;letter-spacing:-1.8px;margin:12px 0 20px}dialog p{font-size:12px;line-height:1.8;color:#7c8970;margin:13px 0}dialog strong{color:#31432b}dialog .dialog-note{font-size:10px;border-top:1px solid var(--line);padding-top:13px;margin:20px 0}.dialog-heading .icon-btn{flex-shrink:0}body.dialog-open{overflow:hidden}
@media(min-width:1450px){.layout{grid-template-columns:305px minmax(0,1fr);gap:55px}.stage{height:590px}h1{font-size:57px}.sidebar{padding-top:15px}.intro{margin-bottom:30px}.sidebar-stats{margin-top:42px}}
@media(max-width:1190px){.app{padding:0 30px}.layout{grid-template-columns:260px minmax(0,1fr);gap:27px}h1{font-size:46px}.header-note{display:none}.stage{height:515px}.score-side strong{font-size:53px}.scoreboard{gap:15px}.score-side{min-width:80px}.controlbar{padding:14px}.move-guide{gap:9px}.move-guide>div>span{font-size:8px}.power-control{gap:9px}.power-meters{width:90px}.keycaps .mouse-glyph,.keycaps>span{display:none}.tips{gap:13px}.tips p{font-size:8px}.stage-bottom{left:18px;right:18px}.latency{min-width:48px;font-size:7px}#phase-text{font-size:11px}}
@media(max-width:900px){.app{padding:0 22px}.layout{grid-template-columns:225px minmax(0,1fr);gap:20px}.header{height:84px}.brand{font-size:24px}.stage{height:480px}.stage-top{left:16px;top:17px}.stage-tag{font-size:7px;letter-spacing:.7px}.scoreboard{top:49px}.score-side{min-width:63px}.score-name{font-size:8px;max-width:100px}.score-side strong{font-size:47px}.score-colon{font-size:24px}.eyebrow{font-size:8px;letter-spacing:1px}h1{font-size:41px;letter-spacing:-2.3px}.intro{font-size:12px}.mode-switch button{font-size:10px;gap:6px}.helper{font-size:9px}.micro-note{font-size:8px}.court-topline{font-size:8px;letter-spacing:.7px}.mode-badge{font-size:7px}.controlbar{gap:12px}.keycaps{display:none}.power-meters{width:80px}.power-btn{padding:9px}.power-btn strong{font-size:9px}.tips{gap:12px}.tips>div{gap:6px}.tips strong{font-size:9px}.stage-bottom{bottom:17px;left:15px;right:15px}.rally-counter{min-width:35px}.rally-counter strong{font-size:25px}.latency{display:none}.status-wrap{align-items:end;text-align:right;max-width:80%}.sidebar-stats>div+div{padding-left:13px}.sidebar-stats .field-label{font-size:7px}.footer{font-size:7px;letter-spacing:.7px}}
@media(max-width:700px){.app{padding:0 18px}.header{height:76px;gap:10px}.brand{font-size:23px;gap:9px}.brandmark{transform:rotate(-37deg) scale(.88);margin-left:-3px}.brand-duo{font-size:9px;margin-left:6px}.header-actions{gap:6px}.players-pill{font-size:8px;padding:8px 10px}.icon-btn{width:29px;height:29px;font-size:14px}.layout{display:flex;flex-direction:column;gap:23px;padding-top:24px}.sidebar{padding-top:0}.sidebar .eyebrow{font-size:8px;margin-bottom:11px}h1{font-size:43px;line-height:1.04;margin-bottom:10px;letter-spacing:-2.4px}h1 br{display:none}h1 br:after{content:' '}.intro{font-size:11px;margin:0 0 17px;line-height:1.6}.intro br{display:none}.intro br:after{content:' '}.mode-switch{margin-bottom:16px;max-width:none}.mode-switch button{font-size:12px;padding:10px}.name-field{height:42px;margin-bottom:16px}.field-label{font-size:8px}.difficulty button{padding:11px}.helper{font-size:10px;margin:9px 0 13px}.button{min-height:46px}.micro-note{font-size:8px;margin:9px 0 0}.sidebar-stats,.sidebar-foot{display:none}.court-topline{height:24px;margin-bottom:8px}.stage{height:445px;min-height:360px;border-radius:12px}.stage-top{left:17px;right:15px;top:16px}.stage-tag{font-size:7px}.scoreboard{top:44px;gap:19px}.score-side strong{font-size:50px}.score-side{min-width:78px}.score-name{font-size:8px}.stage-bottom{bottom:20px;left:20px;right:20px}.rally-counter strong{font-size:28px}#phase-text{font-size:11px}#phase-sub{font-size:9px}.controlbar{margin-top:11px;padding:13px;gap:8px}.move-guide strong{font-size:10px}.move-guide>div>span{font-size:8px}.power-control{gap:12px}.power-meters{width:90px}.power-btn{padding:10px}.power-btn strong{font-size:9px}.tips{gap:12px;margin-top:20px}.tips p{font-size:8px}.tips strong{font-size:9px}.tips>div{gap:6px}.footer{margin-top:0;gap:10px;flex-direction:column;padding:17px 0 23px;font-size:7px}.countdown{font-size:70px}.room-code-card{padding:13px 15px}.room-player{padding:9px 0}.connection-text{margin:0 0 12px}.leave{margin-bottom:0}body.playing .intro,body.playing .sidebar>.eyebrow,body.playing .sidebar>h1{display:none}body.playing .layout{padding-top:17px;gap:15px}body.playing .mode-switch{margin-bottom:11px}body.playing .sidebar>.field-label,body.playing .name-field{display:none}body.playing #ai-panel>.field-label,body.playing .difficulty,body.playing .helper,body.playing .micro-note{display:none}body.playing #start-btn{min-height:37px;padding:10px 14px;font-size:11px}body.playing #ai-panel{display:flex;justify-content:end}body.playing #start-btn{width:auto;gap:20px}body.playing .stage{height:calc(100dvh - 290px);min-height:360px;max-height:540px}body.playing .tips{display:none}body.playing .connection-text{display:none}body.playing #lobby{display:flex;flex-wrap:wrap;gap:8px;align-items:center}body.playing .room-code-card{padding:8px 12px;flex:1;margin:0}body.playing .room-code-card .field-label,body.playing .room-code-card .text-btn,body.playing .room-player{display:none}body.playing .room-code-card strong{font-size:19px}body.playing #ready-btn{width:auto;margin:0;min-height:42px;font-size:10px;padding:10px 15px}body.playing .leave{font-size:9px;margin:0 4px;padding:8px}body.playing .court-topline{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.button.attn{animation:attn-pulse 1.5s ease-out infinite}
@keyframes attn-pulse{0%{box-shadow:0 0 0 0 rgba(146,196,62,.75)}70%{box-shadow:0 0 0 11px rgba(146,196,62,0)}100%{box-shadow:0 0 0 0 rgba(146,196,62,0)}}
@media(prefers-reduced-motion:reduce){.button.attn{animation:none;box-shadow:0 0 0 3px rgba(146,196,62,.6)}}
