/* ExplorationBase UI — calm desktop utility / modding archive aesthetic. */
:root {
    /* Local mapping of the supplied Material theme; no Material library is loaded. */
    --md-primary: rgb(171 199 255);
    --md-on-primary: rgb(13 47 95);
    --md-primary-container: rgb(41 70 119);
    --md-on-primary-container: rgb(215 226 255);
    --md-secondary: rgb(190 198 220);
    --md-on-secondary: rgb(40 48 65);
    --md-secondary-container: rgb(62 71 89);
    --md-on-secondary-container: rgb(218 226 249);
    --md-tertiary: rgb(221 188 224);
    --md-on-tertiary: rgb(63 40 68);
    --md-tertiary-container: rgb(87 62 91);
    --md-on-tertiary-container: rgb(250 216 253);
    --md-error: rgb(255 180 171);
    --md-on-error: rgb(105 0 5);
    --md-error-container: rgb(147 0 10);
    --md-on-error-container: rgb(255 218 214);
    --md-background: rgb(17 19 24);
    --md-on-background: rgb(226 226 233);
    --md-surface: rgb(17 19 24);
    --md-on-surface: rgb(226 226 233);
    --md-surface-variant: rgb(68 71 78);
    --md-on-surface-variant: rgb(196 198 208);
    --md-outline: rgb(142 144 153);
    --md-outline-variant: rgb(68 71 78);
    --md-surface-container-lowest: rgb(12 14 19);
    --md-surface-container-low: rgb(26 28 32);
    --md-surface-container: rgb(30 32 37);
    --md-surface-container-high: rgb(40 42 47);
    --md-surface-container-highest: rgb(51 53 58);
    --md-image-sky: rgb(142 155 184);
    --md-image-horizon: rgb(215 212 220);
    --md-image-ground: rgb(91 96 116);
    --md-image-mountain: rgb(89 104 136);
    --md-image-mountain-deep: rgb(75 88 117);

    --bg: var(--md-background);
    --bg-soft: var(--md-surface-container-low);
    --panel: var(--md-surface-container);
    --panel-raised: var(--md-surface-container-high);
    --text: var(--md-on-background);
    --muted: var(--md-on-surface-variant);
    --muted-strong: var(--md-secondary);
    --line: var(--md-outline-variant);
    --line-strong: var(--md-outline);
    --accent: var(--md-primary);
    --accent-strong: var(--md-primary-container);
    --accent-ink: var(--md-on-primary);
    --info: var(--md-secondary);
    --success: var(--md-tertiary);
    --success-container: var(--md-tertiary-container);
    --error: var(--md-error);
    --error-container: var(--md-error-container);
    --max: 1160px;
    --radius: 14px;
    --shadow: 0 18px 42px rgb(0 0 0 / 34%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}
body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: 260px;
    pointer-events: none;
    background: var(--bg);
    /*background: radial-gradient(circle at 78% -30%, rgb(171 199 255 / 18%), transparent 62%);*/
    z-index: -1;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select { font: inherit; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgb(17 19 24 / 92%);
    border-bottom: 1px solid rgb(68 71 78 / 88%);
    backdrop-filter: blur(18px);
}
.nav { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.025em; white-space: nowrap; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 900;
}
.muted { color: var(--muted); font-weight: 500; }
.site-menu { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.site-menu a, .nav-button {
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 8px 11px;
    font-size: 14px;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.site-menu a:hover, .site-menu a.active { color: var(--text); background: var(--panel); border-color: var(--line); }
.nav-button { color: var(--text); border-color: var(--line-strong); margin-left: 8px; }
.nav-button:hover { border-color: var(--accent); color: var(--accent); }
.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel);
    cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--text); }

