html, body {
    font-family: 'Trebuchet MS', 'Segoe UI', Tahoma, sans-serif;
    margin: 0;
    padding: 0;
    background: #1c120a;
    color: #f2e6cf;
    overscroll-behavior: none;
}

*, *::before, *::after { box-sizing: border-box; }

/* Themed scrollbars, matching the warm dark palette used across the game.
   Firefox uses the standard `scrollbar-*` properties; WebKit/Blink browsers
   use the `::-webkit-scrollbar` pseudo-elements below. */
* {
    scrollbar-width: thin;
    scrollbar-color: #6b4f2d transparent;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.25);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(#7a5a3a, #5a4025);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(#b39868, #7a5a3a);
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(#ffd857, #b39868);
    background-clip: padding-box;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

button {
    font-family: inherit;
    color: inherit;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    color: #1c120a;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: rgba(255, 216, 87, 0.2);
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #ffd857;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    color: #f7dfa8;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }
