:root {
  color-scheme: dark;
  --bg: #130812;
  --rose: #d76b8a;
  --peach: #ffd3b6;
  --cream: #fff4df;
  --gold: #f4c86a;
  --wine: #4b1730;
  --ink: #2a0d1d;
  --muted: #f4c9d7;
  --line: rgba(255, 244, 223, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--cream);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(244, 200, 106, 0.22), transparent 17rem),
    radial-gradient(circle at 78% 20%, rgba(215, 107, 138, 0.25), transparent 20rem),
    radial-gradient(circle at 50% 90%, rgba(255, 211, 182, 0.12), transparent 22rem),
    linear-gradient(145deg, #130812, #321026 52%, #10070f);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(255, 244, 223, 0.045) 12.2%, transparent 12.7%),
    linear-gradient(90deg, transparent 0 50%, rgba(244, 200, 106, 0.08) 50.1%, transparent 50.4%),
    repeating-linear-gradient(90deg, transparent 0 8rem, rgba(255, 255, 255, 0.035) 8.08rem, transparent 8.18rem);
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.birthday-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(1rem, 5vw, 4rem);
}

.blessing-card {
  position: relative;
  width: min(960px, 100%);
  padding: clamp(1.25rem, 5vw, 4.5rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 244, 223, 0.1), rgba(215, 107, 138, 0.12)),
    rgba(42, 13, 29, 0.84);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38), inset 0 0 80px rgba(244, 200, 106, 0.08);
  overflow: hidden;
}

.blessing-card::before,
.blessing-card::after {
  position: absolute;
  inset: 1rem;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 244, 223, 0.14);
}

.blessing-card::after {
  inset: 2rem;
  border-color: rgba(244, 200, 106, 0.18);
  clip-path: polygon(0 0, 100% 0, 100% 18%, 82% 18%, 82% 100%, 18% 100%, 18% 18%, 0 18%);
}

.ribbon {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 200, 106, 0.7), transparent);
  box-shadow: 0 0 20px rgba(244, 200, 106, 0.4);
}

.ribbon-top {
  top: 24%;
  transform: rotate(-4deg);
}

.ribbon-bottom {
  bottom: 18%;
  transform: rotate(3deg);
}

.cake-scene {
  position: relative;
  z-index: 1;
  width: min(16rem, 62vw);
  height: 14rem;
  margin: 0 auto clamp(1.5rem, 5vw, 2.5rem);
}

.cake,
.plate,
.candle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.cake {
  border: 1px solid rgba(255, 244, 223, 0.35);
  border-radius: 0.8rem 0.8rem 0.25rem 0.25rem;
  box-shadow: inset 0 0 20px rgba(255, 244, 223, 0.12);
}

.cake-top {
  bottom: 6.8rem;
  width: 8rem;
  height: 2.4rem;
  background: linear-gradient(180deg, #fff4df, #ffd3b6 42%, #d76b8a);
}

.cake-middle {
  bottom: 4.2rem;
  width: 11rem;
  height: 3rem;
  background: linear-gradient(180deg, #ffd3b6, #d76b8a 58%, #8f3454);
}

.cake-bottom {
  bottom: 1.1rem;
  width: 14rem;
  height: 3.4rem;
  background: linear-gradient(180deg, #f4c86a, #d76b8a 34%, #661d3d);
}

.plate {
  bottom: 0.35rem;
  width: 15.5rem;
  height: 1rem;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 244, 223, 0.75), transparent);
  filter: blur(0.2px);
}

.candle {
  bottom: 9.05rem;
  width: 0.7rem;
  height: 2.8rem;
  border-radius: 0.25rem;
  background: repeating-linear-gradient(45deg, var(--cream) 0 0.32rem, var(--rose) 0.32rem 0.55rem);
}

.flame {
  position: absolute;
  left: 50%;
  bottom: 2.6rem;
  width: 1rem;
  height: 1.45rem;
  border-radius: 50% 50% 48% 48%;
  background: radial-gradient(circle at 50% 62%, #fff4df 0 16%, #f4c86a 17% 48%, #d76b8a 49% 100%);
  box-shadow: 0 0 22px rgba(244, 200, 106, 0.9), 0 0 46px rgba(215, 107, 138, 0.55);
  transform: translateX(-50%);
  animation: flame 1.6s ease-in-out infinite;
}

.eyebrow,
h1,
.lead,
.wish-list,
.wish-button,
.secret-wish {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.8rem;
  text-align: center;
  text-transform: uppercase;
}

h1 {
  margin: 0.75rem 0 0;
  font-family: "Songti SC", "SimSun", Georgia, serif;
  font-size: clamp(3.3rem, 11vw, 7.4rem);
  font-weight: 400;
  line-height: 1.04;
  text-align: center;
}

.lead {
  max-width: 42rem;
  margin: 1.2rem auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  line-height: 1.9;
  text-align: center;
}

.wish-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: clamp(1.5rem, 5vw, 3rem) 0 0;
}

.wish-list p {
  min-height: 8rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(255, 244, 223, 0.18);
  background: rgba(255, 244, 223, 0.055);
  color: #ffe5ed;
  line-height: 1.75;
}

.wish-button {
  display: block;
  margin: 2rem auto 0;
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(244, 200, 106, 0.58);
  color: var(--cream);
  font: inherit;
  background: rgba(215, 107, 138, 0.18);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.wish-button:hover,
.wish-button:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 28px rgba(244, 200, 106, 0.24);
  transform: translateY(-2px);
}

.secret-wish {
  min-height: 1.7rem;
  margin: 1rem 0 0;
  color: var(--gold);
  text-align: center;
}

@keyframes flame {
  0%,
  100% {
    transform: translateX(-50%) scale(1) rotate(-2deg);
  }

  50% {
    transform: translateX(-50%) scale(1.12) rotate(2deg);
  }
}

@media (max-width: 760px) {
  .wish-list {
    grid-template-columns: 1fr;
  }

  .wish-list p {
    min-height: auto;
  }

  .blessing-card::after {
    inset: 1.55rem;
  }
}
