:root {
    color-scheme: light;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f6f7f9;
}

html,
body {
    width: 100%;
    min-width: 320px;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    background: #f6f7f9;
}

canvas {
    outline: none;
}

.app-loader {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    color: #172033;
    background:
        radial-gradient(circle at 30% 20%, rgba(31, 111, 235, 0.10), transparent 55%),
        radial-gradient(circle at 70% 80%, rgba(15, 118, 110, 0.10), transparent 55%),
        #f6f7f9;
    font: 500 15px Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    z-index: 10;
    padding: 24px;
    text-align: center;
}

.app-loader__spinner {
    position: relative;
    width: 72px;
    height: 72px;
}

.app-loader__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    box-sizing: border-box;
    animation: app-loader-spin 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.app-loader__ring--outer {
    border-top-color: #1F6FEB;
    border-right-color: rgba(31, 111, 235, 0.35);
    animation-duration: 1.4s;
}

.app-loader__ring--middle {
    inset: 10px;
    border-top-color: #0F766E;
    border-left-color: rgba(15, 118, 110, 0.35);
    animation-duration: 1.0s;
    animation-direction: reverse;
}

.app-loader__ring--inner {
    inset: 22px;
    border-top-color: #9A3412;
    border-bottom-color: rgba(154, 52, 18, 0.35);
    animation-duration: 0.7s;
}

.app-loader__text {
    min-height: 1.25em;
    max-width: 320px;
    color: #5D6678;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: opacity 220ms ease, transform 220ms ease;
    opacity: 1;
    transform: translateY(0);
}

.app-loader__text--leaving {
    opacity: 0;
    transform: translateY(-6px);
}

@keyframes app-loader-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .app-loader__ring {
        animation-duration: 4s;
    }

    .app-loader__text {
        transition: none;
    }
}
