/* Content pages scroll internally because desktop fullscreen intentionally locks the body. */
@media (min-width: 761px) {
  :root:fullscreen .app-content {
    height: 100dvh;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
  }

  :root:fullscreen .content-view.is-active:not([hidden]) {
    min-height: calc(100dvh - 92px);
    padding-bottom: 118px;
  }

  :root:fullscreen .profile-editor-dialog[open],
  :root:fullscreen .settings-dialog[open] {
    max-height: calc(100dvh - 32px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  :root:fullscreen .profile-editor-dialog[open] .profile-editor-form {
    max-height: calc(100dvh - 32px);
    overflow-x: hidden;
    overflow-y: auto;
  }

  :root:fullscreen .arcade-view.is-active,
  :root:fullscreen .game-dialog[open] {
    overflow: hidden;
  }
}