.hero { padding: 96px 0 84px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 74px; align-items: center; }
.eyebrow { margin-bottom: 12px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .17em; }
h1, h2, h3 { margin-top: 0; font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.08; letter-spacing: -.035em; }
h1 { margin-bottom: 24px; font-size: clamp(48px, 7vw, 82px); letter-spacing: -.065em; }
h1 span { color: var(--accent); }
h2 { margin-bottom: 0; font-size: clamp(30px, 4vw, 42px); }
.lead { max-width: 680px; margin: 0; color: var(--muted-strong); font-size: 18px; line-height: 1.55; }
.narrow { max-width: 680px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 750;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--accent); color: var(--accent-ink); }
.button.primary:hover { background: var(--accent-strong); color: var(--accent) }
.button.ghost { border-color: var(--line-strong); color: var(--text); }
.button.ghost:hover { border-color: var(--accent); color: var(--accent); }
.button.small { min-height: 38px; padding: 8px 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 40px; }
.facts div { display: flex; flex-direction: column; }
.facts b { font: 700 28px/1 "Space Grotesk", sans-serif; }
.facts span { margin-top: 6px; color: var(--muted); font-size: 12px; }

.hero-card, .feature-card, .card, .mod-card, .side-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 8px 24px rgb(0 0 0 / 10%);
}
.hero-card { box-shadow: var(--shadow); }
/*
.pixel-scene { position: relative; height: 330px; overflow: hidden; background: linear-gradient(var(--md-image-sky), var(--md-image-horizon) 58%, var(--md-image-ground)); }
.sun { position: absolute; top: 50px; right: 70px; width: 100px; height: 100px; border-radius: 50%; background: var(--md-tertiary); }
.mountain { position: absolute; bottom: 60px; width: 0; height: 0; border-right: 150px solid transparent; border-bottom: 210px solid var(--md-secondary-container); border-left: 150px solid transparent; }
.m1 { left: -70px; }
.m2 { right: -80px; border-bottom-color: var(--md-secondary-container); }
.ground { position: absolute; right: 0; bottom: 0; left: 0; height: 85px; background: var(--md-surface-container-highest); }
.cube { position: absolute; bottom: 55px; width: 58px; height: 58px; border: 2px solid var(--md-surface-variant); background: var(--md-secondary); transform: rotate(45deg); }
.c1 { left: 28%; }
.c2 { bottom: 82px; left: 53%; background: var(--md-on-primary-container); }
.c3 { bottom: 45px; left: 70%; background: var(--md-primary-container); }
*/
.pixel-scene { position: relative; height: 330px; overflow: hidden; background: linear-gradient(#8abcc5, #d0d5aa 58%, #688052); }
.sun { position: absolute; top: 50px; right: 70px; width: 100px; height: 100px; border-radius: 50%; background: #f2d97b; }
.mountain { position: absolute; bottom: 60px; width: 0; height: 0; border-right: 150px solid transparent; border-bottom: 210px solid #507056; border-left: 150px solid transparent; }
.m1 { left: -70px; }
.m2 { right: -80px; border-bottom-color: #3f5f49; }
.ground { position: absolute; right: 0; bottom: 0; left: 0; height: 85px; background: #3d5c39; }
.cube { position: absolute; bottom: 55px; width: 58px; height: 58px; border: 2px solid #2c4a32; background: #7fa15b; transform: rotate(45deg); }
.c1 { left: 28%; }
.c2 { bottom: 82px; left: 53%; background: #9ab76c; }
.c3 { bottom: 45px; left: 70%; background: #688c57; }
.hero-card-body { padding: 22px 24px 24px; }
.hero-card-body h3 { margin: 10px 0 5px; font-size: 25px; }
.hero-card-body p { margin: 0; color: var(--muted); font-size: 14px; }

.section { padding: 78px 0; }
.section.alt { border-block: 1px solid var(--line); background: var(--bg-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.text-link { color: var(--accent); font-size: 14px; font-weight: 750; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.feature-card { display: grid; grid-template-columns: .85fr 1.15fr; }
.feature-art { min-height: 310px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 30%, var(--md-primary-container), var(--md-surface-container-lowest) 70%); }
.feature-art img, .project-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.feature-icon { color: var(--accent); font: 110px "Space Grotesk", sans-serif; }
.feature-copy { padding: 40px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { display: inline-block; padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--md-on-surface-variant); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.tag.green { border-color: var(--md-primary); background: var(--md-primary-container); color: var(--md-on-primary-container); }
.feature-copy h3 { margin: 18px 0 12px; font-size: 40px; }
.feature-copy p { max-width: 600px; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 24px; margin: 24px 0; color: var(--muted); font-size: 12px; }
.meta b { color: var(--text); }
.cards { display: grid; gap: 16px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { padding: 28px; }
.card-icon { color: var(--accent); font-size: 28px; line-height: 1; }
.card h3 { margin: 15px 0 8px; font-size: 22px; }
.card p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.info-grid p, .content-grid section p, .prose p { color: var(--muted-strong); }

footer { border-top: 1px solid var(--line); padding: 35px 0; }
.footer { display: flex; justify-content: space-between; gap: 25px; color: var(--muted); font-size: 13px; }
.footer p { margin: 4px 0; }
.footer div:last-child { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 20px; }
.footer a:hover { color: var(--text); }

.page { padding: 70px 0 100px; }
.page h1 { margin-bottom: 18px; font-size: clamp(48px, 6vw, 64px); }
.filters { display: flex; gap: 10px; margin: 34px 0 28px; }
.filters input, .filters select {
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: 0;
    background: var(--panel);
    color: var(--text);
    padding: 10px 14px;
}
.filters input { flex: 1; min-width: 0; }
.filters input:focus, .filters select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(171 199 255 / 16%); }
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mod-card { transition: transform .16s ease, border-color .16s ease; }
.mod-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.mod-cover { display: grid; place-items: center; height: 170px; color: var(--text); font: 800 52px "Space Grotesk", sans-serif; }
.mod-cover img { display: block; width: 100%; height: 170px; object-fit: cover; object-position: center; }
.gradient-a { background: radial-gradient(circle at 70% 30%, var(--md-primary), var(--md-primary-container) 70%); }
.gradient-b { background: linear-gradient(135deg, var(--md-tertiary), var(--md-tertiary-container)); }
.gradient-c { background: linear-gradient(135deg, var(--md-secondary), var(--md-secondary-container)); }
.mod-body { padding: 22px; }
.mod-body h2 { margin: 15px 0 8px; font-size: 24px; }
.mod-body p { min-height: 48px; margin: 0; color: var(--muted); font-size: 14px; }
.mod-meta { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12px; }
.empty { padding: 28px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); }

.back { display: inline-block; margin-bottom: 30px; color: var(--accent); font-size: 14px; font-weight: 700; }
.project-head { display: grid; grid-template-columns: 1fr .6fr; gap: 50px; align-items: center; margin-bottom: 70px; }
.project-head h1 { margin-top: 22px; }
.project-art { height: 300px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle, var(--md-primary), var(--md-primary-container) 68%); color: var(--md-on-primary); font: 800 130px "Space Grotesk", sans-serif; }
.content-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 70px; }
.content-grid section h2 { margin: 42px 0 15px; font-size: 31px; }
.content-grid section h2:first-child { margin-top: 0; }
.checklist { padding: 0; list-style: none; }
.checklist li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist li::before { margin-right: 10px; color: var(--accent); content: "✓"; }
.side-card { position: sticky; top: 100px; height: max-content; padding: 24px; }
.side-card h3 { margin-top: 0; }
.side-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; }
.side-card dt { color: var(--muted); }
.side-card dd { margin: 0; text-align: right; }
.side-card hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.download { display: block; margin-bottom: 10px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); padding: 12px; text-align: center; font-weight: 800; }
.download:hover { background: var(--accent-strong); color: var(--accent) }
.side-card small { color: var(--muted); }
.changelog div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.changelog span { color: var(--muted); }
.prose { max-width: 820px; }
.prose h2 { margin-top: 50px; font-size: 31px; }
.prose p { margin-top: 0; }

@media (max-width: 800px) {
    .wrap { width: min(var(--max), calc(100% - 32px)); }
    .nav { gap: 12px; }
    .site-menu { display: none; position: absolute; top: 100%; right: 16px; left: 16px; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: rgb(30 32 37 / 98%); box-shadow: var(--shadow); margin-top: 16px; }
    .site-menu.is-open { display: flex; flex-direction: column; gap: 2px; }
    .site-menu a { padding: 12px 14px; }
    .nav-button { /*margin-left: auto;*/ display: none; }
    .menu-toggle { display: block; margin-left: auto; }
    .hero { padding-top: 56px; }
    .hero-grid, .feature-card, .info-grid, .project-head, .content-grid { grid-template-columns: 1fr; }
    .hero-card { display: none; }
    .cards.three, .mod-grid { grid-template-columns: 1fr; }
    .section-head { align-items: flex-start; flex-direction: column; gap: 15px; }
    .feature-copy { padding: 26px; }
    .feature-copy h3 { font-size: 31px; }
    .project-art { height: 230px; }
    .side-card { position: static; }
    .filters { flex-direction: column; }
    .footer { flex-direction: column; }
    .facts { gap: 20px; }
}
@media (max-width: 430px) {
    .wrap { width: calc(100% - 32px); }
    .nav { min-height: 64px; }
    .site-menu { top: 64px; right: 10px; left: 10px; }
    .hero { padding-top: 45px; }
    .hero h1 { font-size: clamp(42px, 13vw, 60px); }
    .page { padding-top: 50px; }
    .nav-button { display: none; }
    .button { width: 100%; }
    .actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }

/* Keep the standalone mirror chooser visually aligned with the main archive. */
body.download-page { background: var(--bg); }
.download-page .wrap { width: min(720px, calc(100% - 32px)); padding: 52px 0 36px; }
.download-page .brand { justify-content: center; margin-bottom: 38px; }
.download-page .brand-mark { color: var(--accent-ink); }
.download-page .download-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.download-page .hero { padding: 8px 8px 24px; text-align: center; }
.download-page .hero h1 { margin-bottom: 8px; font-size: clamp(25px, 5vw, 36px); letter-spacing: -.035em; }
.download-page .hero p { margin: 0; color: var(--muted); }
.download-page .meta { justify-content: center; margin-top: 17px; }
.download-page .pill { border-color: var(--line); color: var(--muted); }
.download-page .mirrors { display: grid; gap: 10px; margin-top: 5px; }
.download-page .mirror { display: flex; align-items: center; gap: 15px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-raised); transition: transform .16s ease, border-color .16s ease; }
.download-page .mirror:hover { transform: translateY(-1px); border-color: var(--accent); }
.download-page .icon { display: grid; flex: 0 0 43px; place-items: center; width: 43px; height: 43px; border-radius: 10px; background: var(--md-primary-container); color: var(--md-on-primary-container); font-size: 14px; font-weight: 800; }
.download-page .info { min-width: 0; flex: 1; }
.download-page .name { font-size: 15px; font-weight: 700; }
.download-page .sub { margin-top: 3px; color: var(--muted); font-size: 13px; }
.download-page .arrow { color: var(--muted); font-size: 20px; }
.download-page .footer { justify-content: center; margin-top: 22px; text-align: center; }
.download-page .error { padding: 20px; border: 1px solid var(--md-error); border-radius: 10px; background: var(--md-error-container); color: var(--md-on-error-container); }
@media (max-width: 520px) {
    .download-page .wrap { width: min(100% - 20px, 720px); padding-top: 28px; }
    .download-page .download-card { padding: 20px; }
    .download-page .brand { margin-bottom: 25px; }
    .download-page .mirror { padding: 13px; }
    .download-page .icon { width: 40px; height: 40px; flex-basis: 40px; }
}

/* Web Awesome-compatible primitives without requiring a network-loaded component runtime. */
.wa-button { border-radius: 9px; }
.wa-button::part(base) { font-weight: 750; }
.wa-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
