/* The existing playing message lets touch games use the whole browser viewport. */
@media (max-width: 900px), (max-height: 600px), (pointer: coarse) {
  .play.immersive {
    position: relative;
    min-height: 0;
    overflow: hidden;
  }

  .play.immersive .play-bar {
    position: absolute;
    top: calc(8px + env(safe-area-inset-top, 0px));
    left: calc(8px + env(safe-area-inset-left, 0px));
    z-index: 10;
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
    pointer-events: none;
  }

  .play.immersive .play-bar > :not(:first-child) {
    display: none;
  }

  .play.immersive .play-bar > button:first-child {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgb(13 16 32 / .9);
    font-size: 18px;
    pointer-events: auto;
  }

  /* Keep the Games text in the button's accessible name at every phone width. */
  .play.immersive .play-bar .back-label {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .play.immersive .play-stage {
    flex: 1 1 0%;
  }

  .play.immersive .play-stage,
  .play.immersive .game-frame {
    min-width: 0;
    min-height: 0;
  }
}
