/* Celebration overlay — falling PNG sprites on heroes, nav logos, footer body.
   Driven by admin/ceremony.php; do not hardcode seasonal art here. */

.ceremony-fx-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 8;
}

.hero-section,
.ceremony-hero-host {
    position: relative;
}

.hero-section > .ceremony-fx-layer,
.hero-section > .ceremony-fx-layer--hero,
.ceremony-hero-host > .ceremony-fx-layer,
.ceremony-hero-host > .ceremony-fx-layer--hero {
    z-index: 15;
}

.ceremony-fx-layer--hero .ceremony-fx-petal {
    --ceremony-peak: 0.65;
}

.ceremony-logo-host {
    position: relative;
}

.ceremony-logo-host .ceremony-fx-layer {
    inset: -16px -22px -10px;
    z-index: 2;
}

.ceremony-logo-host > img {
    position: relative;
    z-index: 1;
}

/* Main footer body only — copyright stays outside this host in footer.php */
.ceremony-footer-host {
    position: relative;
    overflow: hidden;
}

.ceremony-footer-host > .ceremony-fx-layer,
.ceremony-footer-host > .ceremony-fx-layer--footer {
    z-index: 6;
}

.ceremony-fx-layer--footer .ceremony-fx-petal {
    --ceremony-peak: 0.72;
}

.ceremony-fx-petal {
    position: absolute;
    top: -40px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    will-change: transform, opacity;
    animation-name: ceremony-fx-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    opacity: 0;
}

@keyframes ceremony-fx-fall {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0;
    }
    6% {
        opacity: var(--ceremony-peak, 0.78);
    }
    88% {
        opacity: var(--ceremony-peak, 0.78);
    }
    100% {
        transform: translate3d(var(--ceremony-drift, 28px), var(--ceremony-fall, 560px), 0) rotate(var(--ceremony-spin, 320deg));
        opacity: 0.2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ceremony-fx-layer {
        display: none !important;
    }
}
