:root {
  color-scheme: dark;
  --bg: #100b1c;
  --pink: #ff4d86;
  --rose: #ff769f;
  --soft: #ffc1d2;
  --ink: #fff4f8;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: ""; position: fixed; inset: 0; z-index: -4;
  background: radial-gradient(circle at 50% 42%, #3a1637 0%, #1e102a 34%, #0d0b18 75%);
}
body::after {
  content: ""; position: fixed; inset: -30%; z-index: -3; opacity: .65;
  background: conic-gradient(from 180deg at 50% 50%, #1a122c, #41182f, #16102b, #401a39, #1a122c);
  filter: blur(60px); animation: background-drift 20s ease-in-out infinite alternate;
}

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(75px); opacity: .22; pointer-events: none; }
.ambient-one { width: 40vw; height: 40vw; background: #ed316c; top: 20%; left: -18%; animation: float 12s ease-in-out infinite; }
.ambient-two { width: 34vw; height: 34vw; background: #8248d7; bottom: -15%; right: -10%; animation: float 15s ease-in-out infinite reverse; }
.sun { position: fixed; top: 12%; right: 10%; z-index: 1; width: clamp(54px, 8vw, 105px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fffce3, #ffd481 45%, #f58d6f 72%); box-shadow: 0 0 30px rgba(255,194,110,.72), 0 0 100px rgba(255,120,98,.22); opacity: .72; animation: sun-pulse 7s ease-in-out infinite; pointer-events: none; }
.cloud { position: fixed; z-index: 1; width: clamp(112px, 18vw, 260px); height: 34px; border-radius: 99px; background: rgba(255,226,238,.14); filter: blur(1px); opacity: .72; animation: cloud-drift 26s linear infinite; pointer-events: none; }
.cloud::before, .cloud::after { content: ""; position: absolute; bottom: 0; border-radius: 50%; background: inherit; }.cloud::before { left: 18%; width: 45%; height: 180%; }.cloud::after { right: 12%; width: 36%; height: 135%; }.cloud-one { top: 23%; left: -15%; }.cloud-two { top: 68%; right: -17%; transform: scale(.7); animation-direction: reverse; animation-duration: 34s; }
.dove { position: fixed; z-index: 1; color: rgba(255,253,246,.92); font-family: Georgia, serif; font-size: clamp(1.7rem, 3vw, 3.2rem); font-weight: bold; letter-spacing: -.9rem; text-shadow: 0 0 10px rgba(255,255,255,.4); pointer-events: none; animation: dove-flight 17s linear infinite, dove-flap .75s ease-in-out infinite alternate; }.dove-one { top: 27%; left: -8%; }.dove-two { top: 56%; left: -18%; transform: scale(.65); animation-delay: -8s, -.3s; opacity: .75; }

.hero { position: relative; z-index: 2; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 1.5rem clamp(1.25rem, 5vw, 5.5rem) 1.35rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand, .sound-button { color: #f9d8e4; font-size: .77rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.brand { opacity: .9; }.brand span { color: var(--pink); font-size: 1rem; margin-right: .3rem; }
button { font: inherit; cursor: pointer; }
.sound-button { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid rgba(255,255,255,.16); border-radius: 99px; padding: .65rem .85rem; background: rgba(24, 13, 34, .46); color: #f7d9e4; backdrop-filter: blur(12px); transition: border-color .25s, background .25s, transform .25s; }
.sound-button:hover, .sound-button:focus-visible { border-color: rgba(255,153,187,.8); background: rgba(112,35,72,.45); transform: translateY(-2px); }
.sound-icon { color: var(--rose); font-size: 1.1rem; }

.content { align-self: center; text-align: center; padding: 2rem 0 1.3rem; }
.eyebrow { margin: 0 0 .8rem; color: #f8a7bd; font-size: clamp(.62rem, 1.4vw, .76rem); letter-spacing: .2em; font-weight: 800; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.45rem, 6vw, 5.5rem); font-weight: 500; line-height: .98; letter-spacing: -.055em; text-shadow: 0 3px 30px rgba(255, 111, 157, .2); }
.subtitle { min-height: 1.6em; max-width: 38rem; margin: 1.25rem auto 0; color: #efd7e0; font-size: clamp(.96rem, 2vw, 1.14rem); line-height: 1.65; }
.subtitle::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: .15em; vertical-align: -.12em; background: #ff88ac; animation: blink .85s step-end infinite; }
.subtitle.done::after { display: none; }

.heart-stage { position: relative; width: min(44vw, 310px); min-width: 190px; aspect-ratio: 1; margin: clamp(1.25rem, 3vh, 2.2rem) auto 1.25rem; display: grid; place-items: center; perspective: 900px; }
.heart-button { position: relative; width: 78%; aspect-ratio: 1; padding: 0; border: 0; background: transparent; transform-style: preserve-3d; transition: transform .42s cubic-bezier(.2,.8,.2,1); outline-offset: 10px; }
.heart-button:focus-visible { outline: 2px solid #ffd0df; border-radius: 50%; }
.heart { position: absolute; inset: 8%; display: block; transform: rotate(-45deg); border-radius: 16% 0 15% 0; background: linear-gradient(140deg, #ffbed0 0%, #ff668f 17%, #ee265c 53%, #9e103b 100%); box-shadow: inset 8px 8px 14px rgba(255,236,242,.32), inset -15px -17px 25px rgba(93,0,31,.32), 0 0 22px #ff386e, 0 0 55px rgba(255,52,109,.65); animation: beat 1.22s ease-in-out infinite; overflow: hidden; }
.heart::before, .heart::after { content: ""; position: absolute; width: 100%; height: 100%; border-radius: 50%; background: inherit; }
.heart::before { top: -50%; left: 0; }.heart::after { top: 0; left: 50%; }
.heart-glow { position: absolute; z-index: 4; inset: 0; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), transparent 23%), linear-gradient(115deg, transparent 26%, rgba(255,255,255,.38) 43%, transparent 57%); transform: translateX(-90%); animation: sweep 3.8s ease-in-out infinite; }
.heart-shine { position: absolute; z-index: 5; top: 18%; left: 23%; width: 20%; height: 12%; border-radius: 50%; background: rgba(255,255,255,.53); filter: blur(6px); transform: rotate(20deg); }
.heart-highlight { position: absolute; z-index: 5; bottom: 14%; right: 16%; width: 24%; height: 10%; background: rgba(94,0,28,.26); border-radius: 50%; filter: blur(6px); }
.heart-shadow { position: absolute; left: 19%; bottom: -2%; width: 66%; height: 13%; border-radius: 50%; background: rgba(255,51,110,.55); filter: blur(16px); transform: translateZ(-50px); }
.burst-layer { position: absolute; inset: 0; pointer-events: none; }
.particle { position: absolute; left: 50%; top: 50%; width: var(--size); height: var(--size); border-radius: 50%; background: var(--color); box-shadow: 0 0 12px var(--color); animation: burst .9s cubic-bezier(.13,.7,.25,1) forwards; }
.particle.heart-particle { width: auto; height: auto; background: none; box-shadow: none; color: var(--color); font-size: var(--size); line-height: 1; }

.counter { min-height: 1.5em; margin: 0; color: #eec7d4; font-size: .88rem; }
.cta { display: inline-flex; align-items: center; gap: .72rem; margin-top: 1rem; padding: .9rem 1.2rem; border: 1px solid rgba(255,226,237,.45); border-radius: 99px; background: linear-gradient(135deg, #fc4d80, #b91c54); box-shadow: 0 10px 30px rgba(212,29,87,.28); color: white; font-weight: 750; transition: transform .25s, box-shadow .25s; }
.cta:hover, .cta:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(237,43,101,.45); }.cta-heart { font-size: 1.12em; }
.thank-you { min-height: 1.5em; margin: .85rem 0 0; color: #ffd2df; font-size: .94rem; opacity: 0; transform: translateY(5px); transition: opacity .4s, transform .4s; }.thank-you.show { opacity: 1; transform: translateY(0); }
.blessing-card { position: relative; max-width: 36rem; margin: 1.7rem auto 0; padding: 1rem 1.35rem 1.15rem; border: 1px solid rgba(255,228,183,.25); border-radius: 1rem; background: linear-gradient(135deg, rgba(255,215,174,.11), rgba(109,58,125,.15)); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 13px 40px rgba(8,3,17,.16); color: rgba(255,239,224,.91); backdrop-filter: blur(12px); text-wrap: balance; }
.blessing-card p { margin: .3rem 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(.9rem, 1.7vw, 1rem); line-height: 1.55; }.blessing-card .blessing-label { margin-bottom: .55rem; font-family: inherit; color: #ffd99c; font-size: .67rem; font-weight: 800; letter-spacing: .18em; }.blessing-star { display: block; color: #ffe19f; font-size: 1rem; animation: twinkle 2.4s ease-in-out infinite; }
footer { align-self: end; text-align: center; color: rgba(255,224,235,.66); font-size: .74rem; letter-spacing: .08em; } footer span { color: #ff5d8b; }
.cursor-glow { position: fixed; z-index: 10; width: 220px; height: 220px; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(circle, rgba(255,111,151,.13), transparent 65%); transform: translate(-50%, -50%); transition: opacity .35s; mix-blend-mode: screen; }

@keyframes beat { 0%, 100% { transform: rotate(-45deg) scale(1); } 12% { transform: rotate(-45deg) scale(1.08); } 25% { transform: rotate(-45deg) scale(1); } 38% { transform: rotate(-45deg) scale(1.055); } 52% { transform: rotate(-45deg) scale(1); } }
@keyframes sweep { 0%, 25% { transform: translateX(-110%); } 60%, 100% { transform: translateX(110%); } }
@keyframes background-drift { to { transform: rotate(22deg) scale(1.12); } }
@keyframes float { 50% { transform: translate(6vw, -4vh) scale(1.1); } }
@keyframes sun-pulse { 50% { transform: scale(1.1); opacity: .75; } }
@keyframes cloud-drift { from { margin-left: -8vw; } to { margin-left: 125vw; } }
@keyframes dove-flight { from { margin-left: -9vw; } to { margin-left: 125vw; } }
@keyframes dove-flap { to { translate: 0 -9px; scale: 1.08 .9; } }
@keyframes twinkle { 50% { opacity: .35; transform: scale(.75) rotate(18deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes burst { to { transform: translate(var(--x), var(--y)) scale(0) rotate(var(--rotate)); opacity: 0; } }

@media (max-width: 500px) { .hero { padding-inline: 1rem; }.sound-button { padding: .58rem .7rem; }.sound-button #soundLabel { display: none; }.heart-stage { width: min(65vw, 280px); }.content { padding-top: 1.5rem; }.sun { top: 10%; right: 5%; }.blessing-card { padding: .85rem 1rem 1rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }.cursor-glow { display: none; } }
