:root {
    --pink: #ff4fa3;
    --hot-pink: #ff167c;
    --purple: #7c3cff;
    --violet: #4b1fa9;
    --blue: #25d7ff;
    --mint: #7cf7c6;
    --yellow: #ffd166;
    --orange: #ff8c42;
    --paper: #fff7e6;
    --ink: #2a123d;
    --shadow: 0 30px 90px rgba(40, 10, 70, .28);
    --soft-shadow: 0 18px 44px rgba(53, 20, 85, .18);
    --radius-xl: 36px;
    --radius-lg: 26px;
    --radius-md: 18px;
    --scroll-progress: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, .85), transparent 18rem),
        radial-gradient(circle at 92% 12%, rgba(255, 209, 102, .82), transparent 20rem),
        radial-gradient(circle at 20% 90%, rgba(124, 247, 198, .48), transparent 25rem),
        linear-gradient(135deg, #ffe1f0 0%, #f8d9ff 26%, #d9f4ff 54%, #fff4c2 78%, #ffd8b8 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto auto -18vmax -12vmax;
    width: 46vmax;
    height: 46vmax;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 79, 163, .42), transparent 68%);
    pointer-events: none;
    z-index: -4;
    filter: blur(8px);
}

body::after {
    inset: -14vmax -12vmax auto auto;
    background: radial-gradient(circle, rgba(37, 215, 255, .42), transparent 66%);
}

button,
a,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

code {
    padding: .15rem .35rem;
    border-radius: .45rem;
    background: rgba(255, 255, 255, .55);
    color: #7d1a69;
    font-size: .92em;
}

.party-sky {
    position: fixed;
    inset: 0;
    z-index: -5;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 9% 18%, rgba(255, 255, 255, .8) 0 2px, transparent 3px),
        radial-gradient(circle at 24% 34%, rgba(255, 255, 255, .55) 0 1px, transparent 2px),
        radial-gradient(circle at 76% 22%, rgba(255, 255, 255, .8) 0 2px, transparent 3px),
        radial-gradient(circle at 85% 68%, rgba(255, 255, 255, .55) 0 1px, transparent 2px);
    background-size: 220px 160px, 180px 220px, 260px 190px, 210px 180px;
    animation: glitterMove 26s linear infinite;
}

.spotlight {
    position: fixed;
    top: -22vh;
    width: 42vw;
    height: 130vh;
    transform-origin: top center;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0));
    filter: blur(10px);
    opacity: .55;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: -3;
}

.spotlight-one {
    left: 3vw;
    transform: rotate(calc(-24deg + var(--scroll-progress) * 18deg));
}

.spotlight-two {
    right: 2vw;
    transform: rotate(calc(26deg - var(--scroll-progress) * 18deg));
}

.balloon-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 3;
}

.balloon-field span {
    position: absolute;
    left: var(--x);
    bottom: -18vh;
    font-size: var(--size);
    opacity: .42;
    animation: balloonFloat 17s ease-in-out infinite;
    animation-delay: var(--delay);
    filter: drop-shadow(0 16px 16px rgba(74, 28, 92, .14));
}

.confetti-rain {
    position: fixed;
    inset: 0;
    display: none;
    overflow: hidden;
    pointer-events: none;
    z-index: 15;
}

.confetti-rain span {
    position: absolute;
    top: -7vh;
    font-size: var(--rain-size);
    animation: rainDown var(--fall-duration) linear var(--fall-delay) forwards;
    opacity: .72;
    filter: drop-shadow(0 8px 8px rgba(88, 24, 69, .12));
}

.gate-screen {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 3vw, 3rem);
    background:
        radial-gradient(circle at 10% 15%, rgba(255, 255, 255, .72), transparent 22rem),
        radial-gradient(circle at 84% 14%, rgba(255, 209, 102, .78), transparent 24rem),
        radial-gradient(circle at 44% 86%, rgba(124, 60, 255, .34), transparent 28rem),
        linear-gradient(135deg, rgba(255, 105, 180, .94), rgba(255, 221, 119, .94) 42%, rgba(79, 216, 255, .94));
    transition: opacity .65s ease, transform .65s ease, visibility .65s ease;
}

