/*
 * Scirocco Thugs mod pack guide
 * StixsworldHD (StixsmasterHD4k) - ungodly madly vastly enhanced, advanced, and improved
 *
 * Palette from the game itself: night slate walls, chalk-white HUD, the cardboard
 * "Sirocco Citi" sign, a rusty lead pipe and faded thug shirts.
 */

/* ---------------------------------------------------------------- fonts (self-hosted, latin) */
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; 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: "Barlow"; src: url("../fonts/barlow-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; 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: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; 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: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; 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: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; 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: "Permanent Marker"; src: url("../fonts/permanent-marker-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; 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; }

/* ---------------------------------------------------------------- tokens */
:root {
  --bg: #121619;          /* night slate */
  --bg-raise: #1a2024;    /* raised slate */
  --bg-sunk: #0e1113;     /* wells for code */
  --line: #2c353b;        /* cobble seams */
  --line-strong: #465259;
  --text: #ebe8df;        /* chalk */
  --text-dim: #b3b1a8;    /* worn chalk */
  --text-faint: #9aa09c;
  --card: #c9a46b;        /* cardboard */
  --card-light: #dcc08f;
  --card-deep: #8a6a3b;
  --ink: #1c1813;         /* marker ink */
  --rust: #c0603a;        /* lead-pipe rust */
  --rust-text: #e08a62;
  --moss: #93b38a;        /* faded green shirt */
  --steel: #8fa6b9;       /* faded blue shirt */

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Barlow Condensed", "Barlow", "Arial Narrow", "Segoe UI", sans-serif;
  --font-marker: "Permanent Marker", "Segoe Print", "Bradley Hand", cursive;
  --font-mono: ui-monospace, "Cascadia Mono", "Cascadia Code", Consolas, "Liberation Mono", Menlo, monospace;

  --wrap: 1180px;
  --header-h: 4.25rem;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.125rem/1.6 var(--font-body);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--card-light); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: #fff; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--card); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
