/* =========================
   ROYAL GARAGE LOADER
   ========================= */

   .royal-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at center,
            rgba(44, 62, 90, 0.35),
            rgba(4, 8, 16, 0.96) 65%
        );

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
}

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


.royal-loader-content {
    width: min(
        88vw,
        420px
    );

    text-align: center;

    padding: 40px 28px;

    border-radius: 28px;

    background:
        rgba(
            10,
            16,
            28,
            0.72
        );

    border:
        1px solid
        rgba(
            212,
            175,
            55,
            0.32
        );

    box-shadow:
        0 26px 80px
        rgba(
            0,
            0,
            0,
            0.45
        );

    backdrop-filter:
        blur(14px);
}


.royal-loader-logo-wrap {
    width: 150px;
    height: 150px;

    margin:
        0 auto 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    position: relative;
}


.royal-loader-logo-wrap::before {
    content: "";

    position: absolute;
    inset: -8px;

    border-radius: 50%;

    border:
        2px solid
        rgba(
            212,
            175,
            55,
            0.24
        );

    border-top-color:
        #d4af37;

    animation:
        royalLoaderSpin
        1.4s linear infinite;
}


.royal-loader-logo {
    width: 125px;
    height: 125px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 10px 24px
            rgba(
                0,
                0,
                0,
                0.35
            )
        );
}


.royal-loader-title {
    margin: 0;

    font-size:
        clamp(
            28px,
            6vw,
            42px
        );

    font-weight: 800;

    letter-spacing: 0.08em;

    color: #f4d97b;

    text-shadow:
        0 3px 16px
        rgba(
            212,
            175,
            55,
            0.2
        );
}


.royal-loader-text {
    margin:
        14px 0 0;

    font-size: 15px;

    line-height: 1.5;

    color:
        rgba(
            255,
            255,
            255,
            0.76
        );
}


.royal-loader-line {
    width: 100%;
    height: 4px;

    margin-top: 26px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(
            255,
            255,
            255,
            0.08
        );
}


.royal-loader-line::before {
    content: "";

    display: block;

    width: 42%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            transparent,
            #d4af37,
            #f6df83,
            transparent
        );

    animation:
        royalLoaderLine
        1.15s ease-in-out infinite;
}


@keyframes royalLoaderSpin {
    from {
        transform:
            rotate(0deg);
    }

    to {
        transform:
            rotate(360deg);
    }
}


@keyframes royalLoaderLine {
    from {
        transform:
            translateX(-120%);
    }

    to {
        transform:
            translateX(280%);
    }
}


@media (
    max-width: 600px
) {
    .royal-loader-content {
        padding:
            32px 20px;
    }

    .royal-loader-logo-wrap {
        width: 126px;
        height: 126px;
    }

    .royal-loader-logo {
        width: 104px;
        height: 104px;
    }
}