/* Birthday celebration — festive pastel scene (behind page content) */

body.is-birthday-celebration {
    background:
        radial-gradient(ellipse 55% 50% at 50% 35%, #fff9e8 0%, transparent 62%),
        radial-gradient(ellipse 45% 55% at 8% 20%, rgba(196, 181, 253, 0.55), transparent 58%),
        radial-gradient(ellipse 42% 50% at 92% 25%, rgba(147, 197, 253, 0.45), transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(251, 207, 232, 0.4), transparent 55%),
        linear-gradient(135deg, #ede9fe 0%, #fdf2f8 28%, #fffbeb 52%, #e0f2fe 78%, #fce7f3 100%);
}

/* Keep celebration behind header / content / footer — do not override sticky/fixed */
.bday-sky {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

body.is-birthday-celebration .site-header {
    z-index: 1000;
}

body.is-birthday-celebration .site-main,
body.is-birthday-celebration main,
body.is-birthday-celebration .page-content {
    position: relative;
    z-index: 1;
}

body.is-birthday-celebration .site-footer {
    position: relative;
    z-index: 2;
    isolation: isolate;
}

body.is-birthday-celebration .mobile-buy-bar {
    z-index: 50;
}

/* Soft pastel wash — edges only, bright open center */
.bday-wash {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 40% 55% at 0% 40%, rgba(167, 139, 250, 0.35), transparent 70%),
        radial-gradient(ellipse 38% 50% at 100% 35%, rgba(96, 165, 250, 0.3), transparent 70%),
        radial-gradient(ellipse 60% 35% at 50% -5%, rgba(251, 191, 36, 0.22), transparent 65%),
        radial-gradient(ellipse 50% 30% at 50% 105%, rgba(244, 114, 182, 0.18), transparent 70%);
    animation: bdayWashShift 14s ease-in-out infinite alternate;
}

@keyframes bdayWashShift {
    0% { opacity: 0.85; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.04); }
}

/* Twinkling star sparkles */
.bday-sparkle-layer {
    position: absolute;
    inset: 0;
}
.bday-sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    left: calc(6% + (var(--i) * 5.1%));
    top: calc(10% + (var(--i) * 4.2%));
    background: #fff;
    opacity: 0;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
    animation: bdayTwinkle calc(2.4s + var(--i) * 0.12s) ease-in-out infinite;
    animation-delay: calc(var(--i) * -0.28s);
}
.bday-sparkle:nth-child(3n) { width: 7px; height: 7px; left: calc(12% + (var(--i) * 4.4%)); }
.bday-sparkle:nth-child(4n) { width: 14px; height: 14px; top: calc(55% + (var(--i) * 1.8%)); }
.bday-sparkle:nth-child(5n) {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    clip-path: none;
    background: #fde68a;
}

@keyframes bdayTwinkle {
    0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
    40%, 55% { opacity: 0.95; transform: scale(1) rotate(20deg); }
}

/* Soft glossy balloons — left & right edges only */
.bday-balloon-cluster {
    position: absolute;
    bottom: 8%;
    width: 120px;
    height: 280px;
}
.bday-balloon-left { left: -8px; }
.bday-balloon-right { right: -8px; }
.bday-b {
    position: absolute;
    left: 50%;
    bottom: calc(20px + (var(--s) * 40px));
    width: calc(42px * var(--s));
    height: calc(52px * var(--s));
    margin-left: calc(-21px * var(--s));
    border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.75), transparent 28%),
        var(--c);
    box-shadow: inset -6px -8px 12px rgba(0, 0, 0, 0.12);
    animation: bdayBalloonFloat 5.5s ease-in-out infinite;
    animation-delay: var(--d);
}
.bday-b::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    width: 1px;
    height: 56px;
    background: linear-gradient(rgba(80, 60, 90, 0.35), transparent);
    transform: translateX(-50%);
}
.bday-balloon-left .bday-b:nth-child(1) { left: 38%; bottom: 120px; }
.bday-balloon-left .bday-b:nth-child(2) { left: 68%; bottom: 70px; }
.bday-balloon-left .bday-b:nth-child(3) { left: 22%; bottom: 40px; }
.bday-balloon-left .bday-b:nth-child(4) { left: 55%; bottom: 160px; }
.bday-balloon-right .bday-b:nth-child(1) { left: 62%; bottom: 130px; }
.bday-balloon-right .bday-b:nth-child(2) { left: 35%; bottom: 75px; }
.bday-balloon-right .bday-b:nth-child(3) { left: 78%; bottom: 45px; }
.bday-balloon-right .bday-b:nth-child(4) { left: 48%; bottom: 170px; }

@keyframes bdayBalloonFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-14px) rotate(4deg); }
}

