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

/* Match the app's background so removing the splash does not flash. */
:root {
    --splash-background: #f7f6f2;
    --splash-track: #e6e3da;
    --splash-accent: #2f55d4;
}

:root[data-theme="dark"] {
    --splash-background: #0f1115;
    --splash-track: #262a33;
    --splash-accent: #7c9bff;
}

body {
    background: var(--splash-background);
}

#splash {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    justify-content: center;
    background: var(--splash-background);
    z-index: 1;
}

.splash-logo {
    width: 64px;
    height: 64px;
}

.splash-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--splash-track);
    border-top-color: var(--splash-accent);
    border-radius: 50%;
    animation: splash-spin 1s linear infinite;
}

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

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