:root {
    --cream: #fff8ef;
    --cream-deep: #f8e9dc;
    --coral: #f06552;
    --coral-dark: #d94f3e;
    --orange: #f5a34b;
    --rose: #ef8b9c;
    --plum: #6d3345;
    --navy: #23314a;
    --yellow: #ffd66b;
    --mint: #8fc9b5;
    --white: #fffdf9;
    --ink: #352c32;
    --muted: #74666c;
    --line: rgba(53, 44, 50, 0.13);
    --serif: "Noto Serif SC", "Songti SC", STSong, serif;
    --sans: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    color: inherit;
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1,
h2,
h3 {
    margin-top: 0;
}

:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 4px;
}

::selection {
    color: var(--white);
    background: var(--coral);
}

/* Login */
.login-page {
    min-width: 320px;
    min-height: 100svh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 214, 107, 0.3), transparent 26rem),
        radial-gradient(circle at 84% 82%, rgba(239, 139, 156, 0.22), transparent 25rem),
        var(--cream);
}

.login-page::before {
    position: fixed;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: 0.38;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.1'/%3E%3C/svg%3E");
}

.login-shell {
    position: relative;
    display: grid;
    width: min(100%, 1480px);
    min-height: 100svh;
    margin-inline: auto;
    place-items: center;
    padding: 48px 24px;
}

.login-card {
    position: relative;
    z-index: 2;
    width: min(100%, 560px);
    padding: clamp(42px, 6vw, 74px) clamp(28px, 6vw, 72px) 40px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 30px;
    background: rgba(255, 253, 249, 0.76);
    box-shadow:
        0 34px 90px rgba(109, 51, 69, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    text-align: center;
    backdrop-filter: blur(22px);
}

.login-card::before,
.login-card::after {
    position: absolute;
    width: 20px;
    height: 20px;
    content: "";
    border-color: rgba(240, 101, 82, 0.4);
}

.login-card::before {
    top: 18px;
    left: 18px;
    border-top: 1px solid;
    border-left: 1px solid;
    border-radius: 8px 0 0;
}

.login-card::after {
    right: 18px;
    bottom: 18px;
    border-right: 1px solid;
    border-bottom: 1px solid;
    border-radius: 0 0 8px;
}

.login-card__date {
    position: absolute;
    top: 0;
    left: 50%;
    display: flex;
    width: 124px;
    height: 42px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 0 0 18px 18px;
    color: var(--white);
    background: var(--coral);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    transform: translateX(-50%);
}

.login-card__date i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--yellow);
}

.login-kicker {
    margin-bottom: 18px;
    color: var(--coral);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.26em;
}

.login-card h1 {
    margin-bottom: 22px;
    font-family: var(--serif);
    font-size: clamp(2.25rem, 5vw, 3.45rem);
    font-weight: 600;
    line-height: 1.32;
    letter-spacing: 0.06em;
}

.login-intro {
    max-width: 380px;
    margin: 0 auto 34px;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 0.94rem;
    line-height: 1.95;
}

.login-form {
    text-align: left;
}

