/* Self-hosted fonts (latin subset), SIL Open Font License: see assets/fonts/licenses */
@font-face{font-family:'Alegreya Sans';font-style:italic;font-weight:400;font-display:swap;src:url('../fonts/alegreya-sans-400-italic.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Alegreya Sans';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/alegreya-sans-400.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Alegreya Sans';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/alegreya-sans-500.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Alegreya Sans';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/alegreya-sans-700.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Grenze';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/grenze-500.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Grenze';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/grenze-500.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Grenze Gotisch';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/grenze-gotisch-700.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/jetbrains-mono-400.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/jetbrains-mono-400.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* Ungodly Reignfall install guide by StixsworldHD (StixsmasterHD4k)
   Palette taken from the game: castle stone, heraldic banner blue, crown gold, the ember red of the logo. */
:root {
  --stone: #1a2029; --stone-2: #212833; --slate: #2a333f; --rampart: #3b4856; --ink: #11161d;
  --vellum: #ece5d8; --vellum-dim: #bdb6aa; --mist: #9aa5b1;
  --gold: #e0b245; --gold-deep: #a97b22; --gold-pale: #f3d98e;
  --banner: #23589f; --banner-deep: #173d72; --banner-light: #93bdf2;
  --ember: #d0503f; --moss: #7fb874;
  --font-body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --font-head: "Grenze", Georgia, "Times New Roman", serif;
  --font-display: "Grenze Gotisch", "Grenze", Georgia, serif;
  --font-mono: "JetBrains Mono", Consolas, "Cascadia Mono", monospace;
  --measure: 35rem; --wide: 880px; --header-h: 66px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); }
body { margin: 0; background: var(--stone); color: var(--vellum); font: 400 1.125rem/1.6 var(--font-body); font-kerning: normal; }
img, svg { max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: var(--banner-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-pale); }
:focus-visible { outline: 2px solid var(--gold-pale); outline-offset: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; padding: 8px 14px; border-radius: 4px; background: var(--gold); color: #1d1406; font-weight: 700; }
.skip:focus { top: 12px; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; color: var(--vellum); margin: 0 0 .55em; text-wrap: balance; }
h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 4.6vw, 3.5rem); color: var(--gold); letter-spacing: .005em; }
h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
h3 { font-size: 1.35rem; }
p, ul, ol, dl, pre, figure { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin: .3rem 0; }
li::marker { color: var(--gold-deep); }
strong { color: #fff6e3; font-weight: 700; }
code, kbd, pre { font-family: var(--font-mono); }
code { font-size: .84em; padding: .08em .35em; border: 1px solid var(--rampart); border-radius: 3px; background: var(--slate); overflow-wrap: anywhere; }
kbd { display: inline-block; min-width: 2em; padding: .05em .45em; border: 1px solid var(--gold-deep); border-bottom-width: 3px; border-radius: 5px; background: var(--stone-2); color: var(--gold-pale); font-size: .82em; font-weight: 600; text-align: center; line-height: 1.5; }
.muted { color: var(--mist); }
.lead { font-size: 1.25rem; color: var(--vellum-dim); max-width: var(--measure); }
:where(.page-head, .sec, .step-body, .home-body, .issue-body) > :where(p, ul, ol) { max-width: var(--measure); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(21, 26, 34, .96); border-bottom: 1px solid var(--rampart); box-shadow: 0 1px 0 rgba(224, 178, 69, .16); }
@supports (backdrop-filter: blur(8px)) { .site-head { background: rgba(21, 26, 34, .95); backdrop-filter: blur(8px); } }
.site-head-in { max-width: 1280px; margin: 0 auto; padding: 0 24px; min-height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--vellum); text-decoration: none; flex: none; }
.brand-crest { width: 30px; height: 36px; color: var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; color: var(--gold); }
.brand-sub { font-size: .82rem; color: var(--mist); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 2px; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: 9px 9px 7px; border-bottom: 2px solid transparent; color: var(--vellum-dim); font-family: var(--font-head); font-weight: 500; font-size: 1.04rem; text-decoration: none; }
.site-nav a:hover { color: var(--vellum); }
.site-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.nav-toggle { margin-left: auto; padding: 8px 14px; border: 1px solid var(--gold-deep); border-radius: 5px; background: transparent; color: var(--gold-pale); font: 700 1rem/1 var(--font-head); cursor: pointer; }
@media (min-width: 1181px) { .nav-toggle { display: none !important; } }
@media (max-width: 1180px) {
  .site-head-in { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .site-nav { margin-left: 0; width: 100%; }
  .site-nav ul { justify-content: flex-start; }
  html.js .site-nav { display: none; }
  html.js .site-nav.is-open { display: block; padding-bottom: 6px; }
}

/* ---------- layout ---------- */
.layout { max-width: 1280px; margin: 0 auto; padding: 40px 24px 80px; display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 56px; align-items: start; }
.main { min-width: 0; outline: none; }
.main--wide { max-width: 1280px; margin: 0 auto; padding: 0 24px 80px; }
.page-head { margin: 0 0 2.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--rampart); max-width: var(--wide); }
.sec { margin: 0 0 3.2rem; }
.sec > h2 { padding-bottom: .4rem; border-bottom: 1px solid var(--rampart); max-width: var(--wide); }
@media (max-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; } }

