/* fullscreen: applies only while the shell's Full screen is on (html.pip-immersive, set for both the
   native and the immersive mode). The game sizes its own canvas in fit() from the space left in the stage. */
html.pip-immersive .game-wrap.pip-stage {
  display: flex !important; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden !important; gap: 4px;
  padding-bottom: 6px !important;
  padding-left: max(10px, env(safe-area-inset-left, 0px));
  padding-right: max(10px, env(safe-area-inset-right, 0px));
}
html.pip-immersive .pip-stage > .how,
html.pip-immersive .pip-stage > .facts,
html.pip-immersive .pip-stage > .game-title,
html.pip-immersive .pip-stage > .pip-actions,
html.pip-immersive .pip-stage .go-bench,
html.pip-immersive .pip-stage details { display: none !important; }
html.pip-immersive .pip-stage > .hud { width: 100%; max-width: 440px; padding: 2px 0; flex: none; }
html.pip-immersive .pip-stage > #status { margin: 0; min-height: 1.3em; font-size: .95rem; flex: none; color: #c7d2fe; }
html.pip-immersive #stage { flex: none; max-width: none; margin: 0; }
html.pip-immersive #game-canvas { border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.45); }
@media (orientation: landscape) and (max-height: 560px) {
  html.pip-immersive .game-wrap.pip-stage { flex-direction: row; gap: 16px; }
  html.pip-immersive .pip-stage > .hud { flex-direction: column; align-items: stretch; width: 150px; gap: 8px; text-align: center; }
  html.pip-immersive .pip-stage > .hud #move-count { white-space: normal; overflow: visible; }
  html.pip-immersive .pip-stage > #status { width: 130px; font-size: .85rem; }
}
