:root {
    color-scheme: dark;
    font-family: Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --page: #0b1518;
    --surface: #142326;
    --surface-raised: #1d3034;
    --surface-soft: #263d41;
    --text: #f7f3e8;
    --muted: #9db9ad;
    --accent: #d7b53d;
    --accent-light: #fff5cc;
    --danger: #e08d7a;
    --focus: #f6d768;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--page);
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 50% -20%, rgba(71, 130, 110, 0.24), transparent 42rem),
        linear-gradient(180deg, #102023 0%, var(--page) 70%);
    color: var(--text);
}

button,
select,
input {
    font: inherit;
}

button,
select {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

a {
    color: var(--accent-light);
}

.loading-shell {
    width: min(26rem, calc(100% - 2rem));
    margin: 18vh auto 0;
    text-align: center;
}

.loading-shell img {
    width: 5rem;
    height: 5rem;
    filter: drop-shadow(0 0.75rem 1.5rem rgba(0, 0, 0, 0.35));
}

.loading-title {
    margin-top: 1rem;
    font-size: 2rem;
    font-weight: 800;
}

.loading-copy {
    margin-top: 0.35rem;
    color: var(--muted);
}

.loading-track {
    height: 0.35rem;
    margin-top: 1.5rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.loading-progress {
    width: 45%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    animation: loading-slide 1.1s ease-in-out infinite alternate;
}

@keyframes loading-slide {
    from { transform: translateX(-20%); }
    to { transform: translateX(145%); }
}

#blazor-error-ui {
    position: fixed;
    z-index: 1000;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: none;
    max-width: 42rem;
    margin-inline: auto;
    padding: 1rem 3rem 1rem 1rem;
    border: 1px solid #f4b2a3;
    border-radius: 0.75rem;
    background: #4b211d;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.45);
}

#blazor-error-ui .reload {
    margin-left: 0.5rem;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 0.45rem;
    right: 0.55rem;
    border: 0;
    background: transparent;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.not-found {
    width: min(34rem, calc(100% - 2rem));
    margin: 15vh auto;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: var(--surface);
    text-align: center;
}
