/* Drawn by the host page until the app starts and replaces it. */
.splash {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: var(--space-4);
    min-height: 100vh;
    min-height: 100dvh;
}

.splash__drop {
    width: 72px;
    height: 72px;
}

.splash__word {
    color: var(--text);
    font-size: var(--text-heading-2-size);
    font-weight: 700;
}

.splash__bar {
    width: 120px;
    height: 2px;
    overflow: hidden;
    border-radius: var(--radius-pill);
    background: var(--surface-bg);
}

/* The load percentage is set by the WebAssembly runtime; the native host has none and shows a short fill. */
.splash__fill {
    display: block;
    width: var(--blazor-load-percentage, 15%);
    height: 100%;
    background: var(--clr-accent);
}

@media (prefers-reduced-motion: no-preference) {
    .splash__drop {
        animation: splash-pulse 1.6s ease-in-out infinite;
    }

    .splash__fill {
        transition: width 200ms ease-out;
    }
}

@keyframes splash-pulse {
    50% {
        opacity: 0.7;
    }
}
