/* Court-first HUD: compact controls, clear text and lightly tinted panels. */
#gameUI .glass{background:rgba(12,25,19,.56);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);box-shadow:0 5px 24px #0002;border-color:#e0f3dc2b}
.match-status{position:absolute;left:24px;top:96px;width:248px;display:flex;flex-direction:column;gap:14px;pointer-events:none}
.match-status .scoreboard{position:static;width:100%;padding:12px 14px}
.match-status .score-head{margin-bottom:5px}
.match-status .score-row{padding:5px 0}
.match-status .score-row strong{font-size:27px}
.match-status .round-foot{margin-top:5px;padding-top:8px}
.match-status #turnLabel{position:static;padding:12px 14px;margin:0;border-left:2px solid #dbf98a88;border-radius:0 7px 7px 0;background:linear-gradient(90deg,#0b1b15a8,#0b1b1510);text-shadow:0 1px 5px #000}
.match-status #turnLabel h1{font-size:32px;line-height:1.1;margin:6px 0}
.match-status #turnLabel p{font-size:10px;line-height:1.5;margin:6px 0 0;max-width:none}
#gameUI .conditions{top:96px;right:24px;width:195px;padding:12px 14px}
#gameUI .conditions .eyebrow{font-size:8px;letter-spacing:1.4px}
#gameUI .commentary{right:24px;bottom:255px;width:205px;padding:12px 14px}
#gameUI .commentary p{font-size:15px;margin-top:8px}
#gameUI .shot-console{left:24px;right:24px;bottom:max(20px,env(safe-area-inset-bottom));max-width:820px;padding:10px 16px;background:rgba(10,23,17,.55);text-shadow:0 1px 3px #0008}
.shot-console .console-heading{gap:12px;min-height:28px}
.shot-console .console-heading h2{font-size:20px;line-height:1.1;margin:2px 0 0}
.shot-console .console-heading .eyebrow{font-size:7px;letter-spacing:1.3px}
.shot-console #shotSummary{display:none}
.shot-console .court-view{margin-left:auto;padding:7px 10px;min-height:34px;white-space:nowrap;font-size:8px;letter-spacing:.6px;background:#0c211a66;border-color:#d6edc83b}
.shot-console .aim-readout{margin:6px 0 0;font-size:8px;letter-spacing:.5px}
.shot-console .gauges{gap:18px;margin-top:7px}
.shot-console .gauge-label{font-size:8px}
.shot-console .gauge-label small{font-size:6px}
.shot-console .dial,.shot-console .curve{height:46px;display:block;width:100%}
.shot-console .power-track{margin-top:18px;height:14px}
.shot-console .power-labels{font-size:6px;margin-top:6px}
.shot-console .stance-controls{margin:7px 0;gap:9px;font-size:8px}
.shot-console .stance-controls button{padding:6px 11px;min-height:32px;font-size:9px}
.shot-console .stance-controls small{display:none}
.shot-console .position-control input{height:28px;width:110px}
.shot-console .console-actions{margin-top:7px;padding-top:7px;gap:8px}
.shot-console .console-actions button{padding:9px 13px;min-height:40px;font-size:9px}
.shot-console .console-actions .primary{min-width:200px}
.shot-console .input-tip{font-size:8px}
.shot-console .shot-steps{display:none}
.shot-console:not([data-stage="0"]) .stance-controls{display:none}
.shot-console.is-minimized .console-heading h2{display:none}
.shot-console.is-minimized{background:rgba(10,23,17,.42)}
#gameUI #qtePanel{bottom:max(20px,env(safe-area-inset-bottom));padding:14px 18px;width:min(540px,calc(100vw - 32px))}
#qtePanel h2{font-size:30px;margin:3px 0}
#qtePanel #sequence{margin:10px 0;gap:9px;justify-content:center}
#qtePanel .sequence-key{height:44px;width:42px;font-size:24px}
#qtePanel p{margin:5px 0}
#gameUI #resultPanel{bottom:max(20px,env(safe-area-inset-bottom));padding:14px 18px;width:min(470px,calc(100vw - 32px))}
#resultPanel h2{font-size:35px;margin:3px 0}
#resultPanel p{margin:6px 0}
#resultPanel .shot-breakdown{padding:8px 0;margin:8px 0}
#resultPanel .shot-breakdown b{font-size:17px}
#resultPanel .result-actions{margin-top:10px}
body[data-phase="flight"] .conditions,body[data-phase="replay"] .conditions,body[data-phase="superIntro"] .conditions{visibility:hidden}
body[data-phase="flight"] .match-status,body[data-phase="replay"] .match-status{opacity:.65}
@media(max-width:1200px){#gameUI .commentary{display:none}}
@media(max-width:800px),(max-height:600px){
 header{height:60px;padding:0 12px;gap:8px}.wordmark{font-size:27px}.edition{display:none}.header-actions{gap:4px;flex-wrap:nowrap}.header-actions button{font-size:7px;padding:7px 8px;min-height:36px}.header-actions #autoReplay{display:none}.header-actions #pauseBtn{min-width:34px}
 .header-actions .tinny-audio summary{font-size:7px;padding:9px 7px;min-height:36px;display:flex;align-items:center}.tinny-audio .audio-panel{max-height:calc(100dvh - 76px);overflow:auto}
 .match-status{left:12px;top:72px;width:min(48vw,205px);gap:10px}.match-status .scoreboard{padding:8px 10px}.match-status .score-head{font-size:6px;letter-spacing:.7px;margin-bottom:3px}.match-status .score-row{padding:3px 0;gap:6px}.match-status .score-row>span:nth-child(2){font-size:9px;line-height:1.25}.match-status .score-row strong{font-size:23px;min-width:18px}.match-status .score-row small{font-size:6px}.match-status .team-dot{height:17px;width:3px}.match-status .round-foot{font-size:6px;padding-top:6px;margin-top:3px}
 .match-status #turnLabel{padding:10px 12px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 9px}.match-status #turnLabel .eyebrow{font-size:7px;letter-spacing:1px}.match-status #turnLabel h1{font-size:23px;line-height:1.1;margin:0}.match-status #turnLabel p{display:none}
 #gameUI .conditions{top:72px;right:12px;width:min(39vw,154px);padding:8px 10px}#gameUI .conditions>.eyebrow,#gameUI #hazardInfo{display:none}#gameUI .conditions>div{margin:0;gap:6px}#gameUI .conditions strong{font-size:20px}#gameUI .conditions b{font-size:21px}#gameUI #rain{font-size:6px}#gameUI .conditions small{font-size:7px;line-height:1.4;margin-top:5px}
 #gameUI .shot-console{left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));padding:9px 11px;max-width:620px;background:rgba(10,23,17,.48)}
 .shot-console .console-heading h2{font-size:18px}.shot-console .console-heading .eyebrow{font-size:7px;letter-spacing:.9px}.shot-console .court-view{min-height:36px;font-size:7px;padding:7px 9px}
 .shot-console .shot-steps{display:flex;justify-content:space-between;margin:7px 0 0;font-size:8px;color:#b4c1b5}.shot-steps .active{color:var(--lime);font-weight:700}.shot-steps .locked:after{content:' ✓';color:var(--lime)}
 .shot-console .aim-readout{font-size:7px;margin-top:5px;min-height:10px}.shot-console .aim-readout>span:last-child{display:none}
 .shot-console .gauges{display:block;margin:4px 0}.shot-console .gauge:not(.active){display:none}.shot-console .gauge.active{display:grid;grid-template-columns:82px minmax(0,1fr);align-items:center;gap:3px 8px;min-height:49px;opacity:1}.shot-console .gauge-label{font-size:9px;gap:5px;flex-wrap:wrap}.shot-console .gauge-label small{display:none}
 .shot-console .dial,.shot-console .curve{height:48px;max-width:240px;justify-self:center}.shot-console .power-track{margin-top:0;height:17px}.shot-console .power-labels{grid-column:2;font-size:6px;margin:0;align-self:start}
 .shot-console .stance-controls{gap:6px;margin:5px 0;font-size:8px;flex-wrap:nowrap}.shot-console .stance-controls>span:first-child{display:none}.shot-console .stance-controls button{min-height:36px;padding:6px 9px;font-size:8px}.shot-console .stance-controls kbd{display:none}.shot-console .position-control{gap:5px;font-size:7px;flex:1;justify-content:flex-end}.shot-console .position-control input{width:clamp(50px,18vw,110px);min-width:40px;flex:1;height:32px;max-width:110px}.shot-console .position-control output{min-width:27px}
 .shot-console .console-actions{margin-top:5px;padding-top:6px;gap:7px}.shot-console .console-actions .primary{min-width:0;flex:1;gap:8px;padding:10px;min-height:44px;font-size:9px}.shot-console .special{min-height:44px;padding:8px 10px;font-size:9px}.shot-console .special kbd,.shot-console .input-tip{display:none}.shot-console .special small{font-size:6px}.shot-console .console-actions .primary kbd{font-size:7px;padding:3px}
 #gameUI #qtePanel{padding:10px 12px;bottom:max(10px,env(safe-area-inset-bottom))}#qtePanel .eyebrow{font-size:7px;letter-spacing:1px}#qtePanel h2{font-size:25px}#qtePanel p{font-size:8px}#qtePanel .sequence-key{width:34px;height:36px;font-size:21px}#qtePanel #sequence{gap:6px;margin:8px 0}#qteButtons button{min-height:44px;min-width:44px}#qtePanel .qte-footer>span:last-child{display:none}
 #gameUI #resultPanel{padding:11px 13px;bottom:max(10px,env(safe-area-inset-bottom))}#resultPanel h2{font-size:29px}#resultPanel .shot-breakdown{display:none}#resultPanel p{font-size:10px;line-height:1.4}#resultPanel #roundResult{font-size:10px}#resultPanel .result-actions button{min-height:42px;padding:9px 12px;font-size:9px}
 #gameUI .game-footer{display:none}#networkStatus{top:62px;font-size:8px;padding:5px 10px;max-width:90vw;white-space:nowrap}#replayTag{top:auto;bottom:15px;font-size:9px}
}
@media(max-height:600px) and (orientation:landscape){
 .match-status{top:69px;width:176px;gap:7px}.match-status .score-head{display:none}.match-status #turnLabel{padding:8px 10px}.match-status #turnLabel h1{font-size:20px}.match-status .score-row small{display:none}
 #gameUI .shot-console{left:auto;right:10px;width:min(400px,48vw);padding:8px 11px}.shot-console .console-heading h2{display:none}.shot-console .gauge.active{min-height:40px}.shot-console .dial,.shot-console .curve{height:37px}.shot-console .shot-steps{margin-top:4px}.shot-console .aim-readout{margin-top:3px}.shot-console .console-actions .primary,.shot-console .special{min-height:40px}.shot-console .stance-controls button{min-height:32px}.shot-console .position-control input{height:27px}.shot-console .court-view{min-height:30px}
 #gameUI .conditions{top:69px;width:145px;padding:7px 10px}#gameUI #windDetail{display:none}#gameUI #qtePanel,#gameUI #resultPanel{left:auto;right:10px;transform:none;width:min(400px,48vw)}
}
