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

body {
  background: #0a0a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: 'Courier New', monospace;
  overflow: hidden;
}

#game-container {
  position: relative;
  border: 3px solid #3366ff;
  box-shadow: 0 0 30px rgba(51, 102, 255, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.5);
}

#game-canvas {
  display: block;
  background: #000;
}

#ui-overlay {
  position: absolute;
  top: 8px;
  left: 12px;
  color: #fff;
  font-size: 14px;
  text-shadow: 0 0 4px #3366ff;
  pointer-events: none;
  line-height: 1.6;
}

#power-meter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.power-label {
  color: #ffcc00;
  font-size: 11px;
  margin-bottom: 4px;
  letter-spacing: 2px;
}

#power-slots {
  display: flex;
  gap: 3px;
  justify-content: center;
}

.power-slot {
  width: 72px;
  height: 22px;
  border: 1px solid #555;
  background: #111;
  color: #666;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  transition: all 0.15s;
}

.power-slot.active {
  background: #ffcc00;
  color: #000;
  border-color: #ffcc00;
  box-shadow: 0 0 10px #ffcc00;
  font-weight: bold;
}

.power-slot.used {
  background: #222;
  color: #444;
  border-color: #333;
}

.power-hint {
  color: #888;
  font-size: 10px;
  margin-top: 4px;
}

#start-screen,
#game-over-screen,
#stage-clear-screen {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 20, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.hidden {
  display: none !important;
}

#start-screen h1,
#game-over-screen h1,
#stage-clear-screen h1 {
  font-size: 48px;
  color: #3366ff;
  text-shadow: 0 0 20px #3366ff, 0 0 40px #3366ff;
  letter-spacing: 8px;
  margin-bottom: 8px;
}

.subtitle {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 30px;
}

.controls-info {
  text-align: center;
  line-height: 2;
  color: #ccc;
  margin-bottom: 30px;
  font-size: 13px;
}

button {
  padding: 12px 40px;
  font-family: 'Courier New', monospace;
  font-size: 18px;
  background: transparent;
  color: #ffcc00;
  border: 2px solid #ffcc00;
  cursor: pointer;
  letter-spacing: 4px;
  transition: all 0.2s;
}

button:hover {
  background: #ffcc00;
  color: #000;
  box-shadow: 0 0 20px #ffcc00;
}

#game-over-screen h1 {
  color: #ff3333;
  text-shadow: 0 0 20px #ff3333;
}

#stage-clear-screen h1 {
  color: #33ff66;
  text-shadow: 0 0 20px #33ff66;
}

#game-over-screen button,
#stage-clear-screen button {
  margin: 6px 8px;
}
