/* Decorative background only; registration cards retain their opaque surfaces. */
body.christmas-background {
    position: relative;
    isolation: isolate;
    background-color: #123c32;
    background-image: url("christmas-border.svg?v=2"),
        radial-gradient(ellipse at 50% 0%, #306454 0%, #17483b 48%, #0c3029 100%);
    background-position: center top;
    background-repeat: repeat-y, no-repeat;
    background-size: 1600px 1000px, 100% 100%;
}

/* Separate layers keep the ornaments still and never intercept form clicks. */
body.christmas-background::before,
body.christmas-background::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url("christmas-stars.svg") center top / 1600px 1000px repeat-y;
    opacity: .5;
    filter: drop-shadow(0 0 4px rgba(255, 225, 150, .8));
    animation: christmas-twinkle 4.5s ease-in-out infinite alternate,
        christmas-drift 18s ease-in-out infinite alternate;
}

body.christmas-background::after {
    background-position: center 420px;
    animation-duration: 6.5s, 24s;
    animation-delay: -4s, -16s;
}

@keyframes christmas-twinkle {
    from { opacity: .3; }
    to { opacity: 1; }
}

@keyframes christmas-drift {
    from { transform: translateY(0); }
    to { transform: translateY(-42px); }
}

@media (max-width: 640px) {
    body.christmas-background {
        background-size: 760px 600px, 100% 100%;
    }
    body.christmas-background::before,
    body.christmas-background::after {
        background-size: 760px 600px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.christmas-background::before,
    body.christmas-background::after {
        animation: none;
        opacity: .5;
    }
}

@media print {
    body.christmas-background {
        background: #fff;
    }
    body.christmas-background::before,
    body.christmas-background::after {
        display: none;
    }
}
