/* Fit the complete mobile HUD inside the host iframe; retain the canvas aspect ratio. */
@media(max-width:600px){
 html,body{height:100%;min-height:0;overflow:hidden;overscroll-behavior:none}
 .app{width:100%;height:100dvh;min-height:0;padding:0;display:flex;flex-direction:column;align-items:center}
 .masthead{width:100%;flex:none;margin:0;padding:4px 6px;min-height:44px;gap:0;justify-content:flex-end}
 html.h5-embedded .masthead{padding-left:58px}
 .masthead>div{display:none}
 .masthead nav{flex-wrap:nowrap;gap:4px;align-items:center;justify-content:flex-end}
 .masthead nav button{font-size:11px;padding:6px;min-height:34px}
 #language-settings{max-width:100px}
 .game-shell{flex:none;width:var(--h5-scene-width,100%);border:0;box-shadow:none}
 .game-shell>.statusbar{height:36px;min-height:36px;padding:0 8px;gap:4px;white-space:nowrap}
 .game-shell>.viewport{width:100%;aspect-ratio:2/3}
 .game-shell>.hull-bar{height:28px;min-height:28px;padding:4px 8px;gap:6px;flex-wrap:nowrap;white-space:nowrap}
 .hull-bar .health-track{min-width:12px}
 .keyboard-help{display:none}
 #right-actions{top:35%;bottom:140px}
 #loading-page{overflow:auto}
}
