#page-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: grid;
    place-items: center;
    background: rgba(246, 250, 247, 0.94);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

#page-loading-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.page-loading-content {
    display: grid;
    justify-items: center;
    gap: 8px;
    color: #14532d;
    font: 700 14px/1.4 system-ui, sans-serif;
}

.page-loading-animation {
    position: relative;
    display: grid;
    width: 132px;
    height: 132px;
    place-items: center;
}

.page-loading-orbit {
    position: absolute;
    inset: 10px;
    border: 2px dashed rgba(22, 101, 57, .42);
    border-radius: 50%;
    animation: page-loading-spin 5s linear infinite;
}

.page-loading-orbit span {
    position: absolute;
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    background: #f6faf7;
    color: #b7791f;
    font-size: 18px;
    line-height: 1;
}

.page-loading-orbit span:nth-child(1) {
    top: -12px;
    left: calc(50% - 12px);
}

.page-loading-orbit span:nth-child(2) {
    right: -12px;
    bottom: 16px;
    color: #27834c;
}

.page-loading-orbit span:nth-child(3) {
    bottom: 4px;
    left: 8px;
}

.page-loading-glow {
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(205, 154, 52, .24), rgba(205, 154, 52, 0) 70%);
    animation: page-loading-glow 1.6s ease-in-out infinite;
}

.page-loading-crop {
    position: relative;
    z-index: 1;
    display: inline-block;
    font-size: 62px;
    line-height: 1;
    transform-origin: 50% 90%;
    animation: page-loading-dance 1.15s ease-in-out infinite;
}

.page-loading-message {
    min-height: 1.4em;
    animation: page-loading-message 1.4s ease-in-out infinite;
}

.page-loading-message::after {
    display: inline-block;
    width: 1.2em;
    text-align: left;
    content: '';
    animation: page-loading-dots 1.2s steps(4, end) infinite;
}

@keyframes page-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes page-loading-glow {
    0%, 100% {
        opacity: .45;
        transform: scale(.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.25);
    }
}

@keyframes page-loading-dance {
    0%, 100% {
        transform: translateY(0) rotate(-8deg) scale(1, 1);
    }

    16% {
        transform: translateY(-7px) rotate(0deg) scale(.96, 1.08);
    }

    34% {
        transform: translateY(-24px) rotate(10deg) scale(1.04, .98);
    }

    48% {
        transform: translateY(-25px) rotate(2deg) scale(1, 1);
    }

    66% {
        transform: translateY(-5px) rotate(-11deg) scale(1.06, .94);
    }

    82% {
        transform: translateY(0) rotate(-3deg) scale(.96, 1.04);
    }
}

@keyframes page-loading-dots {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75%, 100% {
        content: '...';
    }
}

@keyframes page-loading-message {
    0%, 100% {
        opacity: .65;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    #page-loading-overlay {
        transition: none;
    }

    .page-loading-orbit,
    .page-loading-glow,
    .page-loading-crop,
    .page-loading-message {
        animation: none;
    }

    .page-loading-message::after {
        animation: none;
        content: '...';
    }
}
