html,
body {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--turn-ink);
}

body {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
}

#game,
.m8-home,
.rotate-panel {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
}

/* M8 Home sits at z-index 1400. Keep the portrait interception above it while
   leaving the browser installation gate as the topmost pre-launch surface. */
.rotate-panel {
  z-index: 1700;
}

#intro {
  display: none !important;
}

body.turn-race-active .rotate-panel {
  display: none !important;
}
