/* Compact clear match chrome; the court remains the main view. */
html body.rotor-match-frame{--match-top:92px;--match-bottom:118px;--match-clear:linear-gradient(145deg,#ffffff12,#00000028);--match-edge:#ffffff62}
html body.rotor-match-frame>header{inset:12px 16px auto;height:var(--match-top);padding:12px 16px;border:1px solid #ffffff38;border-radius:24px;background:#02030270;box-shadow:inset 0 1px #ffffff38,0 8px 22px #0003}
html body.rotor-match-frame:not(.playing){--match-bottom:68px}
html body.rotor-match-frame #flightHud{inset:auto 16px 12px;height:var(--match-bottom);padding:9px 16px;grid-template-columns:minmax(80px,1fr) minmax(180px,1.4fr) minmax(100px,1fr);gap:6px 16px;background:#02030270;border:1px solid #ffffff38;border-radius:24px;box-shadow:inset 0 1px #ffffff38,0 -5px 20px #0003;pointer-events:auto}
html body.rotor-match-frame:not(.playing) #flightHud :is(.flightTelemetry,.boost,.ballStats,.match-frame-meta){display:none}
html body.rotor-match-frame:not(.playing) .match-frame-destinations{border-top:0;grid-row:1;align-self:center;padding:0}
html body.rotor-match-frame .match-frame-destinations{gap:8px;padding-top:3px}
html body.rotor-match-frame .match-frame-destinations :is(a,button){min-height:36px;border-radius:18px;padding:5px 9px;color:#f3f5ee}
html body.rotor-match-frame .match-frame-meta{gap:16px;font-size:9px}
html body.rotor-match-frame .match-frame-stat strong{font-size:11px}
html body.rotor-match-frame #flightHud :is(#flightSpeed,.ballStats b){font-size:22px}
html body.rotor-match-frame #flightHud .energyLegend{display:none}
html body.rotor-match-frame #flightHud .energyCaption b{font-size:19px}
html body.rotor-match-frame #flightHud .ballStats{gap:14px}
html body.rotor-match-frame .match-frame-status{inset:auto 16px 9px;min-height:24px;gap:10px;font-size:9px}
html body.rotor-match-frame #scoreboard{top:8px;padding:0 8px;gap:10px;min-height:36px}
html body.rotor-match-frame #scoreboard>div{padding:3px 9px;min-height:34px;border-radius:16px;background:#00000028}
html body.rotor-match-frame #scoreboard b{font-size:28px}
html body.rotor-match-frame .topActions :is(button,.rotor-club-button){min-height:40px;padding:7px 11px}
html body.rotor-match-frame #menu{inset:calc(var(--match-top) + 28px) auto auto max(24px,4vw);width:clamp(270px,29vw,380px);max-width:calc(100vw - 48px);max-height:calc(100dvh - var(--match-top) - var(--match-bottom) - 68px);overflow:auto;overscroll-behavior:contain;padding:22px;border:1px solid #ffffff58;border-radius:26px;background:linear-gradient(145deg,#00000080,#00000024);box-shadow:inset 0 1px #ffffff30,0 16px 30px #0003;scrollbar-width:thin;scrollbar-color:#b6ef3c66 transparent;animation:none}
html body.rotor-match-frame #menu h1{font-size:clamp(52px,5.5vw,78px);margin:14px 0;line-height:.88}
html body.rotor-match-frame #menu #introText{color:#eef0e9;font-size:12px;line-height:1.5;margin-bottom:16px}
html body.rotor-match-frame #menu .entry{width:100%;gap:8px}
html body.rotor-match-frame #menu .entry button{width:100%;min-height:46px;border-radius:23px;padding:12px 16px;color:#fff4b0;background:#00000020;border:1px solid #ffe45b99}
html body.rotor-match-frame #menu #practice{color:#b6ef3c;border-color:#b6ef3c88}
html body.rotor-match-frame #menu .s2-lobby{width:100%;max-width:100%;min-width:0;flex-wrap:wrap;gap:8px}
html body.rotor-match-frame #menu .s2-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;min-width:0;gap:5px}
html body.rotor-match-frame #menu .s2-cards button{display:flex;flex-wrap:wrap;justify-content:center;min-width:0;min-height:44px;padding:8px 5px;gap:4px;border-radius:16px;overflow-wrap:anywhere}
html body.rotor-match-frame #menu .s2-cards button b{font-size:12px;letter-spacing:.06em}
html body.rotor-match-frame #menu .s2-cards button :is(i,em){font-size:8px;letter-spacing:0}
html body.rotor-match-frame #menu .directorLinks{display:flex;flex-wrap:wrap;gap:6px 12px}
html body.rotor-match-frame #menu .directorLinks a{min-height:32px;display:inline-flex;align-items:center;line-height:1.4}
html body.rotor-match-frame #menu #controller{max-width:100%;white-space:normal;font-size:8px;line-height:1.6}
html body.rotor-match-frame .rotor-club-center{top:calc(var(--match-top) + 24px);bottom:calc(var(--match-bottom) + 24px)}
html body.rotor-match-frame .rotor-view-pip{top:calc(var(--match-top) + 64px);max-height:calc(100dvh - var(--match-top) - var(--match-bottom) - 100px)}
@media(max-width:1000px){html body.rotor-match-frame{--match-top:116px}html body.rotor-match-frame #scoreboard{top:48px}html body.rotor-match-frame .match-frame-status{bottom:8px}html body.rotor-match-frame #menu{width:320px}}
@media(max-width:640px){html body.rotor-match-frame{--match-top:122px;--match-bottom:146px}html body.rotor-match-frame:not(.playing){--match-top:88px;--match-bottom:62px}html body.rotor-match-frame>header{inset:8px 12px auto;padding:10px 12px}html body.rotor-match-frame #flightHud{inset:auto 12px 8px;padding:8px 12px;grid-template-columns:1fr 1fr;gap:5px 12px}html body.rotor-match-frame #flightHud .boost{grid-column:1/-1;grid-row:3}html body.rotor-match-frame #menu{left:16px;width:min(340px,calc(100vw - 32px));max-width:none;top:calc(var(--match-top) + 24px);padding:18px}html body.rotor-match-frame #menu h1{font-size:58px}html body.rotor-match-frame .match-frame-status{left:12px;right:12px;gap:6px;flex-wrap:nowrap}html body.rotor-match-frame .match-frame-connection{font-size:8px}html body.rotor-match-frame .match-frame-opponent{display:none}html body.rotor-match-frame .topActions .rotor-club-button{font-size:10px}html body.rotor-match-frame .match-frame-destinations :is(a,button){font-size:9px;min-height:40px;padding:5px}html body.rotor-match-frame .match-frame-meta{gap:10px}html body.rotor-match-frame .match-frame-stat{font-size:8px;gap:4px}}
@media(max-height:540px) and (min-width:641px){html body.rotor-match-frame{--match-top:78px;--match-bottom:98px}html body.rotor-match-frame:not(.playing){--match-bottom:58px}html body.rotor-match-frame #scoreboard{top:5px}html body.rotor-match-frame #menu{padding:14px;top:102px;max-height:calc(100dvh - 180px)}html body.rotor-match-frame #menu h1{font-size:48px;margin:8px 0}html body.rotor-match-frame #menu #introText{display:none}html body.rotor-match-frame .match-frame-meta{gap:12px}}
@media(prefers-reduced-transparency:reduce){html body.rotor-match-frame :is(#menu,#flightHud,header){background:#030503}}
/* Reserve the route dock rather than placing it over the live score. */
html body.rotor-match-frame .rotor-access-dock{top:calc(var(--match-top) + 20px);left:50%;right:auto;translate:-50% 0;width:min(800px,calc(100vw - 48px))}
html body.rotor-match-frame #menu{top:calc(var(--match-top) + 98px);max-height:calc(100dvh - var(--match-top) - var(--match-bottom) - 136px)}
html body.rotor-match-frame .rotor-access-panel{top:calc(var(--match-top) + 94px);bottom:calc(var(--match-bottom) + 28px);max-height:none}
html body.rotor-match-frame .rotor-opponent-pip{top:calc(var(--match-top) + 100px);background:#02030238;border-color:#ffffff58}
html body.rotor-match-frame .rotor-opponent-pip .rotor-badge-inspect{min-height:44px;background:#02030248;color:#ffe45b}
html body.rotor-match-frame.rotor-access-panel-open #menu,html body.rotor-access-panel-open :is(#mainMenu,#stadiumArrival,#cmGreenRoom){visibility:hidden;pointer-events:none}
html body.rotor-match-frame .rotor-access-panel .rotor-access-badge{min-width:0}
@media(max-width:960px){html body.rotor-match-frame .rotor-access-dock{top:auto;bottom:12px;left:16px;right:16px;translate:none;width:auto}html body.rotor-match-frame #flightHud{bottom:calc(12px + var(--rotor-access-bottom))}html body.rotor-match-frame #menu{top:calc(var(--match-top) + 28px);max-height:calc(100dvh - var(--match-top) - var(--match-bottom) - var(--rotor-access-bottom) - 60px)}html body.rotor-match-frame .rotor-access-panel{top:calc(var(--match-top) + 24px);bottom:calc(var(--match-bottom) + var(--rotor-access-bottom) + 24px)}html body.rotor-match-frame .rotor-opponent-pip{top:calc(var(--match-top) + 28px)}html body.rotor-match-frame #viewControls{bottom:calc(var(--match-bottom) + var(--rotor-access-bottom) + 28px)}}
@media(max-width:640px){html body.rotor-match-frame .rotor-opponent-pip:not([data-badge-inspect=true]){width:128px;top:calc(var(--match-top) + 24px);padding:8px}html body.rotor-match-frame:not(.playing):not(.online-lobby-open) .rotor-opponent-pip{display:none}html body.rotor-match-frame .rotor-access-panel{bottom:calc(var(--rotor-access-bottom) + 24px)}html body.rotor-match-frame.rotor-access-panel-open #flightHud{visibility:hidden;pointer-events:none}html body.rotor-match-frame .rotor-access-dock{left:12px;right:12px;bottom:8px}html body.rotor-match-frame .rotor-club-center{bottom:calc(var(--rotor-access-bottom) + 24px)}}

html body.rotor-match-frame .rotor-access-opponent .rotor-opponent-pip{position:relative;inset:auto;width:100%;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;z-index:auto;visibility:visible}
html body.rotor-match-frame .rotor-access-opponent .rotor-opponent-pip .rotor-badge-stage{height:174px;width:100%}
html body.rotor-match-frame .rotor-access-opponent .rotor-opponent-pip[data-badge-inspect=true] .rotor-badge-stage{height:230px}
html body.rotor-match-frame .rotor-access-opponent .rotor-opponent-pip .rotor-opponent-name{display:none}
@media(max-width:640px){html body.rotor-match-frame .rotor-access-opponent .rotor-opponent-pip .rotor-badge-stage{height:130px}}
html body.rotor-match-frame>header .brand small{display:none}
html body.rotor-match-frame:not(.playing) #pfTag{display:none!important}
html body.rotor-match-frame.playing #pfTag{left:24px;bottom:calc(var(--match-bottom) + var(--rotor-access-bottom) + 36px);max-width:min(420px,45vw)}
html body.rotor-match-frame.playing #pfTag h2{font-size:clamp(28px,3.4vw,46px)}
html body.rotor-access-ready .rotor-view-toggle{display:none!important}
html body.rotor-match-frame.rotor-access-panel-open :is(#pilotCard,#pfDeck,#pfTag){visibility:hidden;pointer-events:none}
html body.rotor-match-frame>header .brand small{display:none!important}
html body.rotor-match-frame.rotor-access-panel-open :is(#pilotCard,#pfDeck,#pfTag){visibility:hidden!important;pointer-events:none!important}
html body.rotor-match-frame .rotor-access-opponent .rotor-opponent-pip{visibility:visible!important}
html:has(body.rotor-match-frame),html body.rotor-match-frame{height:100%;min-height:100dvh}
html body.rotor-match-frame.rotor-access-panel-open .rotor-access-opponent .rotor-opponent-pip{display:block!important}
html body.rotor-match-frame .stadium-match-tools{bottom:calc(var(--match-bottom) + var(--rotor-access-bottom) + 28px)!important}
html body.rotor-match-frame.rotor-access-panel-open :is(.stadium-match-tools,#pfRadio,#pfDeck){visibility:hidden!important;pointer-events:none!important}
html body.rotor-access-ready .rotor-access-head{position:sticky;top:0;z-index:2;padding-bottom:8px;background:#02030255}
@media(max-width:640px){html body.rotor-match-frame:not(.playing) #pilotCard{display:none!important}}
