#portal-app-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #18181b;
    transition: opacity 280ms ease, visibility 280ms ease;
}

#portal-app-splash.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#portal-app-splash.portal-app-splash--minimal {
    background-color: rgba(9, 9, 11, 0.72);
    backdrop-filter: blur(2px);
}

.portal-app-splash__content--minimal {
    gap: 0;
    padding: 0;
    max-width: none;
}

.portal-app-splash__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.portal-app-splash__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(9, 9, 11, 0.35), rgba(9, 9, 11, 0.88)),
        radial-gradient(circle at center, rgba(9, 9, 11, 0.15), rgba(9, 9, 11, 0.75));
}

.portal-app-splash__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    max-width: 18rem;
}

.portal-app-splash__logo {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 1.25rem;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.portal-app-splash__logo-fallback {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom right, rgb(139 92 246), rgb(217 70 239));
    color: white;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.portal-app-splash__name {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    color: rgb(250 250 250);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.portal-app-splash__spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-top-color: rgb(167 139 250);
    border-radius: 9999px;
    animation: portal-app-splash-spin 700ms linear infinite;
}

@keyframes portal-app-splash-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    #portal-app-splash {
        transition: none;
    }

    .portal-app-splash__spinner {
        animation: none;
    }
}
