* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 4px solid #333;
}

/* Mobile: remove border, fill screen */
@media (max-width: 768px), (pointer: coarse) {
  canvas {
    border: none;
  }
}

/* Portrait orientation warning — overlays canvas without hiding it */
#rotate-hint {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0a1a;
  color: #f0c040;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

#rotate-hint .phone-icon {
  font-size: 48px;
  animation: rotate-phone 2s ease-in-out infinite;
}

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

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

.hidden { display: none; }