/* ---------- sidebar ---------- */
.side { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.side-box > summary { display: none; }
.side-title { margin: 0 0 .6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--gold); }
.toc { list-style: none; margin: 0 0 1.2rem; padding: 0; border-left: 1px solid var(--rampart); }
.toc li { margin: 0; }
.toc a { display: flex; gap: 10px; align-items: baseline; padding: 6px 8px 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--vellum-dim); font-size: 1rem; line-height: 1.3; text-decoration: none; }
.toc a:hover { color: var(--vellum); }
.toc a.is-active { border-left-color: var(--gold); color: var(--vellum); }
.toc-num { flex: none; display: inline-grid; place-items: center; width: 1.55em; height: 1.55em; border-radius: 50%; background: var(--banner-deep); color: var(--gold-pale); font: 700 .82rem/1 var(--font-head); }
.toc a.is-done .toc-num { background: var(--moss); color: #122010; }
.progress { margin: 0 0 1.4rem; }
.progress-bar { height: 6px; border-radius: 3px; background: var(--slate); overflow: hidden; }
.progress-bar span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); transition: width .3s ease; }
.progress p { margin: .45rem 0 0; font-size: .95rem; color: var(--mist); }
.linkish { padding: 0; border: 0; background: none; color: var(--banner-light); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 1000px) {
  .side { position: static; max-height: none; overflow: visible; padding: 0; }
  .side-box { padding: 0 14px; border: 1px solid var(--rampart); border-radius: 8px; background: var(--stone-2); }
  .side-box > summary { display: block; padding: 12px 0; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--gold); cursor: pointer; }
  .side-box[open] { padding-bottom: 14px; }
  .side-title { display: none; }
}

