* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(ellipse at 50% 70%, #5a0f1c 0%, #2a0610 45%, #0d0205 100%);
  color: #ffe6d5; font-family: Georgia, "Times New Roman", serif;
  display: grid; place-items: center; overflow: hidden; text-align: center;
}
#embers { position: fixed; inset: 0; width: 100%; height: 100%; }
main { position: relative; padding: 2rem; max-width: 36rem; }
.date { letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; color: #e8a27c; }
h1 { font-size: clamp(2.4rem, 9vw, 4.5rem); font-weight: normal; line-height: 1.05; margin: .6rem 0 1.5rem;
  text-shadow: 0 0 24px #ff5a3c88; }
h1 span { font-style: italic; color: #ff8a65; }
.candle { width: 40px; margin: 0 auto 1.5rem; }
.wax { width: 40px; height: 70px; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(90deg, #f3d9c4, #fff4ea 40%, #d9b89e); }
.flame { width: 18px; height: 34px; margin: 0 auto 4px; border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 75%, #fff8d6 0%, #ffc44d 35%, #ff6a2a 70%, transparent 72%);
  box-shadow: 0 0 40px 14px #ff7a3a66; animation: flicker 1.6s infinite alternate ease-in-out; transform-origin: 50% 100%; }
@keyframes flicker {
  0% { transform: scale(1, 1) rotate(-2deg); } 40% { transform: scale(.95, 1.08) rotate(2deg); }
  70% { transform: scale(1.04, .94) rotate(-1deg); } 100% { transform: scale(.98, 1.04) rotate(1deg); }
}
.line { font-size: 1.25rem; font-style: italic; min-height: 3.2em; transition: opacity .5s; }
button { margin-top: 1rem; font: inherit; font-size: 1.1rem; color: #2a0610; background: #ffb38a;
  border: 0; border-radius: 999px; padding: .8rem 1.6rem; cursor: pointer; box-shadow: 0 0 30px #ff6a3a55; }
button:active { transform: scale(.96); }
.count { margin-top: 1rem; font-size: .9rem; color: #e8a27c; min-height: 1.2em; }
@media (prefers-reduced-motion: reduce) { .flame { animation: none; } }
