#immediate-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8b2635;
    text-align: center;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 199, 218, 0.55) 0, rgba(255, 199, 218, 0) 30%),
        radial-gradient(circle at 76% 72%, rgba(255, 179, 134, 0.35) 0, rgba(255, 179, 134, 0) 28%),
        linear-gradient(180deg, #fff7fb 0%, #ffffff 58%, #fff0f6 100%);
}

#immediate-loading::before,
#immediate-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.72;
}

#immediate-loading::before {
    margin-left: -56px;
    margin-top: -70px;
    background: #ff82ad;
    box-shadow:
        100px 6px 0 #ffc35f,
        84px 42px 0 #ff9fc0,
        16px 38px 0 #ffd2df;
    animation: startupParticleFloatA 2.6s ease-in-out infinite;
}

#immediate-loading::after {
    margin-left: 54px;
    margin-top: -52px;
    background: #ffd26d;
    box-shadow:
        -112px 18px 0 #ff9fc0,
        -76px -18px 0 #ffc0d4,
        -18px 44px 0 #ff8fb8;
    animation: startupParticleFloatB 3s ease-in-out infinite;
}

.startup-loading-card {
    position: relative;
    z-index: 1;
    width: 238px;
    height: 214px;
    box-sizing: border-box;
    padding: 0;
    border-radius: 22px;
    border: 1px solid rgba(255, 120, 170, 0.24);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(199, 54, 110, 0.16);
}

.startup-loading-spinner {
    position: absolute;
    top: 30px;
    left: 50%;
    box-sizing: content-box;
    width: 58px;
    height: 58px;
    margin: 0 0 0 -32px;
    border: 3px solid #ff9fbe;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 43%, #7e2a42 0, #7e2a42 3px, transparent 4px),
        radial-gradient(circle at 68% 43%, #7e2a42 0, #7e2a42 3px, transparent 4px),
        radial-gradient(circle at 28% 60%, rgba(255, 124, 160, 0.42) 0, rgba(255, 124, 160, 0.42) 5px, transparent 6px),
        radial-gradient(circle at 72% 60%, rgba(255, 124, 160, 0.42) 0, rgba(255, 124, 160, 0.42) 5px, transparent 6px),
        linear-gradient(180deg, #fff8ee 0%, #ffe8d7 100%);
    box-shadow:
        0 8px 18px rgba(255, 100, 150, 0.18),
        inset 0 -4px 0 rgba(255, 190, 168, 0.35);
    animation: startupFaceBlink 3.2s steps(1, end) infinite;
}

.startup-loading-spinner::before,
.startup-loading-spinner::after {
    content: "";
    position: absolute;
    top: -15px;
    width: 24px;
    height: 22px;
    border-radius: 18px 18px 10px 18px;
    background: linear-gradient(135deg, #ff5f9b 0%, #ff8fbd 100%);
    box-shadow: inset 0 -3px 0 rgba(185, 40, 92, 0.12);
}

.startup-loading-spinner::before {
    left: 10px;
    transform: rotate(-28deg);
}

.startup-loading-spinner::after {
    right: 10px;
    transform: rotate(28deg);
}

.startup-loading-card::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    width: 13px;
    height: 13px;
    margin-left: -7px;
    border-radius: 50%;
    background: #ff4f94;
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.55), 0 3px 8px rgba(255, 79, 148, 0.24);
}

.startup-loading-card::after {
    content: "";
    position: absolute;
    top: 70px;
    left: 50%;
    z-index: 1;
    width: 14px;
    height: 7px;
    margin-left: -7px;
    border-bottom: 2px solid #b74765;
    border-radius: 0 0 14px 14px;
}

.startup-loading-text {
    position: absolute;
    top: 112px;
    left: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    min-height: 0;
    color: #8b2635;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 700;
}

.startup-loading-progress {
    position: absolute;
    left: 50%;
    bottom: 26px;
    box-sizing: content-box;
    width: 186px;
    height: 20px;
    margin: 0 0 0 -93px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(255, 116, 158, 0.24);
    background: #f8e8ed;
    box-shadow: inset 0 2px 5px rgba(139, 38, 53, 0.08);
}

.startup-loading-progress-fill {
    width: 2%;
    min-width: 24px;
    height: 100%;
    border-radius: 999px;
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.34) 0,
            rgba(255, 255, 255, 0.34) 7px,
            rgba(255, 255, 255, 0) 7px,
            rgba(255, 255, 255, 0) 14px
        ),
        linear-gradient(90deg, #ff6fa3 0%, #ff8ba0 42%, #ffc45e 100%);
    box-shadow: 0 0 12px rgba(255, 111, 163, 0.5);
    transition: width 0.25s ease;
}

