/* fidget-spinner · fullscreen — paired with fullscreen-fit.js (--fs-hero-h / --fs-hero-w, html.fs-wide).
   Everything is scoped under html.pip-immersive: normal play is untouched. */
html.pip-immersive .game-wrap.pip-stage {
  display: flex; flex-direction: column; align-items: center;
  padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right));
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
html.pip-immersive .game-wrap.pip-stage > * { width: min(100%, 560px); flex: none; }
html.pip-immersive .game-wrap.pip-stage > #stage {
  width: 100%; max-width: 760px; height: var(--fs-hero-h, 320px); margin: 0; container-type: size; box-sizing: border-box;
}
/* Landscape: hero on the left at full height, the rest in a right-hand column. */
html.pip-immersive.fs-wide .game-wrap.pip-stage {
  display: grid; grid-template-columns: minmax(0, var(--fs-hero-w, 55%)) minmax(0, 440px); column-gap: 24px;
  grid-auto-rows: min-content; align-content: start; justify-content: center; align-items: start; overflow-y: auto;
}
html.pip-immersive.fs-wide .game-wrap.pip-stage > * { width: auto; grid-column: 2; min-width: 0; }
html.pip-immersive.fs-wide .game-wrap.pip-stage > #stage { grid-column: 1; grid-row: 1 / span 14; max-width: none; height: var(--fs-hero-h, 320px); position: sticky; top: 0; }
html.pip-immersive.fs-wide .game-wrap.pip-stage > .pip-dock { grid-column: 1 / -1; }
html.pip-immersive .facts, html.pip-immersive .fs-how { display: none; }
/* the dial is square: a square stage as big as the hero box allows; the game re-sizes its canvas to it (HD) or the canvas stretches (classic) */
html.pip-immersive .game-wrap.pip-stage > #stage, html.pip-immersive.fs-wide .game-wrap.pip-stage > #stage {
  width: min(var(--fs-hero-w, 360px), var(--fs-hero-h, 360px)); height: min(var(--fs-hero-w, 360px), var(--fs-hero-h, 360px)); max-width: none; margin-inline: auto; justify-self: center;
}
html.pip-immersive #game-canvas { width: 100% !important; height: 100% !important; }
html.pip-immersive .overlay { overflow-y: auto; padding: .6rem; }
html.pip-immersive .pip-stage #fs-coast-lab, html.pip-immersive .pip-stage .fs-coast-lab { display: none !important; } /* fs-fix: non-play rail */
html.pip-immersive .pip-stage #fs-skin-hint, html.pip-immersive .pip-stage .fs-skin-hint { display: none !important; }
