/* Player/owner layout; pixel coordinates and existing controls remain intact. */
.mast-inner{max-width:1180px;padding:.3rem max(.55rem,env(safe-area-inset-right)) .3rem max(.55rem,env(safe-area-inset-left));gap:.3rem}
.mast .brand{font-size:clamp(1.02rem,3.8vw,1.3rem);letter-spacing:-.035em;white-space:nowrap}
.mast .brand img{width:29px;height:29px;margin-right:.3rem}
.mast-actions{gap:.35rem;min-width:0}
.mast-actions :is(a,button,select){min-height:44px;font-size:.82rem}
.mast-actions a{display:inline-flex;align-items:center}
.mast-actions .quiet{padding:.35rem .46rem}
#play-fullscreen{min-width:44px;white-space:nowrap}
main{max-width:1180px;padding:.5rem max(.55rem,env(safe-area-inset-right)) .6rem max(.55rem,env(safe-area-inset-left))}
.world-heading{gap:.4rem;margin:0 0 .45rem}
.world-heading h1{font-size:clamp(1.05rem,3.4vw,1.42rem);line-height:1.19;margin:.12rem 0}
.world-heading .loc{font-size:.71rem;letter-spacing:.05em}
.world-heading #world-leave{min-height:44px;white-space:nowrap;padding:.28rem .65rem;font-size:.82rem}
.console-top{padding:.34rem .58rem;font-size:.76rem}
.world-controller{padding:.35rem .56rem}
#screen{min-width:0}
#screen .section{margin:.55rem 0;padding:.7rem}
#screen .section h2{margin:0 0 .45rem;font-size:1.05rem;line-height:1.3}
#screen .section h3{font-size:.94rem}
#screen .row{padding:.53rem 0;gap:.45rem}
#screen :is(.primary,.secondary,.linkbtn){min-height:44px}
#tabs{padding:.18rem .18rem calc(.18rem + env(safe-area-inset-bottom))}
#tabs[hidden]{display:none}
#tabs .tabs-btn{font-size:.82rem;min-height:44px;padding:.2rem clamp(.28rem,2vw,.85rem)}
body:has(#tabs[hidden]){padding-bottom:env(safe-area-inset-bottom)}
dialog{max-height:calc(100dvh - 32px);overflow:auto}
html.play-focus .mast{position:sticky;top:0;z-index:9}
html.play-focus #website-link{display:none}
@media (orientation:landscape) and (min-width:650px){
 body:not(.gm-world):not(.world-away) main{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:.4rem clamp(.55rem,1.6vw,1.15rem);align-items:start}
 body:not(.gm-world):not(.world-away) .landscape{grid-area:1/1/3/2;position:sticky;top:.4rem}
 html.play-focus body:not(.gm-world):not(.world-away) .landscape{top:3.48rem}
 body:not(.gm-world):not(.world-away) #network{grid-area:1/2;margin:0}
 body:not(.gm-world):not(.world-away) #screen{grid-area:2/2}
 #screen>.section:first-of-type{margin-top:0}
 .world-controller{gap:.5rem;justify-content:space-between}
}
@media (orientation:landscape) and (min-width:650px) and (max-height:550px){
 body:not(.gm-world):not(.world-away) .landscape{max-width:min(100%,calc((100dvh - 169px) * 1.538 + 4px));justify-self:center;width:100%}
 .world-controller .world-dpad{display:flex;gap:.2rem}
 .world-controller .world-dpad span{display:none}
 .world-controller .world-dpad button{width:44px;height:44px}
 .world-controller .world-hint{display:none}
 .world-controller .world-action{display:flex;align-items:center;gap:.28rem}
 .world-controller .world-action b{width:44px;height:44px;font-size:1rem;box-shadow:none}
 .world-controller .world-action span{display:none}
}
@media(max-width:350px){
 .mast .brand img{display:none}
 .mast-actions{gap:.2rem}
 .mast-actions .quiet{padding-inline:.3rem}
}
@media (orientation:landscape) and (min-width:650px) and (max-height:550px){
 body{--play-footer:0px}
 body:has(#tabs:not([hidden])){--play-footer:49px}
 body:not(.gm-world):not(.world-away) .landscape{max-width:min(100%,calc((100dvh - 177px - var(--play-footer)) * 1.538 + 4px))}
 .world-heading .loc{display:none}
 .world-console{position:relative}
 .console-top{position:absolute;inset:.38rem auto auto .42rem;z-index:8;border:1px solid var(--line);border-radius:5px;background:#fff9e9e8;padding:.15rem .35rem;pointer-events:none}
 #scene-weather{display:none}
 .world-console .world-controller{padding-block:.28rem}
}