.login-form > label {
    display: block;
    margin-bottom: 9px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.password-field {
    position: relative;
}

.password-field input {
    width: 100%;
    height: 58px;
    border: 1px solid rgba(53, 44, 50, 0.18);
    border-radius: 14px;
    padding: 0 58px 0 18px;
    background: rgba(255, 255, 255, 0.76);
    font-size: 1.05rem;
    letter-spacing: 0.2em;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.password-field input::placeholder {
    color: #ac9fa3;
    font-size: 0.86rem;
    letter-spacing: 0.05em;
}

.password-field input:hover {
    border-color: rgba(240, 101, 82, 0.48);
}

.password-field input:focus {
    border-color: var(--coral);
    outline: 0;
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(240, 101, 82, 0.11);
}

.password-field input[aria-invalid="true"] {
    border-color: var(--coral-dark);
    animation: field-shake 340ms ease;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: var(--muted);
    background: transparent;
    font-family: var(--serif);
    font-size: 0.77rem;
}

.password-toggle:hover {
    color: var(--coral-dark);
    background: rgba(240, 101, 82, 0.08);
}

.form-hint,
.form-error {
    margin: 8px 2px 0;
    font-size: 0.7rem;
}

.form-hint {
    color: #96888d;
}

.form-error {
    color: var(--coral-dark);
    font-weight: 600;
}

.login-submit {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 24px;
    border: 0;
    border-radius: 14px;
    color: var(--white);
    background: var(--coral);
    box-shadow: 0 12px 28px rgba(240, 101, 82, 0.25);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition:
        transform 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.login-submit span:last-child {
    font-size: 1.15rem;
    transition: transform 180ms ease;
}

.login-submit:hover {
    background: var(--coral-dark);
    box-shadow: 0 15px 34px rgba(217, 79, 62, 0.3);
    transform: translateY(-2px);
}

.login-submit:hover span:last-child {
    transform: translateX(4px);
}

.login-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 27px 0 0;
    color: #9a8b90;
    font-family: var(--serif);
    font-size: 0.66rem;
}

.login-footnote span {
    color: var(--orange);
    font-size: 0.5rem;
}

.login-decoration {
    position: absolute;
    z-index: 1;
    width: 260px;
    height: 340px;
    pointer-events: none;
}

.login-decoration span {
    position: absolute;
    display: block;
    box-shadow: 0 18px 45px rgba(109, 51, 69, 0.1);
}

.login-decoration--left {
    top: 11%;
    left: 3%;
}

.login-decoration--left span:nth-child(1) {
    top: 16px;
    left: 20px;
    width: 105px;
    height: 134px;
    border-radius: 58% 42% 55% 45%;
    background: var(--yellow);
    transform: rotate(-18deg);
    animation: float-soft 5.2s ease-in-out infinite;
}

.login-decoration--left span:nth-child(1)::after {
    position: absolute;
    top: 100%;
    left: 54%;
    width: 1px;
    height: 100px;
    content: "";
    background: rgba(53, 44, 50, 0.25);
    transform: rotate(8deg);
    transform-origin: top;
}

.login-decoration--left span:nth-child(2) {
    top: 115px;
    left: 117px;
    width: 77px;
    height: 101px;
    border-radius: 51% 49% 48% 52%;
    background: var(--rose);
    transform: rotate(10deg);
    animation: float-soft 4.4s 400ms ease-in-out infinite;
}

.login-decoration--left span:nth-child(3) {
    top: 254px;
    left: 57px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow:
        42px -12px 0 2px var(--mint),
        116px 8px 0 -2px var(--orange);
}

.login-decoration--right {
    right: 2%;
    bottom: 8%;
}

.login-decoration--right span:nth-child(1) {
    right: 21px;
    bottom: 14px;
    width: 138px;
    height: 138px;
    border-radius: 30px;
    background: var(--coral);
    transform: rotate(13deg);
}

.login-decoration--right span:nth-child(1)::before,
.login-decoration--right span:nth-child(1)::after {
    position: absolute;
    content: "";
    background: rgba(255, 255, 255, 0.72);
}

.login-decoration--right span:nth-child(1)::before {
    top: 0;
    bottom: 0;
    left: 58px;
    width: 20px;
}

.login-decoration--right span:nth-child(1)::after {
    top: 58px;
    right: 0;
    left: 0;
    height: 20px;
}

.login-decoration--right span:nth-child(2),
.login-decoration--right span:nth-child(3) {
    width: 64px;
    height: 31px;
    border: 10px solid var(--coral);
    border-radius: 100% 0 100% 0;
}

.login-decoration--right span:nth-child(2) {
    right: 134px;
    bottom: 144px;
    transform: rotate(24deg);
}

.login-decoration--right span:nth-child(3) {
    right: 63px;
    bottom: 154px;
    transform: scaleX(-1) rotate(24deg);
}

@keyframes field-shake {
    25% { transform: translateX(-5px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
}

@keyframes float-soft {
    0%,
    100% { transform: translateY(0) rotate(-18deg); }
    50% { transform: translateY(-14px) rotate(-14deg); }
}

@media (max-width: 980px) {
    .login-decoration {
        opacity: 0.52;
        transform: scale(0.78);
    }

    .login-decoration--left {
        left: -60px;
    }

    .login-decoration--right {
        right: -50px;
    }
}

@media (max-width: 640px) {
    .login-shell {
        align-items: center;
        padding: 22px 16px;
    }

    .login-card {
        border-radius: 24px;
        padding: 66px 24px 30px;
    }

    .login-card h1 {
        font-size: 2.25rem;
    }

    .login-intro {
        margin-bottom: 28px;
    }

    .login-decoration {
        opacity: 0.16;
    }

    .login-decoration--left {
        top: -40px;
    }

    .login-decoration--right {
        bottom: -70px;
    }

    .login-footnote {
        font-size: 0.61rem;
    }
}

/* Verification success transition */
.verified-page {
    min-width: 320px;
    min-height: 100svh;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 20%, rgba(255, 214, 107, 0.34), transparent 25rem),
        radial-gradient(circle at 86% 80%, rgba(143, 201, 181, 0.25), transparent 27rem),
        var(--cream);
}

.verified-page::before {
    position: fixed;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: 0.32;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.1'/%3E%3C/svg%3E");
}

.verified-shell {
    position: relative;
    display: grid;
    min-height: 100svh;
    place-items: center;
    padding: 30px 20px;
}

.verified-shell::before,
.verified-shell::after {
    position: absolute;
    border: 1px solid rgba(240, 101, 82, 0.15);
    border-radius: 50%;
    pointer-events: none;
    content: "";
}

.verified-shell::before {
    top: -140px;
    left: -90px;
    width: 360px;
    height: 360px;
    box-shadow: 0 0 0 55px rgba(240, 101, 82, 0.025);
}

.verified-shell::after {
    right: -120px;
    bottom: -170px;
    width: 410px;
    height: 410px;
    box-shadow: 0 0 0 70px rgba(143, 201, 181, 0.035);
}

.verified-card {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    padding: clamp(50px, 7vw, 78px) clamp(28px, 7vw, 74px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 30px;
    background: rgba(255, 253, 249, 0.79);
    box-shadow:
        0 32px 90px rgba(109, 51, 69, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    text-align: center;
    backdrop-filter: blur(20px);
    animation: verified-arrive 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.verified-card::before {
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(240, 101, 82, 0.1);
    border-radius: 20px;
    pointer-events: none;
    content: "";
}

.verified-mark {
    position: relative;
    display: grid;
    width: 106px;
    height: 106px;
    margin: 0 auto 29px;
    place-items: center;
    border: 1px solid rgba(240, 101, 82, 0.24);
    border-radius: 50%;
    color: var(--white);
}

.verified-mark::before,
.verified-mark::after {
    position: absolute;
    inset: -11px;
    border: 1px solid rgba(240, 101, 82, 0.12);
    border-radius: 50%;
    content: "";
    animation: verified-ring 1.5s ease-out infinite;
}

.verified-mark::after {
    inset: -23px;
    animation-delay: 400ms;
}

.verified-mark span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 12px 28px rgba(240, 101, 82, 0.27);
    font-size: 1.85rem;
}

.verified-mark i {
    position: absolute;
    top: 4px;
    right: 2px;
    width: 11px;
    height: 11px;
    border: 2px solid var(--cream);
    border-radius: 50%;
    background: var(--yellow);
}

.verified-kicker {
    margin-bottom: 17px;
    color: var(--coral);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.26em;
}

.verified-card h1 {
    margin-bottom: 16px;
    font-family: var(--serif);
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.verified-card > p:not(.verified-kicker) {
    margin-bottom: 24px;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 0.92rem;
}

.verified-progress {
    display: flex;
    height: 20px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 25px;
}

.verified-progress span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral);
    animation: verified-dot 900ms ease-in-out infinite alternate;
}

.verified-progress span:nth-child(2) {
    animation-delay: 160ms;
}

.verified-progress span:nth-child(3) {
    animation-delay: 320ms;
}

.verified-card > a {
    position: relative;
    z-index: 2;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--coral);
    color: var(--coral-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.verified-card > a span {
    transition: transform 180ms ease;
}

.verified-card > a:hover span {
    transform: translateX(4px);
}

@keyframes verified-arrive {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
}

@keyframes verified-ring {
    from {
        opacity: 0.8;
        transform: scale(0.84);
    }
    to {
        opacity: 0;
        transform: scale(1.15);
    }
}

@keyframes verified-dot {
    from {
        opacity: 0.3;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: translateY(-3px);
    }
}

@media (max-width: 540px) {
    .verified-card {
        border-radius: 24px;
        padding: 58px 24px 48px;
    }

    .verified-card h1 {
        font-size: 2.8rem;
    }
}

/* Birthday celebration */
.birthday-page {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--cream);
}

.confetti-canvas {
    position: fixed;
    z-index: 100;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.birthday-header {
    position: absolute;
    z-index: 20;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    width: min(100% - 72px, 1380px);
    min-height: 94px;
    align-items: center;
    justify-content: space-between;
    margin-inline: auto;
}

.birthday-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.birthday-brand i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--yellow);
}

.birthday-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.birthday-header__actions form {
    margin: 0;
}

.birthday-header__actions a,
.birthday-header__actions button {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 999px;
    padding: 7px 16px;
    color: rgba(255, 255, 255, 0.82);
    background: transparent;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    transition:
        color 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

.birthday-header__actions a:hover,
.birthday-header__actions button:hover {
    border-color: var(--white);
    color: var(--coral);
    background: var(--white);
}

.birthday-hero {
    position: relative;
    display: grid;
    min-height: max(760px, 100svh);
    overflow: hidden;
    grid-template-columns: minmax(0, 0.94fr) minmax(430px, 1.06fr);
    align-items: center;
    gap: clamp(20px, 5vw, 90px);
    padding: 120px max(6vw, calc((100vw - 1380px) / 2)) 100px;
    color: var(--white);
    background:
        radial-gradient(circle at 79% 24%, rgba(255, 214, 107, 0.18), transparent 15rem),
        radial-gradient(circle at 8% 90%, rgba(109, 51, 69, 0.22), transparent 26rem),
        var(--coral);
}

.birthday-hero::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: 0.2;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E");
}

.birthday-hero::after {
    position: absolute;
    right: -8vw;
    bottom: -19vw;
    width: 48vw;
    height: 48vw;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
}

.birthday-hero__copy {
    position: relative;
    z-index: 3;
    max-width: 670px;
}

.birthday-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    color: var(--yellow);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.28em;
}

.birthday-eyebrow::before {
    width: 36px;
    height: 1px;
    content: "";
    background: currentColor;
}

.birthday-hero h1 {
    margin-bottom: 24px;
    font-family: var(--serif);
    font-weight: 500;
    line-height: 0.87;
}

.birthday-hero h1 span,
.birthday-hero h1 strong {
    display: block;
}

.birthday-hero h1 span {
    margin-bottom: 17px;
    font-size: clamp(3.2rem, 6.6vw, 6.5rem);
    letter-spacing: 0.31em;
}

.birthday-hero h1 strong {
    color: var(--yellow);
    font-size: clamp(5.8rem, 11.5vw, 11.3rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-shadow: 0 16px 34px rgba(109, 51, 69, 0.2);
}

.birthday-lead {
    margin-bottom: 33px;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--serif);
    font-size: clamp(0.95rem, 1.3vw, 1.12rem);
    line-height: 2;
    letter-spacing: 0.06em;
}

.celebrate-button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 0;
    border-radius: 999px;
    padding: 11px 25px;
    color: var(--coral-dark);
    background: var(--white);
    box-shadow: 0 16px 35px rgba(109, 51, 69, 0.19);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.celebrate-button i {
    color: var(--orange);
    font-style: normal;
}

.celebrate-button:hover {
    box-shadow: 0 19px 42px rgba(109, 51, 69, 0.27);
    transform: translateY(-3px) rotate(-1deg);
}

.celebrate-message {
    min-height: 21px;
    margin: 13px 0 0 12px;
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--serif);
    font-size: 0.72rem;
}

.cake-scene {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 570px;
    place-items: center;
}

.cake-scene::before {
    position: absolute;
    width: min(40vw, 590px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    content: "";
    box-shadow:
        0 0 0 42px rgba(255, 255, 255, 0.025),
        0 0 0 96px rgba(255, 255, 255, 0.02);
}

.cake {
    position: relative;
    width: min(37vw, 500px);
    height: 435px;
    filter: drop-shadow(0 36px 25px rgba(109, 51, 69, 0.24));
    animation: cake-arrive 900ms 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.cake-candle {
    position: absolute;
    z-index: 6;
    top: 4px;
    left: 50%;
    width: 25px;
    height: 94px;
    border-radius: 5px 5px 2px 2px;
    background:
        repeating-linear-gradient(
            -38deg,
            var(--white) 0 10px,
            var(--rose) 11px 21px
        );
    box-shadow: inset -4px 0 rgba(109, 51, 69, 0.09);
    transform: translateX(-50%);
}

.cake-flame {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    width: 25px;
    height: 39px;
    border-radius: 75% 22% 68% 38%;
    background: var(--yellow);
    box-shadow:
        0 0 18px rgba(255, 214, 107, 0.86),
        0 0 42px rgba(255, 214, 107, 0.44);
    transform: translateX(-50%) rotate(7deg);
    transform-origin: 50% 100%;
    animation: flame-dance 950ms ease-in-out infinite alternate;
}

.cake-flame::after {
    position: absolute;
    right: 7px;
    bottom: 4px;
    width: 8px;
    height: 17px;
    border-radius: 50%;
    content: "";
    background: var(--orange);
}

.cake-top {
    position: absolute;
    z-index: 5;
    top: 83px;
    left: 50%;
    width: 62%;
    height: 64px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 16%, #fff 0 3px, transparent 4px),
        var(--white);
    box-shadow: inset 0 -13px rgba(245, 163, 75, 0.12);
    transform: translateX(-50%);
}

.cake-cherry {
    position: absolute;
    top: 14px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--coral-dark);
    box-shadow:
        inset 4px 4px rgba(255, 255, 255, 0.2),
        0 5px 8px rgba(109, 51, 69, 0.18);
}

.cake-cherry::before {
    position: absolute;
    bottom: 82%;
    left: 50%;
    width: 11px;
    height: 14px;
    border-top: 2px solid var(--mint);
    border-radius: 50%;
    content: "";
    transform: rotate(-24deg);
}

.cake-cherry--one {
    left: 16%;
}

.cake-cherry--two {
    top: 26px;
    left: 47%;
}

.cake-cherry--three {
    right: 14%;
}

.cake-layer {
    position: absolute;
    left: 50%;
    overflow: hidden;
    transform: translateX(-50%);
}

.cake-layer--top {
    z-index: 4;
    top: 111px;
    width: 62%;
    height: 111px;
    border-radius: 5px 5px 28px 28px;
    background: var(--white);
}

.cake-layer--top::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 15px;
    content: "";
    background: var(--orange);
}

.cake-layer--top span {
    position: absolute;
    top: -4px;
    width: 38px;
    height: 49px;
    border-radius: 0 0 20px 20px;
    background: var(--orange);
}

.cake-layer--top span:nth-child(1) {
    left: 8%;
    height: 38px;
}

.cake-layer--top span:nth-child(2) {
    left: 42%;
    height: 56px;
}

.cake-layer--top span:nth-child(3) {
    right: 9%;
    height: 33px;
}

.cake-layer--bottom {
    top: 209px;
    display: grid;
    width: 88%;
    height: 154px;
    place-items: center;
    border-radius: 8px 8px 42px 42px;
    background:
        linear-gradient(
            90deg,
            transparent 0 15%,
            rgba(255, 255, 255, 0.1) 15% 18%,
            transparent 18% 82%,
            rgba(255, 255, 255, 0.1) 82% 85%,
            transparent 85%
        ),
        var(--navy);
    box-shadow: inset 0 -14px rgba(0, 0, 0, 0.08);
}

.cake-layer--bottom::before {
    position: absolute;
    top: -20px;
    right: 0;
    left: 0;
    height: 48px;
    border-radius: 50%;
    content: "";
    background: var(--navy);
}

.cake-layer--bottom b {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    color: var(--yellow);
    font-size: clamp(0.58rem, 1vw, 0.78rem);
    letter-spacing: 0.25em;
}

.cake-plate {
    position: absolute;
    bottom: 47px;
    left: 50%;
    width: 100%;
    height: 52px;
    border-radius: 50%;
    background: #f3d9d2;
    box-shadow:
        inset 0 -12px rgba(109, 51, 69, 0.07),
        0 16px 18px rgba(109, 51, 69, 0.12);
    transform: translateX(-50%);
}

.cake-spark {
    position: absolute;
    z-index: 4;
    color: var(--yellow);
    font-size: 1.5rem;
    animation: sparkle 1.7s ease-in-out infinite;
}

.cake-spark--one {
    top: 18%;
    left: 13%;
}

.cake-spark--two {
    top: 30%;
    right: 8%;
    color: var(--white);
    font-size: 0.9rem;
    animation-delay: 500ms;
}

.birthday-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.birthday-orbit--one {
    top: 13%;
    right: 9%;
    width: 160px;
    height: 160px;
}

.birthday-orbit--two {
    bottom: 11%;
    left: -72px;
    width: 190px;
    height: 190px;
}

.floating-star {
    position: absolute;
    z-index: 1;
    color: var(--yellow);
    animation: sparkle 2.2s ease-in-out infinite;
}

.floating-star--one {
    top: 17%;
    left: 48%;
    font-size: 1.5rem;
}

.floating-star--two {
    right: 3.5%;
    bottom: 19%;
    color: var(--white);
    font-size: 2rem;
    animation-delay: 700ms;
}

.floating-star--three {
    bottom: 13%;
    left: 4%;
    font-size: 0.8rem;
    animation-delay: 300ms;
}

.birthday-scroll {
    position: absolute;
    z-index: 4;
    bottom: 30px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 13px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    transform: translateX(-50%);
}

.birthday-scroll i {
    font-style: normal;
    animation: scroll-nudge 1.4s ease-in-out infinite;
}

@keyframes cake-arrive {
    from {
        opacity: 0;
        transform: translateY(45px) scale(0.94);
    }
}

@keyframes flame-dance {
    from { transform: translateX(-50%) rotate(-5deg) scaleY(0.95); }
    to { transform: translateX(-50%) rotate(9deg) scaleY(1.05); }
}

@keyframes sparkle {
    0%,
    100% {
        opacity: 0.35;
        transform: scale(0.72) rotate(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.15) rotate(18deg);
    }
}

@keyframes scroll-nudge {
    0%,
    100% { transform: translateY(-2px); }
    50% { transform: translateY(5px); }
}

/* Birthday wishes */
.wish-section {
    width: min(100% - 72px, 1240px);
    margin-inline: auto;
    padding-block: clamp(100px, 12vw, 170px);
}

.wish-section__heading {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    align-items: end;
    gap: 50px;
    margin-bottom: 62px;
    border-top: 1px solid var(--line);
    padding-top: 27px;
}

.wish-section__heading > p {
    align-self: start;
    margin: 0;
    color: var(--coral);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.25em;
}

.wish-section__heading h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.8rem, 5.2vw, 5.3rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.04em;
}

