:root {
  --neon: #33ff99;
  --danger: #ff4d4d;
  --accent: #ffe066;
  --ink: #0a0a0a;
  --sky: #0b1320;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(
    1200px 800px at 50% 60%,
    #06080b 0%,
    #020304 60%,
    #000 100%
  );
  color: var(--neon);
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Ubuntu,
    Cantarell,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    sans-serif;
  overflow: hidden;
  user-select: none;
}
#game {
  position: relative;
  width: 800px;
  height: 600px;
  border: 2px solid var(--neon);
  border-radius: 12px;
  box-shadow:
    0 0 24px rgba(51, 255, 153, 0.35),
    inset 0 0 32px rgba(51, 255, 153, 0.12);
  background: #000;
  overflow: hidden;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}
#hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(51, 255, 153, 0.6);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 14px;
  text-shadow: 0 0 10px rgba(51, 255, 153, 0.5);
  backdrop-filter: blur(4px);
}
#score {
  left: 8px;
}
#hi {
  left: unset;
  right: 8px;
}
#hint {
  left: 50%;
  transform: translateX(-50%);
}

/* Health / Shield Bars */
.bars {
  position: absolute;
  left: 8px;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 8px;
  pointer-events: none;
}
.bar {
  flex: 1;
  height: 12px;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.bar > .fill {
  height: 100%;
}
.bar.hp > .fill {
  background: linear-gradient(90deg, #ff6565, #a82121);
}
.bar.shield > .fill {
  background: linear-gradient(90deg, #7fdfff, #1c7bbd);
}

/* Boss bar */
#bossbar {
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 14px;
  background: #130707;
  border: 1px solid #3a1111;
  border-radius: 10px;
  overflow: hidden;
  display: none;
}
#bossbar .fill {
  height: 100%;
  background: linear-gradient(90deg, #ff9a9a, #bb2d2d);
}

/* Overlays */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  z-index: 3;
  text-align: center;
  padding: 24px;
}
.overlay h1 {
  margin: 0 0 8px;
  font-size: 42px;
  letter-spacing: 1px;
  text-shadow: 0 0 16px rgba(51, 255, 153, 0.7);
}
.overlay p {
  margin: 4px 0;
  opacity: 0.9;
}
.btns {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
button {
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 16px;
  border: 2px solid var(--neon);
  color: #08110c;
  background: var(--neon);
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(51, 255, 153, 0.25);
}
button.secondary {
  background: transparent;
  color: var(--neon);
}
button:active {
  transform: translateY(1px);
}

/* Ensure settings sits above the main menu when opened */
#settings.overlay {
  align-items: stretch;
  z-index: 5;
}
#settings .panel {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(51, 255, 153, 0.35);
  border-radius: 16px;
  padding: 18px;
}
.row {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}
input[type="range"] {
  width: 100%;
}
input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #2e2e2e;
  background: #0a0a0a;
  color: #dfffee;
}

@media (max-width: 860px) {
  #game {
    transform: scale(0.9);
  }
}
/* Utility hidden class */
.hidden {
  display: none !important;
}

/* Added */
#musicUrl {
  box-sizing: border-box;
}
/* Added */
