body {
  margin: 0;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  color: white;
}

canvas#background {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #000000 20%, #06001f 80%);
}

h1, h3, label {
  color: #00ffcc;
}

#setup-screen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 20px #00ffcc;
  width: 90%;
  max-width: 400px;
  z-index: 2;
}

input {
  width: 60%;
  padding: 8px;
  border: none;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 16px;
}

button {
  margin-top: 15px;
  padding: 10px 20px;
  background: #00ffcc;
  color: black;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #00ffaa;
}

#energyBoxes input {
  width: 50px;
  margin: 5px;
  text-align: center;
}

#energy-display {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  font-weight: bold;
  color: #00ff99;
  z-index: 10;
  text-shadow: 0 0 15px #00ff99;
}

#mob {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  height: 220px;
  transition: filter 0.3s ease, transform 0.3s ease;
  z-index: 3;
}

.fireball {
  position: absolute;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: radial-gradient(orange, red);
  z-index: 2;
}

@keyframes blast {
  0% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(3); transform: scale(1.4); }
  100% { filter: brightness(1); transform: scale(1); }
}

.blast-effect {
  animation: blast 0.8s ease;
}