.wish-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.wish-card {
    position: relative;
    min-height: 395px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 32px;
    background: rgba(255, 253, 249, 0.62);
    transition:
        color 250ms ease,
        background 250ms ease,
        border-color 250ms ease,
        transform 250ms ease,
        box-shadow 250ms ease;
}

.wish-card::after {
    position: absolute;
    right: -63px;
    bottom: -65px;
    width: 160px;
    height: 160px;
    border: 1px solid var(--line);
    border-radius: 50%;
    content: "";
    transition: transform 450ms ease;
}

.wish-card:hover {
    border-color: transparent;
    color: var(--white);
    background: var(--navy);
    box-shadow: 0 28px 60px rgba(35, 49, 74, 0.16);
    transform: translateY(-9px);
}

.wish-card:hover::after {
    border-color: rgba(255, 255, 255, 0.17);
    transform: scale(1.18);
}

.wish-card--accent {
    color: var(--white);
    background: var(--coral);
}

.wish-card--accent::after {
    border-color: rgba(255, 255, 255, 0.2);
}

.wish-card--accent:hover {
    background: var(--coral-dark);
}

.wish-card__number {
    color: var(--coral);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.wish-card--accent .wish-card__number,
.wish-card:hover .wish-card__number {
    color: var(--yellow);
}

.wish-card > i {
    position: absolute;
    top: 35px;
    right: 34px;
    color: var(--orange);
    font-size: 1.7rem;
    font-style: normal;
}

.wish-card--accent > i {
    color: var(--yellow);
}

.wish-card h3 {
    margin: 135px 0 18px;
    font-family: var(--serif);
    font-size: clamp(1.8rem, 2.5vw, 2.55rem);
    font-weight: 500;
    letter-spacing: 0.1em;
}

.wish-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 0.9rem;
    line-height: 2;
}