p, ul, ol, dl { margin: 0 0 1em; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .35em; }
strong { font-weight: 600; color: #f4f2ec; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; letter-spacing: -.005em; color: #f4f2ec; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 3.4vw + 1.2rem, 3.6rem); margin: 0 0 .35em; }
h2 { font-size: clamp(1.85rem, 1.4vw + 1.2rem, 2.35rem); margin: 2.4em 0 .55em; }
h3 { font-size: 1.45rem; font-weight: 600; margin: 1.7em 0 .5em; }
code, kbd, pre { font-family: var(--font-mono); }
code { font-size: .86em; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 3px; padding: .06em .32em; overflow-wrap: anywhere; color: #efe9da; }
.small { font-size: .95rem; color: var(--text-dim); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 100; padding: .6rem 1rem; background: var(--card); color: var(--ink); font-weight: 600; }
.skip-link:focus { top: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

kbd {
  display: inline-block; min-width: 2.1em; padding: .14em .48em .1em;
  font: 600 .86em/1.25 var(--font-mono); color: var(--ink); text-align: center; white-space: nowrap;
  background: linear-gradient(#f3f0e6, #d6d2c4); border: 1px solid #a9a597; border-bottom-width: 3px; border-radius: 4px;
}

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(18, 22, 25, .96); border-bottom: 1px solid var(--line); }
@supports ((-webkit-backdrop-filter: blur(6px)) or (backdrop-filter: blur(6px))) {
  .site-header { background: rgba(18, 22, 25, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.site-header-inner { position: relative; max-width: var(--wrap); margin: 0 auto; padding: .6rem 1.5rem; min-height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; flex-direction: column; margin-right: auto; color: var(--text); text-decoration: none; line-height: 1.05; }
.brand:hover { color: #fff; }
.brand-name { font: 700 1.55rem/1 var(--font-head); letter-spacing: .005em; }
.brand-sub { font-size: .85rem; color: var(--text-dim); margin-top: .15rem; }
.site-nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: .45rem .65rem .35rem; font: 600 1.08rem/1.2 var(--font-head); color: var(--text-dim); text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--text); border-bottom-color: var(--line-strong); }
.site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--card); }
.nav-toggle { display: none; align-items: center; gap: .45rem; padding: .5rem .8rem; background: transparent; color: var(--text); border: 1px solid var(--line-strong); border-radius: 3px; font: 600 1.05rem/1 var(--font-head); cursor: pointer; }
.nav-toggle:hover { border-color: var(--text); }

@media (max-width: 1020px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .8); }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-wrap: wrap; }
  .js .site-nav ul { flex-direction: column; padding: .5rem 1.5rem 1rem; }
  .js .site-nav a { padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .js .site-nav a[aria-current="page"] { border-bottom-color: var(--card); }
  .site-header-inner { flex-wrap: wrap; }
}

/* ---------------------------------------------------------------- buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 1.5rem 0; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem; padding: .78rem 1.2rem .72rem;
  font: 700 1.15rem/1.15 var(--font-head); text-decoration: none; border-radius: 3px; border: 2px solid transparent; cursor: pointer;
}
.btn .icon { width: 1.2em; height: 1.2em; }
.btn-note { font: 400 .86rem/1.2 var(--font-body); opacity: .85; margin-left: .2rem; }
.btn-primary { background: var(--card); color: var(--ink); box-shadow: 0 4px 0 var(--card-deep); }
.btn-primary:hover { background: var(--card-light); color: var(--ink); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--card-deep); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { color: #fff; border-color: var(--text); }
.btn.is-disabled { opacity: .6; cursor: not-allowed; border-style: dashed; }
.btn.is-disabled:hover { color: var(--text); border-color: var(--line-strong); }

/* ---------------------------------------------------------------- cardboard sign (the one loud element) */
.sign { position: relative; transform: rotate(-2.2deg); filter: drop-shadow(0 18px 16px rgba(0, 0, 0, .55)); }
.sign-board {
  position: relative; padding: 1.5rem 1.7rem 1.7rem; color: var(--ink);
  background-color: var(--card);
  background-image:
    radial-gradient(120% 90% at 20% 10%, rgba(255, 244, 214, .22), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(70, 45, 15, .18)),
    repeating-linear-gradient(90deg, rgba(70, 45, 15, .07) 0 2px, transparent 2px 9px);
  clip-path: polygon(0 3%, 7% 0, 33% 2%, 61% 0, 100% 1.6%, 98.8% 41%, 100% 96.5%, 66% 100%, 31% 98.2%, 1.6% 100%, 0 62%);
}
.sign-board::after { /* marker smudge along the bottom edge */
  content: ""; position: absolute; left: 8%; right: 12%; bottom: 10%; height: 2px; background: rgba(28, 24, 19, .12); transform: rotate(.6deg);
}
.sign h1, .sign p { margin: 0; color: var(--ink); font-family: var(--font-marker); font-weight: 400; letter-spacing: .005em; line-height: 1.02; text-wrap: balance; }
.sign-title { display: block; font-size: clamp(2.5rem, 2.6vw + 1.6rem, 3.7rem); }
.sign-sub { display: block; margin-top: .55rem; font-size: clamp(1.15rem, .7vw + .95rem, 1.5rem); line-height: 1.15; }
.hero-text .actions { position: relative; }
.sign-arrow { position: absolute; left: -8.4rem; top: -3.8rem; width: 9rem; height: auto; overflow: visible; fill: none; stroke: var(--card-light); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: no-preference) {
  .page-index .sign { animation: sign-hang .8s cubic-bezier(.2, .9, .25, 1.15) .1s both; transform-origin: 30% 0; }
  .page-index .sign-arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: arrow-draw .5s ease-out .85s forwards; }
  .page-index .sign-arrow path + path { animation-delay: 1.25s; animation-duration: .25s; }
}
@keyframes sign-hang {
  from { opacity: 0; transform: translateY(-18px) rotate(-7deg); }
  to   { opacity: 1; transform: rotate(-2.2deg); }
}
@keyframes arrow-draw { to { stroke-dashoffset: 0; } }

