* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}
canvas {
    display: block;
    aspect-ratio: 8/7;
    max-width: 100vw;
    max-height: 100vh;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* 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; }
}
