/* Loaded straight from the HTML <head>: styles the splash and the fatal-error panel before the app exists. */
@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/Inter.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg-0: #15101c;
    --text: #f1ecf8;
    --text-dim: #a99bbd;
    --accent: #b894ff;
}

html, body {
    height: 100%;
    margin: 0;
    background: var(--bg-0);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

#app.boot {
    min-height: 100%;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 14px;
}

.boot-mark {
    width: 44px;
    height: 44px;
    background: url("/assets/logo.svg") center / contain no-repeat;
    animation: boot-pulse 1.4s ease-in-out infinite;
}

.boot-text {
    margin: 0;
    color: var(--text-dim);
    font-size: 14px;
}

.boot-error {
    position: fixed;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    background: var(--bg-0);
}

.boot-error[hidden] { display: none; }
.boot-error h1 { margin: 0; font-size: 20px; }
.boot-error p { margin: 0; max-width: 42ch; color: var(--text-dim); }
.boot-error button {
    font: inherit;
    font-weight: 600;
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    color: #17102a;
    background: var(--accent);
    cursor: pointer;
}

@keyframes boot-pulse {
    50% { transform: scale(1.12) rotate(6deg); opacity: .75; }
}

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

.boot h1 { font-size: 22px; font-weight: 700; margin: 4px 0 0; text-align: center; }
.boot-retry {
    font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 10px; cursor: pointer;
    color: var(--text); background: transparent; border: 1px solid #3b2f4d;
}
.boot-retry:hover { background: #281f36; }