/* ---------------------------------------------------------------- home hero */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 1.8rem 1.5rem 0; }
.hero-figure { margin: 0; }
.hero-figure .zoom { border-radius: 4px; }
.hero-figure .zoom img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 42%; }
.hero-body { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); gap: 3.2rem; align-items: start; margin-top: -6.5rem; padding-left: 1.8rem; }
.hero-text { padding-top: 7.6rem; max-width: 40rem; }
.lead { font-size: 1.25rem; line-height: 1.55; max-width: 62ch; color: var(--text); }
.hero-meta { color: var(--text-dim); font-size: .98rem; }

@media (max-width: 900px) {
  .hero-figure .zoom img { aspect-ratio: 16 / 9; }
  .hero-body { grid-template-columns: 1fr; gap: 1.4rem; margin-top: -2.6rem; padding: 0 .6rem; }
  .sign { max-width: 26rem; }
  .sign-arrow { display: none; }
  .hero-text { padding-top: .6rem; }
}

/* ---------------------------------------------------------------- home bands */
.band { padding: 4.5rem 0; }
.band h2 { margin-top: 0; }
.band-raised { background: var(--bg-raise); border-block: 1px solid var(--line); }
.band-trust { border-top: 1px solid var(--line); }
.section-lead { color: var(--text-dim); max-width: 62ch; margin-bottom: 2.4rem; }

.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.route li { position: relative; margin: 0; padding-top: 2.6rem; border-top: 2px solid var(--line-strong); }
.route .tag { position: absolute; top: -1.35rem; left: 0; }
.route h3 { margin: 0 0 .45rem; font-size: 1.45rem; }
.route h3 a { color: #f4f2ec; text-decoration: none; }
.route h3 a:hover { color: var(--card-light); text-decoration: underline; }
.route p { color: var(--text-dim); font-size: 1rem; margin: 0; }
@media (max-width: 960px) { .route { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; } }
@media (max-width: 560px) { .route { grid-template-columns: 1fr; } }

.tag {
  display: inline-grid; place-items: center; width: 2.7rem; height: 2.7rem; flex: none;
  font: 400 1.55rem/1 var(--font-marker); color: var(--ink);
  background: var(--card) repeating-linear-gradient(90deg, rgba(70, 45, 15, .08) 0 2px, transparent 2px 8px);
  transform: rotate(-4deg); box-shadow: 0 7px 12px -7px rgba(0, 0, 0, .9);
}
.route li:nth-child(even) .tag, .step:nth-of-type(even) .tag { transform: rotate(3deg); }

.mod-list { border-top: 1px solid var(--line); }
.mod-row { display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: 2.2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.mod-name h3 { margin: 0 0 .35rem; font-size: 1.65rem; }
.mod-version { margin: 0 0 .5rem; color: var(--card-light); font-weight: 600; }
.mod-folder { margin: 0; font-size: .95rem; }
.mod-detail p:last-child { margin-bottom: 0; }
.facts { display: flex; flex-wrap: wrap; gap: .4rem 2.2rem; margin: 0 0 1rem; }
.facts div { display: flex; gap: .45rem; }
.facts dt { color: var(--text-dim); }
.facts dt::after { content: ":"; }
.facts dd { margin: 0; }
@media (max-width: 760px) { .mod-row { grid-template-columns: 1fr; gap: .9rem; } }

.keymap { max-width: 52rem; border-top: 1px solid var(--line); }
.keymap-row { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); align-items: center; gap: 1.1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.keymap-row p { margin: 0; overflow-wrap: anywhere; }
.keymap-row kbd { font-size: 1.12rem; width: 3.6rem; padding: .3em 0 .24em; }
.keymap-muted { color: var(--text-dim); }
.keymap + .small { margin-top: 1rem; }

.trust { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.trust .actions { flex-direction: column; align-items: stretch; margin: 0; }
.trust .btn { justify-content: flex-start; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------------------------------------------------------------- inner pages */
.page-head { padding: 3rem 0 2.3rem; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-raise), var(--bg)); }
.crumbs { margin: 0 0 .9rem; font-size: .95rem; color: var(--text-dim); }
.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--text); }
.page-facts { margin: 0; color: var(--text-dim); max-width: 62ch; }

.guide { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3.2rem; align-items: start; padding-top: 2.6rem; padding-bottom: 4.5rem; }
.prose { min-width: 0; max-width: 47rem; }
.prose > section:first-child > h2, .prose > .shot:first-child + section > h2 { margin-top: 0; }

.toc { position: sticky; top: calc(var(--header-h) + 1.4rem); max-height: calc(100vh - var(--header-h) - 3rem); overflow: auto; }
.toc summary { cursor: pointer; list-style: none; margin: 0 0 .7rem; font: 700 1.2rem/1.2 var(--font-head); color: #f4f2ec; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; margin-left: -2px; padding: .32rem 0 .32rem .95rem; border-left: 2px solid transparent; color: var(--text-dim); text-decoration: none; font-size: .98rem; line-height: 1.35; }
.toc a:hover { color: var(--text); border-left-color: var(--line-strong); }
.toc a.is-active { color: var(--text); border-left-color: var(--card); }

@media (max-width: 1020px) {
  .guide { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.6rem; }
  .toc { position: static; max-height: none; padding: .9rem 1.1rem; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 4px; }
  .toc summary { margin: 0; }
  .toc summary::before { content: "+"; display: inline-block; width: 1.1em; color: var(--card); }
  .toc details[open] summary { margin-bottom: .7rem; }
  .toc details[open] summary::before { content: "\2212"; }
}

/* steps */
.step h2 { display: flex; align-items: center; gap: .9rem; }
.optional { font: 400 1rem/1 var(--font-body); color: var(--text-dim); align-self: flex-end; padding-bottom: .3rem; }
ol.steps { padding-left: 1.5rem; }
ol.steps li { padding-left: .35rem; margin-bottom: .6rem; }
ol.steps li::marker { font: 700 1.1rem var(--font-head); color: var(--card); }
.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; gap: .75rem; margin-bottom: .85rem; }
.checklist .icon { color: var(--moss); margin-top: .32rem; }
.feature-meta { color: var(--card-light); font-weight: 600; }

/* callouts */
.callout { margin: 1.7rem 0; padding: 1rem 1.25rem 1.05rem 1.15rem; background: var(--bg-raise); border-left: 4px solid var(--line-strong); border-radius: 0 4px 4px 0; }
.callout-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .45rem; font: 700 1.17rem/1.2 var(--font-head); }
.callout-title .icon { width: 1.15em; height: 1.15em; }
.callout-body > :last-child { margin-bottom: 0; }
.callout-important { border-left-color: var(--rust); }
.callout-important .callout-title { color: var(--rust-text); }
.callout-tip, .callout-note { border-left-color: var(--steel); }
.callout-tip .callout-title, .callout-note .callout-title { color: var(--steel); }
.callout-check { border-left-color: var(--moss); }
.callout-check .callout-title { color: var(--moss); }
.callout-safe { border-left-color: var(--card); }
.callout-safe .callout-title { color: var(--card-light); }

