/* ---------- Pixels2Bots page loader: logo with a soft glow ---------- */
html.p2b-loading,
html.p2b-loading body {
    overflow: hidden
}

.p2b-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #140001;
    transition: opacity .6s ease, visibility .6s ease
}

.p2b-loader-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .6s ease
}

/* Glow behind the logo: fades in and out */
.p2b-loader-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(235, 104, 65, .5) 0%, rgba(224, 66, 78, .25) 40%, rgba(224, 66, 78, 0) 70%);
    filter: blur(20px);
    opacity: 0;
    animation: p2b-glow 2.4s ease-in-out infinite
}

.p2b-loader-logo {
    position: relative;
    display: block;
    width: 110px;
    height: auto
}

/* Exit */
.p2b-loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}

.p2b-loader.is-done .p2b-loader-inner {
    transform: scale(1.05)
}

@keyframes p2b-glow {
    0%,
    100% {
        opacity: .15;
        transform: scale(.85)
    }

    50% {
        opacity: 1;
        transform: scale(1.1)
    }
}

@media (max-width: 767px) {
    .p2b-loader-logo {
        width: 90px
    }

    .p2b-loader-glow {
        width: 240px;
        height: 240px;
        margin: -120px 0 0 -120px
    }
}

@media (prefers-reduced-motion: reduce) {
    .p2b-loader-glow {
        animation: none;
        opacity: .6
    }
}

/* Keep scroll-in content hidden behind the loader so it animates in cleanly as the loader leaves */
html.p2b-loading .wow {
    visibility: hidden
}

@media (prefers-reduced-motion: reduce) {
    html.p2b-loading .wow {
        visibility: visible
    }
}

/* Light theme */
html[data-theme="light"] .p2b-loader {
    background: #fbf5f1
}

html[data-theme="light"] .p2b-loader-glow {
    background: radial-gradient(circle, rgba(235, 104, 65, .35) 0%, rgba(224, 66, 78, .15) 40%, rgba(224, 66, 78, 0) 70%)
}
