/* V45: portrait-first layout, including short mobile browser viewports. */
body #app{width:100%!important;max-width:480px!important;margin-inline:auto!important;min-width:0!important}
@media(max-width:600px){
body.hub99-active #app{height:100dvh!important;max-height:100dvh!important;padding: max(5px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;gap:4px!important}
body.hub99-active .top{min-height:30px!important}body.hub99-active .top .brand{font-size:32px!important}body.hub99-active .top .tag{font-size:9px!important;padding:6px!important}
body.hub99-active .toolbar{gap:4px!important;padding:0!important}body.hub99-active .toolbar .account{font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;line-height:1.2!important}
body.hub99-active .toolbar :is(.tool,.coin){min-height:40px!important;padding:4px 6px!important;font-size:11px!important}body.hub99-active .toolbar .coin{font-size:18px!important}
body .hub99-tabs{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:3px!important}body .hub99-tabs button{min-height:45px!important;font-size:clamp(8px,2.4vw,11px)!important;padding:4px 1px!important}body .gold-nav-icon svg{width:18px!important;height:18px!important}
body .hub99-page{padding-inline:1px!important;min-height:0!important}body .hub99-position{min-height:23px!important;gap:4px!important}body .hub99-dot{min-width:24px!important;min-height:24px!important}
body .studio12-grid,body .hub99-page #s97 .s90-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}body .studio12-item,body .s90-card{padding:7px!important;min-width:0!important}body .studio12-item button,body .s90-card button{min-height:44px!important;line-height:1.1!important;font-size:11px!important;padding:5px 2px!important}body .studio12-item strong{font-size:13px!important;line-height:1.2!important}body .studio12-item small{font-size:10px!important}
body #founderFormsBtn,body #app>a[href='./admin.html']{font-size:11px!important;min-height:32px!important;padding:5px!important;margin:2px 0!important}body .gold-inventory-actions{padding:7px!important;margin:5px 0!important}
body #game{min-width:0;max-width:100%}body .pixel-arena{max-width:100%!important}body :is(.modal,.studio12-modal,.profile12-panel){max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;overflow-y:auto}
}
@media(max-height:500px) and (orientation:landscape){body.hub99-active #app{height:100dvh!important}body .hub99-tabs button{min-height:40px!important}body .hub99-page{overscroll-behavior:contain}}
