/* fullscreen: layout for html.pip-immersive (set by the shell for both native and immersive modes).
   The page script (fitWidth in index.html) sizes the canvas to the room left in the stage, at
   devicePixelRatio, on resize, rotation and enter/exit. No transforms, so input stays exact. */
html.pip-immersive .pip-stage { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; overflow: hidden; padding-left: 8px; padding-right: 8px; }
html.pip-immersive .pip-stage > .bs-howto,
html.pip-immersive .pip-stage > .bs-lab,
html.pip-immersive .pip-stage > #bs-depth-gameplay,
html.pip-immersive .pip-stage > #bs-depth-replay,
html.pip-immersive .pip-stage > .pip-actions { display: none; }
html.pip-immersive .pip-stage > .hud { display: flex; align-items: center; justify-content: center; gap: .6rem; flex: none; margin: 0 0 2px; font-size: .85rem; }
html.pip-immersive .pip-stage > .hud .btn { min-height: 44px; min-width: 44px; }
html.pip-immersive .pip-stage > #status { flex: none; min-height: 1.2em; margin: 0 0 4px; font-size: .8rem; text-align: center; }
html.pip-immersive .pip-stage > #stage { flex: none; width: max-content; max-width: none; margin: 0 auto; }
html.pip-immersive #game-canvas { display: block; max-width: none !important; }
html.pip-immersive #over-overlay .btn-big { min-height: 48px; }
@media (orientation: landscape) and (max-height: 520px) {
  html.pip-immersive .pip-stage { flex-direction: row; align-items: center; justify-content: center; gap: 14px; padding-top: calc(var(--pip-dock-h, 44px) + 4px + env(safe-area-inset-top, 0px)) !important; }
  html.pip-immersive .pip-stage > .hud { flex-direction: column; width: 150px; flex: none; text-align: center; }
  html.pip-immersive .pip-stage > #status { position: absolute; left: 8px; bottom: 6px; width: 150px; margin: 0; }
}
