.startup-splash {
    position: fixed;
    inset: 0;
    z-index: 10000;
    box-sizing: border-box;
    display: grid;
    min-height: 100dvh;
    place-items: center;
    overflow: hidden;
    background: var(--wl-accent);
    color: var(--wl-text);
}

.startup-splash-mark {
    display: block;
    width: clamp(var(--wl-splash-mark-min), 30vmin, var(--wl-splash-mark-max));
    height: auto;
    transform-origin: center;
    animation: wl-startup-breathe 2.2s ease-in-out infinite;
}

.startup-splash-dots {
    position: absolute;
    bottom: max(var(--wl-space-6), calc(8dvh + env(safe-area-inset-bottom)));
    left: 50%;
    display: flex;
    gap: var(--wl-splash-dot-gap);
    transform: translateX(-50%);
}

.startup-splash-dots span {
    width: var(--wl-splash-dot-size);
    height: var(--wl-splash-dot-size);
    border-radius: 50%;
    background: var(--wl-accent-2);
    opacity: .35;
    animation: wl-startup-pulse 1.2s ease-in-out infinite;
}

.startup-splash-dots span:nth-child(2) {
    animation-delay: .15s;
}

.startup-splash-dots span:nth-child(3) {
    animation-delay: .3s;
}

.startup-splash-error-panel {
    position: absolute;
    right: var(--wl-space-6);
    bottom: max(var(--wl-space-6), calc(8dvh + env(safe-area-inset-bottom)));
    left: var(--wl-space-6);
    display: grid;
    justify-items: center;
    gap: var(--wl-space-4);
}

.startup-splash-error {
    max-width: 38rem;
    margin: 0;
    padding: var(--wl-space-3) var(--wl-space-4);
    border: var(--wl-border-width) solid var(--wl-border-2);
    border-radius: var(--wl-radius-md);
    background: var(--wl-bg-1);
    color: var(--wl-error);
    text-align: center;
}

@keyframes wl-startup-breathe {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.045);
        opacity: .88;
    }
}

@keyframes wl-startup-pulse {
    0%,
    100% {
        opacity: .35;
    }

    50% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .startup-splash-mark,
    .startup-splash-dots span {
        animation: none;
    }

    .startup-splash-dots span {
        opacity: 1;
    }
}
