/* Preserve the approved component styles while giving this landscape layout ownership. */
@layer landscape-priority, approved, landscape, results;
@import url("approved.css") layer(approved);
@import url("game.css") layer(approved);
@import url("remaining-screens.css") layer(approved);
@import url("screen-flow.css") layer(approved);
@import url("multiplayer.css") layer(approved);
@import url("match-overlays.css") layer(approved);
@import url("design-system.css") layer(approved);
@import url("landscape-published.css") layer(landscape);
@import url("result-scene.css") layer(results);
@layer landscape-priority {
 #device .phone.match #stick{left:4%!important;right:auto!important;bottom:6%!important}
 #device .phone.match #punch{left:auto!important;right:3%!important;bottom:5%!important}
 #device .phone.match #special{left:auto!important;right:calc(3% + 146px)!important;bottom:calc(5% + 16px)!important}
 #device .phone.match #dash{left:auto!important;right:calc(3% + 242px)!important;bottom:calc(5% + 25px)!important}
 #device .match .htimer{left:4%!important;top:22px!important}
 #device .match .hleft{right:3%!important;top:22px!important}
 /* Gameplay badges: clock centered, players left then pause along the top right. */
 #device .match[data-hud] .htimer{left:0!important;top:calc(15px / var(--ui-scale,1))!important}
 #device .match[data-hud] .hleft{right:calc(3% + 58px)!important;top:calc(15px / var(--ui-scale,1))!important}
 #device .match.spec[data-hud] .hleft{right:3%!important}
 #device .queue .squad .walker{width:100%!important}
 #device .set .st-title .hw-px{width:100%!important}
 #device .load .logo{position:absolute!important;left:4%!important;top:15%!important;width:44%!important;margin:0!important}
 @media(max-width:850px){#device .match .htimer{left:4%!important}}
 @media(max-height:520px){#device .match .htimer{left:4%!important}#device .load .logo{top:18%!important}}
}

html,body{background:#071b36!important;display:grid!important;place-items:center!important;min-height:0!important}
#phone-space{position:relative!important;margin:0!important;flex:none!important}
#device{transform-origin:top left!important;--phone-height:540px!important}
#screens{display:contents}
#desktop-help{display:none!important}
#device .phone{position:absolute!important;inset:0!important;width:100%!important;max-width:none!important;height:100%!important;border:0!important;border-radius:0!important;box-shadow:none!important}
#device .phone[hidden]{display:none!important}
#device .match .hstrip{display:none!important}
#device .match #match-canvas{position:absolute;inset:0;width:100%;height:100%}
#device .match .htimer,#device .match .hleft{transform:none!important;scale:1!important}
#device .match #hud-timer,#device .match #hud-left{font:inherit;color:inherit}
#device .match #dash{z-index:8}
#device[data-stick-side="RIGHT"] .match #stick{left:auto!important;right:4%!important}
#device[data-stick-side="RIGHT"] .match #punch{right:auto!important;left:3%!important}
#device[data-stick-side="RIGHT"] .match #special{right:auto!important;left:calc(3% + 146px)!important}
#device[data-stick-side="RIGHT"] .match #dash{right:auto!important;left:calc(3% + 242px)!important}
#orientation-gate{display:none;position:fixed;inset:0;z-index:10000;background:#071b36;color:white;align-items:center;justify-content:center;text-align:center;font:24px Bungee,sans-serif}
@media(orientation:portrait){#orientation-gate{display:flex}#phone-space{visibility:hidden;pointer-events:none}}
#device .brawler-select .bs-slot img{left:0;top:0;width:100%;height:100%;object-fit:contain}
#device .lobby-crowd .lc-seats{right:8px;overflow-x:auto;padding:0 0 8px}
#device .lobby-crowd .lc-seat{flex:none}
#device .lobby-crowd .lc-seat.you .lc-fig img{visibility:visible}
#device .lobby-crowd .lc-bots{max-width:90%;white-space:normal;text-align:center}
#device .lobby-crowd .lc-ready:disabled{cursor:default}
#device .howto-layer .tutorial-skip{pointer-events:auto}
#device .match #match-canvas{pointer-events:none}

/* Fit the fixed game stage inside Safari's visible viewport and safe areas. */
:root{--safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px)}
html,body{margin:0!important;padding:0!important;width:100%!important;height:100%!important;overflow:hidden!important;display:block!important}
#phone-space{position:absolute!important}
#device .match.round-ended .htimer,#device .match.round-ended .hleft,#device .match.round-ended .hc,#device .match.round-ended .match-pause,#device .match.round-ended [data-layer="spectate"]{visibility:hidden!important}

/* Scenery fills the display; approved foreground coordinates remain 960 × 540. */
#responsive-scenery{position:absolute;overflow:hidden;pointer-events:none;z-index:0}
#responsive-scenery>div{position:absolute;left:50%;top:50%;width:960px;height:540px;transform-origin:center}
#phone-space{z-index:1}
#device{overflow:visible!important;background:transparent!important}
#device .phone.match{inset:auto!important;left:var(--match-left)!important;top:var(--match-top)!important;width:var(--match-width)!important;height:var(--match-height)!important;overflow:visible!important}
/* The 3D picture (#match-host, which holds the canvas) fills the whole screen, edge to edge; only the HUD and buttons (the .match box above) stay inside the safe area. */
#device .match :is(#match-canvas,#match-host){inset:auto!important;left:var(--canvas-left,0px)!important;top:var(--canvas-top,0px)!important;width:var(--canvas-width,100%)!important;height:var(--canvas-height,100%)!important}

#device .match:is(.round-ended,.spec) :is(#stick,#punch,#special,#dash,#jump,.match-pause){visibility:hidden!important}
#device .spec .specbar{left:28px;right:28px;top:20px;overflow:visible}
#device .spec .sout{font-size:20px;line-height:1.1;white-space:normal;max-width:45%}
#device .match:has(:is(.ko-overlay,.victory-celebration,.second-place):not([hidden])) :is(.v79-fight-status,.htimer,.hleft,.hc,#stick,#punch,#special,#dash,#jump,#counter,.match-pause,[data-layer="spectate"]){visibility:hidden!important}