body cooee-splash-screen {
    --width: 250px;
    --animation-duration: 0.6s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    z-index: 999999;
    pointer-events: none;
    opacity: 1;
    transform-origin: center;
}

cooee-splash-screen img {
    margin-bottom: 20px;
}

cooee-splash-screen .progress {
    background-color: #d1d5db;
    border-radius: 9999px;
    height: 3px;
    position: relative;
    overflow: hidden;
    width: 150px;
}

cooee-splash-screen .progress-bar {
    background-color: rgb(245, 28, 143);
    border-radius: 9999px;
    position: absolute;
    bottom: 0;
    top: 0;
    width: 50%;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-name: indeterminate-progress-bar;
}

@keyframes indeterminate-progress-bar {
    from {
        left: -50%;
    }
    to {
        left: 100%;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes scale-out-center {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

body cooee-splash-screen img {
    width: var(--width);
    max-width: var(--width);
    margin-top: -200px;
}

body.splash-hidden cooee-splash-screen {
    animation: fade-out var(--animation-duration) ease-out both;
    animation-delay: var(--animation-duration);
}

body.splash-hidden cooee-splash-screen * {
    animation: scale-out-center var(--animation-duration) cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}
