:root{
  --bg:#0b0614; --fg:#f7e7ff; --accent:#ff7b00; --accent2:#7a33ff; --green:#8aff9d;
}
html,body{
  margin:0;
  background: radial-gradient(1200px 700px at 70% 20%, #1a0f2d, #0b0614);
  color:var(--fg);
  font-family:system-ui, sans-serif;
  height:100%;
}

#ui{
  position:fixed;
  left:16px;
  top:16px;
  z-index:10;
  max-width:340px;
}

#logo{
  width:160px;
  display:block;
  margin:0 0 10px 0;
  filter:drop-shadow(0 0 15px #ff7b00aa);
  animation: float 2.5s ease-in-out infinite alternate;
}

@keyframes float{
  to{ transform:translateY(-10px); }
}

.tip{
  font-size:14px;
  opacity:.85;
  margin-bottom:8px;
}

.panel{
  background:#150a26cc;
  border:1px solid #ffffff1a;
  border-radius:18px;
  padding:10px 12px;
  backdrop-filter: blur(6px);
}

button#startBtn{
  all:unset;
  display:inline-block;
  background:linear-gradient(120deg, var(--accent), var(--accent2));
  padding:8px 14px;
  border-radius:999px;
  cursor:pointer;
  font-weight:700;
  color:#12081f;
  box-shadow:0 6px 24px #0008;
  margin-bottom:8px;
}
button#startBtn:disabled{
  opacity:.4;
  cursor:not-allowed;
}

label{
  display:block;
  font-size:13px;
  margin-top:6px;
}
input[type=range]{ width:100%; }

#loading{
  position:fixed;
  inset:0;
  display:grid;
  place-items:center;
  background:#0b0614;
  z-index:1000;
  gap:10px;
  transition: opacity .25s ease;
}
#loading.hide{
  opacity:0;
  pointer-events:none;
}
.skull{
  width:70px;
  height:70px;
  background:
    radial-gradient(circle at 50% 60%, #fff 25px, transparent 26px),
    radial-gradient(circle at 35% 43%, #000 6px, transparent 7px),
    radial-gradient(circle at 65% 43%, #000 6px, transparent 7px),
    radial-gradient(circle at 50% 78%, #000 6px, transparent 7px);
  border-radius:60%;
  box-shadow:0 0 30px #ff7b00aa, inset 0 0 14px #fff;
  animation: float 1.1s ease-in-out infinite alternate;
}

.bat-bar {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 28px;
}

.bat-icon {
  font-size: 22px;
  color: #42ff88; /* verd */
  text-shadow: 0 0 12px #42ff88;
  animation: pop 0.2s ease;
}

.bat-icon-gold {
  color: #ffd75a;
  text-shadow: 0 0 14px #ffd75a, 0 0 22px #ffb347;
}

.small-hint {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 4px;
}

.goal-done {
  font-size: 20px;
  color: #ffd75a;
  background: rgba(21, 10, 38, 0.7);
  border: 2px solid rgba(255, 215, 90, 0.6);
  border-radius: 16px;
  padding: 10px 14px;
  margin-top: 12px;
  text-align: center;
  font-weight: 700;
  text-shadow: 0 0 15px #ffb347, 0 0 25px #ffd75a;
  animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(1.05); opacity: 1; }
}


@keyframes pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

#resetBtn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 20;
  background: linear-gradient(120deg, #ff7b00, #ffb347);
  border: none;
  color: #12081f;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 0 12px #ff7b00aa;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#resetBtn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px #ffb347;
}

#volume {
  width: 100%;
  accent-color: #ff7b00;
  margin-top: 4px;
}

#bgmToggle {
  all: unset;
  display: inline-block;
  margin-top: 8px;
  background: rgba(255, 123, 0, 0.12);
  border: 1px solid rgba(255, 123, 0, 0.4);
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}
#bgmToggle.on {
  background: linear-gradient(120deg, #ff7b00, #ffb347);
  color: #12081f;
  border: 1px solid #ffb347;
}

