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

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #111;
  font-family: monospace;
  cursor: none;
}

canvas {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  aspect-ratio: 256 / 231;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 2px solid #333;
  cursor: none;
}

/* Back to Arcade button */
.back-btn {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  font-family: 'Press Start 2P', 'Courier New', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  background: rgba(0,0,0,0.6);
  transition: all 0.2s;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
}
.back-btn:hover {
  color: #00f0ff;
  border-color: #00f0ff;
  box-shadow: 0 0 12px rgba(0,240,255,0.3);
  background: rgba(0,0,0,0.85);
}

/* Mobile touch controls area */
@media (max-width: 767px) {
  body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 180px;
  }
  canvas {
    max-height: calc(100vh - 180px) !important;
    margin-top: 0;
  }
  @media (orientation: landscape) {
    body { padding-bottom: 130px; }
    canvas { max-height: calc(100vh - 130px) !important; }
  }
}
@media (min-width: 768px) {
  body { padding-bottom: 0 !important; }
  canvas { max-height: 100vh !important; }
}
