@font-face {
    font-family: "OCR-A";
    src: url("OCRA.woff2") format("woff2");
    font-display: swap;
}
@font-face {
    font-family: "Noto Mono";
    src: url("noto-mono.woff2") format("woff2");
}

:root {
    --bg: #131113;
    --bg-light: hsla(280, 20%, 40%, 0.11);
    --panel: #1e1b23;
    --main-panel: hsla(270, 25%, 35%, 0.11);
    --text: hsl(250, 10%, 90%);
    --muted: #8b91a0;
    --dlhover: hsl(280, 25%, 40%);

    --source: #ffffff;
    --discord: #5865f2;

    --line: hsl(270, 25%, 30%);
    --navlink: hsl(0, 0%, 90%);
    --light: hsl(290, 55%, 75%);
    --link-muted: hsl(280, 15%, 45%);
    --link-sub: hsl(278, 30%, 60%);

    --logo-size: 1.3em;
}

* {
    box-sizing: border-box;
}
[hidden] {
    display: none !important;
}
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Noto Mono";
}

.main-page {
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
}

.shader-loading {
    position: fixed;
    z-index: 10;
    inset: 0;
    background: #000;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 300ms ease-out;
}

.shader-loading.is-ready {
    opacity: 0;
    pointer-events: none;
}

.cloud-shader {
    position: fixed;
    z-index: -1;
    top: -12vmax;
    left: -12vmax;
    display: block;
    width: calc(100% + 24vmax);
    height: calc(100% + 24vmax);
    pointer-events: none;
    opacity: 0.64;
    transform-origin: center;
    will-change: transform;
}

@keyframes cloud-shader-drift {
    from {
        transform: translate3d(-1.5%, -1%, 0) scale(1.02);
    }
    to {
        transform: translate3d(1.5%, 1%, 0) scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .shader-loading {
        transition: none;
    }

    .cloud-shader {
        animation: none;
    }
}

code {
    color: var(--light);
    font-family: "Noto Mono", monospace;
    font-size: inherit;
}

a       { color: var(--light); }
a:hover { color: var(--text); }

.container {
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
    margin: 5vh 0 2vh;
    scrollbar-color: var(--text) var(--panel);
}

.main-content {
    text-align: center;
    min-height: 80vh;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding: 3rem 1.25rem;
    background: var(--main-panel);
}

.main-content-views {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    width: 100%;
    max-width: 900px;
    height: calc(80vh - 6rem);
    margin: auto;
}

.main-content-views > div {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    min-width: 0;
    min-height: 0;
}

.main-content-views > div::after {
    content: "";
    flex: 0 0 2rem;
}

.main-content-views > div.is-entering,
.main-content-views > div.is-leaving {
    opacity: 0;
}

.main-content-logo {
    margin: 2em auto;
    width: 100%;
    max-width: 576px;
}

.home-download {
    margin-bottom: 0.5em;
}

.home-download a {
    color: var(--light);
    font-size: 1.2em;
}
.home-download a:hover {
    color: var(--text);
}

.home-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1em auto 1em;
}

.home-gallery a {
    overflow: hidden;
    border: 1px solid var(--line);
}

.home-gallery a:focus-visible {
    outline: 2px solid var(--light);
    outline-offset: 0.2rem;
}

.home-gallery img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.download-intro {
    max-width: 58ch;
    margin: 0 auto 2em;
    line-height: 1.7;
}

.download-options {
    display: grid;
    gap: 0.85rem;
    text-align: left;
    margin-bottom: 0.5em;
}

.download-option {
    display: grid;
    grid-template-columns: minmax(14rem, 0.78fr) minmax(0, 1.1fr);
    min-width: 0;
    background: var(--bg);
    min-height: 10rem;
}

.download-platform {
    display: flex;
    align-items: baseline;
    gap: 0.75em;
    white-space: nowrap;
}

