html,
body {
    margin: 0;
    min-width: 100%;
    min-height: 100%;
    background-color: #05070a;
    color: #f7f7f7;
}

.wasm-loading-shell {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 32px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 187, 22, 0.08), transparent 34%),
        #05070a;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    opacity: 1;
    transition: opacity 180ms ease-out;
}

.wasm-loading-shell--complete {
    opacity: 0;
    pointer-events: none;
}

.wasm-loading-shell__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(360px, 100%);
}

.wasm-loading-shell__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 22px;
    border-radius: 14px;
    background-color: #ffbb16;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.wasm-loading-shell__logo img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: brightness(0);
}

.wasm-loading-shell__title {
    margin: 0;
    color: #f7f7f7;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.wasm-loading-shell__status {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 28px 0 9px;
    color: rgba(247, 247, 247, 0.68);
    font-size: 13px;
    line-height: 18px;
}

.wasm-loading-shell__percentage::after {
    content: var(--blazor-load-percentage-text, "0%");
    color: rgba(247, 247, 247, 0.86);
    font-variant-numeric: tabular-nums;
}

.wasm-loading-shell__track {
    width: 100%;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background-color: rgba(247, 247, 247, 0.13);
}

.wasm-loading-shell__progress {
    width: var(--blazor-load-percentage, 0%);
    min-width: 3px;
    height: 100%;
    border-radius: inherit;
    background-color: #ffbb16;
    box-shadow: 0 0 14px rgba(255, 187, 22, 0.45);
    transition: width 160ms ease-out;
}

.wasm-loading-shell--failed .wasm-loading-shell__progress {
    width: 100%;
    background-color: #ef4444;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
}

.wasm-loading-shell--failed .wasm-loading-shell__percentage {
    display: none;
}

@media (max-height: 500px) and (orientation: landscape) {
    .wasm-loading-shell {
        padding: 16px 32px;
    }

    .wasm-loading-shell__logo {
        width: 52px;
        height: 52px;
        margin-bottom: 14px;
        border-radius: 11px;
    }

    .wasm-loading-shell__logo img {
        width: 36px;
        height: 36px;
    }

    .wasm-loading-shell__status {
        margin-top: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wasm-loading-shell,
    .wasm-loading-shell__progress {
        transition: none;
    }
}

.farsight-app-page {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: #05070a;
}

.farsight-world-state-canvas {
    position: absolute;
    inset: 0;
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
}

.farsight-world-state-canvas canvas {
    touch-action: none;
    overscroll-behavior: none;
}

.navigation-host--hidden,
.mountain-background-image--hidden {
    display: none;
}

.main-layout-app-content {
    margin: 0;
    padding: 0 !important;
    min-height: 100vh;
}

.mountain-background-image {
    background-image: url('images/mountain_3-1-1.png');
    background-size: cover;
    background-repeat: no-repeat;
    height: min(100%, 150vh);
    width: 100%;
    opacity: 0.25;
    position: absolute;
    top: 0;
    z-index: -1000;
    pointer-events: none;
    touch-action: none;
}

.no-grow {
    flex-grow: 0;
}

.pass-through {
    pointer-events: none;
    touch-action: none;
}

.overlay-element {
    pointer-events: auto;
    touch-action: auto;
}

.w-50 {
    width: 50%;
}

.w-60 {
    width: 60%;
}

.w-70 {
    width: 70%;
}

.w-80 {
    width: 80%;
}

.w-90 {
    width: 90%;
}

.w-100 {
    width: 100%;
}

.mw-100 {
    max-width: 100px;
}

.mw-200 {
    max-width: 200px;
}

.mw-300 {
    max-width: 300px;
}

.mw-400 {
    max-width: 400px;
}

.mw-500 {
    max-width: 500px;
}

.mw-600 {
    max-width: 600px;
}

.mw-700 {
    max-width: 600px;
}

.mw-800 {
    max-width: 600px;
}

.p-4 {
    padding: 1rem;
}

.p-8 {
    padding: 2rem;
}

/* Markup card (StyleSets.Card). Matches FarsightCardStyles.uss base .card. */
.card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 1;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid rgba(48, 54, 61, 1);
    background-color: rgba(31, 35, 39, 0.95);
}
