html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #111c20;
}
main {
  position: fixed;
  inset: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
         env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  container-type: size;
}
iframe {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Rotate the browsing context so dialogs and touch events share the game's axes. */
@media (orientation: portrait) {
  iframe {
    left: 100%;
    width: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    height: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    width: 100cqh;
    height: 100cqw;
    transform-origin: top left;
    transform: rotate(90deg);
  }
}