.download-icon {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    width: 1.5em;
    height: 1.5em;
    transform: translateY(-50%);
}

.download-button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.25rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: inset 0 0 1.2em -0.6em var(--light);
}

.download-button:hover,
.download-button:focus-visible,
.map-option:has(.map-preview:hover) .download-button,
.map-option:has(.map-preview:focus-visible) .download-button {
    background: var(--dlhover);
}

.download-action {
    color: var(--light);
    font-size: 0.8em;
}

.download-button strong {
    font-size: 1.45em;
    font-weight: normal;
    font: 1.5em "OCR-A";
}

.download-meta {
    color: var(--muted);
    font-size: 0.78em;
}

.download-instructions {
    padding: 1.0rem 1.5rem;
}

.download-instructions h2,
.download-notes h2 {
    margin: 0 0 0.9em;
}

.download-instructions p {
    margin: 0.6em 0 0;
    line-height: 1.7;
}

.download-notes {
    margin: 2.5em auto 0;
    max-width: 58ch;
}

.download-notes p {
    line-height: 1.7;
}

.map-option {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    background: var(--bg);
}

.map-option .download-button,
.map-preview {
    min-height: 10rem;
}

.map-preview {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
}

.map-preview:focus-visible {
    outline: 2px solid var(--light);
    outline-offset: -2px;
}

