/* Burrquizzz v0.8.1 — mobile viewport lock
   Keeps the app anchored to the device viewport while allowing only the
   active screen to scroll when its content truly exceeds the available space. */

@media (max-width: 680px) {
  html,
  body {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body {
    height: 100dvh;
  }

  .app-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .topbar {
    flex: 0 0 auto;
  }

  .screen.active {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .screen.centered.active {
    min-height: 0;
  }

  #screen-game.active {
    overscroll-behavior-y: none;
  }
}
