* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  background: #2d2d1d;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#game-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
#game-container canvas {
  display: block;
  touch-action: none;
  image-rendering: pixelated;
}

/* Portrait orientation overlay for mobile - prompts user to rotate to landscape */
.rotate-hint {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 20, 0.95);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #ffd700;
  font-family: 'Microsoft YaHei', 'SimHei', 'PingFang SC', sans-serif;
  font-size: 20px;
  text-align: center;
  gap: 16px;
}
.rotate-hint .icon {
  font-size: 60px;
  animation: rotate-anim 1.5s ease-in-out infinite;
}
@keyframes rotate-anim {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(90deg); }
}

/* Show overlay in portrait mode on mobile */
@media (max-width: 768px) and (orientation: portrait) {
  .rotate-hint {
    display: flex;
  }
}
