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

body {
  font-family: 'Fredoka One', cursive;
  background: linear-gradient(160deg, #0a0a1a 0%, #1a1a3a 40%, #0d0d2b 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 40px;
  overflow-x: hidden;
  position: relative;
}

/* Stars in background */
body::before {
  content: '★ ✦ ★ ✦ ★ ✦ ★ ✦ ★ ✦ ★ ✦ ★ ✦ ★ ✦ ★';
  position: fixed;
  top: 10px;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,220,0,0.15);
  font-size: 1.2rem;
  letter-spacing: 8px;
  pointer-events: none;
}

/* ── Header ── */
.header {
  text-align: center;
  margin-bottom: 12px;
}

.bat-signal {
  position: relative;
  display: inline-block;
  margin-bottom: 4px;
}

.batman {
  font-size: 72px;
  display: block;
  animation: glide 3s ease-in-out infinite;
  cursor: default;
  user-select: none;
  filter: drop-shadow(0 0 16px rgba(255,220,0,0.6));
}

@keyframes glide {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-12px) rotate(3deg); }
}

.title {
  font-family: 'Bangers', cursive;
  font-size: 2.4rem;
  color: #FFD700;
  text-shadow: 3px 3px 0 #000, 0 0 20px rgba(255,215,0,0.5);
  letter-spacing: 2px;
  margin-top: 4px;
}

.subtitle {
  font-size: 1rem;
  color: #aaa;
  margin-top: 2px;
}

/* ── Bat-Signal beam effect ── */
.bat-beam {
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.4), transparent);
  border-radius: 2px;
  margin: 10px auto;
  animation: beam 2s ease-in-out infinite;
}

@keyframes beam {
  0%, 100% { opacity: 0.3; width: 80px; }
  50%       { opacity: 1; width: 140px; }
}

/* ── Streak ── */
.streak-bar {
  background: rgba(255,215,0,0.1);
  border: 2px solid #FFD700;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 1rem;
  color: #FFD700;
  margin-bottom: 20px;
  text-align: center;
}

/* ── Steps ── */
.steps {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 2px solid #333a5c;
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: transform 0.1s, background 0.3s, border-color 0.3s, box-shadow 0.3s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.step:active { transform: scale(0.97); }

.step:not(.done):hover {
  border-color: #FFD700;
  box-shadow: 0 0 12px rgba(255,215,0,0.2);
}

.step.done {
  background: rgba(255,215,0,0.08);
  border-color: #FFD700;
  box-shadow: 0 0 16px rgba(255,215,0,0.25);
}

.step-emoji {
  font-size: 2.4rem;
  flex-shrink: 0;
  width: 48px;
  text-align: center;
}

.step-label {
  font-size: 1.3rem;
  color: #ccd;
  flex: 1;
}

.step.done .step-label { color: #FFD700; }

.step-check {
  font-size: 1.6rem;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.step.done .step-check { opacity: 1; }

/* ── Per-step completion effects ── */
.step.pow {
  animation: pow-burst 0.5s ease-out;
}

@keyframes pow-burst {
  0%   { transform: scale(1); box-shadow: 0 0 0 rgba(255,215,0,0); }
  40%  { transform: scale(1.08); box-shadow: 0 0 30px rgba(255,215,0,0.7); }
  100% { transform: scale(1); box-shadow: 0 0 16px rgba(255,215,0,0.25); }
}

.pow-word {
  position: fixed;
  left: 50%;
  top: 50%;
  font-family: 'Bangers', cursive;
  font-size: 7rem;
  color: #FFD700;
  text-shadow: 4px 4px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 0 0 30px rgba(255,215,0,0.6);
  pointer-events: none;
  z-index: 50;
  animation: pow-pop 0.7s ease-out forwards;
  letter-spacing: 4px;
  translate: -50% -50%;
}

@keyframes pow-pop {
  0%   { opacity: 0; transform: scale(0.4); }
  25%  { opacity: 1; transform: scale(2.8); }
  50%  { opacity: 1; transform: scale(2.0); }
  100% { opacity: 0; transform: scale(3.6) translateY(-30px); }
}

.sparkle {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 50;
  animation: sparkle-fly 0.6s ease-out forwards;
}

@keyframes sparkle-fly {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); }
}

/* ── Celebration overlay ── */
#celebrate {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 20, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  text-align: center;
  padding: 24px;
}

#celebrate.show { display: flex; }

.celebrate-bat {
  font-size: 100px;
  animation: batbounce 0.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 24px rgba(255,215,0,0.8));
}

@keyframes batbounce {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-20px) scale(1.05); }
}

.celebrate-title {
  font-family: 'Bangers', cursive;
  font-size: 3rem;
  color: #FFD700;
  text-shadow: 3px 3px 0 #000, 0 0 30px rgba(255,215,0,0.7);
  letter-spacing: 3px;
  margin: 16px 0 6px;
}

.celebrate-sub {
  font-size: 1.2rem;
  color: #aaa;
  margin-bottom: 20px;
}

.stars {
  font-size: 2.8rem;
  letter-spacing: 8px;
  margin-bottom: 28px;
}

.btn-done {
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #FFD700, #FFA000);
  color: #000;
  border: none;
  border-radius: 50px;
  padding: 14px 40px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,215,0,0.4);
  transition: transform 0.1s;
}

.btn-done:active { transform: scale(0.96); }

/* ── Confetti (gold/dark themed) ── */
.confetti-piece {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  animation: fall linear forwards;
  z-index: 99;
}

@keyframes fall {
  0%   { opacity: 1; transform: translateY(-40px) rotate(0deg); }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}
