:root {
    color-scheme: dark light;
    font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
    background: var(--ion-background-color, #0f0f0f);
    background: #0f0f0f;
}

html,
body {
    background: var(--ion-background-color, #0f0f0f);
    background: #0f0f0f;
}

ion-app {
    background: var(--ion-background-color, #0f0f0f);
    background: #0f0f0f;
}

.startup {
    align-items: center;
    background: var(--ion-background-color, #0f0f0f);
    color: var(--ion-text-color, #f7fbff);
    display: flex;
    flex-direction: column;
    inset: 0;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: fixed;
    text-align: center;
    z-index: 2147483647;
}

.startup-logo {
    height: auto;
    max-width: min(13rem, 52vw);
    width: 13rem;
}

.startup h1 {
    font-size: clamp(1.8rem, 6vw, 3.1rem);
    letter-spacing: -0.045em;
    margin: 1.25rem 0 0.35rem;
}

    .startup h1 strong {
        color: #0984ff;
    }

.startup p {
    color: #b9c8dd;
    line-height: 1.55;
    margin: 0;
    max-width: 31rem;
}

.startup-progress {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    height: 0.25rem;
    margin-top: 1.5rem;
    overflow: hidden;
    width: min(18rem, 68vw);
}

    .startup-progress::after {
        animation: startup-progress 1.35s ease-in-out infinite;
        background: #08b8ff;
        border-radius: inherit;
        content: "";
        display: block;
        height: 100%;
        transform: translateX(-100%);
        width: 46%;
    }

.startup[data-state="failed"] .startup-progress,
.startup[data-state="failed"] .startup-status {
    display: none;
}

#blazor-error-ui {
    display: none !important;
}

@keyframes startup-progress {
    0% {
        transform: translateX(-110%);
    }

    55%, 100% {
        transform: translateX(245%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .startup-progress::after {
        animation: none;
        transform: translateX(58%);
    }
}
