:root {
    --blazor-load-percentage: 0%;
    --blazor-load-status-text: "Starting app";
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #08111f;
}

body {
    overflow: hidden;
}

#app {
    min-height: 100vh;
    position: relative;
}

.splash-screen {
    position: fixed;
    inset: 0;
    display: block;
    background:
            radial-gradient(circle at top, rgba(44, 114, 255, 0.18), transparent 35%),
            linear-gradient(180deg, #0b1424 0%, #08111f 100%);
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition:
            opacity 380ms ease,
            transform 440ms cubic-bezier(.22, 1, .36, 1),
            visibility 380ms ease;
    will-change: opacity, transform;
}

.loader {
    position: absolute;
    top: 50%;
    right: 13%;
    width: min(84vw, 320px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    transform: translateY(-50%);
    transition: transform 440ms cubic-bezier(.22, 1, .36, 1);
}

.loading-progress {
    width: 92px;
    height: 92px;
    transform: rotate(-90deg);
    overflow: visible;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.28));
}

.loading-progress .track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.14);
    stroke-width: 6;
}

.loading-progress .progress {
    fill: none;
    stroke: #53b7ff;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 200ms ease;
    filter: drop-shadow(0 0 6px rgba(83, 183, 255, 0.45));
}

.loading-progress-text {
    min-height: 22px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: center;
    transition: opacity 180ms ease, transform 180ms ease;
}

#app.loaded .splash-screen {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.015);
    pointer-events: none;
}

#app.loaded .loader {
    transform: translateY(calc(-50% - 8px));
}
