.ey-startup-loader {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #0f172a;
    background: #f3f6fb;
    transition: opacity 180ms cubic-bezier(.22, 1, .36, 1), visibility 180ms;
    animation: ey-startup-css-failsafe 1ms linear 8s forwards;
}

html[data-google-auth-pending="true"] .ey-startup-loader {
    animation: none;
}

.ey-startup-loader::before,
.ey-startup-loader::after {
    position: absolute;
    width: min(72vw, 34rem);
    aspect-ratio: 1;
    border-radius: 50%;
    content: "";
    pointer-events: none;
    background: radial-gradient(circle, rgba(34, 99, 255, .10), transparent 68%);
}

.ey-startup-loader::after {
    width: min(48vw, 22rem);
    transform: translate(30%, 24%);
    background: radial-gradient(circle, rgba(110, 59, 248, .08), transparent 70%);
}

html[data-startup-theme="dark"] .ey-startup-loader {
    color: #eef4ff;
    background: #0b0f19;
}

html[data-startup-theme="dark"] .ey-startup-loader::before {
    background: radial-gradient(circle, rgba(95, 136, 255, .16), transparent 68%);
}

html[data-startup-theme="dark"] .ey-startup-loader::after {
    background: radial-gradient(circle, rgba(139, 91, 255, .13), transparent 70%);
}

.ey-startup-loader.is-leaving {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.ey-startup-lock {
    overflow: hidden !important;
}

.ey-startup-content {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 1rem;
    max-width: 100%;
    padding: 1.5rem;
    text-align: center;
}

.ey-startup-logo {
    display: block;
    width: clamp(112px, 22vw, 158px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    clip-path: inset(100% 0 0);
    transform: scale(.94);
    opacity: .35;
    animation: ey-logo-reveal 260ms cubic-bezier(.22, 1, .36, 1) 40ms forwards;
}

.ey-startup-wordmark {
    margin: 0;
    font: 700 clamp(1.15rem, 3vw, 1.45rem)/1.2 "Space Grotesk", "Manrope", sans-serif;
    letter-spacing: -.035em;
    opacity: 0;
    animation: ey-wordmark-in 180ms ease-out 80ms forwards;
}

.ey-startup-caption {
    margin: 0;
    color: #64748b;
    font: 500 .82rem/1.5 "Manrope", sans-serif;
    letter-spacing: .015em;
    opacity: 0;
    animation: ey-wordmark-in 180ms ease-out 120ms forwards;
}

html[data-startup-theme="dark"] .ey-startup-caption {
    color: #90a5cc;
}

@keyframes ey-logo-reveal {
    60% { opacity: 1; }
    to { clip-path: inset(0); transform: scale(1); opacity: 1; }
}

@keyframes ey-wordmark-in {
    from { transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ey-startup-css-failsafe {
    to { visibility: hidden; opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ey-startup-logo,
    .ey-startup-wordmark,
    .ey-startup-caption {
        animation: none !important;
    }

    .ey-startup-loader { transition-duration: 1ms !important; }

    .ey-startup-logo {
        clip-path: none;
        transform: none;
        opacity: 1;
    }

    .ey-startup-wordmark,
    .ey-startup-caption {
        transform: none;
        opacity: 1;
    }
}