/* ---------- path setter ---------- */
.path-setter { padding: 12px; border: 1px solid var(--rampart); border-radius: 8px; background: var(--stone-2); }
.path-setter label { display: block; margin-bottom: 4px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.path-hint { margin: 0 0 8px; font-size: .92rem; line-height: 1.4; color: var(--mist); }
.path-input { width: 100%; padding: 8px 10px; border: 1px solid var(--rampart); border-radius: 5px; background: var(--stone); color: var(--vellum); font: 500 .82rem/1.4 var(--font-mono); }
.path-input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 2px rgba(224, 178, 69, .25); }
.path-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.path-msg { margin: .5rem 0 0; font-size: .92rem; line-height: 1.4; color: var(--moss); }
.path-msg:empty { display: none; }
.path-msg.is-warn { color: var(--gold); }
.path-msg.is-bad { color: #f39486; }
.path-setter--inline { max-width: var(--measure); margin: 0 0 1.3rem; }

/* ---------- steps (numbered pennants) ---------- */
.step { margin: 0 0 3.4rem; }
.step-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; margin-bottom: 1rem; max-width: var(--wide); }
.pennant { display: grid; place-items: start center; width: 46px; height: 62px; padding-top: 12px; color: var(--gold-pale); font: 700 1.55rem/1 var(--font-display);
  background: linear-gradient(180deg, var(--gold) 0 5px, transparent 5px), linear-gradient(180deg, #2f6fc2, var(--banner-deep));
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%); }
.step.is-done .pennant { background: linear-gradient(180deg, var(--gold) 0 5px, transparent 5px), linear-gradient(180deg, #5c9c52, #2c5a27); color: #f3ffe9; }
.step-title { margin: .45rem 0 0; }
.step-done { display: inline-flex; align-items: center; gap: 7px; margin-top: .6rem; color: var(--mist); font-size: .95rem; white-space: nowrap; cursor: pointer; }
.step-done input { width: 18px; height: 18px; accent-color: var(--moss); cursor: pointer; }
.step-body { padding-left: 62px; }
.tag { display: inline-block; margin-left: .35em; padding: .1em .55em; border: 1px solid var(--rampart); border-radius: 99px; color: var(--mist); font: 500 .74rem/1.4 var(--font-body); vertical-align: middle; white-space: nowrap; }
.tag--new { border-color: var(--moss); color: var(--moss); }
@media (max-width: 640px) {
  .step-body { padding-left: 0; }
  .step-head { grid-template-columns: auto minmax(0, 1fr); }
  .step-done { grid-column: 2; margin-top: 0; }
}

/* ---------- callouts ---------- */
.callout { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; max-width: calc(var(--measure) + 4rem); margin: 0 0 1.35rem; padding: 14px 16px; border: 1px solid var(--rampart); border-left: 4px solid var(--banner); border-radius: 6px; background: var(--stone-2); }
.callout-ico { width: 24px; height: 24px; margin-top: 2px; color: var(--banner-light); }
.callout-title { margin: 0 0 .3rem; font-family: var(--font-head); font-weight: 700; font-size: 1.14rem; }
.callout-body > :last-child { margin-bottom: 0; }
.callout--tip { border-left-color: var(--moss); } .callout--tip .callout-ico { color: var(--moss); }
.callout--warn { border-left-color: var(--gold); } .callout--warn .callout-ico { color: var(--gold); }
.callout--danger { border-left-color: var(--ember); background: rgba(208, 80, 63, .09); } .callout--danger .callout-ico { color: #f39486; }
.callout--check { border-left-color: var(--moss); background: rgba(127, 184, 116, .07); } .callout--check .callout-ico { color: var(--moss); }

/* ---------- code and paths ---------- */
.code { max-width: var(--wide); margin: 0 0 1.35rem; border: 1px solid var(--rampart); border-radius: 6px; background: var(--ink); overflow: hidden; }
.code-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 10px 6px 14px; border-bottom: 1px solid var(--rampart); color: var(--mist); font-size: .9rem; }
.code pre { margin: 0; padding: 14px 16px; overflow: auto; color: #e9e2d4; line-height: 1.55; tab-size: 4; }
.code pre code { padding: 0; border: 0; background: none; font-size: .83rem; white-space: pre; overflow-wrap: normal; }
.copy { flex: none; padding: 6px 11px; border: 1px solid var(--gold-deep); border-radius: 4px; background: transparent; color: var(--gold-pale); font: 700 .86rem/1 var(--font-body); cursor: pointer; }
.copy:hover { background: rgba(224, 178, 69, .12); }
.copy.is-done { border-color: var(--moss); color: var(--moss); }
.copy--small { padding: 4px 8px; font-size: .8rem; }
.copy-buffer { position: fixed; left: -9999px; top: 0; opacity: 0; }
.pathbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; max-width: var(--wide); margin: 0 0 1.25rem; padding: 10px 12px; border: 1px solid var(--rampart); border-radius: 6px; background: var(--ink); }
.pathbox-label { flex-basis: 100%; color: var(--mist); font-size: .92rem; }
.pathbox .gp { flex: 1 1 18rem; padding: 0; border: 0; background: none; font-size: .88rem; }
.gp { color: var(--gold-pale); }
.gp-root { color: inherit; }

/* ---------- screenshots ---------- */
.shot { max-width: var(--wide); margin: 0 0 1.9rem; }
.shot-link { position: relative; display: block; overflow: hidden; border: 1px solid var(--rampart); border-radius: 6px; background: #0c1016; cursor: zoom-in; }
.shot-link img { display: block; width: 100%; height: auto; }
.shot-link:hover { border-color: var(--gold-deep); }
.shot-badge { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid rgba(224, 178, 69, .5); border-radius: 4px; background: rgba(12, 16, 22, .88); color: var(--gold-pale); font-size: .84rem; line-height: 1.2; }
.shot-link:hover .shot-badge, .shot-link:focus-visible .shot-badge { background: var(--gold); color: #1d1406; }
.shot figcaption { max-width: 44rem; margin-top: .6rem; color: var(--vellum-dim); font-size: 1rem; line-height: 1.5; }
.shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: var(--wide); margin: 0 0 1.8rem; }
.shot-grid .shot { margin: 0; }
@media (max-width: 700px) { .shot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- tables, trees, facts ---------- */
.table-wrap { max-width: var(--wide); margin: 0 0 1.5rem; overflow-x: auto; border: 1px solid var(--rampart); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--rampart); text-align: left; vertical-align: top; }
thead th { background: var(--stone-2); color: var(--gold-pale); font-family: var(--font-head); font-weight: 700; }
tbody th { font-weight: 700; color: var(--vellum); }
tbody tr:last-child > * { border-bottom: 0; }
td.yes { color: var(--moss); font-weight: 700; } td.no { color: var(--mist); }
.tree-wrap { max-width: var(--wide); margin: 0 0 1.4rem; padding: 12px 16px; overflow-x: auto; border: 1px solid var(--rampart); border-radius: 6px; background: var(--ink); font: .86rem/1.5 var(--font-mono); }
.tree { list-style: none; margin: 0; padding: 0; }
.tree .tree { margin-left: 7px; padding-left: 20px; border-left: 1px dashed var(--rampart); }
.tree li { margin: 0; padding: 2px 0; }
.tree-row { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tree .ico { width: 16px; height: 16px; color: var(--mist); }
.tree-dir > .tree-row .ico { color: var(--gold); }
.tree-name { color: var(--vellum); }
.tree-size { color: var(--mist); }
.tree-note { color: var(--mist); font-family: var(--font-body); font-size: .98rem; white-space: normal; }
.is-new > .tree-row .tree-name { color: var(--gold-pale); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 18px; margin: 0 0 1.2rem; }
.facts dt { color: var(--mist); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.hash-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hash { padding: 0; border: 0; background: none; color: var(--gold-pale); font-size: .8rem; word-break: break-all; }

/* ---------- buttons, download cards ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid var(--gold-deep); border-radius: 5px; background: transparent; color: var(--gold-pale); font: 700 1.05rem/1 var(--font-head); text-decoration: none; cursor: pointer; }
.btn:hover { background: rgba(224, 178, 69, .1); color: var(--gold-pale); }
.btn-gold { border-color: #f0c75a; background: linear-gradient(180deg, #f1ca5f, #c8952e); color: #20160a; }
.btn-gold:hover { background: linear-gradient(180deg, #f7d77b, #d6a33d); color: #20160a; }
.btn-blue { border-color: #4f89d6; background: linear-gradient(180deg, #2f6fc2, var(--banner-deep)); color: #fff; }
.btn-blue:hover { background: linear-gradient(180deg, #3a7bd0, #1c4a88); color: #fff; }
.btn-small { padding: 7px 12px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1rem; }
.dl-card { max-width: var(--wide); margin: 0 0 2rem; overflow: hidden; border: 1px solid var(--rampart); border-radius: 8px; background: var(--stone-2); }
.dl-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; padding: 16px 20px; border-bottom: 1px solid var(--rampart); background: linear-gradient(180deg, rgba(35, 88, 159, .28), rgba(35, 88, 159, 0)); }
.dl-card-head h3 { margin: 0; }
.dl-size { color: var(--mist); font-size: .98rem; }
.dl-card-body { padding: 18px 20px 6px; }
.dl-card-body > p { max-width: var(--measure); }
.dl-note { color: var(--vellum-dim); font-size: 1rem; }
.dl-inside { margin: 0 0 .4rem; font-family: var(--font-head); font-weight: 700; }

/* ---------- troubleshooting accordions ---------- */
.issue { max-width: var(--wide); margin: 0 0 .8rem; border: 1px solid var(--rampart); border-radius: 6px; background: var(--stone-2); }
.issue > summary { display: flex; gap: 12px; align-items: baseline; padding: 14px 16px; list-style: none; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; line-height: 1.25; cursor: pointer; }
.issue > summary::-webkit-details-marker { display: none; }
.issue > summary::before { content: ""; flex: none; position: relative; top: -.12em; width: .55em; height: .55em; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); transition: transform .2s ease; }
.issue[open] > summary::before { transform: rotate(45deg); }
.issue[open] > summary { border-bottom: 1px solid var(--rampart); }
.issue-body { padding: 16px 18px 4px; }

/* ---------- home ---------- */
.hero { padding: 56px 0 44px; margin-bottom: 44px; border-bottom: 1px solid var(--rampart); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 52px; align-items: center; }
.hero h1 { max-width: 13ch; margin-bottom: .35em; font-size: clamp(2.7rem, 5.4vw, 4.5rem); line-height: 1.02; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 { background: linear-gradient(180deg, #fce9ad 0%, #e6b54a 48%, #a8741d 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.hero .lead { max-width: 34rem; font-size: 1.3rem; }
.banners { position: relative; display: flex; justify-content: center; gap: clamp(8px, 1.5vw, 18px); margin: 0; padding: 16px 0 0; list-style: none; }
.banners::before { content: ""; position: absolute; top: 5px; left: 3%; right: 3%; height: 9px; border-radius: 5px; background: linear-gradient(180deg, #f8df95, #b8862b 65%, #7a5714); box-shadow: 0 2px 4px rgba(0, 0, 0, .55); }
.banners li { flex: 0 1 116px; margin: 0; }
.banner { position: relative; display: block; height: clamp(210px, 25vw, 300px); color: var(--vellum); text-decoration: none; transform-origin: 50% 0; transition: transform .35s ease; }
.banners li:nth-child(odd) .banner:hover, .banners li:nth-child(odd) .banner:focus-visible { transform: rotate(-1.6deg); }
.banners li:nth-child(even) .banner:hover, .banners li:nth-child(even) .banner:focus-visible { transform: rotate(1.6deg); }
.banner-cloth { position: absolute; inset: 0; background: var(--gold-deep); clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%); }
.banner-cloth::after { content: ""; position: absolute; inset: 3px 3px 5px; background: linear-gradient(180deg, #2f70c5 0%, #1e5098 52%, #143869 100%); clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%); }
.banner-body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 6px 0; text-align: center; }
.banner-charge { width: 42%; height: auto; aspect-ratio: 1; color: var(--gold); }
.banner-key { font: 700 clamp(1.7rem, 2.9vw, 2.45rem)/1 var(--font-display); color: var(--gold-pale); }
.banner-name { font: 700 clamp(.86rem, 1.25vw, 1.04rem)/1.1 var(--font-head); color: #f4efe6; }
.banner-ver { font: .72rem/1 var(--font-mono); color: #bcd3f3; }
.home-body > .sec { max-width: var(--wide); }
.route { counter-reset: none; }
.route li { margin: .5rem 0; padding-left: .2rem; }
@media (max-width: 880px) { .hero-in { grid-template-columns: minmax(0, 1fr); gap: 36px; } .banners { max-width: 540px; } .hero { padding-top: 32px; } }

/* ---------- small pieces ---------- */
.flow { display: flex; flex-wrap: wrap; gap: 12px; max-width: var(--wide); margin: 0 0 1.5rem; padding: 0; list-style: none; }
.flow li { position: relative; flex: 1 1 150px; margin: 0; padding: 12px; border: 1px solid var(--rampart); border-radius: 6px; background: var(--stone-2); }
.flow li + li::before { content: ""; position: absolute; top: 50%; left: -13px; width: 13px; height: 2px; background: var(--gold-deep); }
.flow-name { display: block; color: var(--gold-pale); font: .8rem/1.4 var(--font-mono); overflow-wrap: anywhere; }
.flow-what { display: block; margin-top: 4px; color: var(--vellum-dim); font-size: .98rem; line-height: 1.4; }
.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; max-width: var(--wide); margin: 0 0 1.6rem; padding: 0; list-style: none; }
.keys li { margin: 0; padding: 12px 14px; border: 1px solid var(--rampart); border-radius: 6px; background: var(--stone-2); }
.keys kbd { font-size: 1.1rem; margin-bottom: 6px; }
.keys a { display: block; color: var(--vellum); font-family: var(--font-head); font-weight: 700; text-decoration: none; }
.keys a:hover { color: var(--gold-pale); }
.hash-check { max-width: var(--measure); margin: 0 0 1.4rem; padding: 14px 16px; border: 1px solid var(--rampart); border-radius: 8px; background: var(--stone-2); }
.hash-check label { display: block; margin: 0 0 4px; font-family: var(--font-head); font-weight: 700; }
.hash-check select, .hash-check textarea { width: 100%; margin: 0 0 12px; padding: 8px 10px; border: 1px solid var(--rampart); border-radius: 5px; background: var(--stone); color: var(--vellum); font: .85rem/1.4 var(--font-mono); }
.hash-out { margin: .8rem 0 0; font-weight: 700; }
.hash-out:empty { display: none; }
.hash-out.is-ok { color: var(--moss); } .hash-out.is-bad { color: #f39486; } .hash-out.is-warn { color: var(--gold); }

/* ---------- pager and footer ---------- */
.pager { display: flex; justify-content: space-between; gap: 16px; max-width: var(--wide); margin-top: 3.4rem; padding-top: 1.4rem; border-top: 1px solid var(--rampart); }
.pager a { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 11px 15px; border: 1px solid var(--rampart); border-radius: 6px; color: var(--vellum); font: 700 1.16rem/1.2 var(--font-head); text-decoration: none; }
.pager a:hover { border-color: var(--gold-deep); color: var(--gold-pale); }
.pager a span { color: var(--mist); font: 400 .9rem/1.2 var(--font-body); }
.pager-next { margin-left: auto; text-align: right; }
.site-foot { border-top: 1px solid var(--rampart); background: #151a21; color: var(--mist); font-size: .96rem; }
.site-foot-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; max-width: 1280px; margin: 0 auto; padding: 30px 24px 40px; }
.site-foot p { margin: 0 0 .55rem; }
.site-foot a { color: var(--vellum-dim); }
.foot-brand { color: var(--vellum-dim); }

/* ---------- lightbox (full-size screenshots) ---------- */
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: rgba(8, 10, 14, .97); }
.lb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 9px 14px; border-bottom: 1px solid var(--rampart); background: #12171e; }
.lb-title { margin: 0; color: var(--gold-pale); font: 700 1.06rem/1.2 var(--font-head); }
.lb-meta { margin: 0; color: var(--mist); font-size: .92rem; }
.lb-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.lb-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 36px; padding: 0 12px; border: 1px solid var(--rampart); border-radius: 5px; background: var(--stone-2); color: var(--vellum); font: 700 .93rem/1 var(--font-body); text-decoration: none; cursor: pointer; }
.lb-btn:hover { border-color: var(--gold-deep); color: var(--gold-pale); }
.lb-btn[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.lb-count { min-width: 3.4em; color: var(--mist); font-size: .9rem; text-align: center; }
.lb.is-single [data-lb="prev"], .lb.is-single [data-lb="next"], .lb.is-single .lb-count { display: none; }
.lb-stage { display: flex; flex: 1 1 auto; min-height: 0; overflow: auto; outline: none; }
.lb-img { display: block; flex: none; margin: auto; width: auto; height: auto; max-width: none; max-height: none; cursor: grab; user-select: none; -webkit-user-drag: none; }
.lb-stage.is-dragging .lb-img { cursor: grabbing; }
.lb.is-fit .lb-stage { overflow: hidden; padding: 12px; }
.lb.is-fit .lb-img { max-width: 100%; max-height: 100%; cursor: zoom-in; }
.lb.is-loading .lb-img { opacity: .2; }
.lb-caption { max-height: 22vh; margin: 0; padding: 10px 16px 14px; overflow: auto; border-top: 1px solid var(--rampart); background: #12171e; color: var(--vellum-dim); font-size: 1rem; }
@media (max-width: 640px) { .lb-tools { width: 100%; margin-left: 0; justify-content: space-between; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-head, .side, .pager, .copy, .step-done, .path-setter, .lb, .shot-badge, .skip, .btn-row, .hash-check { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .layout { display: block; padding: 0; }
  h1, h2, h3, strong, .callout-title, .lead, .shot figcaption, .tree-name, .dl-note { color: #000 !important; }
  .hero h1 { -webkit-text-fill-color: #000; background: none; }
  a { color: #000; }
  .code, .tree-wrap, .callout, .pathbox, .dl-card, .table-wrap, .issue { background: #fff !important; border-color: #999 !important; }
  .code pre, .gp, .hash { color: #000 !important; }
  code, kbd { background: #f1f1f1; border-color: #bbb; color: #000; }
  .step-body { padding-left: 0; }
  .issue > .issue-body { display: block; }
}
