html,body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,[contenteditable]{-webkit-user-select:text;user-select:text}
:root{font-family:"Segoe UI","Yu Gothic UI","Meiryo",sans-serif;color:#243e37;background:#dbe2e9;font-synthesis:none;--green:#263e69;--lime:#efd48c}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}button{font:inherit;cursor:pointer}button:focus-visible,canvas:focus-visible{outline:3px solid #bdd95b;outline-offset:-4px}[hidden]{display:none!important}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 244px;gap:10px;padding:8px;height:100svh}.arena{position:relative;overflow:hidden;border-radius:12px;background:#bed2ca;min-width:0;isolation:isolate}#court{display:block;width:100%;height:100%;cursor:crosshair;touch-action:none}.sidebar{overflow-y:auto;scrollbar-width:thin;display:flex;flex-direction:column;padding:16px 15px 10px;background:#fff9ec;border-radius:12px;gap:17px;min-height:0}.scoreboard{color:var(--green)}.score-heading{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#7b8c7c;padding-bottom:10px;border-bottom:1px solid #dce2d6}.score-heading>span:first-child{font-size:11px;font-weight:650;color:#42604b}.score-row{display:grid;grid-template-columns:8px 1fr 7px 28px;gap:8px;align-items:center;height:43px;font-size:12px}.score-row+.score-row{border-top:1px solid #e7eade}.score-row>b{font-size:28px;font-weight:450;line-height:1;text-align:right;font-variant-numeric:tabular-nums}.score-row>i{height:5px;width:5px;border-radius:50%;background:#7f9955;opacity:0}.score-row>i.serving{opacity:1}.player-dot{width:6px;height:6px;border-radius:50%;background:#677f81}.player-dot.cpu{background:#c98468}.intro-panel{padding:0 0 2px}.intro-panel p{font-size:11px;margin:0 0 10px;color:#516b58}.primary-button{background:var(--green);color:#f4f5e8;border:0;border-radius:7px;padding:13px 16px;width:100%;display:flex;justify-content:center;align-items:center;gap:30px;font-size:12px;font-weight:600}.primary-button:hover{background:#355b91}.primary-button>span{font-size:17px}.instructions h1{font-size:12px;margin:0 0 17px;font-weight:650;letter-spacing:1px}.control{display:flex;align-items:flex-start;gap:11px;margin-bottom:17px}.control>div{flex:1}.control b{font-size:11px;font-weight:650}.control p{font-size:10px;line-height:1.9;color:#7b8b7a;margin:6px 0 0}.control strong{font-weight:600;color:#3b6049}.mouse-icon{flex-shrink:0;width:19px;height:28px;border:1.5px solid #6d8974;border-radius:9px;position:relative;display:block;overflow:hidden;margin-top:2px}.mouse-icon:before{content:"";position:absolute;width:50%;height:12px;top:0;background:#6d8974}.mouse-icon.right:before{right:0}.mouse-icon:after{content:"";position:absolute;width:1px;height:11px;left:8px;top:0;background:#fff9ec}.gesture{display:flex;gap:6px;align-items:center;justify-content:center;padding:10px 7px;border:1px solid #e0e6d6;border-radius:7px;margin-top:-5px;font-size:10px;color:#50704d}.gesture>i{font-style:normal;color:#b2bfa3}.gesture>span:last-child{font-weight:700;color:#305d3e}.tip{font-size:9px;line-height:1.8;color:#85917d;margin:8px 0 20px}.wheel-icon{display:block;width:19px;flex-shrink:0;font-size:26px;color:#6d8974;line-height:1.1;text-align:center}.shot-state{padding:13px;background:#eaf0df;border-radius:9px;margin-top:-5px}.state-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:9px;color:#708367}.state-heading>b{font-size:11px;color:#365733}.charge-track{height:5px;margin:13px 0 9px;background:#ccd9bc;border-radius:4px;position:relative;overflow:hidden}.charge-track>i{display:block;width:0;height:100%;background:#7b9e4c;border-radius:4px;transition:width .04s}.shot-state.right .charge-track>i{background:#c98954}.shot-state.lob .charge-track>i{background:#689fac}.shot-state p{font-size:9px;color:#7d8b6c;margin:0;line-height:1.7;min-height:15px}.current-form{display:flex;justify-content:space-between;font-size:9px;border-top:1px solid #d7e1cb;padding-top:10px;margin-top:10px;color:#7b8d70}.current-form>b{font-size:10px;font-weight:650;color:#47623d}.position{font-size:9px;margin-top:auto}.position>div:first-child{display:flex;justify-content:space-between;color:#8d9a83}.position small{font-size:9px;color:#657b58}.position-track{height:3px;background:#e0e6d7;margin-top:10px}.position-track>i{display:block;height:100%;width:50%;background:#9cac82}.rally{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#8a997e;margin-top:-3px}.rally b{font-size:25px;font-weight:350;color:#426241;font-variant-numeric:tabular-nums}.actions{display:flex;gap:7px;margin-top:-6px}.actions>button{flex:1;border:1px solid #d9e1d0;background:transparent;color:#5e7553;border-radius:6px;padding:9px 0;font-size:10px}.actions>button:hover{background:#e6eddc}.actions>button:disabled{opacity:.4;cursor:default}.sidebar-foot{font-size:8px;color:#a2ae99;text-align:center;margin:-7px 0 0}.bottom-hud{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);padding:11px 24px;background:#173f37e8;border:1px solid #ffffff22;color:#fff;border-radius:9px;text-align:center;pointer-events:none;min-width:240px;box-shadow:0 5px 20px #133b3020}.bottom-hud>span{font-size:8px;color:#d7ec99;display:block;margin-bottom:5px;letter-spacing:1px}.bottom-hud>b{font-size:11px;font-weight:500}.announcement{position:absolute;top:17%;left:50%;transform:translate(-50%,-50%);color:#fff;white-space:nowrap;font-size:27px;font-weight:600;letter-spacing:1px;opacity:0;transition:opacity .1s;pointer-events:none;text-shadow:0 2px 15px #19382d99}.announcement.visible{opacity:1}.center-panel{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#f8faf0f5;color:#234a36;border-radius:14px;padding:30px;width:290px;text-align:center;box-shadow:0 15px 70px #193f3330}.center-panel h2{font-size:24px;font-weight:500;margin:0 0 25px}.center-panel p{font-size:20px;margin:0 0 25px}.error-panel{position:absolute;inset:15%;padding:30px;background:#f4f6e9;white-space:pre-line;border-radius:12px;font-size:13px}@media(max-height:790px){.sidebar{gap:12px;padding:12px}.control{margin-bottom:12px}.instructions h1{margin-bottom:12px}.tip{margin-bottom:14px}.control p{line-height:1.7}.score-row{height:35px}.shot-state{padding:10px}.sidebar-foot{display:none}}@media(max-width:950px){.game-layout{grid-template-columns:minmax(0,1fr) 218px;gap:6px;padding:6px}.sidebar{padding:12px}.control b{font-size:10px}.control p{font-size:9px}.mouse-icon{width:17px;height:26px}.mouse-icon:after{left:7px}.bottom-hud{min-width:200px;padding:10px 15px}}@media(max-width:620px){.game-layout{grid-template-columns:minmax(0,1fr) 165px;padding:3px;gap:3px}.sidebar{padding:10px 8px;gap:12px}.control{gap:7px}.control b{font-size:9px}.control p{font-size:8px}.instructions h1{font-size:11px}.gesture{font-size:8px;gap:4px}.tip{font-size:8px}.score-heading{font-size:7px}.score-heading>span:first-child{font-size:9px}.bottom-hud{min-width:150px;padding:9px 10px;bottom:10px}.bottom-hud>b{font-size:9px}.bottom-hud>span{font-size:7px}.announcement{font-size:18px}.actions{gap:4px}.actions>button{font-size:9px}.center-panel{width:190px;padding:20px}.center-panel h2{font-size:20px}.control p br{display:none}}

.drag-guide{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;color:#f3f8d6;overflow:visible;filter:drop-shadow(0 2px 3px #1238)}#drag-range{fill:none;stroke:currentColor;stroke-width:1;stroke-dasharray:3 5;opacity:.4}#drag-origin{fill:#20483c;stroke:currentColor;stroke-width:2}#drag-line{stroke:currentColor;stroke-width:2.5}#drag-tip{fill:currentColor}.instructions .control{margin-bottom:13px}.instructions h1{margin-bottom:13px}.tip{margin-bottom:15px}

.sidebar{gap:12px}.instructions .control{margin-bottom:11px}.instructions .control:last-child{margin-bottom:0}.instructions h1{margin-bottom:13px}.control p{line-height:1.7;margin-top:4px}.assist-setting{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#6c8064}.assist-setting select{font:inherit;font-size:10px;border:1px solid #d6e1cc;background:#eef4e7;color:#3c653f;padding:6px 3px;border-radius:5px;max-width:120px}.shot-options{display:flex;border:1px solid #dce5d2;border-radius:6px;overflow:hidden;flex-shrink:0}.shot-options button{border:0;border-right:1px solid #dce5d2;flex:1;background:transparent;color:#6b8161;padding:9px 2px;font-size:10px}.shot-options button:last-child{border-right:0}.shot-options button[aria-pressed=true]{background:#365c44;color:#f7faed}.special-state{flex-shrink:0}.special-state>button{width:100%;border:1px solid #e0d8b2;background:#f5f0dc;color:#94894d;border-radius:6px;padding:10px;display:flex;justify-content:space-between;font-size:10px}.special-state>button:disabled{opacity:.6;cursor:default}.special-state>button.ready{background:#ddd58c;color:#4e502e;border-color:#c9c16e}.special-state>button.armed{background:#596b36;color:#fbffd7}.special-track{height:3px;background:#e8e8d8;margin-top:5px}.special-track i{display:block;width:0;height:100%;background:#c6b361}.stamina{display:flex;gap:10px;align-items:center;font-size:9px;color:#87977d}.stamina>div{height:4px;background:#e4e9dc;flex:1;overflow:hidden;border-radius:3px}.stamina i{height:100%;width:100%;display:block;background:#8cae70}.position{display:none}.rally{margin-top:0}.shot-state{margin-top:0}.shot-state p{font-size:9px}.current-form{padding-top:7px;margin-top:7px}.charge-track{margin:10px 0 7px}.actions{margin-top:auto}.sidebar-foot{margin-top:0;line-height:1.5}@media(max-height:790px){.sidebar{gap:9px}.instructions .control{margin-bottom:8px}.shot-state{padding:9px}.score-row{height:32px}.special-state>button{padding:8px}.instructions h1{margin-bottom:10px}}@media(max-width:620px){.assist-setting{display:block}.assist-setting select{margin-top:5px;width:100%;max-width:none}.shot-options button{font-size:8px}.control p{font-size:8px}}

.gesture-legend{display:flex;justify-content:space-between;flex-wrap:wrap;gap:7px;font-size:9px;color:#68805a;background:#eef3e5;border-radius:6px;padding:10px}.gesture-legend small{width:100%;font-size:8px;color:#8b997d}

.lob-label{position:absolute;pointer-events:none;transform:translate(-50%,-100%);font-size:10px;font-weight:650;padding:4px 7px;color:#57432c;background:#fff1cce8;border:1px solid #edcf88;border-radius:5px;white-space:nowrap}.serve-speed{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#8b997b}.serve-speed b{font-size:15px;font-weight:600;color:#4b6e62;font-variant-numeric:tabular-nums}.speed-badge{position:absolute;top:22px;left:50%;transform:translateX(-50%);background:#f4f7e9e8;color:#3b6258;font-size:20px;font-weight:650;border-radius:8px;padding:8px 18px;box-shadow:0 2px 12px #1232;pointer-events:none}.sidebar{gap:10px}

.loading-court{position:absolute;inset:0;display:grid;place-items:center;color:#f4e6bd;background:#24396b;font-size:14px;z-index:20;letter-spacing:.1em}

.player-status{position:absolute;z-index:3;pointer-events:none;transform:translateX(-50%);padding:5px 9px;border:1px solid #ffffff66;border-radius:7px;background:#173633dc;color:#f4f7df;font-size:10px;font-weight:650;white-space:nowrap;text-align:center;box-shadow:0 2px 8px #102a3229;min-width:95px;transition:background .12s,border-color .12s}.player-status.ready{background:#405524f0;color:#fff5ac;border-color:#f7e99c}.player-meter{position:relative;height:5px;margin-top:5px;width:100%;min-width:84px;background:#082d2d;border-radius:3px;overflow:hidden}.player-meter>i{display:block;height:100%;width:0;background:#d8e781;border-radius:3px}.player-meter>b{position:absolute;inset:0 0 0 82%;border-left:1px solid #fff9d5;background:#eff9c82b}.player-status.ready .player-meter>i{background:#fff0a2}.last-point-label{position:absolute;pointer-events:none;transform:translate(-50%,-100%);z-index:4;background:#792e40e8;border:1px solid #f3c5ac;color:#fff4dd;border-radius:5px;font-size:11px;font-weight:650;letter-spacing:.04em;padding:5px 9px;box-shadow:0 2px 9px #2a253940}.play-settings{flex-shrink:0;border:1px solid #dce1cc;border-radius:7px;color:#5e7358;font-size:10px;background:#f6f6e9}.play-settings>summary{cursor:pointer;padding:8px 10px;user-select:none}.play-settings>summary:hover{color:#2d513f}.settings-content{padding:2px 10px 10px;display:grid;gap:9px}.settings-content>div{display:flex;justify-content:space-between;align-items:center;gap:8px}.settings-content select{min-width:0;max-width:125px;font:inherit;font-size:9px;background:#fffdf2;border:1px solid #d6dfc9;color:#435e42;border-radius:4px;padding:5px 2px}.setting-check{display:flex;gap:6px;align-items:center;cursor:pointer}.setting-check input{margin:0;accent-color:#446e53}.sound-toggle{font:inherit;font-size:10px;border:1px solid #cdd9bd;border-radius:5px;padding:7px;background:#e9efdc;color:#3b5a40}.sound-toggle[aria-pressed=false]{background:#f6f2e8;color:#929382}.settings-content>small{font-size:8px;text-align:center;color:#91a086;margin-top:-5px}.play-settings:focus-within{border-color:#8cae70}@media(max-width:620px){.player-status{font-size:9px;min-width:78px;padding:4px 6px}.player-meter{min-width:65px}.settings-content{padding:2px 7px 8px}.settings-content>div{display:grid;gap:4px}.settings-content select{max-width:100%;width:100%}}
.sidebar .actions{position:sticky;bottom:0;z-index:2;background:#fff9ec;padding:7px 0 2px;box-shadow:0 -7px 10px #fff9ec}.sidebar .actions>button{background:#fff9ec}.sidebar .actions>button:hover{background:#e6eddc}

.announcement.score-only{font-size:48px;font-weight:750;letter-spacing:.08em;top:22%;text-shadow:0 2px 0 #28463288,0 3px 16px #15312a66;transition:opacity .12s}.center-panel h2:empty{display:none}.center-panel #match-score{font-size:40px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.07em}@media(max-width:620px){.announcement.score-only{font-size:34px}}

.sidebar>.scoreboard,.sidebar>.shot-state,.sidebar>.special-state{flex-shrink:0}
/* In-arena match information shares values with the sidebar; it never captures input. */
.arena-score{position:absolute;z-index:4;top:10px;left:50%;transform:translateX(-50%);display:grid;grid-template-columns:minmax(0,1fr) 100px minmax(0,1fr);width:min(540px,calc(100% - 28px));height:40px;overflow:hidden;border:2px solid #edf6ff;border-radius:8px;background:#192e50;box-shadow:0 3px 0 #172c4e80,0 5px 14px #152b3d35;color:#fff;pointer-events:none;user-select:none}
.arena-score__side{display:flex;align-items:center;gap:8px;min-width:0;padding:0 13px;font-size:13px;font-weight:700;line-height:1;text-shadow:0 1px 1px #18325366}
.arena-score__side--you{background:linear-gradient(100deg,#245194,#559bdf)}
.arena-score__side--cpu{justify-content:flex-end;background:linear-gradient(100deg,#d96d98,#9c396a)}
.arena-score__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.arena-score__side--you:before,.arena-score__side--cpu:after{content:"";flex:0 0 8px;height:8px;border-radius:50%;background:#f4f59a;border:1px solid #fff9cf;box-shadow:0 1px 2px #1d304e66;opacity:0}
.arena-score[data-server=you] .arena-score__side--you:before,.arena-score[data-server=cpu] .arena-score__side--cpu:after{opacity:1}
.arena-score__points{display:grid;place-items:center;min-width:0;border-left:1px solid #ffffff66;border-right:1px solid #ffffff66;font-size:24px;font-weight:750;line-height:1;letter-spacing:.06em;font-variant-numeric:tabular-nums;text-shadow:0 2px 0 #0d1c33}
.arena-score[data-started=false]{opacity:.86}
.arena-score[data-paused=true]{filter:saturate(.55);opacity:.78}
.arena-score[data-phase=matchOver]{border-color:#fff1b7}
.arena.has-arena-score .speed-badge{top:58px;left:auto;right:12px;transform:none;padding:5px 12px;font-size:16px}
@media(max-width:620px){.arena-score{top:7px;width:calc(100% - 16px);height:34px;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr)}.arena-score__side{gap:5px;padding:0 7px;font-size:10px}.arena-score__side--you:before,.arena-score__side--cpu:after{flex-basis:6px;height:6px}.arena-score__points{font-size:20px}.arena.has-arena-score .speed-badge{top:47px;right:8px;font-size:13px}}
@media(max-height:540px){.arena-score{top:6px;height:30px}.arena-score__points{font-size:19px}.arena.has-arena-score .speed-badge{top:42px;font-size:12px}}

/* Match-console palette. Keep all existing sidebar geometry, content and controls. */
.sidebar{--panel-ink:#e8f0fa;--panel-muted:#b7c6d9;--panel-soft:#a4bad1;--panel-line:#3a5472;color:var(--panel-ink);background:linear-gradient(180deg,#1c3454,#14243c);color-scheme:dark;scrollbar-color:#617c9d #172a45}
.sidebar .scoreboard,.sidebar .score-heading>span:first-child,.sidebar .instructions h1,.sidebar .control b{color:var(--panel-ink)}
.sidebar .score-heading,.sidebar .score-row+.score-row{border-color:var(--panel-line)}
.sidebar .score-heading,.sidebar .intro-panel p,.sidebar .assist-setting,.sidebar .control p,.sidebar .tip,.sidebar .rally,.sidebar .serve-speed,.sidebar .stamina,.sidebar .sidebar-foot{color:var(--panel-muted)}
.sidebar .score-row>b,.sidebar .state-heading>b,.sidebar .current-form>b,.sidebar .rally b,.sidebar .serve-speed b,.sidebar .control strong{color:#f2f7ff}
.sidebar .player-dot.you{background:#6cb6ff}.sidebar .player-dot.cpu{background:#f18db1}.sidebar .score-row>i.serving{background:#fff1a6}
.sidebar .shot-state,.sidebar .gesture-legend,.sidebar .play-settings{background:#223a59;border-color:var(--panel-line);color:var(--panel-ink)}
.sidebar .state-heading,.sidebar .shot-state p,.sidebar .current-form,.sidebar .gesture-legend small,.sidebar .settings-content>small{color:var(--panel-muted)}
.sidebar .current-form{border-color:var(--panel-line)}
.sidebar .charge-track,.sidebar .stamina>div,.sidebar .special-track{background:#10243d}
.sidebar .charge-track>i,.sidebar .stamina i{background:#a5d78d}.sidebar .shot-state.right .charge-track>i{background:#eab77f}.sidebar .shot-state.lob .charge-track>i{background:#8ed5ec}
.sidebar .assist-setting select,.sidebar .settings-content select{background:#10243d;border-color:#55708e;color:#edf5ff}
.sidebar .assist-setting select:hover,.sidebar .settings-content select:hover{border-color:#93b4d9}
.sidebar .play-settings>summary{color:#d4e4f5}.sidebar .play-settings>summary:hover{color:#fff;background:#2b4667}.sidebar .play-settings:focus-within{border-color:#a5caff}
.sidebar .setting-check input{accent-color:#72b7ff}
.sidebar .primary-button{background:#2d5f96;color:#fff}.sidebar .primary-button:hover:not(:disabled){background:#356fae}
.sidebar .sound-toggle,.sidebar .sound-toggle[aria-pressed=false],.sidebar .shot-options button,.sidebar .actions>button{background:#213b59;color:#e1edf9;border-color:#4c6686}
.sidebar .sound-toggle:hover:not(:disabled),.sidebar .shot-options button:hover:not(:disabled),.sidebar .actions>button:hover:not(:disabled){background:#315477;color:#fff}
.sidebar .sound-toggle[aria-pressed=true],.sidebar .shot-options button[aria-pressed=true]{background:#35678b;color:#fff}
.sidebar .shot-options{border-color:#4c6686}.sidebar .shot-options button{border-right-color:#4c6686}
.sidebar .actions{background:#14243c;box-shadow:0 -7px 10px #14243c}
.sidebar button:disabled,.sidebar button:disabled:hover{opacity:1;background:#253a53;color:#9fb1c7;border-color:#40536b;cursor:default}
.sidebar .special-state>button{background:#3a3b48;border-color:#8b8061;color:#e0d3ae}.sidebar .special-state>button.ready{background:#6b5d31;color:#fff5c9;border-color:#b8a266}.sidebar .special-state>button.armed{background:#72753b;color:#fffbd3}
.sidebar .gesture,.sidebar .gesture-legend{color:#d5e5f4;border-color:var(--panel-line)}.sidebar .gesture>i{color:#9bb3cd}.sidebar .gesture>span:last-child{color:#f2f7ff}
.sidebar .mouse-icon{border-color:#adc5de}.sidebar .mouse-icon:before{background:#adc5de}.sidebar .mouse-icon:after{background:#1c3454}.sidebar .wheel-icon{color:#adc5de}
.sidebar a{color:#98d4ff;text-underline-offset:2px}.sidebar a:hover{color:#d0ecff}
.sidebar :is(button,select,input,summary,a):focus-visible{outline:3px solid #ffe69b;outline-offset:2px}

/* A fixed-width match console: collapsing its tools never resizes the arena. */
.sidebar .match-sidebar-tools{flex-shrink:0;min-width:0;color:var(--panel-ink);border:0}
.sidebar .match-sidebar-tools__summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;user-select:none;padding:9px 10px;border:1px solid var(--panel-line);border-radius:7px;background:#223a59;font-size:11px;font-weight:650;color:#e8f0fa}
.sidebar .match-sidebar-tools__summary::-webkit-details-marker{display:none}
.sidebar .match-sidebar-tools__summary:after{content:'＋';margin-left:auto;color:#adc5de}
.sidebar .match-sidebar-tools[open]>.match-sidebar-tools__summary:after{content:'−'}
.sidebar .match-sidebar-tools__summary:hover{background:#2b4667;color:#fff}
.sidebar .match-sidebar-tools__body{display:grid;gap:10px;min-width:0;padding-top:10px}
.sidebar .match-sidebar-tools:not([open])>.match-sidebar-tools__body{display:none}
.sidebar[data-match-compact=true]>.scoreboard{position:absolute;width:1px;height:1px;padding:0;margin:-1px;border:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
.sidebar .match-sidebar-tools .instructions,.sidebar .match-sidebar-tools .play-settings{min-width:0}
@media(max-width:620px){.sidebar .match-sidebar-tools__summary{font-size:10px;padding:8px 6px;gap:5px}.sidebar .match-sidebar-tools__body{gap:9px}}

/* Preserve a fixed compact console while giving narrow courts more screen width. */
@media(max-width:620px){
 .game-layout{grid-template-columns:minmax(0,1fr) 112px}
 .sidebar{padding:10px 6px}
 .sidebar .primary-button{gap:6px;padding:10px 6px;font-size:10px}
}

/* Full-width match arena. Settings are top-layer UI and never participate in canvas layout. */
.game-layout{display:block;grid-template-columns:none;gap:0;padding:0;width:100%;height:100svh}
.game-layout>.arena{width:100%;height:100%;min-height:0;border-radius:0;background:#234b72}
.game-layout>.sidebar{display:none}
.arena-score{top:18px;width:min(650px,calc(100% - 190px));height:52px;border:2px solid #f3f8ff;border-radius:12px;box-shadow:0 4px 0 #0a234968,0 9px 24px #0b234035;grid-template-columns:minmax(0,1fr) 110px minmax(0,1fr)}
.arena-score__side{padding:0 18px;font-size:16px;font-weight:750;letter-spacing:.02em}
.arena-score__points{font-size:31px;letter-spacing:.07em;background:#122b4e}
.arena-score__side--you{background:linear-gradient(100deg,#1764c6,#348fea)}
.arena-score__side--cpu{background:linear-gradient(100deg,#e25f83,#ba315e)}
.match-settings-toggle,.match-quick-actions #pause{position:absolute;z-index:12;top:20px;width:48px;height:48px;display:grid;place-items:center;border:1px solid #ffffff9c;border-radius:13px;background:#102b50e8;color:#fff;box-shadow:0 4px 14px #0927483d;font-weight:750;touch-action:manipulation}
.match-settings-toggle{right:20px;font-size:26px;line-height:1}
.match-settings-toggle:hover,.match-quick-actions #pause:hover{background:#214e7d}
.match-quick-actions #pause{left:20px;padding:0;font-size:0}
.match-quick-actions #pause::before{content:'Ⅱ';font-size:21px;letter-spacing:2px}
.arena[data-match-paused=true] .match-quick-actions #pause::before{content:'▶';font-size:18px;letter-spacing:0}
.match-quick-actions #pause:disabled{opacity:.5;cursor:default}
.match-score-source{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;border:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.match-start-panel{position:absolute;z-index:8;left:50%;top:46%;transform:translate(-50%,-50%);width:min(360px,calc(100% - 40px));padding:24px;border:1px solid #ffffff9c;border-radius:18px;background:#102c50ed;box-shadow:0 14px 40px #0b234651;text-align:center;color:#fff;backdrop-filter:blur(12px)}
.match-start-panel p{margin:0 0 18px;color:#d7eaff;font-size:13px;line-height:1.7}
.match-start-panel .primary-button{padding:16px;font-size:15px;background:#f4d56e;color:#18375d;border-radius:10px;gap:18px;box-shadow:0 3px 0 #b68c35}
.match-start-panel .primary-button:hover{background:#ffe596}
.match-live-hud{position:absolute;z-index:5;left:22px;bottom:22px;width:270px;color:#edf6ff;pointer-events:none;filter:drop-shadow(0 4px 9px #0b23402a)}
.match-live-hud>.shot-state{padding:12px 15px;margin:0;border:1px solid #ffffff6b;border-radius:12px 12px 0 0;background:#123052e8;color:#dceaff}
.match-live-hud .state-heading{font-size:10px;color:#c1d8ef;gap:10px}
.match-live-hud .state-heading>b{font-size:14px;color:#fff;font-weight:750}
.match-live-hud .charge-track{height:6px;margin:10px 0 7px;background:#0b2039}
.match-live-hud .charge-track>i{background:#d6ec75}
.match-live-hud .shot-state.right .charge-track>i{background:#ffc781}
.match-live-hud .shot-state.lob .charge-track>i{background:#7fe0f2}
.match-live-hud .shot-state p{font-size:10px;line-height:1.5;color:#bed4eb;min-height:0}
.match-live-hud .current-form{padding-top:7px;margin-top:7px;border-color:#8aa5c23d;color:#bed4eb;font-size:9px}
.match-live-hud .current-form>b{font-size:11px;color:#fff}
.match-live-hud__meta{display:grid;grid-template-columns:minmax(0,1fr) 50px 82px;align-items:center;gap:12px;padding:10px 14px;border:1px solid #ffffff6b;border-top:0;border-radius:0 0 12px 12px;background:#0e2949eb}
.match-live-hud .stamina{font-size:9px;color:#aec7e0}.match-live-hud .stamina>div{height:4px;margin-top:6px;background:#06182c}.match-live-hud .stamina i{background:#c2e484}
.match-live-hud .rally{margin:0;gap:5px;font-size:9px;color:#aec7e0}.match-live-hud .rally b{font-size:21px;color:#fff;font-weight:700}
.match-live-hud .serve-speed{font-size:0;display:block;text-align:right}.match-live-hud .serve-speed b{font-size:12px;color:#fff;font-weight:700;white-space:nowrap}
.match-settings-drawer{position:fixed;inset:14px 14px 14px auto;margin:0;padding:0;width:min(370px,calc(100vw - 28px));max-width:none;height:calc(100svh - 28px);max-height:none;border:1px solid #94b5d9;border-radius:18px;background:#142c4a;color:#edf5ff;box-shadow:-14px 10px 60px #04132866;overflow:hidden}
.match-settings-drawer::backdrop{background:#061c3857;backdrop-filter:blur(3px)}
.match-settings-drawer[open]{display:flex;flex-direction:column}
.match-settings-header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;border-bottom:1px solid #6d8daf55;background:#1b3a60}
.match-settings-header h2{font-size:17px;letter-spacing:.04em;margin:0;font-weight:750}
.match-settings-close{width:38px;height:38px;display:grid;place-items:center;border:1px solid #7696b9;border-radius:10px;background:#102a49;color:#fff;font-size:25px;line-height:1}
.match-settings-close:hover{background:#31597e}
.match-settings-drawer>.sidebar{position:static;display:flex;flex:1;width:100%;height:auto;min-height:0;overflow:auto;border-radius:0;gap:16px;padding:18px;background:#142c4a;scrollbar-gutter:stable}
.match-setting-group,.match-settings-help{flex:none;border:1px solid #527395;border-radius:10px;background:#203a5a}
.match-setting-group{padding:11px 12px}
.match-setting-group h3{margin:0 0 4px;color:#f5f9ff;font-size:14px}
.match-setting-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:43px;padding:5px 0;color:#e1edf9;font-size:13px}
.match-setting-row+.match-setting-row{border-top:1px solid #7797bb44}
.match-setting-row select,.match-setting-row .sound-toggle{flex:none;width:clamp(112px,34vw,130px);min-height:34px;padding:5px 7px;border:1px solid #6583a7;border-radius:6px;background:#10243d;color:#edf5ff;font:inherit;font-size:12px}
.match-setting-row small{color:#c0d3e8;font-size:11px}
.match-setting-check{cursor:pointer}
.match-setting-check input{width:18px;height:18px;margin:0 8px 0 0;accent-color:#72b7ff}
.match-setting-group .character-stats-entry{margin-top:5px;min-height:36px;padding:7px 10px;background:#213b59;color:#e1edf9;border:1px solid #6583a7}
.match-settings-help>summary{padding:11px 12px;cursor:pointer;color:#e1edf9;font-size:13px;font-weight:600}
.match-settings-help .instructions{padding:2px 12px 12px}
.match-settings-drawer .sidebar .control b{font-size:12px}.match-settings-drawer .sidebar .control p{font-size:11px;line-height:1.8}
.match-settings-footer{flex:none;display:grid;gap:10px;margin-top:auto}
.match-settings-footer a{justify-self:start;padding:4px 0;color:#bcd5ef;font-size:11px}
.match-settings-drawer .sidebar .actions{position:static;box-shadow:none;background:transparent;margin:0;padding:0}.match-settings-drawer .sidebar .actions>button{font-size:12px;padding:12px}
.arena.has-arena-score .speed-badge{top:88px;right:22px;border-radius:9px;padding:7px 13px;font-size:17px;background:#102e50e8;color:#fff;border:1px solid #ffffff75}
.bottom-hud{bottom:24px;max-width:calc(100% - 36px);padding:10px 18px;background:#102e50eb;border-color:#ffffff75}
.announcement.score-only{font-size:64px;top:25%;letter-spacing:.06em}
@media(max-width:760px){.arena-score{top:12px;width:calc(100% - 140px);height:44px;grid-template-columns:minmax(0,1fr) 76px minmax(0,1fr)}.arena-score__side{font-size:12px;padding:0 9px;gap:5px}.arena-score__points{font-size:27px}.match-settings-toggle,.match-quick-actions #pause{top:12px;width:44px;height:44px;border-radius:11px}.match-settings-toggle{right:12px}.match-quick-actions #pause{left:12px}.match-live-hud{left:12px;bottom:12px;width:245px}.arena.has-arena-score .speed-badge{top:70px;right:12px;font-size:14px}.bottom-hud{bottom:178px;width:auto;min-width:0;padding:8px 12px}.bottom-hud>b{font-size:10px}.announcement.score-only{font-size:48px}}
@media(max-width:440px){.arena-score{width:calc(100% - 126px);height:42px;grid-template-columns:minmax(0,1fr) 62px minmax(0,1fr)}.arena-score__side{font-size:10px;padding:0 6px}.arena-score__points{font-size:25px}.arena-score__side--you:before,.arena-score__side--cpu:after{flex-basis:5px;height:5px}.match-settings-toggle{right:8px}.match-quick-actions #pause{left:8px}.match-live-hud{width:225px;left:10px;bottom:10px}.match-live-hud>.shot-state{padding:10px 12px}.match-live-hud .state-heading>b{font-size:12px}.match-live-hud .shot-state p{font-size:9px}.match-live-hud__meta{padding:8px 11px;gap:8px;grid-template-columns:minmax(0,1fr) 42px 74px}.match-settings-drawer{inset:8px 8px 8px auto;width:calc(100vw - 16px);height:calc(100svh - 16px);border-radius:15px}.match-settings-drawer>.sidebar{padding:16px}.bottom-hud{bottom:166px}.arena.has-arena-score .speed-badge{top:66px;right:10px;font-size:12px}.match-start-panel{top:46%}}
@media(max-height:540px){.match-live-hud{bottom:10px;width:230px}.match-live-hud .shot-state p{display:none}.match-live-hud>.shot-state{padding:9px 12px}.match-live-hud__meta{padding:7px 11px}.bottom-hud{bottom:12px}.arena-score{top:10px;height:40px}.match-settings-toggle,.match-quick-actions #pause{top:10px;height:40px;width:42px}}

/* Compact shot readout and persistent, peripheral controls. */
.match-live-hud{width:270px}
.match-live-hud>.shot-state{padding:12px 15px 8px;border-radius:10px 10px 0 0;background:#102a48d9}
.match-live-hud .state-heading{display:flex;flex-direction:column;align-items:flex-start;gap:5px;font-size:10px}
.match-live-hud .state-heading>b{font-size:23px;line-height:1.2;letter-spacing:.02em}
.match-live-hud .charge-track{height:4px;margin:10px 0 0}
.match-live-hud__meta{grid-template-columns:minmax(0,1fr) auto;gap:18px;padding:8px 15px 12px;background:#102a48d9;border-radius:0 0 10px 10px}
.match-live-hud .serve-speed{display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:9px;color:#bed4eb}
.match-live-hud .serve-speed b{font-size:21px;font-variant-numeric:tabular-nums}
.match-live-hud .stamina{max-width:100px;gap:7px;font-size:9px}
.match-live-hud .stamina>div{margin:0;min-width:35px}
.match-control-guide{position:absolute;right:22px;bottom:22px;z-index:5;width:250px;padding:0;color:#ffffffbd;pointer-events:none;background:none;text-shadow:0 1px 2px #0007}
.match-control-guide__row{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-height:24px;border-bottom:0;font-size:12px;font-weight:500;white-space:nowrap}
.match-control-guide__input{min-width:104px;text-align:right;font:inherit;font-size:11px;color:inherit;letter-spacing:.02em}
.match-control-guide__note{font-size:10px;margin:6px 0 0;text-align:right;color:#ffffff80}
.match-control-guide[data-mode=serve] .match-control-guide__rally,.match-control-guide[data-mode=rally] .match-control-guide__serve{display:none}
@media(max-width:760px){
 .match-live-hud{width:225px}.match-live-hud .state-heading>b{font-size:20px}
 .match-control-guide{right:12px;bottom:12px;width:236px;padding-left:0}
 .match-control-guide__row{font-size:11px;gap:9px;min-height:23px}.match-control-guide__input{min-width:100px;font-size:10px}
 .match-control-guide__note{font-size:10px}.bottom-hud{bottom:190px}
}
@media(max-width:540px){
 .match-live-hud{width:156px;left:10px;bottom:10px}.match-live-hud>.shot-state{padding:9px 10px 7px}
 .match-live-hud .state-heading>b{font-size:17px}.match-live-hud__meta{padding:7px 10px 9px;gap:7px}
 .match-live-hud .serve-speed b{font-size:15px}.match-live-hud .stamina{display:block;font-size:8px}.match-live-hud .stamina>div{margin-top:4px}
 .match-control-guide{right:10px;bottom:10px;width:198px;padding-left:0}
 .match-control-guide__row{font-size:10px;gap:6px;min-height:22px}.match-control-guide__input{min-width:88px;font-size:10px}
 .match-control-guide__note{font-size:9px}.bottom-hud{bottom:180px}
}
@media(max-height:540px) and (min-width:541px){
 .match-control-guide{bottom:10px}.match-control-guide__row{min-height:22px;font-size:11px}.match-control-guide__note{margin-top:5px}
 .match-live-hud .state-heading>b{font-size:19px}.bottom-hud{bottom:12px}
}
/* Decisive points finish in the live view, within the existing point interval. */
.point-result{position:absolute;top:28%;left:50%;z-index:4;transform:translate(-50%,-50%);opacity:0;pointer-events:none;white-space:nowrap;font-size:clamp(26px,6vw,80px);font-weight:950;font-style:italic;letter-spacing:.05em;color:#fff7cc;text-shadow:0 3px 0 #86591b,0 6px 22px #162c33b8}
.point-result.visible{opacity:1;animation:point-result-pop .48s cubic-bezier(.18,.8,.32,1.2) both}
.point-result.strong{color:#fff2a0;text-shadow:0 3px 0 #a5651c,0 0 22px #ffdb7777,0 7px 28px #132933c9}
.point-result.cpu{color:#d9eeff;text-shadow:0 3px 0 #385675,0 6px 22px #162c33b8}
.announcement.score-only.decisive-score{top:42%;font-size:clamp(48px,6vw,82px);color:#fff8dc}
.announcement.decisive-score.visible{animation:decisive-score-pop .3s ease-out both}
#court.strong-impact{animation:strong-impact-kick .04s linear both}
@keyframes point-result-pop{0%{transform:translate(-50%,-50%) scale(.45);opacity:0}48%{transform:translate(-50%,-50%) scale(1.12);opacity:1}74%{transform:translate(-50%,-50%) scale(.96)}100%{transform:translate(-50%,-50%) scale(1)}}
@keyframes decisive-score-pop{from{transform:translate(-50%,-50%) scale(.85)}to{transform:translate(-50%,-50%) scale(1)}}
@keyframes strong-impact-kick{0%,100%{transform:translate(0,0)}30%{transform:translate(-1px,1px)}65%{transform:translate(1px,0)}}
@media(prefers-reduced-motion:reduce){.point-result.visible,.announcement.decisive-score.visible,#court.strong-impact{animation:none}}

/* Latest actual shot, one row for either player, and a separate stamina meter. */
.match-live-hud{left:22px;bottom:58px;width:248px;max-width:calc(100% - 44px);padding:10px 12px;border:1px solid #ffffff6b;border-radius:8px;background:#102a48df;color:#fff}
.last-shot-readout{display:flex;justify-content:space-between;align-items:baseline;gap:12px;white-space:nowrap}
.last-shot-readout b{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:17px;font-weight:750;line-height:1.25}
.last-shot-readout strong{flex:none;font-size:20px;font-weight:750;font-variant-numeric:tabular-nums;line-height:1.2}
.match-control-guide{bottom:58px}
.player-gauges{--gauge-inset:22px;position:absolute;z-index:6;left:var(--gauge-inset);bottom:max(16px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:8px;max-width:calc(100% - 2*var(--gauge-inset));pointer-events:none}
.standalone-stamina{--stamina-base-width:248px;position:relative;display:flex;align-items:stretch;width:calc(var(--stamina-base-width)*var(--stamina-length-scale,1));min-width:0;height:23px;padding:2px;border:2px solid #fff9fc;border-radius:4px;background:#26344bf2;box-shadow:0 2px 0 #1a233eb3,0 3px 10px #0c1b3b44;pointer-events:none}
.standalone-stamina>span{display:flex;align-items:center;padding:0 7px;background:#fff9fc;color:#343b51;font-size:10px;font-weight:850;white-space:nowrap}
.standalone-stamina>div{position:relative;flex:1;min-width:0;margin-left:2px;background:#613650;overflow:hidden;border-radius:1px}
.standalone-stamina i{display:block;height:100%;width:100%;background:linear-gradient(#ff94d4,#f13fa4);box-shadow:inset 0 1px 0 #ffd1ec99}
.standalone-stamina[data-phase=rally] i{transition:width .08s linear}
.special-power{position:relative;display:grid;place-items:center;flex:none;inline-size:34px;aspect-ratio:1;border-radius:50%;background:#26344bf2;color:#dbe3ef;box-shadow:0 2px 0 #1a233eb3,0 3px 10px #0c1b3b44}
.special-power>span{position:absolute;inset:2px;border-radius:50%;background:conic-gradient(from 3deg,#f7d85a 0deg var(--progress,0deg),#617498 var(--progress,0deg) 114deg,transparent 114deg);mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3.5px))}
.special-power>span:nth-child(2){transform:rotate(120deg)}
.special-power>span:nth-child(3){transform:rotate(240deg)}
.special-power>b{font-size:18px;font-weight:750;line-height:1}
.special-power[data-ready="true"]{color:#fff0a4}
.special-power[data-active="true"]{box-shadow:0 0 10px #ffe382b3}
.standalone-stamina>b{position:absolute;right:7px;top:50%;transform:translateY(-50%);color:#fff;font-size:9px;line-height:1;text-shadow:0 1px 2px #4e173b;font-variant-numeric:tabular-nums}
.bottom-hud{bottom:58px}
@media(max-width:760px){.match-live-hud{left:12px;bottom:53px;width:226px;padding:9px 11px}.last-shot-readout b{font-size:16px}.last-shot-readout strong{font-size:18px}.match-control-guide{bottom:53px}.player-gauges{--gauge-inset:12px;bottom:max(13px,env(safe-area-inset-bottom))}.standalone-stamina{--stamina-base-width:226px;height:22px}.bottom-hud{bottom:185px}}
@media(max-width:540px){.match-live-hud{left:10px;bottom:52px;width:220px;padding:8px 10px}.last-shot-readout{gap:8px}.last-shot-readout b{font-size:15px}.last-shot-readout strong{font-size:17px}.match-control-guide{bottom:103px}.player-gauges{--gauge-inset:10px}.standalone-stamina{--stamina-base-width:220px;height:22px}.bottom-hud{bottom:250px}}
@media(max-height:540px) and (min-width:541px){.match-live-hud{bottom:49px;width:230px;padding:8px 10px}.last-shot-readout b{font-size:16px}.last-shot-readout strong{font-size:18px}.match-control-guide{bottom:49px}.player-gauges{bottom:max(10px,env(safe-area-inset-bottom))}.standalone-stamina{--stamina-base-width:230px;height:22px}.bottom-hud{bottom:49px}}

.shot-feedback{position:absolute;z-index:5;transform:translateX(-50%);font-size:22px;font-weight:900;font-style:italic;letter-spacing:.02em;color:#ffe9b8;text-shadow:0 2px 0 #6d4128,0 2px 7px #172838b3;pointer-events:none;white-space:nowrap}
@media(max-width:540px){.shot-feedback{font-size:19px}}

/* Match setup and game/point score presentation. */
.arena-score__detail{position:absolute;top:100%;left:50%;transform:translateX(-50%);padding:5px 14px;border-radius:0 0 9px 9px;white-space:nowrap;background:#102a48eb;color:#edf5ff;font-size:14px;line-height:1.4;box-shadow:0 3px 8px #102a4826}
.match-games-label{padding:0 12px;color:var(--muted);font-size:14px}
.match-menu-return{display:block;margin:14px auto 0;padding:10px 16px;border:1px solid #829caa;border-radius:8px;background:#fff;color:#193849;font:inherit;font-size:14px;cursor:pointer}
.match-menu-return:focus-visible{outline:3px solid #2874dc;outline-offset:3px}
@media(max-width:540px){.arena-score__detail{font-size:12px;padding:4px 9px}}

.arena-score{overflow:visible}.arena-score__side--you{border-radius:9px 0 0 9px}.arena-score__side--cpu{border-radius:0 9px 9px 0}
@media(max-width:760px){.arena-score{grid-template-columns:minmax(0,1fr) 100px minmax(0,1fr)}}

.center-panel{background:#142c38f5;color:#edf5f2;border:1px solid #ffffff26;border-radius:12px;box-shadow:0 16px 60px #020d1b55}.center-panel h2{color:inherit}.center-panel .primary-button{background:#bce9ce;color:#143b31}.center-panel .match-menu-return{background:transparent;color:#d4e4e9;border-color:#5d7985}

.center-panel .primary-button,.center-panel .match-menu-return{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;height:44px;min-height:44px;padding:10px 16px;margin:12px 0 0;border-width:1px;border-style:solid;border-radius:8px;font:inherit;font-size:16px;line-height:1.2}.center-panel .primary-button{border-color:transparent}

/* Signature shots (actual smash / air shot): contact-centred flash and a heavier court kick. */
.signature-flash{position:absolute;inset:0;z-index:3;pointer-events:none;opacity:0;--edge:#ff9b2a;background:radial-gradient(circle at var(--sx,50%) var(--sy,62%),#fffbe8f0 0,#ffd66ab0 7%,#ff9b2a55 19%,transparent 42%);box-shadow:inset 0 0 90px 18px var(--edge)}
.signature-flash.airShot{--edge:#62e6ff;background:radial-gradient(circle at var(--sx,50%) var(--sy,62%),#ffffffee 0,#a9f4ffa8 7%,#b98cff50 19%,transparent 42%)}
.signature-flash.play{animation:signature-flash .62s cubic-bezier(.2,.7,.3,1) both}
#court.signature-impact{animation:signature-kick .24s linear both}
#court.signature-impact.airShot{animation-name:signature-kick-air}
@keyframes signature-flash{0%{opacity:0}7%{opacity:1}100%{opacity:0}}
@keyframes signature-kick{0%{transform:scale(1.01) translate(0,2px)}14%{transform:scale(1.008) translate(-2px,-1px)}30%{transform:scale(1.005) translate(1px,1px)}55%{transform:scale(1.002) translate(-1px,0)}100%{transform:none}}
@keyframes signature-kick-air{0%{transform:scale(1.008) translate(0,-2px)}16%{transform:scale(1.006) translate(1px,1px)}36%{transform:scale(1.003) translate(-1px,0)}100%{transform:none}}
@media(prefers-reduced-motion:reduce){#court.signature-impact{animation:none}}

/* The special-shot close-up sweeps across the centre while the court dims. */
.special-shot-cutin {
 --special-tint:#ffe186;
 position:absolute;
 z-index:6;
 inset:0;
 display:grid;
 align-items:center;
 color:#fff;
 pointer-events:none;
}
.special-shot-cutin::before {
 content:"";
 position:absolute;
 inset:0;
 background:#050912b8;
}
.special-shot-cutin-strip {
 position:relative;
 isolation:isolate;
 display:grid;
 width:100%;
 height:clamp(148px,27vh,240px);
 overflow:hidden;
 border-block:2px solid color-mix(in srgb,var(--special-tint) 78%,white);
 background:linear-gradient(90deg,#16243e,var(--special-tint),#142038);
 box-shadow:0 0 24px #080e21;
}
.special-shot-cutin-art {
 --eye-center:31%;
 position:absolute;
 z-index:-2;
 top:51%;
 left:0;
 display:block;
 width:100%;
 height:auto;
 transform:translateY(calc(-1 * var(--eye-center)));
}
.special-shot-cutin-art[src*="shiratori"]{--eye-center:33.6%}
.special-shot-cutin-art[src*="ichinose"]{--eye-center:30.6%}
.special-shot-cutin-art[src*="kagurazaka"]{--eye-center:31%}
.special-shot-cutin-art[src*="takashiro"]{--eye-center:28.1%}
.special-shot-cutin-art[src*="sannomiya"]{--eye-center:29.7%}
.special-shot-cutin-strip::before {
 content:"";
 position:absolute;
 z-index:-1;
 inset:0;
 background:linear-gradient(90deg,#0a142bdc,transparent 31%,transparent 66%,#070e22ed);
}
.special-shot-cutin-strip::after {
 --streak:color-mix(in srgb,var(--special-tint) 84%,white);
 content:"";
 position:absolute;
 z-index:-1;
 inset:0;
 background:
  linear-gradient(90deg,var(--streak),transparent) left 11% / 39% 1px no-repeat,
  linear-gradient(90deg,var(--streak),transparent) left 28% / 26% 3px no-repeat,
  linear-gradient(90deg,var(--special-tint),transparent) left 67% / 31% 2px no-repeat,
  linear-gradient(90deg,var(--streak),transparent) left 83% / 46% 1px no-repeat,
  linear-gradient(90deg,transparent,var(--streak)) right 16% / 33% 2px no-repeat,
  linear-gradient(90deg,transparent,var(--special-tint)) right 42% / 24% 1px no-repeat,
  linear-gradient(90deg,transparent,var(--streak)) right 73% / 39% 1px no-repeat,
  linear-gradient(90deg,transparent,var(--special-tint)) right 91% / 19% 3px no-repeat;
}
.special-shot-cutin-copy {
 display:grid;
 align-self:end;
 justify-self:end;
 justify-items:end;
 gap:2px;
 min-width:0;
 padding:6px clamp(14px,3.8vw,54px) 12px;
 text-shadow:0 2px 6px #0b142b;
}
.special-shot-cutin-copy span {
 color:color-mix(in srgb,var(--special-tint) 65%,white);
 font-size:clamp(11px,1.2vw,15px);
 font-weight:750;
}
.special-shot-cutin-copy b {
 font-size:clamp(16px,2.1vw,25px);
 font-weight:900;
 line-height:1.05;
}
.special-shot-cutin:where([data-presentation="large"]).play[data-motion="true"]::before{animation:special-cutin-dim .4s ease-out both}
.special-shot-cutin:where([data-presentation="large"]).play[data-motion="true"] .special-shot-cutin-strip{animation:special-cutin .4s cubic-bezier(.18,.76,.24,1) both}
@keyframes special-cutin-dim {
 0%{opacity:0}
 10%,79%{opacity:1}
 100%{opacity:0}
}
@keyframes special-cutin {
 0%{opacity:0;transform:translate3d(-105%,0,0)}
 11%{opacity:1;transform:translate3d(1.4%,0,0)}
 17%,79%{opacity:1;transform:none}
 100%{opacity:0;transform:translate3d(108%,0,0)}
}
.special-shot-cutin[data-presentation="compact"]{
 inset:auto auto auto auto;
 top:clamp(60px,12%,108px);
 left:clamp(10px,2.4vw,30px);
 width:max-content;
 max-width:min(320px,85%);
}
.special-shot-cutin[data-presentation="compact"] .special-shot-cutin-strip{
 grid-template-columns:56px minmax(0,1fr);
 height:64px;
 border:1px solid color-mix(in srgb,var(--special-tint) 68%,#fff);
 border-radius:8px;
 background:linear-gradient(105deg,color-mix(in srgb,var(--special-tint) 18%,#102139),#102139 82%);
 box-shadow:0 3px 12px #08182775;
 animation:none;
}
.special-shot-cutin[data-presentation="compact"]::before,
.special-shot-cutin[data-presentation="compact"] .special-shot-cutin-strip::before,
.special-shot-cutin[data-presentation="compact"] .special-shot-cutin-strip::after{display:none}
.special-shot-cutin[data-presentation="compact"] .special-shot-cutin-art{
 position:static;
 grid-area:1/1;
 height:100%;
 min-height:0;
 object-fit:cover;
 object-position:50% 27%;
 transform:none;
}
.special-shot-cutin[data-presentation="compact"] .special-shot-cutin-copy{
 grid-row:1;
 grid-column:2;
 align-self:center;
 justify-self:stretch;
 justify-items:start;
 padding:5px 12px;
}
.special-shot-cutin[data-presentation="compact"]:has(.special-shot-cutin-art[hidden]) .special-shot-cutin-copy{grid-column:1/-1}
.special-shot-cutin[data-presentation="compact"] .special-shot-cutin-copy span{font-size:11px}
.special-shot-cutin[data-presentation="compact"] .special-shot-cutin-copy b{font-size:clamp(14px,2.7vw,20px)}
.special-shot-impact {
  position:absolute;
  z-index:4;
  left:var(--impact-x,50%);
  top:var(--impact-y,62%);
  width:clamp(70px,12vw,156px);
  aspect-ratio:1;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:radial-gradient(circle,#fffcebdc 0%,var(--special-tint,#ffe186) 14%,transparent 48%);
  opacity:var(--impact-strength,1);
  pointer-events:none;
}
.special-shot-impact::before,.special-shot-impact::after{content:"";position:absolute;border-radius:50%;border:2px solid var(--special-tint,#ffe186);inset:19%;box-shadow:0 0 12px var(--special-tint,#ffe186)}
.special-shot-impact::after{inset:4%;border-width:1px;border-style:dashed;opacity:.65}
.special-shot-impact.play[data-motion="true"]{animation:special-impact .46s cubic-bezier(.15,.65,.26,1) both}
@keyframes special-impact {
  from{opacity:var(--impact-strength,1);transform:translate(-50%,-50%) scale(.32)}
  to{opacity:0;transform:translate(-50%,-50%) scale(1.25)}
}
@media(max-width:600px){
 .special-shot-cutin-strip{height:clamp(108px,30vw,160px)}
 .special-shot-cutin-copy{padding-bottom:8px}
}
@media(max-height:540px) and (min-width:601px){
 .special-shot-cutin-strip{height:clamp(108px,32vh,146px)}
}
@media(max-width:600px),(max-height:540px){
 .special-shot-cutin[data-presentation="compact"] .special-shot-cutin-strip{height:52px;grid-template-columns:47px minmax(0,1fr)}
 .special-shot-cutin[data-presentation="compact"] .special-shot-cutin-copy{padding-inline:8px}
}
@media(prefers-reduced-motion:reduce){
 .special-shot-cutin.play[data-motion="true"]::before,.special-shot-cutin.play[data-motion="true"] .special-shot-cutin-strip,.special-shot-impact.play[data-motion="true"]{animation:none}
 .special-shot-impact{display:none}
}

/* Change of ends: the venue turns while the screen is dark; gameplay coordinates never change. */
.court-change{position:absolute;inset:0;z-index:5;display:grid;place-items:center;background:#0b1a24;opacity:0;visibility:hidden;pointer-events:none}
.court-change.visible{visibility:visible}
.court-change b{font-size:clamp(28px,4.4vw,56px);font-weight:850;letter-spacing:.14em;color:#f3f1e2;text-shadow:0 3px 18px #0008}
#court-pointer {
  --pointer-color: #8ff7ff;
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 7;
  pointer-events: none;
  filter: drop-shadow(0 0 1px #071a27) drop-shadow(0 0 1px #071a27);
}
#court-pointer:not([data-positioned]) { display: none; }
#court-pointer::before, #court-pointer::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
}
#court-pointer::before {
  width: 27px;
  height: 2px;
  background: linear-gradient(to right, var(--pointer-color) 0 38%, transparent 38% 62%, var(--pointer-color) 62%);
}
#court-pointer::after {
  width: 2px;
  height: 27px;
  background: linear-gradient(to bottom, var(--pointer-color) 0 38%, transparent 38% 62%, var(--pointer-color) 62%);
}
.arena:has(> #court-pointer[data-positioned]:not([hidden])) > #court { cursor: none; }

/* Explicit pad focus also covers radios whose native input is visually hidden. */
.gamepad-focused, label:has(> .gamepad-focused), .match-menu-radio-card:has(.gamepad-focused) { outline: 3px solid #ffcf5a !important; outline-offset: 3px; }
.input-status { margin: 4px 0 12px; font-size: .8rem; color: #aec4cc; }
body[data-input-mode="gamepad"] #court { cursor: default; }
.match-menu-extra-actions { display: flex; justify-content: center; gap: 12px; }
.match-menu-extra-actions > button { min-width: 140px; min-height: 42px; }