.map-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 700px) {
    .main {
        margin: clamp(1.5rem, 5vh, 3rem) 0 2rem;
    }

    .main-content {
        min-height: 0;
        max-height: none;
        padding: 2rem 1rem;
    }

    .main-content-views {
        height: calc(100svh - 4rem);
    }

    .home-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .download-option {
        grid-template-columns: 1fr;
    }

    .download-button {
        min-height: 8rem;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .map-option {
        grid-template-columns: 1fr;
    }

    .map-option .download-button,
    .map-preview {
        min-height: 8rem;
    }

    .map-preview {
        border-left: 0;
    }

}

h1 {
    font: 1.85em "OCR-A";
    line-height: 1.1;
    margin: 2em 0 1.25em;
    text-shadow: hsl(0, 0%, 95%) 0 0 0.08em;
}
h2 {
    font: 1em "OCR-A";
    margin: 2em 0 1.25em;
    text-shadow: hsl(0, 0%, 95%) 0 0 0.08em;
}
h3 {
    font: 0.8em "OCR-A";
    margin: 2em 0 2em;
    text-shadow: hsl(0, 0%, 95%) 0 0 0.08em;
}
p {
    font-size: 0.87em;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding: 0.7em 0;
    border-bottom: 2px solid var(--line);
    font: max(0.8em, 1.6vh) "OCR-A";
}

.nav a:hover {
    text-decoration: underline;
}

.nav-link {
    color: var(--navlink);
    text-decoration: none;
}

.nav-link::before {
    content: "";
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    background: var(--bg);
    border-radius: 0.26em;
    margin-right: 0.4em;
    box-shadow: 0 0 0.2em 0.12em var(--light);
}

.nav-icon-link {
    color: var(--navlink);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-icon-link .blur {
    filter: blur(1.2px);
    width: var(--logo-size);
    height: var(--logo-size);
}

.nav-icon-link .logo {
    margin-left: calc(var(--logo-size) * -1);
    margin-right: 0.4em;
    width: var(--logo-size);
    height: var(--logo-size);
}

@media (max-width: 700px) {
    .nav {
        width: min(calc(100% - 2rem), 32rem);
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem 0.5rem;
        padding: 0.7rem 0.5rem;
    }

    .nav-link,
    .nav-icon-link {
        min-width: 0;
        justify-content: center;
    }

    .nav-link {
        display: flex;
        align-items: center;
    }
}

@media (max-width: 380px) {
    .nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

footer {
    text-align: center;
    color: hsl(240, 10%, 50%);
    font-size: 1.1vh;
    margin: 0.8em 0 0.2em;
}

.docs-body {
    display: flex;
    flex-direction: column;
}

.docs-page {
    width: min(1100px, calc(100% - 2rem));
    margin: clamp(0.5rem, 7vh, 1rem) auto;
    background: var(--panel);
    border: 1px solid var(--line);
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

.docs-logo {
    display: block;
    width: min(8rem, 35vw);
    margin: 1.5rem auto 0.3em;
}

.docs-logo img {
    display: block;
    width: 100%;
}

.docs-layout {
    display: grid;
    flex: 1 0 auto;
    grid-template-columns: 15rem minmax(0, 1fr);
}

.docs-sidebar {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    border-right: 1px solid var(--line);
}

.docs-sidebar .docs-tree-root {
    display: inline-block;
    padding: 0.45rem 0.5rem;
    margin-left: -0.45rem;
    margin-bottom: 0.35rem;
    font: 1em "OCR-A";
    line-height: 1.2;
    text-decoration: none;
}

.docs-sidebar .docs-tree-root:hover,
.docs-sidebar .docs-tree-root:focus-visible {
    color: var(--text);
    text-decoration: underline;
    background: var(--bg-light);
}

.docs-sidebar .docs-tree-root[aria-current="page"] {
    color: var(--light);
    background: var(--bg);
}

.docs-sidebar nav {
    position: relative;
    display: grid;
    gap: 0.25rem;
    padding-left: 1rem;
    background: linear-gradient(var(--line), var(--line)) 0.3rem 0 / 1px calc(100% - 0.9rem) no-repeat;
}

.docs-tree-nav ul {
    display: grid;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.docs-tree-nav ul ul {
    margin-top: 0.5rem;
    padding-left: 0.8rem;
}

.docs-tree-nav li {
    min-width: 0;
}

.docs-nav-group {
    display: block;
    padding: 0.5rem 0.7rem;
    color: var(--muted);
    font-size: 0.78em;
}

.docs-sidebar nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0.3rem;
    width: 1px;
    height: var(--docs-tree-active-height, 0px);
    background: var(--light);
    pointer-events: none;
    z-index: 1;
}

.docs-sidebar nav::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0.3rem;
    width: 1px;
    height: var(--docs-tree-hover-height, 0px);
    background: var(--text);
    pointer-events: none;
    z-index: 2;
}

.docs-sidebar a {
    position: relative;
    padding: 0.5rem 0.7rem;
    color: var(--muted);
    font-size: 0.78em;
    text-decoration: none;
}

.docs-sidebar a:hover {
    color: var(--text);
    background: var(--bg-light);
}


.docs-tree-nav a {
    display: block;
}

.docs-sidebar nav a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(-0.7rem - var(--docs-tree-indent, 0px));
    width: calc(0.7rem + var(--docs-tree-indent, 0px));
    height: 1px;
    background: var(--line);
}

.docs-file-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.4em;
    vertical-align: -0.2em;
}

.docs-home {
    display: block;
    margin-top: auto;
    margin-bottom: -0.5rem;
    padding-top: 1.5rem;
    color: var(--muted);
    font: 0.78em "OCR-A";
    text-decoration: none;
}

.docs-home:hover,
.docs-home:focus-visible {
    color: var(--text);
    text-decoration: underline;
}

.docs-sidebar a:focus-visible,
.docs-sidebar a[aria-current="page"] {
    color: var(--light);
    background: var(--bg);
}

.docs-sidebar nav a[aria-current="page"]::before {
    background: var(--light);
}

.docs-sidebar nav .docs-heading-nav a::before {
    display: none;
}

.docs-sidebar a:hover::before,
.docs-sidebar a:focus-visible::before {
    background: var(--text);
}

.docs-content {
    min-width: 0;
    padding: 1.5rem 1rem;
    text-align: left;
}

.docs-content h1 {
    margin-top: 0.25rem;
}

.docs-content h2 {
    font-size: 1.1em;
    margin-top: 2rem;
}

.docs-content h1[id],
.docs-content h2[id],
.docs-content h3[id],
.docs-content h4[id],
.docs-content h5[id],
.docs-content h6[id] {
    scroll-margin-top: 1rem;
}

.docs-content .docs-heading-link {
    color: inherit;
    text-decoration: none;
}

.docs-content .docs-heading-link:hover,
.docs-content .docs-heading-link:focus-visible {
    color: inherit;
    text-decoration: none;
}

.docs-content .docs-heading-target {
    color: var(--muted);
    opacity: 0;
    transition: opacity 0.15s ease;
    font-family: "Noto Mono";
}

.docs-heading-link:hover .docs-heading-target,
.docs-heading-link:focus-visible .docs-heading-target {
    opacity: 1;
}

.docs-path {
    display: flex;
    align-items: baseline;
    gap: 0.35em;
    font: 1.1em "OCR-A";
    letter-spacing: -0.04em;
}

.docs-path-root {
    color: var(--light) !important;
    text-decoration: none;
    text-shadow: var(--light) 0 0 0.08em;
}
.docs-path-root:hover {
    text-decoration: underline;
}


.docs-path-separator {
    color: var(--line);
    text-shadow: var(--line) 0 0 0.08em;
}

.docs-path strong {
    color: var(--text);
    font-weight: normal;
    text-shadow: var(--text) 0 0 0.08em;
}

.docs-content p,
.docs-content li {
    font-size: 0.82em;
    line-height: 1.5;
}

.docs-content ul {
    list-style: none;
    padding-left: 1.5rem;
}

.docs-content ul > li {
    position: relative;
}

.docs-content ul > li::before {
    content: "-";
    position: absolute;
    left: -1rem;
    color: var(--muted);
}

.docs-content ol {
    padding-left: 1.5rem;
}

.docs-content li + li {
    margin-top: 0.2rem;
}

.docs-content pre {
    max-width: 70ch;
    overflow-x: auto;
    margin: 1.5rem 0;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    font: 0.78em/1.7 "Noto Mono", monospace;
}

.docs-content pre code {
    color: inherit;
    font-size: inherit;
}

.docs-table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg);
    text-align: left;
}