.wish-card--accent p,
.wish-card:hover p {
    color: rgba(255, 255, 255, 0.72);
}

.birthday-letter {
    position: relative;
    display: grid;
    overflow: hidden;
    grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1.42fr);
    gap: clamp(50px, 9vw, 150px);
    padding: clamp(95px, 12vw, 170px) max(6vw, calc((100vw - 1240px) / 2));
    background:
        radial-gradient(circle at 14% 17%, rgba(245, 163, 75, 0.12), transparent 21rem),
        var(--cream-deep);
}

.birthday-letter::before {
    position: absolute;
    top: 35px;
    right: 35px;
    bottom: 35px;
    left: 35px;
    border: 1px solid rgba(109, 51, 69, 0.1);
    border-radius: 3px;
    pointer-events: none;
    content: "";
}

.birthday-letter::after {
    position: absolute;
    top: -220px;
    right: -260px;
    width: 560px;
    height: 560px;
    border: 1px solid rgba(109, 51, 69, 0.08);
    border-radius: 50%;
    content: "";
    box-shadow:
        0 0 0 60px rgba(109, 51, 69, 0.022),
        0 0 0 120px rgba(109, 51, 69, 0.016);
}

.birthday-letter__stamp {
    position: relative;
    z-index: 1;
    display: flex;
    width: 180px;
    height: 220px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    justify-self: center;
    border: 2px solid var(--coral);
    color: var(--coral);
    background:
        radial-gradient(circle at 0 0, var(--cream-deep) 0 7px, transparent 8px) 0 0 / 18px 18px,
        var(--white);
    box-shadow:
        inset 0 0 0 9px var(--white),
        inset 0 0 0 10px rgba(240, 101, 82, 0.33),
        13px 16px 0 rgba(240, 101, 82, 0.08);
    font-family: var(--serif);
    transform: rotate(-5deg);
}

