/* Phoenix's one reusable full-screen loading overlay — see wwwroot/js/phoenix-loader.js.
   The mark is the animated GM loader (wwwroot/images/gm-logo.gif, 32 frames), inside a glowing
   circular frame that also pulses via CSS animation. */

.phx-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--phx-z-global-loader);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 12, 16, 0.72);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

    .phx-loader-overlay.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: all; /* blocks clicks on everything underneath, including open blades */
        transition: opacity 0.25s ease, visibility 0s linear 0s;
    }

.phx-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0 24px;
    max-width: min(90vw, 360px);
    text-align: center;
}

.phx-loader-mark {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 0 0 6px rgba(63, 188, 232, 0.15), 0 0 34px rgba(63, 188, 232, 0.35);
    animation: phx-loader-pulse 1.6s ease-in-out infinite;
    overflow: hidden;
}

    .phx-loader-mark img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        min-width: 0;
        min-height: 0;
        object-fit: contain;
    }

@keyframes phx-loader-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(63, 188, 232, 0.15), 0 0 34px rgba(63, 188, 232, 0.35);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 10px rgba(63, 188, 232, 0.1), 0 0 44px rgba(63, 188, 232, 0.5);
    }
}

.phx-loader-message {
    color: #fff;
    font-size: 14.5px;
    font-weight: 500;
    min-height: 1.4em;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .phx-loader-message.phx-loader-message-in {
        opacity: 1;
        transform: translateY(0);
    }

@media (max-width: 480px) {
    .phx-loader-mark {
        width: 64px;
        height: 64px;
    }

    .phx-loader-message {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .phx-loader-mark {
        animation: none;
    }

    .phx-loader-message {
        transition: none;
    }
}