.gate-screen::before {
    content: "🎂  🎉  🎈  🎁  ✨  🥳  🎊";
    position: absolute;
    inset: 6vh auto auto 50%;
    transform: translateX(-50%);
    width: min(900px, 92vw);
    text-align: center;
    letter-spacing: clamp(.4rem, 2.2vw, 1.4rem);
    font-size: clamp(2.3rem, 6vw, 6rem);
    opacity: .26;
    filter: blur(.2px);
    animation: wiggleLine 4.4s ease-in-out infinite alternate;
}

.gate-screen.unlocked {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.04);
}

.gate-card {
    width: min(780px, 100%);
    position: relative;
    padding: clamp(2rem, 6vw, 4.8rem);
    border-radius: var(--radius-xl);
    color: #32133d;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .64)),
        repeating-linear-gradient(45deg, rgba(255, 79, 163, .12) 0 10px, rgba(255, 209, 102, .14) 10px 20px, rgba(37, 215, 255, .12) 20px 30px);
    border: 1px solid rgba(255, 255, 255, .72);
    box-shadow: var(--shadow);
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.gate-card::before,
.gate-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: conic-gradient(from 90deg, var(--pink), var(--yellow), var(--blue), var(--purple), var(--pink));
    opacity: .18;
    filter: blur(2px);
}

.gate-card::before {
    top: -64px;
    left: -58px;
}

.gate-card::after {
    right: -54px;
    bottom: -72px;
}

.eyebrow {
    margin: 0 0 .75rem;
    color: #9d1565;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.gate-card h1,
.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.8rem, 8vw, 6.8rem);
    line-height: .9;
    letter-spacing: -.06em;
}

.gate-card p {
    max-width: 58ch;
    margin: 1.2rem auto;
    font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.gate-form,
.quiz-answer-row,
.pin-panel {
    display: flex;
    gap: .8rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.gate-form {
    margin-top: 1.8rem;
}

input {
    width: min(330px, 100%);
    border: 2px solid rgba(255, 79, 163, .22);
    border-radius: 999px;
    padding: 1rem 1.25rem;
    color: #391048;
    background: rgba(255, 255, 255, .86);
    outline: none;
    box-shadow: inset 0 2px 8px rgba(51, 15, 74, .08);
}

input:focus {
    border-color: var(--hot-pink);
    box-shadow: 0 0 0 5px rgba(255, 79, 163, .16), inset 0 2px 8px rgba(51, 15, 74, .08);
}

button,
.primary-link,
.secondary-link,
#gift .pin-panel button {
    border: 0;
    border-radius: 999px;
    padding: 1rem 1.35rem;
    color: white;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--hot-pink), var(--purple));
    box-shadow: 0 14px 28px rgba(124, 60, 255, .26);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

button:hover:not(.birthday-box),
.primary-link:hover,
.secondary-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 38px rgba(124, 60, 255, .32);
    filter: saturate(1.08);
}

button:disabled {
    cursor: not-allowed;
    opacity: .62;
    transform: none;
}

.gate-hint,
.hint {
    color: rgba(54, 14, 78, .74);
    font-size: .98rem;
}

.page-shell {
    position: relative;
    z-index: 5;
    width: min(1240px, calc(100% - 2rem));
    margin: 0 auto;
    transition: opacity .45s ease, filter .45s ease;
}

.page-shell.locked {
    height: 100vh;
    overflow: hidden;
    opacity: 0;
    filter: blur(8px);
    pointer-events: none;
}

.hero-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(300px, .78fr);
    gap: clamp(1.3rem, 4vw, 4rem);
    align-items: center;
    padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero-copy {
    position: relative;
    padding: clamp(1.6rem, 4vw, 3.2rem);
    padding-top: clamp(4.4rem, 8vw, 6.8rem);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, .36);
    border: 1px solid rgba(255, 255, 255, .58);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(10px);
    container-type: inline-size;
    overflow: hidden;
}

.hero-copy > * {
    position: relative;
    z-index: 1;
}

.hero-copy::before {
    content: "HAPPY BIRTHDAY";
    position: absolute;
    inset: .85rem 1rem auto 1rem;
    color: rgba(255, 255, 255, .7);
    font-size: min(8.5rem, 9vw, calc((100cqw - 2rem) / 8.8));
    font-weight: 1000;
    letter-spacing: -.05em;
    line-height: 1.12;
    z-index: 0;
    text-shadow: 0 14px 24px rgba(115, 26, 121, .12);
    white-space: nowrap;
}