/* code, hashes, trees */
.code { position: relative; margin: 1.1rem 0; background: var(--bg-sunk); border: 1px solid var(--line); border-radius: 4px; }
.code-label { margin: 0; padding: .5rem 6rem .5rem .95rem; font-size: .88rem; color: var(--text-dim); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.code pre { margin: 0; padding: .8rem .95rem; font-size: .92rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; color: #efe9da; }
.code:not(:has(.code-label)) pre { padding-right: 6rem; }
.code pre code { background: none; border: 0; padding: 0; font-size: 1em; color: inherit; }
.copy-btn { position: absolute; top: .38rem; right: .45rem; padding: .25rem .65rem; font: 600 .92rem/1.2 var(--font-head); color: var(--text); background: var(--bg-raise); border: 1px solid var(--line-strong); border-radius: 3px; cursor: pointer; }
.copy-btn:hover { border-color: var(--card); color: #fff; }
.copy-btn.is-done { background: var(--moss); border-color: var(--moss); color: var(--ink); }

.tree { margin: 1.3rem 0; padding: 1rem 1.15rem; background: var(--bg-sunk); border: 1px solid var(--line); border-radius: 4px; overflow-x: auto; font-size: .88rem; line-height: 1.6; color: var(--text-dim); }
.t-dir { color: #f4f2ec; font-weight: 600; }
.t-new { color: var(--card-light); font-weight: 600; }
.t-game { color: #f4f2ec; }
.t-later { color: var(--steel); }
.t-note { color: var(--text-faint); }

/* tables */
.table-wrap { margin: 1.3rem 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
caption { caption-side: top; text-align: left; padding-bottom: .55rem; font: 700 1.15rem/1.2 var(--font-head); color: #f4f2ec; }
th, td { padding: .62rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { padding-left: 0; }
thead th { font: 600 1rem/1.2 var(--font-head); color: var(--text-dim); border-bottom: 2px solid var(--line-strong); }
td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-yes td { background: rgba(201, 164, 107, .09); }
.row-yes td:first-child { padding-left: .7rem; box-shadow: inset 3px 0 0 var(--card); }
table.fixes td:first-child { width: 42%; color: #f4f2ec; }

/* Q&A lists */
.qa dt { margin-top: 1.4rem; font: 700 1.22rem/1.25 var(--font-head); color: #f4f2ec; }
.qa dt:first-child { margin-top: 0; }
.qa dd { margin: .35rem 0 0; }

/* screenshots */
.shot { margin: 1.7rem 0; }
.zoom { position: relative; display: block; overflow: hidden; background: #0b0e10; border: 1px solid var(--line-strong); border-radius: 4px; cursor: zoom-in; }
.zoom img { width: 100%; }
.zoom-hint {
  position: absolute; right: .65rem; bottom: .65rem; display: inline-flex; align-items: center; gap: .4rem;
  padding: .32rem .62rem; font: 600 .92rem/1 var(--font-head); color: var(--text);
  background: rgba(14, 17, 19, .88); border: 1px solid var(--line-strong); border-radius: 3px;
}
.zoom:hover .zoom-hint, .zoom:focus-visible .zoom-hint { background: var(--card); border-color: var(--card); color: var(--ink); }
figcaption { margin-top: .65rem; font-size: .95rem; color: var(--text-dim); }
.figcaption-hint { color: var(--text-faint); }

/* pager */
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: .2rem; min-width: 13rem; padding: .9rem 1.15rem; color: #f4f2ec; text-decoration: none; font: 700 1.25rem/1.15 var(--font-head); border: 1px solid var(--line-strong); border-radius: 4px; }
.pager a span { font: 400 .9rem/1.2 var(--font-body); color: var(--text-dim); }
.pager a:hover { border-color: var(--card); }
.pager-next { margin-left: auto; text-align: right; }
@media (max-width: 560px) { .pager { flex-direction: column; } .pager a { min-width: 0; } .pager-next { margin-left: 0; } }

/* 404 */
.missing { padding: 4.5rem 0 5rem; }
.missing-inner { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.sign-small .sign-title { font-size: 4rem; }
@media (max-width: 760px) { .missing-inner { grid-template-columns: 1fr; gap: 2rem; } .sign-small { max-width: 16rem; } }

/* ---------------------------------------------------------------- footer */
.site-footer { padding: 3.2rem 0; background: var(--bg-sunk); border-top: 1px solid var(--line); color: var(--text-dim); font-size: .95rem; }
.site-footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto; gap: 2.6rem; }
.footer-brand { margin: 0 0 .2rem; font: 700 1.3rem/1.2 var(--font-head); color: #f4f2ec; }
.footer-tagline { font: 400 1.05rem/1.3 var(--font-marker); color: var(--card); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer-nav a { color: var(--text-dim); }
.footer-nav a:hover { color: var(--text); }
.ext .icon { width: .85em; height: .85em; margin-left: .2em; vertical-align: -.05em; }
@media (max-width: 900px) { .site-footer-inner { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------------------------------------------------------------- lightbox (built by site.js) */
html.lb-lock { overflow: hidden; }
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(9, 11, 13, .985); color: var(--text); overflow: hidden;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .65rem 1rem; background: var(--bg); border-bottom: 1px solid var(--line); }
.lb-caption { flex: 1 1 22rem; margin: 0; font-size: .98rem; line-height: 1.4; }
.lb-size { display: block; font-size: .88rem; color: var(--text-dim); }
.lb-tools { display: flex; flex-wrap: wrap; gap: .5rem; }
.lb-btn {
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem;
  font: 600 1rem/1.1 var(--font-head); color: var(--text); text-decoration: none;
  background: var(--bg-raise); border: 1px solid var(--line-strong); border-radius: 3px; cursor: pointer;
}
.lb-btn:hover { color: #fff; border-color: var(--text); }
.lb-btn[aria-pressed="true"] { background: var(--card); border-color: var(--card); color: var(--ink); }
.lb-close { background: var(--card); color: var(--ink); border-color: var(--card); }
.lb-close:hover { background: var(--card-light); color: var(--ink); }
.lb-stage { position: relative; display: flex; overflow: auto; overscroll-behavior: contain; cursor: grab; }
.lb-stage.is-dragging { cursor: grabbing; user-select: none; }
.lb-stage img { flex: none; margin: auto; max-width: none; user-select: none; -webkit-user-drag: none; }
.lightbox.is-fit .lb-stage { cursor: zoom-in; }
.lightbox.is-fit .lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-status { position: absolute; inset: 0; display: none; place-items: center; font: 600 1.2rem var(--font-head); color: var(--text-dim); pointer-events: none; }
.lightbox.is-loading .lb-status, .lightbox.is-error .lb-status { display: grid; }
.lightbox.is-loading .lb-stage img { opacity: 0; }
.lb-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .55rem 1rem; background: var(--bg); border-top: 1px solid var(--line); font-size: .9rem; color: var(--text-dim); }
.lb-nav { display: flex; align-items: center; gap: .6rem; }
.lb-nav[hidden] { display: none; }

/* ---------------------------------------------------------------- print */
@media print {
  :root { --bg: #fff; --bg-raise: #fff; --bg-sunk: #f5f5f5; --text: #111; --text-dim: #444; --text-faint: #555; --line: #ccc; --line-strong: #999; }
  body { font-size: 11pt; background: #fff; color: #111; }
  h1, h2, h3, strong, .t-dir, .t-game, .qa dt, .route h3 a, table.fixes td:first-child { color: #111; }
  a { color: #111; }
  code, .code pre { color: #111; background: #f5f5f5; }
  .site-header, .toc, .pager, .actions, .copy-btn, .zoom-hint, .footer-nav, .skip-link, .sign-arrow, .figcaption-hint { display: none !important; }
  .guide { display: block; padding: 0; }
  .page-head { background: none; padding: 0 0 1rem; }
  .callout, .code, .tree { break-inside: avoid; }
  .sign { filter: none; }
  .site-footer { background: none; }
}
