html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #F3F5F8;
}

@media (prefers-color-scheme: dark) {
    html, body { background: #0E1116; }
}

/* Until the app draws its first frame. */
#loading {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loading .spinner { animation: spin 0.9s linear infinite; }
#loading .track { fill: none; stroke: rgba(58, 134, 212, 0.2); stroke-width: 4; }
#loading .arc { fill: none; stroke: #3A86D4; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 90 125; }

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

@media (prefers-reduced-motion: reduce) {
    #loading .spinner { animation: none; }
}
