.loader-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 99999;
}

.loader {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 50px;
    height: 50px;
    font-size: 0;
    color: #c4a574;
    display: inline-block;
    margin: -25px 0 0 -25px;
    text-indent: -9999em;
    transform: translateZ(0);
}

.loader div {
    background-color: #c4a574;
    display: inline-block;
    float: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    opacity: 0.5;
    border-radius: 50%;
    animation: ballPulseDouble 2s ease-in-out infinite;
}

.loader div:last-child {
    animation-delay: -1s;
}

@keyframes ballPulseDouble {
    0%, 100% {
        transform: scale(0);
    }

    50% {
        transform: scale(1);
    }
}

.splash {
    --splash-gold: #c4a574;
    --splash-gold-deep: #8a6d42;
    --splash-ink: #f6efe3;
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: radial-gradient(1200px 700px at 50% 18%, #3a2c1f 0%, #1a1410 55%, #100c09 100%);
    font-family: "Cairo", "Montserrat", sans-serif;
    color: var(--splash-ink);
    z-index: 1;
}

.splash-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.splash-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
    animation: splashOrb 8s ease-in-out infinite alternate;
}

.splash-orb-a {
    width: 42vmin;
    height: 42vmin;
    top: -8%;
    right: 8%;
    background: radial-gradient(circle, rgba(196, 165, 116, 0.55), transparent 70%);
}

.splash-orb-b {
    width: 36vmin;
    height: 36vmin;
    bottom: -10%;
    left: 4%;
    background: radial-gradient(circle, rgba(138, 109, 66, 0.5), transparent 70%);
    animation-duration: 11s;
    animation-direction: alternate-reverse;
}

.splash-grain {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: radial-gradient(rgba(255, 255, 255, 0.35) 0.6px, transparent 0.8px);
    background-size: 4px 4px;
}

.splash-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    animation: splashRise 0.9s ease-out both;
}

.splash-logo-wrap {
    width: min(280px, 72vw);
    aspect-ratio: 1;
    padding: 18px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 239, 227, 0.92));
    box-shadow:
        0 0 0 1px rgba(196, 165, 116, 0.35),
        0 24px 60px rgba(0, 0, 0, 0.35),
        0 0 80px rgba(196, 165, 116, 0.18);
    animation: splashFloat 3.6s ease-in-out infinite;
}

.splash-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.splash-title {
    margin: 28px 0 0;
    padding: 0 16px;
    font-size: clamp(1.15rem, 3.2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #f8f1e6;
    line-height: 1.4;
}

.splash-subtitle {
    margin: 6px 0 0;
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    font-weight: 500;
    color: var(--splash-gold);
}

.splash-progress {
    width: min(220px, 58vw);
    height: 3px;
    margin-top: 28px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(196, 165, 116, 0.18);
}

.splash-progress span {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, var(--splash-gold), #f0d9a8, transparent);
    animation: splashSweep 1.4s ease-in-out infinite;
}

@keyframes splashRise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes splashFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes splashOrb {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(-4%, 6%, 0) scale(1.08);
    }
}

@keyframes splashSweep {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(320%);
    }
}

@media (max-width: 600px) {
    .splash-logo-wrap {
        width: min(210px, 68vw);
        padding: 12px;
        border-radius: 22px;
    }

    .splash-title {
        margin-top: 20px;
    }
}