.birthday-letter__stamp::before {
    position: absolute;
    inset: 19px;
    border: 1px solid rgba(240, 101, 82, 0.3);
    content: "";
}

.birthday-letter__stamp span {
    font-size: 4.7rem;
    line-height: 0.95;
}

.birthday-letter__stamp small {
    margin-top: 11px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.34em;
}

.birthday-letter__copy {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.birthday-letter__copy > p:first-child {
    margin-bottom: 26px;
    color: var(--coral);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.26em;
}

.birthday-letter__copy h2 {
    margin-bottom: 34px;
    font-family: var(--serif);
    font-size: clamp(2.55rem, 4.9vw, 5rem);
    font-weight: 500;
    line-height: 1.38;
    letter-spacing: 0.03em;
}

.birthday-letter__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    border-top: 1px solid rgba(53, 44, 50, 0.15);
    padding-top: 29px;
}

.birthday-letter__body p {
    margin: 0;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 0.92rem;
    line-height: 2.05;
}

.birthday-signature {
    margin: 35px 0 0;
    color: var(--coral);
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: 1.1rem;
    transform: rotate(-2deg);
}

.birthday-finale {
    position: relative;
    display: flex;
    min-height: 600px;
    overflow: hidden;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 90px 24px;
    color: var(--white);
    background: var(--navy);
    text-align: center;
}