.hero-copy h1 {
    color: #32133d;
    text-shadow: 0 6px 0 rgba(255, 255, 255, .45);
}

.hero-copy h2 {
    margin: 1rem 0 0;
    color: #7d1a69;
    font-size: clamp(1.45rem, 3.3vw, 2.8rem);
    line-height: 1;
}

.personal-text {
    max-width: 62ch;
    color: rgba(42, 18, 61, .82);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 2rem;
}

.secondary-link {
    color: #36104b;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .75);
    box-shadow: 0 14px 28px rgba(75, 31, 169, .14);
}

.birthday-stage {
    position: relative;
    min-height: 560px;
    display: grid;
    place-items: center;
    border-radius: 48px;
    background:
        radial-gradient(circle at 50% 36%, rgba(255, 255, 255, .92), transparent 13rem),
        linear-gradient(145deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .08));
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .56);
    overflow: hidden;
}

.birthday-stage::before {
    content: "🎊 ✨ 🎉 🎈 🎁 ✨ 🎊";
    position: absolute;
    inset: 1.2rem auto auto 50%;
    transform: translateX(-50%);
    width: 120%;
    text-align: center;
    font-size: clamp(2rem, 5vw, 4.4rem);
    letter-spacing: .25rem;
    opacity: .3;
    animation: marqueeWobble 3.8s ease-in-out infinite alternate;
}

.sparkle-orbit {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background:
        conic-gradient(from 0deg, transparent 0 10%, rgba(255, 255, 255, .7) 12% 14%, transparent 16% 32%, rgba(255, 209, 102, .8) 36% 38%, transparent 41% 62%, rgba(255, 79, 163, .65) 66% 69%, transparent 72% 100%);
    animation: rotateOrbit 16s linear infinite;
    filter: blur(.3px);
}

.cake {
    position: relative;
    width: min(360px, 72vw);
    height: 300px;
    filter: drop-shadow(0 28px 34px rgba(62, 12, 76, .24));
    transform: translateY(18px);
}

.cake span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.cake-top,
.cake-middle,
.cake-bottom {
    display: grid;
    place-items: center;
    color: white;
    font-weight: 1000;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(77, 14, 85, .26);
}

