/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Courier New', Courier, monospace;
}

body, html {
  width: 100%;
  height: 100%;
  background-color: #000;
  color: #00FF00;
  overflow: hidden;
  touch-action: none;
}

#game-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#game-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* UI Layer */
#ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font-size: 24px;
  font-weight: bold;
  text-shadow: 0 0 10px #00FF00;
}

#multiplier-container {
  color: #FFFF00;
  text-shadow: 0 0 10px #FFFF00;
}

#lives-container {
  color: #FF0000;
  text-shadow: 0 0 10px #FF0000;
}

/* Overlays */
.overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 10;
}

.overlay.hidden {
  display: none;
}

.overlay h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  text-shadow: 0 0 20px #00FF00;
  letter-spacing: 5px;
}

.overlay p {
  font-size: 1.2rem;
  margin-bottom: 15px;
  max-width: 600px;
  line-height: 1.5;
  color: #FFF;
}

.overlay h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #FFF;
}

button {
  background: transparent;
  color: #00FF00;
  border: 2px solid #00FF00;
  padding: 15px 40px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

button:hover {
  background: #00FF00;
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
}

/* Touch Controls */
#touch-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  display: none;
  pointer-events: none;
  z-index: 5;
}

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

#joystick-zone {
  flex: 1;
  position: relative;
  pointer-events: auto;
}

#joystick-base {
  position: absolute;
  bottom: 40px;
  left: 40px;
  width: 120px;
  height: 120px;
  background: rgba(0, 255, 0, 0.1);
  border: 2px solid rgba(0, 255, 0, 0.5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.7;
}

#joystick-stick {
  width: 50px;
  height: 50px;
  background: rgba(0, 255, 0, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
  position: absolute;
}

#action-zone {
  flex: 1;
  position: relative;
  pointer-events: auto;
}

#fire-btn {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(0, 255, 0, 0.2);
  border: 2px solid rgba(0, 255, 0, 0.8);
  color: #00FF00;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.7;
  padding: 0;
}

#fire-btn:active {
  background: rgba(0, 255, 0, 0.5);
}
