/* Full-screen loading overlay: the temple image with a rotating halo.
 *
 * Ported from the 2025 application's spinner.css. That file was loaded after
 * styles.css, which also defined .halo -- as a pulsing radial gradient. The
 * later rule won, so what the ward actually saw was the rotating border ring
 * below. That is the one kept; the gradient version is not carried over.
 *
 * --spinner-size and --halo-color are set per page from branding settings.
 */

:root {
    --spinner-size: 80px;
    --halo-color: gold;
}

.spinner-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.temple-image {
    width: var(--spinner-size);
    height: var(--spinner-size);
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.halo {
    position: absolute;
    width: calc(var(--spinner-size) * 1.2);
    height: calc(var(--spinner-size) * 1.2);
    border: 5px solid;
    border-radius: 50%;
    border-color: var(--halo-color) transparent transparent transparent;
    animation: spin 1.5s linear infinite;
    z-index: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Respect a reduced-motion preference: keep the halo, stop the rotation. */
@media (prefers-reduced-motion: reduce) {
    .halo {
        animation: none;
    }
}
