/* Landscape-first stage. A tall browser shows the same wide scene
   anchored at the top-left; there is no rotate transform and no blocker. */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background:
    radial-gradient(ellipse at 50% 0%, #0a3d58 0%, #031526 62%, #020d18 100%);
}

#game.ocean {
  width: 100%;
  height: 100dvh;
  min-width: 0;
  min-height: 0;
  container: raft-stage / size;
}

/* Keep the wide 16:9 stage at the top of a tall browser/preview. */
@media (max-aspect-ratio: 1/1) {
  #game.ocean {
    height: calc(100vw * 9 / 16);
    max-height: 100dvh;
  }
}

#game .virtual-joystick { inset: auto; }
