* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#startup-shell {
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: 0;
    transition: opacity 360ms ease;
}

#startup-shell.startup-shell--show {
    opacity: 1;
}

#startup-shell.startup-shell--hide {
    opacity: 0;
    pointer-events: none;
}

.loader-screen,
.startup-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    /*background:
            radial-gradient(circle at 50% 35%, rgba(42, 116, 237, 0.12), transparent 34%),
            #fafafa;
    font-family: 'Roboto', sans-serif;*/
    background-color: #F3F6F9;
    overflow: hidden;
}

.logo-card,
.startup-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeIn 700ms ease-out both;
}

.logo-card::after,
.startup-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: transparent;
    opacity: 0;
    pointer-events: none;
}

.logo {
    width: 200px;
    height: auto;
    display: block;
}

.startup-mark {
    font-size: 2.1rem;
    line-height: 1;
    margin-bottom: 0.65rem;
}

.loader-title,
.startup-title,
.loader-text,
.startup-copy,
.loading-meta {
    position: relative;
    z-index: 1;
}

.loader-title,
.startup-title {
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #1f1f1f;
}

.loader-text,
.startup-copy {
    max-width: 320px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #666;
}

.loading-meta,
.startup-progress {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 6px;
}

.startup-progress {
    height: 0.5rem;
    margin-top: 1.25rem;
    border-radius: 999px;
    overflow: hidden;
    background: #dbe8ff;
}

.startup-progress__bar {
    display: block;
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2A74ED 0%, #7FAAF5 100%);
    animation: startup-shimmer 1.2s ease-in-out infinite;
}

.mud-progress-circular {
    display: inline-flex;
    width: 44px;
    height: 44px;
    color: #2A74ED;
    animation: mud-progress-circular-rotate 1.4s linear infinite;
}

.mud-progress-circular svg {
    display: block;
    width: 100%;
    height: 100%;
}

.mud-progress-circular circle {
    fill: none;
    stroke: #2A74ED;
    stroke-width: 3.6;
    stroke-linecap: round;
    stroke-dasharray: 80px, 200px;
    stroke-dashoffset: 0;
    transform-origin: center;
    animation: mud-progress-circular-dash 1.4s ease-in-out infinite;
}

@keyframes mud-progress-circular-rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes mud-progress-circular-dash {
    0% {
        stroke-dasharray: 1px, 200px;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 100px, 200px;
        stroke-dashoffset: -15px;
    }

    100% {
        stroke-dasharray: 100px, 200px;
        stroke-dashoffset: -125px;
    }
}

@keyframes startup-shimmer {
    0% {
        transform: translateX(-35%);
    }

    50% {
        transform: translateX(145%);
    }

    100% {
        transform: translateX(-35%);
    }
}

@keyframes softGlow {
    0%, 100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    #startup-shell {
        transition: none;
    }

    .startup-progress__bar,
    .mud-progress-circular,
    .mud-progress-circular circle {
        animation: none;
    }
}
