html,
body {
  margin: 0;
  height: 100%;
  background: #0b0b12;
  overflow: hidden;
  /* phones: no scrolling, pinch-zoom, text selection or long-press menus */
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  display: block;
  background: #000;
  cursor: none; /* the game draws its own crosshair */
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

#rotate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: #0b0b12;
  color: #ffd23f;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

#rotate .small {
  color: #888;
  font-size: 9px;
}

#rotate .phone {
  width: 36px;
  height: 60px;
  margin-bottom: 16px;
  border: 4px solid #ffd23f;
  border-radius: 6px;
  animation: turn 1.6s ease-in-out infinite;
}

@keyframes turn {
  0%, 25% { transform: rotate(0deg); }
  60%, 100% { transform: rotate(90deg); }
}

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