html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #101119;
  overflow: hidden;
  overscroll-behavior: none;
  /* Kill browser gestures so the touch pad owns the screen. */
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

#game-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

#game-container canvas {
  display: block;
  touch-action: none;
}

/* Landscape-only nudge for phones held upright. Pure CSS, no JS. */
#rotate-hint {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  align-items: center;
  justify-content: center;
  background: #101119;
  color: #39ff88;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  letter-spacing: 1px;
  text-align: center;
  padding: 24px;
}

.rotate-hint-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rotate-glyph {
  font-size: 52px;
  line-height: 1;
}

.rotate-sub {
  color: #7d8493;
  font-size: 13px;
  letter-spacing: 0;
}

@media (orientation: portrait) and (pointer: coarse) {
  #rotate-hint {
    display: flex;
  }
}