.docs-table th,
.docs-table td {
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    vertical-align: top;
    line-height: 1.6;
}

.docs-table thead {
    color: var(--muted);
    font: 0.72em "OCR-A";
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.docs-table tbody th {
    min-width: 12rem;
    color: var(--text);
    white-space: nowrap;
    font-size: 0.82em;
}

.docs-table tbody td {
    color: var(--muted);
    font-size: 0.82em;
}

.docs-content a {
    color: var(--light);
}

.docs-heading-nav {
    margin-top: 0.15rem !important;
    padding-left: 0.8rem !important;
}

.docs-heading-nav a {
    padding: 0.25rem 0.7rem;
    color: var(--link-sub);
    font-size: 0.7em;
    line-height: 1.4;
}

.docs-card-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.docs-card {
    display: block;
    padding: 1rem 1.2rem;
    background: var(--bg);
    border: 1px solid var(--line);
    text-decoration: none;
}

.docs-card:hover,
.docs-card:focus-visible {
    background: var(--dlhover);
}

.docs-card strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text);
    font: 1em "OCR-A";
}

.docs-card span {
    color: var(--muted);
    font-size: 0.82em;
}

.docs-back {
    display: inline-block;
    margin-top: 3rem;
    font: 0.8em "OCR-A";
    text-decoration: none;
}
.docs-back:hover {
    text-decoration: underline;
}


@media (max-width: 700px) {
    .docs-page {
        width: 100%;
        margin: 0;
        border-right: 0;
        border-left: 0;
    }

    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .docs-sidebar nav {
        grid-template-columns: 1fr;
    }
}
