/* prime-hunter · fullscreen.css - fit the play area to the screen while the shell's fullscreen is on.
   Everything is scoped under html.pip-immersive; leaving fullscreen restores the normal page.
   Driven by fullscreen-fit.js (sets --fs-w, adds .fs-stage / .fs-wide / .fs-board-root). */
html.pip-immersive .fs-stage{display:flex;flex-direction:column;align-items:stretch;gap:8px;overflow-x:hidden}
html.pip-immersive .fs-stage>*{flex:none;min-width:0}
html.pip-immersive .fs-stage.fs-wide{display:grid;grid-template-columns:minmax(0,var(--fs-w,60vh)) minmax(0,1fr);column-gap:18px;row-gap:0;align-content:start;grid-auto-rows:min-content}
html.pip-immersive .fs-stage.fs-wide>*{grid-column:2;margin-bottom:8px}
html.pip-immersive .fs-stage.fs-wide>.fs-board-root{grid-column:1;grid-row:1 / span 40;align-self:start;margin-bottom:0}
html.pip-immersive .fs-stage>.fs-board-root{margin-left:auto;margin-right:auto}
html.pip-immersive .ph-field{width:var(--fs-w,100%)!important;height:var(--fs-h,auto)!important;max-height:none!important;max-width:100%!important;margin:0 auto!important}
html.pip-immersive .ph-detective,html.pip-immersive .ph-howto{display:none!important}

/* pass 3: finish and touch size inside full screen */
html.pip-immersive .ph-tile{min-height:50px;transition:transform .08s ease-out}
html.pip-immersive .ph-tile:active{transform:scale(.94)}
html.pip-immersive .ph-hud-btn,html.pip-immersive #ph-go,html.pip-immersive #ph-go2,html.pip-immersive #ph-again{min-height:48px}
html.pip-immersive .ph-field{box-shadow:inset 0 0 0 1px rgba(255,255,255,.55),0 6px 18px rgba(76,29,149,.22),inset 0 -26px 30px -22px rgba(124,58,237,.35)}
html.pip-immersive .ph-overlay{padding:max(.8rem,env(safe-area-inset-top,0px)) max(.8rem,env(safe-area-inset-right,0px)) max(.8rem,env(safe-area-inset-bottom,0px)) max(.8rem,env(safe-area-inset-left,0px))}
@media (orientation:landscape) and (max-height:480px){
html.pip-immersive .ph-overlay{gap:.25rem;padding:.5rem 1rem}
html.pip-immersive .ph-overlay h2{font-size:1.15rem}
html.pip-immersive .ph-overlay p{font-size:.82rem;line-height:1.25}
}
