:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #fff4e5;
  background: #10182b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 5vw, 3rem);
  background: radial-gradient(ellipse at 50% 16%, #273652, #10182b 64%, #080e1c);
}
.card {
  width: min(100%, 34rem);
  padding: clamp(1.5rem, 6vw, 3.5rem);
  text-align: center;
  border: 1px solid #efd09a56;
  border-radius: 10rem 10rem 1.25rem 1.25rem;
  background: radial-gradient(ellipse at 50% 12%, #69434555, transparent 42%), #121c30;
  box-shadow: 0 1.5rem 4rem #070d19a8, inset 0 0 0 6px #f9d9a00b;
}
.illustration { position: relative; height: 9.5rem; max-width: 16rem; margin: 0 auto .5rem; }
.illustration span { position: absolute; display: block; }
.flame, .candle, .cake, .plate { left: 50%; }
.flame {
  top: .8rem;
  width: 1.1rem;
  height: 1.6rem;
  transform: translateX(-50%) rotate(8deg);
  border-radius: 70% 30% 55% 50% / 75% 45% 55% 25%;
  background: radial-gradient(ellipse at 45% 70%, #fff9c7 20%, #ffcf76 52%, #e88c55 85%);
  box-shadow: 0 0 1.3rem #ffd28f, 0 0 3.7rem 1rem #ffae6b60;
}
.candle {
  top: 2.56rem;
  width: .48rem;
  height: 2.4rem;
  transform: translateX(-50%);
  border-radius: .18rem .18rem 0 0;
  background: repeating-linear-gradient(135deg, #fce3bb 0 6px, #c88070 6px 9px);
}
.cake {
  top: 4.92rem;
  width: 8.25rem;
  height: 3.25rem;
  transform: translateX(-50%);
  border-radius: 45% 45% .7rem .7rem / 28% 28% .7rem .7rem;
  background: linear-gradient(#ffe0b6 0 31%, #bd796b 32% 55%, #edaa8e 56% 68%, #a45c58 69%);
  box-shadow: inset .4rem -.5rem .8rem #7f3b4c60;
}
.plate {
  top: 8.2rem;
  width: 10.5rem;
  height: .34rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #e8bd8d;
  box-shadow: 0 .5rem 1rem #070d1b;
}
.spark { color: #edc28e; }
.spark-left { left: 15%; top: 2rem; font-size: 1.4rem; }
.spark-right { right: 12%; top: 3rem; font-size: 1.6rem; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: normal; }
h1 { margin: 0; font-size: clamp(2.6rem, 9vw, 4rem); line-height: 1.05; }
h2 { margin: 0 0 .7rem; font-size: 1.65rem; color: #ffdb9f; }
p { line-height: 1.65; }
.intro { margin: 1rem 0 1.35rem; color: #e3d7ce; }
button {
  padding: .75rem 1.55rem;
  min-height: 44px;
  border: 1px solid #ffdb9f;
  border-radius: 999px;
  background: #ffdb9f;
  color: #261b21;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
button:hover { background: #ffebc6; }
:focus-visible { outline: 2px solid #fff4e5; outline-offset: 5px; }
#wish { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid #efd09a56; }
#message { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#photo { display: block; max-width: 100%; max-height: 22rem; margin: 0 auto 1.25rem; border-radius: .75rem; }
#music { margin-top: 1.2rem; }
#confetti { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
#confetti span {
  position: absolute;
  left: var(--x);
  top: -1rem;
  width: .34rem;
  height: .58rem;
  border-radius: 2px;
  background: var(--color);
  animation: fall 1.8s var(--delay) ease-in both;
}
@keyframes fall {
  from { transform: translate(0, 0) rotate(0); opacity: .85; }
  to { transform: translate(var(--drift), 75vh) rotate(390deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #confetti { display: none; }
}