.cake-top {
    top: 92px;
    width: 230px;
    height: 76px;
    border-radius: 28px 28px 16px 16px;
    background: linear-gradient(135deg, #ff4fa3, #ff8c42);
    box-shadow: inset 0 14px 0 rgba(255, 255, 255, .18);
}

.cake-middle {
    top: 154px;
    width: 292px;
    height: 86px;
    border-radius: 30px 30px 18px 18px;
    background: linear-gradient(135deg, #7c3cff, #25d7ff);
    box-shadow: inset 0 15px 0 rgba(255, 255, 255, .2);
}

.cake-bottom {
    top: 226px;
    width: 350px;
    height: 90px;
    border-radius: 32px 32px 22px 22px;
    background: linear-gradient(135deg, #ffc857, #ff4fa3);
    box-shadow: inset 0 17px 0 rgba(255, 255, 255, .22);
}

.candle {
    top: 38px;
    width: 18px;
    height: 70px;
    border-radius: 10px;
    background: repeating-linear-gradient(45deg, white 0 7px, #ff4fa3 7px 14px);
    z-index: 2;
}

.candle-one { margin-left: -66px; }
.candle-two { margin-left: 0; }
.candle-three { margin-left: 66px; }

.candle i {
    position: absolute;
    left: 50%;
    top: -28px;
    width: 22px;
    height: 34px;
    transform: translateX(-50%);
    border-radius: 60% 60% 45% 45%;
    background: radial-gradient(circle at 50% 70%, #fff 0 20%, #ffd166 21% 55%, #ff7a18 56% 100%);
    animation: flameFlicker .9s ease-in-out infinite alternate;
    box-shadow: 0 0 24px rgba(255, 193, 7, .9);
}

.mini-gifts {
    position: absolute;
    left: 50%;
    bottom: 2.2rem;
    transform: translateX(-50%);
    display: flex;
    gap: 1.4rem;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.mini-gifts span {
    animation: bounceGift 1.9s ease-in-out infinite;
}

.mini-gifts span:nth-child(2) { animation-delay: .22s; }
.mini-gifts span:nth-child(3) { animation-delay: .44s; }

.section-heading {
    width: min(850px, 100%);
    margin: 0 auto 2.2rem;
    text-align: center;
    padding: 0 1rem;
}

.section-heading h2 {
    margin: 0;
    color: #31133e;
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: .92;
    letter-spacing: -.055em;
    text-shadow: 0 4px 0 rgba(255, 255, 255, .5);
}

.section-heading p:not(.eyebrow) {
    margin: 1rem auto 0;
    max-width: 68ch;
    color: rgba(42, 18, 61, .78);
    font-size: 1.08rem;
    line-height: 1.65;
}

.celebration-section,
.memory-section,
.quiz-section,
.gift-section,
.letter-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.step-grid-centered {
    max-width: 920px;
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
    position: relative;
    min-height: 260px;
    padding: 1.35rem;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .36)),
        radial-gradient(circle at 90% 5%, rgba(255, 79, 163, .35), transparent 9rem);
    border: 1px solid rgba(255, 255, 255, .62);
    box-shadow: var(--soft-shadow);
    overflow: hidden;
}

.step-card::after {
    content: "✦";
    position: absolute;
    right: .8rem;
    bottom: .35rem;
    color: rgba(124, 60, 255, .14);
    font-size: 8rem;
    line-height: 1;
}

.step-number {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    border-radius: 50%;
    color: white;
    font-weight: 1000;
    background: linear-gradient(135deg, var(--hot-pink), var(--yellow));
    box-shadow: 0 12px 24px rgba(255, 79, 163, .24);
}

.step-card h3 {
    margin: .3rem 0 .75rem;
    font-size: 1.5rem;
    line-height: 1.05;
}

.step-card p:not(.eyebrow) {
    color: rgba(42, 18, 61, .74);
    line-height: 1.55;
}

.party-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(110px, auto);
    gap: clamp(.85rem, 2vw, 1.4rem);
    align-items: stretch;
}

.party-photo {
    position: relative;
    grid-column: span 4;
    min-height: 340px;
    margin: 0;
    border-radius: 34px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .42)),
        repeating-linear-gradient(-45deg, rgba(255, 79, 163, .14) 0 12px, rgba(255, 209, 102, .14) 12px 24px, rgba(37, 215, 255, .12) 24px 36px);
    border: 8px solid rgba(255, 255, 255, .76);
    box-shadow: 0 24px 54px rgba(81, 24, 92, .2);
    transform: translateY(48px) rotate(calc((var(--i) - 3) * .8deg)) scale(.94);
    opacity: 0;
    transition: transform .8s cubic-bezier(.18, .9, .24, 1), opacity .7s ease, box-shadow .6s ease;
}

.party-photo:nth-child(5n + 1) { grid-column: span 5; min-height: 420px; }
.party-photo:nth-child(5n + 2) { grid-column: span 3; min-height: 300px; }
.party-photo:nth-child(5n + 3) { grid-column: span 4; min-height: 380px; }
.party-photo:nth-child(5n + 4) { grid-column: span 6; min-height: 330px; }
.party-photo:nth-child(5n) { grid-column: span 6; min-height: 390px; }

.party-photo.in-view {
    opacity: 1;
    transform: translateY(0) rotate(calc((var(--i) - 3) * .35deg)) scale(1);
}

.party-photo::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .5), transparent 28%, rgba(255, 209, 102, .45), transparent 52%, rgba(255, 79, 163, .35), transparent 80%);
    opacity: 0;
    transform: rotate(0deg);
    transition: opacity .45s ease;
    pointer-events: none;
}

.party-photo.in-view::before {
    opacity: .52;
    animation: photoShimmer 3.8s linear infinite;
}

.party-photo img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: block;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.04) blur(7px);
    transform: scale(1.06);
    transition: filter .6s ease, transform .7s ease;
}

.party-photo img.loaded {
    filter: saturate(1.12) contrast(1.05) blur(0);
    transform: scale(1);
}

.empty-gallery {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .62);
    box-shadow: var(--soft-shadow);
    text-align: center;
}