/* Light falling confetti */
.bday-confetti-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.bday-confetti {
    position: absolute;
    top: -8%;
    left: calc(4% + (var(--i) * 3.3%));
    width: 7px;
    height: 10px;
    border-radius: 1px;
    background: hsl(calc(var(--i) * 41), 78%, 64%);
    opacity: 0;
    animation: confettiFallRight calc(9s + (var(--i) * 0.2s)) linear infinite;
    animation-delay: calc(var(--i) * -0.4s);
}
.bday-confetti:nth-child(odd) { animation-name: confettiFallLeft; }
.bday-confetti:nth-child(3n) {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}
.bday-confetti:nth-child(4n) {
    width: 9px;
    height: 3px;
}
.bday-confetti:nth-child(5n) {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 7px solid #fbbf24;
    background: transparent;
}

@keyframes confettiFallLeft {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
    6% { opacity: 0.7; }
    100% { transform: translateY(110vh) translateX(-40px) rotate(-520deg); opacity: 0; }
}
@keyframes confettiFallRight {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
    6% { opacity: 0.7; }
    100% { transform: translateY(110vh) translateX(44px) rotate(520deg); opacity: 0; }
}

@media (max-width: 768px) {
    .bday-balloon-cluster { opacity: 0.55; transform: scale(0.75); }
    .bday-balloon-left { left: -28px; }
    .bday-balloon-right { right: -28px; }
    .bday-sparkle:nth-child(n+12) { display: none; }
}

.bday-hero-slide {
    background:
        linear-gradient(135deg, rgba(190, 24, 93, 0.55), rgba(30, 58, 138, 0.45)),
        url('https://images.unsplash.com/photo-1530103862676-de8c9debad1d?w=1800&h=1100&fit=crop') center/cover !important;
}

.bday-gift-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: linear-gradient(90deg, #be185d, #db2777 40%, #ea580c);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 2;
}
.bday-gift-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
    animation: bdayShine 3.2s ease-in-out infinite;
}
@keyframes bdayShine {
    0%, 100% { transform: translateX(-40%); }
    50% { transform: translateX(40%); }
}
.bday-gift-strip span,
.bday-gift-strip strong { position: relative; z-index: 1; }
.bday-gift-strip strong {
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.95rem;
}

.bday-profile-banner {
    margin: 0 0 16px;
    padding: 20px 22px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(251, 191, 36, 0.35), transparent 45%),
        linear-gradient(135deg, #fff1f2, #fce7f3 50%, #eff6ff);
    border: 1px solid #fbcfe8;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
.bday-profile-banner .bday-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #be185d;
    color: #fff;
    font-size: 1.6rem;
    flex-shrink: 0;
    animation: bdayBounce 1.4s ease-in-out infinite;
}
@keyframes bdayBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.05); }
}
.bday-profile-banner h3 {
    margin: 0 0 6px;
    font-family: var(--font-display, Georgia, serif);
    color: #9d174d;
    font-size: 1.35rem;
}
.bday-profile-banner p {
    margin: 0;
    color: #6b3a4d;
    line-height: 1.5;
}
.bday-profile-banner .gift-chip {
    display: inline-block;
    margin-top: 8px;
    background: #be185d;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 999px;
}

/* Account icon — birthday party hat */
.account-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.icon-btn.is-bday-account .account-icon-wrap {
    animation: bdayAccountBob 1.6s ease-in-out infinite;
}
.bday-party-hat {
    position: absolute;
    top: -11px;
    left: 50%;
    width: 14px;
    height: 12px;
    margin-left: -5px;
    z-index: 2;
    pointer-events: none;
    transform-origin: 50% 100%;
    animation: bdayHatWiggle 1.6s ease-in-out infinite;
}
.bday-party-hat::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 12px solid #e11d48;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}
.bday-party-hat::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 0 1.5px #fff, 0 0 6px rgba(251, 191, 36, 0.7);
    animation: bdayPomPulse 1.2s ease-in-out infinite;
}
.icon-btn.is-bday-account { color: #be185d; }
.icon-btn.is-bday-account:hover { color: #9d174d; }

@keyframes bdayAccountBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1.5px); }
}
@keyframes bdayHatWiggle {
    0%, 100% { transform: rotate(-8deg); }
    50% { transform: rotate(10deg); }
}
@keyframes bdayPomPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 1.5px #fff, 0 0 6px rgba(251, 191, 36, 0.7); }
    50% { transform: scale(1.15); box-shadow: 0 0 0 1.5px #fff, 0 0 10px rgba(251, 191, 36, 0.95); }
}

@media (prefers-reduced-motion: reduce) {
    .bday-confetti,
    .bday-wash,
    .bday-sparkle,
    .bday-b,
    .bday-gift-strip::before,
    .bday-profile-banner .bday-icon,
    .icon-btn.is-bday-account .account-icon-wrap,
    .bday-party-hat,
    .bday-party-hat::after {
        animation: none !important;
    }
    .bday-confetti { display: none; }
}
