* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background: #050510;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Courier New', monospace;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  position: fixed;
}

#game-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#game-canvas {
  display: block;
  image-rendering: auto;
  touch-action: none;
}

/* Landscape prompt for portrait phones */
#rotate-prompt {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #050510;
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #00ff88;
  font-family: 'Courier New', monospace;
  text-align: center;
  padding: 20px;
}

#rotate-prompt .icon {
  font-size: 60px;
  margin-bottom: 20px;
  animation: rotateHint 2s ease-in-out infinite;
}

#rotate-prompt .text {
  font-size: 16px;
  color: #888;
}

@keyframes rotateHint {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(90deg); }
}

@media (orientation: portrait) and (max-width: 768px) {
  #rotate-prompt {
    display: flex;
  }
}

/* Safe area padding for notched phones */
@supports (padding: env(safe-area-inset-left)) {
  #game-container {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}
