body fuse-splash-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #16171a;
    color: #F9FAFB;
    z-index: 999999;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

body fuse-splash-screen img {
    width: 180px;
    max-width: 180px;
}

body fuse-splash-screen .loading-bar {
    position: relative;
    margin-top: 42px;
    width: 220px;
    max-width: min(72vw, 280px);
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body fuse-splash-screen .loading-bar::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(var(--splash-progress, 0) * 1%);
    border-radius: inherit;
    background: linear-gradient(90deg, #5fd2ff 0%, #ffffff 55%, #bdefff 100%);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
    will-change: width;
    transition: width 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

body fuse-splash-screen .loading-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.34) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-130%);
    animation: fuse-loadingbar-shine 1.05s linear infinite;
    opacity: 0.6;
}

body fuse-splash-screen .loading-message {
    margin-top: 18px;
    max-width: min(76vw, 360px);
    color: rgba(249, 250, 251, 0.82);
    font-size: 0.95rem;
    line-height: 1.45;
    font-style: italic;
    text-align: center;
}

body fuse-splash-screen .loading-version {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    color: rgba(249, 250, 251, 0.56);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
}

body fuse-splash-screen .refresh-button {
    margin-top: 18px;
    padding: 0.7rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f9fafb;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    pointer-events: auto;
    transition:
        transform 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease;
}

body fuse-splash-screen .refresh-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

body fuse-splash-screen .refresh-button:focus-visible {
    outline: 2px solid rgba(95, 210, 255, 0.9);
    outline-offset: 2px;
}

@keyframes fuse-loadingbar-shine {
    0% {
        transform: translateX(-130%);
    }
    100% {
        transform: translateX(130%);
    }
}

body:not(.fuse-splash-screen-hidden) {
    overflow: hidden;
}

body.fuse-splash-screen-hidden fuse-splash-screen {
    visibility: hidden;
    opacity: 0;
}
