/* itch.io disables document scrolling in its player iframe. Keep menu scrolling
   inside the game viewport, including when the document enters fullscreen. */
html { height:100%; overflow:hidden; }
body { height:100dvh; display:flex; flex-direction:column; overflow:hidden; }
body > .topbar { flex:none; width:100%; }
body > main {
  flex:1 1 0%; min-height:0; width:100%; margin:0 auto;
  overflow-y:auto; overflow-x:hidden; overscroll-behavior-y:contain;
  scrollbar-gutter:stable; padding-bottom:calc(110px + env(safe-area-inset-bottom));
}
body.in-encounter > main {
  flex:none; height:100dvh; max-width:none; padding:0;
  overflow:hidden; scrollbar-gutter:auto;
}