.quiz-panel,
.gift-section,
.letter-card {
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .42)),
        radial-gradient(circle at 15% 16%, rgba(255, 79, 163, .22), transparent 13rem),
        radial-gradient(circle at 90% 8%, rgba(255, 209, 102, .28), transparent 15rem),
        radial-gradient(circle at 72% 92%, rgba(37, 215, 255, .2), transparent 15rem);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.quiz-panel {
    width: min(930px, 100%);
    margin: 0 auto;
    padding: clamp(1.4rem, 4vw, 2.4rem);
}

.quiz-progress {
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(80, 18, 98, .1);
    box-shadow: inset 0 2px 8px rgba(45, 13, 71, .12);
}

.quiz-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--hot-pink), var(--yellow), var(--blue));
    transition: width .5s ease;
}

.quiz-progress-text {
    margin: .85rem 0 1.2rem;
    color: rgba(42, 18, 61, .72);
    font-weight: 800;
    text-align: center;
}

.quiz-card {
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: 28px;
    background: rgba(255, 255, 255, .62);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}

.quiz-card h3 {
    margin: .2rem 0 .8rem;
    font-size: clamp(1.6rem, 4vw, 3rem);
    line-height: 1.04;
}

.quiz-success {
    min-height: 1.4em;
    color: #7d1a69;
    font-weight: 750;
}

.quiz-options {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 1rem 0 1.2rem;
}

.quiz-option {
    color: #341047;
    background: rgba(255, 255, 255, .78);
    border: 2px solid rgba(255, 79, 163, .16);
    box-shadow: 0 10px 22px rgba(49, 19, 62, .09);
}

.quiz-option.active {
    color: white;
    background: linear-gradient(135deg, var(--hot-pink), var(--purple));
}

.quiz-option.correct {
    color: #2e1642;
    background: linear-gradient(135deg, var(--mint), var(--yellow));
}

.quiz-next {
    margin-top: 1rem;
    background: linear-gradient(135deg, #2ed8a2, #25d7ff);
}

.quiz-result-pin {
    display: grid;
    justify-items: center;
    gap: .45rem;
    margin-top: .85rem;
    padding: 1rem 1.2rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 79, 163, .11), rgba(37, 215, 255, .13));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .52);
}

.quiz-result-pin-label {
    color: #9d1565;
    font-size: .9rem;
    font-weight: 950;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.quiz-result-pin strong {
    color: #331144;
    font-size: clamp(1.7rem, 5vw, 3rem);
    font-weight: 1000;
    letter-spacing: .1em;
}

.quiz-feedback.is-error {
    color: #b00045;
    font-weight: 900;
}

.quiz-feedback.is-success {
    color: #087a58;
    font-weight: 900;
}

.gift-section {
    position: relative;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    padding: clamp(2rem, 6vw, 4.4rem);
    overflow: hidden;
}

.gift-section::before {
    content: "🎁 🎊 🎈 ✨ 🎂 🥳 🎉";
    position: absolute;
    top: .8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 110%;
    text-align: center;
    opacity: .16;
    font-size: clamp(2.4rem, 7vw, 6rem);
    letter-spacing: .4rem;
    white-space: nowrap;
}

.gift-copy h2 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: .92;
    letter-spacing: -.05em;
}

.gift-copy p:not(.eyebrow) {
    color: rgba(42, 18, 61, .76);
    line-height: 1.65;
    font-size: 1.08rem;
}

.gift-stage {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 1.4rem;
}

.birthday-box {
    position: relative;
    width: min(360px, 74vw);
    height: 300px;
    padding: 0;
    border-radius: 44px;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    transform-style: preserve-3d;
    transition: opacity .35s ease, transform .35s ease;
}

.birthday-box:hover {
    box-shadow: none;
}

@media (hover: hover) {
    .gift-stage:hover .birthday-box:not(.opened) {
        opacity: 1;
        transform: none;
    }
}

