/* path-finder · fullscreen. Paired with fullscreen-fit.js (sets --fs-side on <html>, toggles .fs-wide
   on the stage). Only applies inside the game-shell Full screen (html.pip-immersive). */
html.pip-immersive .game-wrap.pip-stage #pf-stage {
  width: var(--fs-side, min(92vw, 62vh));
  max-width: none;
  margin: 4px auto;
}
html.pip-immersive .game-wrap.pip-stage .pf-how { font-size: .78rem; margin: .1rem 0 .3rem; }
html.pip-immersive .game-wrap.pip-stage.fs-wide {
  display: grid;
  grid-template-columns: var(--fs-side) minmax(0, 320px);
  grid-template-rows: repeat(10, auto) 1fr;
  column-gap: 20px;
  justify-content: center;
  align-content: center;
}
html.pip-immersive .game-wrap.pip-stage.fs-wide > * { grid-column: 2; min-width: 0; }
html.pip-immersive .game-wrap.pip-stage.fs-wide > #pf-stage { grid-column: 1; grid-row: 1 / -1; align-self: center; margin: 0; }
@media (max-height: 460px) {
  html.pip-immersive .game-wrap.pip-stage .pf-how { display: none; }
}
/* action bar: shrink the buttons so the row never exceeds the column */
html.pip-immersive .game-wrap.pip-stage .pf-bar { gap: 4px; min-width: 0; max-width: 100%; }
html.pip-immersive .game-wrap.pip-stage .pf-bar .btn { padding: .4rem .5rem; font-size: .78rem; min-width: 0; flex: 0 1 auto; }
html.pip-immersive .game-wrap.pip-stage { overflow-x: hidden; }
