/* rhythm-tap · fullscreen fit — everything is scoped under html.pip-immersive, so the normal page is
   untouched. Sizes come from js/fullscreen-fit.js (--fs-w / --fs-h / --fs-side on the stage). */
html.pip-immersive .game-wrap.fs-fit { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; overflow-x: hidden; overflow-y: auto; }
html.pip-immersive .game-wrap.fs-fit > * { flex-shrink: 0; }
html.pip-immersive .game-wrap.fs-fit > * { max-width: 100%; }
html.pip-immersive .game-wrap.fs-fit #rt-stage { width: var(--fs-w) !important; height: var(--fs-h) !important; max-width: none !important; max-height: none !important; margin: 0 !important; flex: none; }
html.pip-immersive .game-wrap.fs-fit #rt-stage canvas { width: 100% !important; height: 100% !important; max-width: none !important; }
html.pip-immersive .game-wrap.fs-fit > .hud { width: var(--fs-w); max-width: 100%; margin: 0; padding-top: 4px; padding-bottom: 4px; }
html.pip-immersive .game-wrap.fs-fit > [role="status"]:empty, html.pip-immersive .game-wrap.fs-fit > #status:empty { display: none; }
html.pip-immersive .game-wrap.fs-fit > [role="status"], html.pip-immersive .game-wrap.fs-fit > #status { margin: 0; min-height: 0; padding: 2px 8px; width: var(--fs-w); text-align: center; font-size: .85rem; }

/* wide: board left, HUD/controls right */
html.pip-immersive .game-wrap.fs-wide { display: grid; grid-template-columns: var(--fs-w) var(--fs-side); justify-content: center; align-content: center; column-gap: 16px; row-gap: 8px; grid-auto-rows: min-content; }
html.pip-immersive .game-wrap.fs-wide #rt-stage { grid-column: 1; grid-row: 1 / span 12; align-self: center; }
html.pip-immersive .game-wrap.fs-wide > :not(#rt-stage) { grid-column: 2; width: auto; margin: 0; }
html.pip-immersive .game-wrap.fs-wide > .hud { width: auto; }
html.pip-immersive .game-wrap.fs-wide #rt-phrases { display: none !important; }
html.pip-immersive .game-wrap.fs-fit #rt-phrases { display: none !important; } /* fs-fix: phrase rehearsal is below the play area; not shown in fullscreen */