.box-body {
    position: absolute;
    left: 50%;
    bottom: 0;
    display: grid;
    place-items: center;
    width: 260px;
    height: 200px;
    transform: translateX(-50%);
    border-radius: 26px 26px 42px 42px;
    font-size: 6rem;
    background: linear-gradient(135deg, #ff167c, #7c3cff);
    box-shadow: 0 26px 50px rgba(66, 16, 99, .24), inset 0 16px 0 rgba(255, 255, 255, .18);
}

.box-lid {
    position: absolute;
    left: 50%;
    top: 28px;
    z-index: 3;
    width: 304px;
    height: 78px;
    transform: translateX(-50%) rotate(0deg);
    transform-origin: 28px 64px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffd166, #ff8c42);
    box-shadow: 0 18px 34px rgba(88, 24, 69, .2), inset 0 12px 0 rgba(255, 255, 255, .26);
    transition: transform .7s cubic-bezier(.19, 1, .22, 1);
}

.box-label {
    position: absolute;
    right: 36px;
    top: 122px;
    z-index: 5;
    transform: rotate(8deg);
    padding: .55rem .85rem;
    border-radius: 14px;
    color: #3b1748;
    font-weight: 1000;
    background: var(--paper);
    box-shadow: 0 12px 22px rgba(50, 12, 72, .16);
}

.birthday-box.opened .box-lid {
    transform: translateX(-58%) translateY(-95px) rotate(-19deg);
}

.locked-gift .birthday-box {
    filter: grayscale(.22) opacity(.72);
}

.pin-panel {
    position: relative;
    z-index: 5;
    width: min(520px, 100%);
    padding: 1rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, .62);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
}

.pin-panel .hint {
    width: 100%;
    margin: .3rem 0 0;
    text-align: center;
}

.letter-section {
    position: relative;
    min-height: 78vh;
    display: grid;
    place-items: center;
}

.letter-section.hidden {
    display: none;
}

.letter-envelope {
    position: absolute;
    inset: 3rem auto auto 50%;
    width: min(640px, 86vw);
    height: 370px;
    transform: translateX(-50%) rotate(-3deg);
    border-radius: 36px;
    background: linear-gradient(135deg, #ff4fa3, #ffd166);
    opacity: .58;
    filter: drop-shadow(0 34px 40px rgba(72, 18, 92, .16));
}

.letter-envelope span {
    position: absolute;
    inset: 0;
    clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
    background: rgba(255, 255, 255, .18);
}

.letter-envelope span:nth-child(2) {
    clip-path: polygon(0 100%, 50% 44%, 100% 100%);
    background: rgba(255, 255, 255, .24);
}

.letter-envelope span:nth-child(3) {
    clip-path: polygon(0 0, 50% 54%, 100% 0);
    background: rgba(255, 255, 255, .18);
}

.letter-card {
    position: relative;
    z-index: 2;
    width: min(860px, 100%);
    margin-top: 8rem;
    padding: clamp(2rem, 6vw, 4.8rem);
    background:
        linear-gradient(135deg, rgba(255, 249, 232, .95), rgba(255, 255, 255, .88)),
        repeating-linear-gradient(0deg, transparent 0 30px, rgba(255, 79, 163, .06) 31px 32px);
    color: #361547;
    transform: rotate(.7deg);
}

.letter-card::before {
    content: "🎂";
    position: absolute;
    right: 1.2rem;
    top: 1rem;
    font-size: clamp(3rem, 8vw, 7rem);
    opacity: .18;
}

.letter-card h2 {
    margin: 0 0 1.2rem;
    font-size: clamp(2.4rem, 6vw, 5.5rem);
    line-height: .92;
    letter-spacing: -.055em;
}

.letter-greeting,
.letter-closing,
.letter-signature {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 850;
}

.letter-paragraphs p {
    margin: 1rem 0;
    color: rgba(42, 18, 61, .84);
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    line-height: 1.78;
}

.gift-reveal-line {
    margin-top: 1.8rem;
    color: #9d1565;
    font-weight: 950;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.gift-name {
    margin: .65rem 0 1.5rem;
    padding: clamp(1rem, 3vw, 1.6rem);
    border-radius: 24px;
    color: white;
    font-size: clamp(1.7rem, 4.4vw, 3.6rem);
    line-height: 1.02;
    font-weight: 1000;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--hot-pink), var(--purple), var(--blue));
    box-shadow: 0 20px 44px rgba(124, 60, 255, .24);
}

.letter-card .is-typing::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: .95em;
    margin-left: .12em;
    vertical-align: -.08em;
    background: currentColor;
    animation: blink-caret .9s steps(1, end) infinite;
}

.letter-signature {
    margin-bottom: 0;
    color: #7d1a69;
}

