* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Georgia', serif;
}

body {
  background: radial-gradient(circle at top, #0f172a, #020617);
  min-height: 100vh;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  text-align: center;
  padding: 20px;
  max-width: 420px;
}

.title {
  font-size: 2.2rem;
  margin-bottom: 8px;
  text-shadow: 0 0 15px rgba(255,100,150,0.6);
}

.subtitle {
  opacity: 0.8;
  margin-bottom: 25px;
}

.cake-wrapper {
  position: relative;
  margin: 0 auto;
  width: 260px;
}

.cake {
  width: 100%;
}

#flame {
  animation: flicker 0.15s infinite alternate;
  transform-origin: center;
}

@keyframes flicker {
  from { transform: scale(1) rotate(-2deg); }
  to { transform: scale(1.1) rotate(2deg); }
}

.glow {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255,180,80,0.6), transparent);
  transform: translateX(-50%);
  filter: blur(15px);
}

.envelope {
  margin-top: 30px;
  background: #fff;
  color: #111;
  padding: 25px;
  border-radius: 12px;
  animation: open 1s ease forwards;
}

.hidden {
  display: none;
}

@keyframes open {
  from {
    transform: scaleY(0);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

.letter {
  font-size: 1.05rem;
  line-height: 1.6;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
}