/* Arena Football Boss v92 full-screen game format polish. */
html.afb-fullscreen-game,
html.afb-fullscreen-game body.afb-fullscreen-shell {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #050608;
}

body.afb-fullscreen-shell {
  overscroll-behavior: none;
}

body.afb-fullscreen-shell #afbLandscapeStage,
body.afb-fullscreen-shell #app {
  width: 100vw;
  min-width: 100vw;
  min-height: 100dvh;
}

body.afb-fullscreen-shell #app {
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

body.afb-fullscreen-shell .bg-office,
body.afb-fullscreen-shell .center-shell,
body.afb-fullscreen-shell .page {
  min-height: 100dvh;
}

body.afb-fullscreen-shell .office-stage {
  min-height: calc(100dvh - 68px);
}

body.afb-fullscreen-shell .modal-root {
  position: fixed;
  inset: 0;
  z-index: 2147480000;
}

body.afb-fullscreen-shell.afb-fullscreen-active {
  cursor: default;
}

/* Electron/Steam desktop keeps a strict game canvas feel. */
html.steam-desktop body.afb-fullscreen-shell #app {
  height: 100vh;
  min-height: 100vh;
}

html.steam-desktop body.afb-fullscreen-shell .topbar {
  top: 0;
}

@media (display-mode: fullscreen), (display-mode: standalone) {
  body.afb-fullscreen-shell #app {
    height: 100dvh;
  }
}