.reveal {
    opacity: 0;
    transform: translateY(36px) scale(.985);
    transition: opacity .75s ease var(--delay, 0ms), transform .75s cubic-bezier(.18, .9, .24, 1) var(--delay, 0ms);
}

.reveal.in-view,
.reveal-now {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes blink-caret {
    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}

.confetti-piece {
    position: fixed;
    z-index: 100;
    width: 10px;
    height: 16px;
    border-radius: 4px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: confettiBurst var(--duration) ease-out forwards;
    will-change: transform, opacity;
}

@keyframes confettiBurst {
    0% {
        transform: translate(-50%, -50%) scale(.35) rotate(0deg);
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(var(--scale, 1)) rotate(var(--rotation, 980deg));
        opacity: 0;
    }
}

@keyframes rainDown {
    0% {
        transform: translate3d(0, -7vh, 0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: .8; }
    100% {
        transform: translate3d(var(--drift), 112vh, 0) rotate(520deg);
        opacity: 0;
    }
}

@keyframes glitterMove {
    from { background-position: 0 0, 0 0, 0 0, 0 0; }
    to { background-position: 220px 160px, -180px 220px, 260px -190px, -210px -180px; }
}

@keyframes balloonFloat {
    0% { transform: translate3d(0, 0, 0) rotate(-6deg); opacity: 0; }
    12% { opacity: .46; }
    50% { transform: translate3d(34px, -58vh, 0) rotate(7deg); }
    100% { transform: translate3d(-18px, -118vh, 0) rotate(-8deg); opacity: 0; }
}

@keyframes wiggleLine {
    from { transform: translateX(-50%) rotate(-1.2deg); }
    to { transform: translateX(-50%) rotate(1.2deg); }
}

@keyframes marqueeWobble {
    from { transform: translateX(-50%) translateY(0) rotate(-1deg); }
    to { transform: translateX(-50%) translateY(8px) rotate(1deg); }
}

@keyframes rotateOrbit {
    to { transform: rotate(360deg); }
}

@keyframes flameFlicker {
    from { transform: translateX(-50%) scale(.92) rotate(-4deg); }
    to { transform: translateX(-50%) scale(1.08) rotate(5deg); }
}

@keyframes bounceGift {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-16px) rotate(5deg); }
}

@keyframes photoShimmer {
    to { transform: rotate(360deg); }
}

@media (max-width: 1020px) {
    .hero-section,
    .gift-section {
        grid-template-columns: 1fr;
    }

    .birthday-stage {
        min-height: 460px;
    }

    .step-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .step-grid-centered {
        max-width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .party-photo,
    .party-photo:nth-child(5n + 1),
    .party-photo:nth-child(5n + 2),
    .party-photo:nth-child(5n + 3),
    .party-photo:nth-child(5n + 4),
    .party-photo:nth-child(5n) {
        grid-column: span 6;
        min-height: 320px;
    }
}

@media (max-width: 680px) {
    .page-shell {
        width: min(100% - 1rem, 1240px);
    }

    .gate-card {
        padding: 1.4rem;
    }

    .gate-card h1,
    .hero-copy h1 {
        font-size: clamp(2.55rem, 14vw, 4.6rem);
    }

    .hero-section {
        padding-top: 5rem;
    }

    .hero-copy,
    .quiz-panel,
    .gift-section,
    .letter-card {
        border-radius: 28px;
    }

    .hero-copy::before {
        inset: .75rem .9rem auto .9rem;
        font-size: min(3.7rem, 12vw, calc((100cqw - 1.8rem) / 8.8));
    }

    .birthday-stage {
        min-height: 390px;
        border-radius: 32px;
    }

    .cake {
        transform: translateY(30px) scale(.78);
    }

    .step-grid,
    .party-gallery {
        display: block;
    }

    .step-card,
    .party-photo {
        margin-bottom: 1rem;
    }

    .party-photo,
    .party-photo:nth-child(n) {
        min-height: 330px;
    }

    .quiz-answer-row,
    .pin-panel,
    .gate-form {
        align-items: stretch;
        flex-direction: column;
    }

    input,
    .quiz-answer-row button,
    .pin-panel button,
    .gate-form button {
        width: 100%;
    }

    .birthday-box {
        transform: scale(.85);
        margin: -1rem 0;
    }

    .letter-card {
        margin-top: 5rem;
        transform: rotate(0deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}
