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

body {
  background: #000;
  margin: 0;
  overflow: hidden;
  font-family: 'Courier New', Courier, monospace;
  color: #0ff;
  user-select: none;
  width: 100vw;
  height: 100vh;
}

#game-container {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

#game-canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  /* CSS size is set dynamically by main.js to fill the viewport */
}

#score-display {
  display: none;
}

/* Touch controls overlay */
#touch-controls {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  pointer-events: none;
}

#touch-left {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 33%;
  height: 100%;
  pointer-events: all;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 8px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(0, 255, 255, 0.4);
}

#touch-right {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 33%;
  height: 100%;
  pointer-events: all;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 0 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(0, 255, 255, 0.4);
}

#touch-fire {
  position: absolute;
  left: 33%;
  right: 33%;
  bottom: 0;
  height: 100%;
  pointer-events: all;
  background: rgba(255, 100, 0, 0.05);
  border: 1px solid rgba(255, 100, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255, 100, 0, 0.5);
}

@media (max-width: 820px) {
  #touch-controls {
    display: flex;
  }
}

@media (pointer: coarse) {
  #touch-controls {
    display: flex;
  }
}