.birthday-finale::before,
.birthday-finale::after {
    position: absolute;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.birthday-finale::before {
    top: -250px;
    left: -140px;
    box-shadow: 0 0 0 65px rgba(255, 255, 255, 0.015);
}

.birthday-finale::after {
    right: -190px;
    bottom: -260px;
    box-shadow: 0 0 0 65px rgba(255, 255, 255, 0.015);
}

.birthday-finale > span {
    color: var(--yellow);
    font-size: 1.4rem;
    animation: sparkle 1.8s ease-in-out infinite;
}

.birthday-finale > p {
    margin: 19px 0 16px;
    color: var(--rose);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.32em;
}

.birthday-finale h2 {
    margin-bottom: 28px;
    color: var(--yellow);
    font-family: var(--serif);
    font-size: clamp(4.3rem, 10vw, 9.5rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.1em;
}

.birthday-finale button {
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    padding: 10px 24px;
    color: var(--white);
    background: transparent;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    transition:
        color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.birthday-finale button:hover {
    color: var(--navy);
    background: var(--white);
    transform: translateY(-3px);
}

.birthday-finale small {
    margin-top: 36px;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--serif);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
}

@media (max-width: 1020px) {
    .birthday-header {
        width: calc(100% - 48px);
    }

    .birthday-hero {
        min-height: 1120px;
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 145px 32px 92px;
        text-align: center;
    }

    .birthday-hero__copy {
        justify-self: center;
    }

    .birthday-eyebrow {
        justify-content: center;
    }

    .birthday-hero h1 span {
        font-size: clamp(3rem, 10vw, 5.8rem);
    }

    .birthday-hero h1 strong {
        font-size: clamp(6.5rem, 19vw, 10rem);
    }

    .celebrate-message {
        margin-left: 0;
    }

    .cake-scene {
        min-height: 505px;
    }

    .cake-scene::before {
        width: min(69vw, 570px);
    }

    .cake {
        width: min(62vw, 500px);
    }

    .floating-star--one {
        top: 45%;
        left: 10%;
    }

    .birthday-scroll {
        bottom: 24px;
    }

    .wish-section__heading {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .wish-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wish-card:last-child {
        grid-column: 1 / -1;
        min-height: 330px;
    }

    .wish-card:last-child h3 {
        margin-top: 80px;
    }

    .birthday-letter {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 65px;
        padding-inline: 60px;
    }

    .birthday-letter__body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .birthday-header {
        width: calc(100% - 32px);
        min-height: 76px;
    }

    .birthday-header__actions {
        gap: 7px;
    }

    .birthday-header__actions a {
        display: none;
    }

    .birthday-header__actions button {
        min-height: 36px;
        padding-inline: 13px;
        font-size: 0.62rem;
    }

    .birthday-hero {
        min-height: 1010px;
        padding: 115px 18px 75px;
    }

    .birthday-eyebrow {
        margin-bottom: 19px;
        font-size: 0.58rem;
        letter-spacing: 0.2em;
    }

    .birthday-eyebrow::before {
        width: 22px;
    }

    .birthday-hero h1 span {
        margin-bottom: 13px;
        font-size: clamp(2.75rem, 14vw, 4.2rem);
        letter-spacing: 0.22em;
    }

    .birthday-hero h1 strong {
        font-size: clamp(5.2rem, 26vw, 7.8rem);
    }

    .birthday-lead {
        margin-bottom: 26px;
        font-size: 0.86rem;
    }

    .cake-scene {
        min-height: 440px;
    }

    .cake {
        width: min(87vw, 400px);
        height: 420px;
        transform: scale(0.9);
    }

    .cake-scene::before {
        width: min(84vw, 410px);
    }

    .cake-spark--one {
        left: 4%;
    }

    .birthday-scroll span {
        display: none;
    }

    .wish-section {
        width: calc(100% - 32px);
        padding-block: 88px;
    }

    .wish-section__heading {
        margin-bottom: 38px;
        padding-top: 20px;
    }

    .wish-section__heading h2 {
        font-size: clamp(2.4rem, 11vw, 3.4rem);
    }

    .wish-grid {
        grid-template-columns: 1fr;
    }

    .wish-card,
    .wish-card:last-child {
        min-height: 310px;
        grid-column: auto;
        padding: 27px;
    }

    .wish-card h3,
    .wish-card:last-child h3 {
        margin-top: 78px;
    }

    .birthday-letter {
        grid-template-columns: 1fr;
        gap: 65px;
        padding: 90px 28px;
    }

    .birthday-letter::before {
        inset: 18px;
    }

    .birthday-letter__stamp {
        width: 142px;
        height: 174px;
    }

    .birthday-letter__stamp span {
        font-size: 3.7rem;
    }

    .birthday-letter__copy > p:first-child {
        font-size: 0.6rem;
    }

    .birthday-letter__copy h2 {
        font-size: clamp(2.35rem, 10vw, 3.45rem);
    }

    .birthday-letter__body {
        gap: 20px;
    }

    .birthday-finale {
        min-height: 540px;
    }

    .birthday-finale h2 {
        font-size: clamp(4rem, 21vw, 6.5rem);
    }

    .birthday-finale small {
        font-size: 0.62rem;
    }
}

@media (max-width: 380px) {
    .birthday-hero h1 span {
        font-size: 2.5rem;
    }

    .birthday-hero h1 strong {
        font-size: 4.8rem;
    }

    .celebrate-button {
        padding-inline: 18px;
    }

    .birthday-letter {
        padding-inline: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
