/* Game play fills the viewport on desktop and mobile. */
html.is-game-fullscreen,
html.is-game-fullscreen body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #000;
}

html.is-game-fullscreen #app,
html.is-game-fullscreen .layout.layout--game {
  width: 100%;
  height: 100%;
  min-height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background: #000;
}

html.is-game-fullscreen .layout--game .header-shell,
html.is-game-fullscreen .layout--game .header,
html.is-game-fullscreen .layout--game .footer,
html.is-game-fullscreen .layout--game .bottom {
  display: none !important;
}

html.is-game-fullscreen .layout--game .layout-main,
html.is-game-fullscreen .layout--game .layout-main--game {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 !important;
  overflow: hidden;
  background: #000;
}

html.is-game-fullscreen .layout--game .play {
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  min-height: 100%;
  min-height: 100dvh;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  display: block !important;
  background: #000;
}

html.is-game-fullscreen .layout--game .play__hero,
html.is-game-fullscreen .layout--game .playStage__heroSkeleton {
  display: none !important;
}

html.is-game-fullscreen .layout--game .frame {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: block;
  width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  min-height: 100% !important;
  min-height: 100dvh !important;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000;
}

html.is-game-fullscreen .layout--game .playStage,
html.is-game-fullscreen .layout--game .playStage--skeleton,
html.is-game-fullscreen .layout--game .empty {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html.is-game-fullscreen .layout--game .empty {
  z-index: 2;
  display: grid;
  align-content: center;
  padding: 24px 16px !important;
  background: #f8fbff;
}

html.is-game-fullscreen .layout--game .skeletonLine--frame {
  width: 100%;
  height: 100%;
  min-height: 100dvh !important;
  border-radius: 0 !important;
}

html.is-game-fullscreen .layout--game .playFloatDock {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  right: calc(env(safe-area-inset-right, 0px) + 8px);
  z-index: 45;
  display: grid !important;
  gap: 8px;
  justify-items: end;
  max-width: calc(100vw - 16px);
}

html.is-game-fullscreen .layout--game .exitMask {
  z-index: 10010;
}
