/* V62 — website embed fix (loaded LAST in game.html, only active inside html.demo = game.html?demo=1).
   Problem: on a phone held upright, the 16:9 preview iframe is ~500x280 CSS px, which matches the game's
   "touch phone landscape" media query (pointer:coarse + landscape + max-height:520px). That mode shows the
   in-game HUD, menu button, touch controls and re-sizes the stage, so the preview looked broken.
   These rules out-rank those (extra class + same ids) and keep the preview a clean, HUD-free canvas. */
html.demo, html.demo body{background:#0a0e24!important;overflow:hidden!important;width:100%!important;height:100%!important;touch-action:auto!important}
html.demo body .pxSky,
html.demo body #rotatePrompt,
html.demo body #mobMenuBtn,
html.demo body .mobMenuBtn,
html.demo body .mobileControls,
html.demo body #mobPauseMenu,
html.demo body #gameShell#gameShell>header,
html.demo body #gameShell#gameShell .hud,
html.demo body #gameShell#gameShell .under,
html.demo body #gameShell#gameShell .shieldStatus,
html.demo body .modal,
html.demo body .rewardToast,
html.demo body #gameOver,
html.demo body #inventory,
html.demo body #chapterClearToast{display:none!important;visibility:hidden!important}
html.demo body #gameShell#gameShell{position:fixed!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;background:none!important;border:0!important;box-shadow:none!important;transform:none!important;zoom:1!important}
html.demo body #gameShell#gameShell main{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;overflow:hidden!important;background:none!important;border:0!important}
html.demo body #gameShell#gameShell canvas#game{position:absolute!important;inset:0!important;left:0!important;top:0!important;right:auto!important;bottom:auto!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;aspect-ratio:auto!important;object-fit:fill!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important;image-rendering:pixelated}
