:root {
    color: #18140f;
    background: #18140f;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body,
#app {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    background: #18140f;
}

.construction {
    box-sizing: border-box;
    display: grid;
    min-height: 100vh;
    place-content: center;
    padding: 2rem;
    text-align: center;
}

.site-name,
h1,
.message {
    margin: 0;
}

.site-name {
    color: #d6a85f;
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    color: #fffaf0;
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.05;
    margin-top: 0.75rem;
}

.message {
    color: #d6a85f;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-top: 1.25rem;
}

:focus-visible {
    outline: 3px solid #d6a85f;
    outline-offset: 4px;
}

.loading-progress {
    display: block;
    height: 4rem;
    inset: 50% 0 auto;
    margin: -2rem auto 0;
    position: absolute;
    width: 4rem;
}

.loading-progress circle {
    fill: none;
    stroke: rgb(214 168 95 / 30%);
    stroke-width: 0.4rem;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.loading-progress circle:last-child {
    stroke: #d6a85f;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    color: #d6a85f;
    font-weight: 700;
    inset: calc(50% + 3rem) 0 auto;
    position: absolute;
    text-align: center;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "Loading");
}

#blazor-error-ui {
    background: #fffaf0;
    bottom: 0;
    box-shadow: 0 -1px 2px rgb(0 0 0 / 20%);
    box-sizing: border-box;
    color: #18140f;
    display: none;
    left: 0;
    padding: 0.75rem 3rem 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
