:root {
    --public-loader-exit: 220ms;
}

html.public-loader-active,
html.public-loader-active body {
    overflow: hidden !important;
}

/* Legacy page loaders stay in source for compatibility with page-local scripts. */
.theme-oao-void #loadingScreen.loading-screen {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.public-loader {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 100dvh;
    overflow: hidden;
    background: #000000;
    color: #ffffff;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity var(--public-loader-exit) ease,
        visibility 0s linear var(--public-loader-exit);
    animation: public-loader-failsafe 1ms linear 1800ms forwards;
    isolation: isolate;
}

.public-loader[hidden],
.public-loader.is-hidden {
    display: none !important;
}

.public-loader.is-leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.public-loader-stage {
    display: grid;
    justify-items: center;
    width: min(620px, calc(100% - 40px));
    min-height: 142px;
}

.public-loader-wordmark {
    position: relative;
    display: inline-grid;
    grid-template-columns: 42px auto auto auto;
    align-items: center;
    justify-content: center;
    min-width: 440px;
    min-height: 84px;
    font-family: Inter, Pretendard, "Noto Sans KR", Arial, sans-serif;
    font-size: 64px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.public-loader-one,
.public-loader-amp,
.public-loader-rocket {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity, filter;
}

.public-loader-one {
    color: #f8fafc;
    text-shadow: 0 0 28px rgba(248, 250, 252, 0.12);
}

.public-loader-one-left {
    animation: public-loader-one-left 560ms cubic-bezier(0.16, 1, 0.3, 1) 40ms both;
}

.public-loader-one-right {
    animation: public-loader-one-right 560ms cubic-bezier(0.16, 1, 0.3, 1) 40ms both;
}

.public-loader-amp {
    min-width: 46px;
    color: #3b82f6;
    transform-origin: center;
    text-shadow:
        0 0 16px rgba(59, 130, 246, 0.55),
        0 0 34px rgba(34, 211, 238, 0.22);
    animation: public-loader-amp 400ms cubic-bezier(0.16, 1, 0.3, 1) 190ms both;
}

.public-loader-rocket {
    width: 42px;
    color: #22d3ee;
    font-size: 28px;
    filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.45));
    animation: public-loader-rocket 480ms cubic-bezier(0.16, 1, 0.3, 1) 270ms both;
}

.public-loader-rule {
    display: block;
    width: 260px;
    height: 1px;
    margin-top: 10px;
    background: linear-gradient(90deg, transparent, #334155 20%, #3b82f6 50%, #334155 80%, transparent);
    transform-origin: center;
    animation: public-loader-rule 420ms cubic-bezier(0.16, 1, 0.3, 1) 310ms both;
}

.public-loader-page {
    min-height: 20px;
    margin: 14px 0 0;
    color: #94a3b8;
    font-family: Pretendard, "Noto Sans KR", Arial, sans-serif;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: center;
    animation: public-loader-page 340ms ease 390ms both;
}

@keyframes public-loader-one-left {
    from {
        opacity: 0;
        filter: blur(8px);
        transform: translate3d(-44px, 0, 0);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0);
    }
}

@keyframes public-loader-one-right {
    from {
        opacity: 0;
        filter: blur(8px);
        transform: translate3d(44px, 0, 0);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0);
    }
}

@keyframes public-loader-amp {
    from {
        opacity: 0;
        filter: blur(6px);
        transform: scale(0.35) rotate(-12deg);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: scale(1) rotate(0);
    }
}

@keyframes public-loader-rocket {
    from {
        opacity: 0;
        filter: blur(5px) drop-shadow(0 0 0 rgba(34, 211, 238, 0));
        transform: translate3d(-22px, 14px, 0) rotate(-18deg) scale(0.78);
    }
    to {
        opacity: 1;
        filter: blur(0) drop-shadow(0 0 12px rgba(34, 211, 238, 0.45));
        transform: translate3d(0, 0, 0) rotate(0) scale(1);
    }
}

@keyframes public-loader-rule {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes public-loader-page {
    from {
        opacity: 0;
        transform: translate3d(0, 8px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes public-loader-failsafe {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

@media (max-width: 768px) {
    .public-loader-stage {
        width: calc(100% - 32px);
        min-height: 116px;
    }

    .public-loader-wordmark {
        grid-template-columns: 30px auto auto auto;
        min-width: 292px;
        min-height: 62px;
        font-size: 42px;
    }

    .public-loader-rocket {
        width: 30px;
        font-size: 21px;
    }

    .public-loader-amp {
        min-width: 32px;
    }

    .public-loader-rule {
        width: 196px;
        margin-top: 8px;
    }

    .public-loader-page {
        margin-top: 12px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-loader-one,
    .public-loader-amp,
    .public-loader-rocket,
    .public-loader-rule,
    .public-loader-page {
        animation-duration: 1ms !important;
        animation-delay: 0ms !important;
    }

    .public-loader {
        transition-duration: 1ms;
    }
}
