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

body {
  background: #0d0d1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  font-family: 'Press Start 2P', monospace;
}

#game-wrapper {
  position: relative;
  width: 800px;
  max-width: 100vw;
}

#canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 3px solid #2a2a4a;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(80, 60, 200, 0.15), inset 0 0 80px rgba(0,0,0,0.3);
}

#touch-controls {
  display: none;
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  padding: 0 15px;
  justify-content: space-between;
  pointer-events: none;
}

.touch-btn {
  pointer-events: all;
  width: 64px;
  height: 64px;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  font-size: 24px;
  border-radius: 12px;
  font-family: 'Press Start 2P', monospace;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.touch-btn:active {
  background: rgba(255,255,255,0.2);
}

.touch-jump {
  width: 80px;
  height: 80px;
  font-size: 28px;
}

@media (pointer: coarse), (max-width: 850px) {
  #touch-controls {
    display: flex;
  }
}

footer {
  margin-top: 12px;
  color: #555;
  font-size: 8px;
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  line-height: 1.8;
}

footer a {
  color: #7766bb;
  text-decoration: none;
}
footer a:hover {
  color: #aa99ee;
}