.startup-loading-progress-fill::after {
    content: "";
    display: block;
    width: 42px;
    height: 100%;
    margin-left: auto;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.42));
    animation: startupCandyShine 1.1s ease-in-out infinite;
}

.startup-loading-progress::before,
.startup-loading-progress::after {
    content: "";
    position: absolute;
    top: 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    z-index: 1;
}

.startup-loading-progress::before {
    left: 15px;
}

.startup-loading-progress::after {
    right: 15px;
}

.startup-loading-progress-percent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #8b2635;
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
    text-align: center;
}

@keyframes startupFaceBlink {
    0%,
    82%,
    100% {
        background:
            radial-gradient(circle at 32% 43%, #7e2a42 0, #7e2a42 3px, transparent 4px),
            radial-gradient(circle at 68% 43%, #7e2a42 0, #7e2a42 3px, transparent 4px),
            radial-gradient(circle at 28% 60%, rgba(255, 124, 160, 0.42) 0, rgba(255, 124, 160, 0.42) 5px, transparent 6px),
            radial-gradient(circle at 72% 60%, rgba(255, 124, 160, 0.42) 0, rgba(255, 124, 160, 0.42) 5px, transparent 6px),
            linear-gradient(180deg, #fff8ee 0%, #ffe8d7 100%);
    }
    86%,
    90% {
        background:
            linear-gradient(90deg, transparent 0, transparent 27%, #7e2a42 27%, #7e2a42 38%, transparent 38%, transparent 62%, #7e2a42 62%, #7e2a42 73%, transparent 73%),
            radial-gradient(circle at 28% 60%, rgba(255, 124, 160, 0.42) 0, rgba(255, 124, 160, 0.42) 5px, transparent 6px),
            radial-gradient(circle at 72% 60%, rgba(255, 124, 160, 0.42) 0, rgba(255, 124, 160, 0.42) 5px, transparent 6px),
            linear-gradient(180deg, #fff8ee 0%, #ffe8d7 100%);
        background-size: 100% 4px, auto, auto, auto;
        background-position: 0 43%, 0 0, 0 0, 0 0;
        background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    }
}

@keyframes startupParticleFloatA {
    0% {
        opacity: 0.18;
        transform: translateY(6px) scale(0.86);
    }
    45% {
        opacity: 0.78;
        transform: translateY(-6px) scale(1);
    }
    100% {
        opacity: 0.18;
        transform: translateY(-16px) scale(0.92);
    }
}

@keyframes startupParticleFloatB {
    0% {
        opacity: 0.15;
        transform: translateY(5px) scale(0.9);
    }
    50% {
        opacity: 0.68;
        transform: translateY(-8px) scale(1.04);
    }
    100% {
        opacity: 0.15;
        transform: translateY(-18px) scale(0.9);
    }
}

@keyframes startupCandyShine {
    0% {
        opacity: 0.2;
        transform: translateX(-18px);
    }
    50% {
        opacity: 0.75;
    }
    100% {
        opacity: 0.2;
        transform: translateX(18px);
    }
}
