body { padding: 20px 16px 60px; display: flex; justify-content: center; }
#app { max-width: 480px; width: 100%; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }

.bd-card { padding: 32px 24px; width: 100%; }
.bd-title { font-size: 1.8rem; margin: 0 0 4px; }
.bd-sub { color: var(--canvas-dim); font-size: 0.95rem; margin: 0 0 20px; }
.bd-age-badge {
  display: inline-block; font-family: var(--font-display); font-size: 2.6rem;
  color: var(--fire-400); text-shadow: 0 2px 8px rgba(255,138,61,0.5); margin: 4px 0 18px;
}

.bd-cake { position: relative; width: 220px; height: 160px; margin: 0 auto 20px; }
.bd-cake-tier { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.35); }
.bd-cake-tier.bottom { width: 220px; height: 70px; bottom: 0; background: linear-gradient(180deg, #b5762e, #8a5620); }
.bd-cake-tier.top { width: 160px; height: 55px; bottom: 62px; background: linear-gradient(180deg, #d99a4e, #b5762e); }
.bd-frosting { position: absolute; left: 50%; transform: translateX(-50%); width: 168px; height: 14px; bottom: 108px; background: #f4ead9; border-radius: 8px; }

.bd-candles { position: absolute; bottom: 118px; left: 0; right: 0; display: flex; justify-content: center; gap: 18px; }
.bd-candle { width: 8px; height: 34px; background: linear-gradient(180deg, #e8ddc8, #cbb98a); border-radius: 3px; cursor: pointer; position: relative; transition: opacity 0.2s; }
.bd-candle .flame {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 16px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 70%, #fff3b0, #ff9a3c 60%, #d94f1e 100%);
  box-shadow: 0 0 10px 3px rgba(255,177,92,0.6);
  animation: bd-flicker 0.4s infinite alternate ease-in-out;
}
.bd-candle.out { opacity: 0.55; }
.bd-candle.out .flame { display: none; }
.bd-candle.out::after {
  content: "💨"; position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  font-size: 0.9rem; animation: bd-smoke 0.6s ease-out forwards;
}
@keyframes bd-flicker { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-50%) scale(0.85) rotate(-4deg); } }
@keyframes bd-smoke { from { opacity: 1; transform: translateX(-50%) translateY(0); } to { opacity: 0; transform: translateX(-50%) translateY(-18px); } }

.bd-hint { font-size: 0.85rem; color: var(--canvas-dim); margin-top: 4px; }
.bd-progress { font-size: 0.8rem; color: var(--fire-400); margin-top: 6px; font-weight: 700; }

.bd-message { font-size: 1.05rem; line-height: 1.5; margin: 10px 0 22px; }
.bd-message b { color: var(--fire-400); }
#btn-enter { font-size: 1.05rem; padding: 14px 28px; }

.bd-confetti-piece {
  position: fixed; top: -20px; width: 8px; height: 14px; opacity: 0.9; pointer-events: none;
  animation: bd-fall linear forwards; z-index: 50;
}
@keyframes bd-fall {
  to { transform: translateY(110vh) rotate(540deg); opacity: 0.2; }
}
