@charset "UTF-8";
/* ==========================================================================
   Ungodly Robot AI — Installation Guide
   Author: StixsworldHD (StixsmasterHD4k)

   Palette is taken from the two artefacts this site is about:
   Overload's own menu chrome (phosphor green on hull black) and the mod's
   configuration panel (cool slate plate, amber controls). Green is the
   game speaking — status, confirmation, "this worked". Amber is the mod
   speaking — actions, the current step, anything you touch.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --void:      #08090b;
  --deck:      #0e1216;
  --plate:     #151b21;
  --plate-hi:  #1c242c;
  --seam:      #242e37;
  --seam-soft: #1a222a;

  /* Signal */
  --phosphor:  #5ef03a;
  --phosphor-d:#2f8a1c;
  --amber:     #f2a83e;
  --amber-d:   #a86d15;
  --rust:      #e0603063;
  --rust-solid:#e06030;

  /* Text */
  --bone:      #e2e7ec;
  --silver:    #b3bcc5;
  --ash:       #7e8993;
  --ash-dim:   #59626b;

  /* Type */
  --display: "Chakra Petch", "Bahnschrift", "DIN Alternate", system-ui, sans-serif;
  --body:    "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", "Cascadia Mono", "SF Mono", Consolas, monospace;

  /* Metrics */
  --shell:   1180px;
  --gutter:  clamp(1.15rem, 4vw, 3rem);
  --radius:  3px;
  --rule:    1px solid var(--seam);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--silver);
  font: 400 clamp(15px, .34vw + 14px, 17px)/1.68 var(--body);
  letter-spacing: .002em;
  overflow-x: hidden;

  /* A faint cabin haze, so the black is a space rather than a flat fill. */
  background-image:
    radial-gradient(1200px 620px at 78% -8%,  rgba(94, 240, 58, .055), transparent 62%),
    radial-gradient(940px 520px at 6% 4%,     rgba(242, 168, 62, .045), transparent 60%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }

a {
  color: var(--amber);
  text-decoration-color: color-mix(in srgb, var(--amber) 42%, transparent);
  text-underline-offset: .18em;
  transition: color .16s var(--ease), text-decoration-color .16s var(--ease);
}
a:hover { color: #ffc76e; text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--phosphor);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--amber); color: #10130f; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--amber); color: #14100a;
  padding: .6rem 1rem; font: 600 .85rem var(--display);
  text-transform: uppercase; letter-spacing: .12em; text-decoration: none;
  transition: top .18s var(--ease);
}
.skip:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   3. Typography primitives
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--bone);
  line-height: 1.08;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  font-weight: 700;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

strong { color: var(--bone); font-weight: 600; }
em { color: var(--silver); }

.eyebrow {
  font: italic 700 .72rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--phosphor);
  margin: 0 0 .95rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--phosphor) 45%, transparent), transparent);
}

.lede {
  font-size: 1.16em;
  line-height: 1.6;
  color: var(--silver);
}

/* Inline code flavours ---------------------------------------------------- */
code {
  font-family: var(--mono);
  font-size: .88em;
  font-weight: 500;
}
.path {
  color: var(--bone);
  background: #0b0f13;
  border: 1px solid var(--seam);
  border-radius: 2px;
  padding: .1em .42em;
  word-break: break-word;
}
.tok {
  color: var(--amber);
  background: color-mix(in srgb, var(--amber) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--amber) 28%, transparent);
  border-radius: 2px;
  padding: .1em .42em;
  white-space: nowrap;
}
kbd {
  font: 600 .82em var(--mono);
  color: var(--bone);
  background: linear-gradient(180deg, var(--plate-hi), var(--plate));
  border: 1px solid var(--seam);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: .14em .48em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. Layout shell
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 820px; }

.band { padding-block: clamp(3.2rem, 7vw, 5.6rem); }
.band--tight { padding-block: clamp(2.2rem, 4.5vw, 3.4rem); }
.pagehead + .band--tight,
.pagehead + .wrap { padding-top: 0; }
.band--deck { background: var(--deck); border-block: var(--rule); }

.sechead { margin-bottom: 2.2rem; }
.sechead__title { font-size: clamp(1.6rem, 3.1vw, 2.35rem); }
.sechead__lede {
  max-width: 62ch;
  color: var(--ash);
  font-size: 1.03em;
  margin-top: .7rem;
}

/* --------------------------------------------------------------------------
   5. Top bar
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--void) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: var(--rule);
}
.topbar__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: .7rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: inherit;
  margin-right: auto;
}
.brand__mark {
  width: 12px; height: 24px;
  flex: none;
  background: var(--phosphor);
  clip-path: polygon(0 0, 100% 14%, 100% 86%, 0 100%);
  box-shadow: 0 0 14px color-mix(in srgb, var(--phosphor) 55%, transparent);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name {
  font: 700 1.02rem var(--display);
  color: var(--bone);
  letter-spacing: -.005em;
}
.brand__ver {
  font: 500 .68rem var(--mono);
  color: var(--ash-dim);
  letter-spacing: .07em;
}

.nav__list {
  display: flex; align-items: center; gap: .1rem;
  list-style: none; margin: 0; padding: 0;
}
.nav__link {
  display: block;
  padding: .5rem .72rem;
  font: 600 .8rem var(--display);
  letter-spacing: .015em;
  color: var(--ash);
  text-decoration: none;
  border-radius: 2px;
  white-space: nowrap;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.nav__link:hover { color: var(--bone); background: var(--plate); }
.nav__link.is-current {
  color: var(--void);
  background: var(--phosphor);
}

.navtoggle { display: none; }

/* --------------------------------------------------------------------------
   6. Hero — the flight plan
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.4rem, 5vw, 3.6rem); }

.hero__title {
  font-size: clamp(2.5rem, 7.4vw, 5rem);
  line-height: .94;
  letter-spacing: -.028em;
  margin-bottom: 1.1rem;
  max-width: 16ch;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  color: var(--phosphor);
  text-shadow: 0 0 34px color-mix(in srgb, var(--phosphor) 30%, transparent);
}
.hero__lede {
  max-width: 60ch;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--silver);
  margin-bottom: 2rem;
}

/* The install compressed to one line — the thesis of the whole site. */
.plan {
  margin: 0 0 2.4rem;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(180deg, var(--plate), #0d1216);
  border: var(--rule);
  border-left: 2px solid var(--phosphor);
  position: relative;
  overflow: hidden;
}
.plan::after {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--phosphor) 3.5%, transparent), transparent);
  animation: sweep 9s var(--ease) infinite;
  pointer-events: none;
}
@keyframes sweep { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(400%); } }

.plan__eyebrow {
  font: italic 700 .66rem/1 var(--display);
  text-transform: uppercase; letter-spacing: .22em;
  color: var(--ash-dim);
  margin: 0 0 .8rem;
}
.plan__legs {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .35rem .55rem;
  margin: 0; padding: 0; list-style: none;
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 500;
}
.plan__leg { color: var(--silver); white-space: nowrap; }
.plan__leg--start { color: var(--ash-dim); }
.plan__leg--key { color: var(--amber); }
.plan__leg--end { color: var(--phosphor); }
.plan__arrow { color: var(--seam); font-size: .9em; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .78rem 1.35rem;
  font: 700 .84rem var(--display);
  text-transform: uppercase; letter-spacing: .085em;
  text-decoration: none;
  border: 1px solid var(--seam);
  border-radius: var(--radius);
  background: var(--plate);
  color: var(--bone);
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease),
              color .16s var(--ease), transform .16s var(--ease);
}
.btn:hover { background: var(--plate-hi); border-color: #33404b; color: var(--bone); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #17120a;
}
.btn--primary:hover {
  background: #ffbe58; border-color: #ffbe58; color: #17120a;
  box-shadow: 0 6px 24px -8px color-mix(in srgb, var(--amber) 65%, transparent);
}
.btn--go {
  background: transparent;
  border-color: color-mix(in srgb, var(--phosphor) 46%, transparent);
  color: var(--phosphor);
}
.btn--go:hover {
  background: color-mix(in srgb, var(--phosphor) 11%, transparent);
  border-color: var(--phosphor); color: var(--phosphor);
}
.btn__meta {
  font-family: var(--mono);
  font-weight: 500;
  font-size: .74rem;
  text-transform: none;
  letter-spacing: 0;
  opacity: .7;
}

/* --------------------------------------------------------------------------
   7. Status readout — the signature
   -------------------------------------------------------------------------- */
.readout {
  background: linear-gradient(180deg, #1d1c10, #14150f);
  border: 1px solid #3a3418;
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1rem;
  font-family: var(--mono);
}
.readout__head {
  display: flex; align-items: center; gap: .9rem;
  flex-wrap: wrap;
  row-gap: .5rem;
  margin-bottom: .75rem;
}
.readout__eyebrow {
  font: italic 700 .68rem/1 var(--display);
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--amber);
  white-space: nowrap;
  margin: 0; margin-right: auto;
}
.readout__count { font-size: .76rem; color: var(--silver); margin: 0; white-space: nowrap; }
.readout__reset {
  background: none; border: 1px solid #3a3418; color: var(--ash);
  font: 500 .7rem var(--mono);
  padding: .22rem .6rem; border-radius: 2px; cursor: pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.readout__reset:hover { color: var(--bone); border-color: #5a5228; }

.readout__bar {
  height: 3px; background: #2a2712; border-radius: 2px;
  overflow: hidden; margin-bottom: .95rem;
}
.readout__fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--amber), var(--phosphor));
  transition: width .45s var(--ease);
}

.readout__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .34rem; }
.readout__item {
  display: flex; align-items: center; gap: .6rem;
  font-size: .77rem;
  color: var(--ash);
}
.readout__dot {
  width: 7px; height: 7px; flex: none;
  border: 1px solid #4d4622;
  background: transparent;
  transform: rotate(45deg);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.readout__stage {
  font-size: .66rem; font-weight: 600;
  color: var(--ash-dim);
  flex: none;
}
.readout__label { flex: 1; min-width: 0; }
.readout__state {
  font-size: .66rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ash-dim); flex: none;
}
.readout__item.is-done { color: var(--bone); }
.readout__item.is-done .readout__dot {
  background: var(--phosphor);
  border-color: var(--phosphor);
  box-shadow: 0 0 9px color-mix(in srgb, var(--phosphor) 60%, transparent);
}
.readout__item.is-done .readout__state { color: var(--phosphor); }
.readout__foot {
  margin: .95rem 0 0;
  font-size: .7rem;
  line-height: 1.55;
  color: var(--ash-dim);
  font-family: var(--body);
}

/* --------------------------------------------------------------------------
   8. The spine — install steps as waypoints
   -------------------------------------------------------------------------- */
.spine {
  list-style: none;
  margin: 0; padding: 0;
  position: relative;
}
.spine::before {
  content: "";
  position: absolute;
  left: 17px; top: 14px; bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg,
    transparent,
    var(--seam) 4%,
    var(--seam) 96%,
    transparent);
}

.step {
  position: relative;
  padding-left: 3.6rem;
  padding-bottom: 2.2rem;
}
.step:last-child { padding-bottom: 0; }

/* The hexagon is drawn as two clipped layers rather than a clipped border:
   clip-path cuts the corners off a border, leaving only two vertical slivers
   of it visible. The outer layer is the outline, the inset pseudo-element is
   the fill. */
.step__node {
  position: absolute; left: 0; top: 2px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--seam);
  color: var(--ash);
  font: 700 .74rem var(--mono);
  clip-path: polygon(50% 0, 100% 26%, 100% 74%, 50% 100%, 0 74%, 0 26%);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.step__node::before {
  content: "";
  position: absolute; inset: 1px;
  background: var(--void);
  clip-path: polygon(50% 0, 100% 26%, 100% 74%, 50% 100%, 0 74%, 0 26%);
  transition: background .2s var(--ease);
}
.step__node span { position: relative; z-index: 1; }

.step:hover .step__node,
.step:target .step__node {
  background: color-mix(in srgb, var(--amber) 55%, transparent);
  color: var(--amber);
}
.step.is-done .step__node {
  background: var(--phosphor);
  color: var(--phosphor);
}
.step.is-done .step__node::before {
  background: color-mix(in srgb, var(--phosphor) 14%, var(--void));
}

.step__panel {
  background: var(--plate);
  border: var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}
.step.is-done .step__panel { border-color: color-mix(in srgb, var(--phosphor) 30%, var(--seam)); }

.step__head {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1rem 1.3rem .1rem;
}
.step__title { font-size: 1.18rem; margin: 0; flex: 1; }
.step__anchor { color: var(--bone); text-decoration: none; }
.step__anchor:hover { color: var(--amber); }
.step__note {
  margin: 0; flex: none;
  font: 500 .68rem var(--mono);
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--ash-dim);
}
.step__body { padding: .9rem 1.3rem 1.3rem; }
.step__body > :last-child { margin-bottom: 0; }
.step__body ul, .step__body ol { padding-left: 1.15rem; }
.step__body li { margin-bottom: .45rem; }

/* Tick box that feeds the readout ---------------------------------------- */
.tick {
  position: relative;
  display: flex; align-items: center; gap: .65rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--seam-soft);
  cursor: pointer;
  font: 500 .78rem var(--mono);
  color: var(--ash);
  user-select: none;
  transition: color .16s var(--ease);
}
.tick:hover { color: var(--silver); }
.tick__box {
  position: absolute; left: 0; top: 1rem;
  width: 17px; height: 17px;
  opacity: 0; margin: 0;
  cursor: pointer;
}
.tick__mark {
  width: 17px; height: 17px; flex: none;
  border: 1px solid #39434d;
  border-radius: 2px;
  display: grid; place-items: center;
  transition: background .16s var(--ease), border-color .16s var(--ease);
}
.tick__mark::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid var(--void);
  border-bottom: 2px solid var(--void);
  transform: rotate(-45deg) scale(.4);
  opacity: 0;
  transition: opacity .14s var(--ease), transform .14s var(--ease);
}
.tick__box:checked + .tick__mark { background: var(--phosphor); border-color: var(--phosphor); }
.tick__box:checked + .tick__mark::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.tick__box:focus-visible + .tick__mark { outline: 2px solid var(--phosphor); outline-offset: 3px; }
.tick__box:checked ~ .tick__label { color: var(--phosphor); }

/* --------------------------------------------------------------------------
   9. Code blocks
   -------------------------------------------------------------------------- */
.codeblock { margin: 1.15rem 0; }
.codeblock__label {
  font: 500 .68rem var(--mono);
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--ash-dim);
  margin-bottom: .4rem;
}
.codeblock__body { position: relative; }
.codeblock pre {
  margin: 0;
  background: #070a0c;
  border: 1px solid var(--seam);
  border-left: 2px solid var(--amber-d);
  border-radius: var(--radius);
  padding: .85rem 4.6rem .85rem 1rem;
  overflow-x: auto;
  font: 500 .82rem/1.7 var(--mono);
  color: #cfe8c4;
  white-space: pre;
  tab-size: 2;
}
.codeblock__copy {
  position: absolute; top: .5rem; right: .5rem;
  background: var(--plate); border: 1px solid var(--seam);
  color: var(--ash);
  font: 600 .66rem var(--display);
  text-transform: uppercase; letter-spacing: .1em;
  padding: .3rem .6rem; border-radius: 2px; cursor: pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.codeblock__copy:hover { color: var(--bone); background: var(--plate-hi); border-color: #33404b; }
.codeblock__copy.is-done { color: var(--phosphor); border-color: var(--phosphor); }

/* --------------------------------------------------------------------------
   10. Callouts & verify strips
   -------------------------------------------------------------------------- */
.callout {
  margin: 1.3rem 0;
  padding: .95rem 1.1rem;
  border: 1px solid var(--seam);
  border-left-width: 2px;
  border-radius: var(--radius);
  background: #0b1014;
}
.callout__eyebrow {
  font: italic 700 .64rem/1 var(--display);
  text-transform: uppercase; letter-spacing: .2em;
  margin: 0 0 .45rem;
}
.callout__title { font-weight: 600; color: var(--bone); margin: 0 0 .35rem; }
.callout__body { font-size: .95em; }
.callout__body > :last-child { margin-bottom: 0; }
.callout__body ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.callout__body li { margin-bottom: .35rem; }

.callout--note { border-left-color: #3d4a56; }
.callout--note .callout__eyebrow { color: var(--ash); }

.callout--warn { border-left-color: var(--amber); background: #14100a; }
.callout--warn .callout__eyebrow { color: var(--amber); }

.callout--stop { border-left-color: var(--rust-solid); background: #170d0a; }
.callout--stop .callout__eyebrow { color: var(--rust-solid); }

.callout--good { border-left-color: var(--phosphor); background: #0b1409; }
.callout--good .callout__eyebrow { color: var(--phosphor); }

.verify {
  display: flex; gap: .8rem;
  margin: 1.3rem 0 0;
  padding: .85rem 1rem;
  background: linear-gradient(90deg, color-mix(in srgb, var(--phosphor) 7%, transparent), transparent 70%);
  border: 1px solid color-mix(in srgb, var(--phosphor) 22%, transparent);
  border-radius: var(--radius);
}
.verify__mark {
  width: 8px; height: 8px; flex: none; margin-top: .5rem;
  background: var(--phosphor);
  transform: rotate(45deg);
  box-shadow: 0 0 10px color-mix(in srgb, var(--phosphor) 55%, transparent);
}
.verify__eyebrow {
  font: italic 700 .64rem/1 var(--display);
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--phosphor);
  margin: 0 0 .4rem;
}
.verify__body { font-size: .95em; }
.verify__body > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   11. Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--plate);
  border: var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.card--link { text-decoration: none; color: inherit; display: block; }
.card--link:hover { border-color: #34414c; transform: translateY(-2px); color: inherit; }
.card__title {
  font-size: 1.02rem;
  margin-bottom: .5rem;
  display: flex; align-items: center; gap: .5rem;
}
.card__num {
  font: 500 .68rem var(--mono);
  color: var(--phosphor);
  border: 1px solid color-mix(in srgb, var(--phosphor) 35%, transparent);
  padding: .1rem .38rem; border-radius: 2px;
}
.card p { font-size: .93em; color: var(--ash); }
.card__more {
  display: inline-block;
  margin-top: .7rem;
  font: 600 .74rem var(--display);
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--amber);
}

/* Download cards ---------------------------------------------------------- */
.dl {
  display: flex; flex-direction: column;
  background: var(--plate);
  border: var(--rule);
  border-radius: var(--radius);
  padding: 1.3rem;
  height: 100%;
}
.dl--primary { border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.dl--mirror  { border-color: color-mix(in srgb, var(--phosphor) 32%, transparent); }
.dl__tag {
  align-self: flex-start;
  font: 700 .62rem var(--display);
  text-transform: uppercase; letter-spacing: .17em;
  padding: .22rem .5rem;
  border-radius: 2px;
  margin-bottom: .85rem;
  background: var(--plate-hi); color: var(--ash);
}
.dl--primary .dl__tag { background: var(--amber); color: #17120a; }
.dl--mirror  .dl__tag { background: var(--phosphor); color: #0c130a; }
.dl__title { font-size: 1.16rem; margin-bottom: .25rem; }
.dl__sub {
  font: 500 .74rem var(--mono);
  color: var(--ash-dim);
  margin-bottom: .85rem;
}
.dl__body { font-size: .93em; color: var(--ash); flex: 1; }
.dl__body > :last-child { margin-bottom: 0; }
.dl__action { margin-top: 1.1rem; }

/* Facts list -------------------------------------------------------------- */
.facts { margin: 1.2rem 0; display: grid; gap: 0; }
.facts__row {
  display: grid;
  grid-template-columns: minmax(140px, 22%) 1fr;
  gap: 1rem;
  padding: .7rem 0;
  border-top: 1px solid var(--seam-soft);
}
.facts__row:last-child { border-bottom: 1px solid var(--seam-soft); }
.facts dt {
  font: 600 .74rem var(--mono);
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ash-dim);
  padding-top: .15rem;
}
.facts dd { margin: 0; font-size: .95em; }

/* Tables ------------------------------------------------------------------ */
.tablewrap { overflow-x: auto; margin: 1.4rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .91em;
  min-width: 480px;
}
th, td {
  text-align: left;
  padding: .62rem .85rem;
  border-bottom: 1px solid var(--seam-soft);
  vertical-align: top;
}
th {
  font: 700 .68rem var(--display);
  text-transform: uppercase; letter-spacing: .13em;
  color: var(--phosphor);
  border-bottom-color: var(--seam);
  white-space: nowrap;
}
tbody tr:hover td { background: #10161b; }
td:first-child { color: var(--bone); font-weight: 500; white-space: nowrap; }

/* --------------------------------------------------------------------------
   12. Screenshots & lightbox
   -------------------------------------------------------------------------- */
.shot { margin: 1.8rem 0; }
.shot__link {
  display: block;
  position: relative;
  border: var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  cursor: zoom-in;
  transition: border-color .18s var(--ease);
}
.shot__link:hover { border-color: color-mix(in srgb, var(--phosphor) 45%, transparent); }
.shot__link img { width: 100%; height: auto; }
.shot__zoom {
  position: absolute; right: .6rem; bottom: .6rem;
  display: inline-flex; align-items: center; gap: .45rem;
  background: color-mix(in srgb, var(--void) 86%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--seam);
  color: var(--silver);
  font: 500 .7rem var(--mono);
  padding: .3rem .6rem;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.shot__link:hover .shot__zoom,
.shot__link:focus-visible .shot__zoom { opacity: 1; transform: translateY(0); }
.shot__zoom-icon {
  width: 11px; height: 11px;
  border: 1.5px solid var(--phosphor);
  border-radius: 50%;
  position: relative;
}
.shot__zoom-icon::after {
  content: ""; position: absolute;
  right: -4px; bottom: -4px;
  width: 6px; height: 1.5px;
  background: var(--phosphor);
  transform: rotate(45deg);
}
.shot__caption {
  margin-top: .7rem;
  font-size: .84em;
  line-height: 1.6;
  color: var(--ash);
  border-left: 2px solid var(--seam);
  padding-left: .85rem;
}
.shot__caption strong { color: var(--silver); }

/* Overlay ----------------------------------------------------------------- */
/* Fully opaque, for the same reason the mod's own panel is: a see-through
   overlay over busy content is unreadable the moment anything is behind it. */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: #050708;
  display: flex; flex-direction: column;
  animation: lbin .18s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes lbin { from { opacity: 0; } to { opacity: 1; } }

.lightbox__bar {
  display: flex; align-items: center; gap: 1rem;
  padding: .8rem clamp(.8rem, 3vw, 1.6rem);
  border-bottom: var(--rule);
  background: var(--void);
  flex: none;
}
.lightbox__caption {
  margin: 0; flex: 1; min-width: 0;
  font: 500 .78rem var(--mono);
  color: var(--silver);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lightbox__tools { display: flex; align-items: center; gap: .5rem; flex: none; }
.lightbox__open, .lightbox__close {
  font: 600 .72rem var(--display);
  text-transform: uppercase; letter-spacing: .1em;
  padding: .42rem .8rem;
  border: 1px solid var(--seam);
  border-radius: 2px;
  background: var(--plate);
  color: var(--silver);
  text-decoration: none;
  cursor: pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.lightbox__open:hover, .lightbox__close:hover { color: var(--bone); border-color: #3a4650; }
.lightbox__close { color: var(--amber); }

.lightbox__stage {
  flex: 1; min-height: 0;
  overflow: auto;
  display: grid; place-items: center;
  padding: clamp(.5rem, 2vw, 1.5rem);
  cursor: zoom-in;
  overscroll-behavior: contain;
}
.lightbox__img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}
.lightbox__stage.is-actual { place-items: start; cursor: zoom-out; }
.lightbox__stage.is-actual .lightbox__img {
  max-width: none; max-height: none;
  width: auto; height: auto;
}
.lightbox__hint {
  margin: 0; flex: none;
  padding: .55rem 1rem;
  text-align: center;
  font-size: .72rem;
  color: var(--ash-dim);
  border-top: var(--rule);
  background: var(--void);
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.foot {
  border-top: var(--rule);
  background: var(--deck);
  margin-top: clamp(3rem, 7vw, 5.5rem);
}
.foot__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(2.4rem, 5vw, 3.6rem) var(--gutter) 2.4rem;
}
.foot__lead { max-width: 60ch; margin-bottom: 2.4rem; }
.foot__blurb { color: var(--ash); font-size: .96em; }

.foot__map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--seam-soft);
  border: 1px solid var(--seam-soft);
  margin-bottom: 2.4rem;
}
.foot__mapitem {
  background: var(--deck);
  padding: .95rem 1rem;
  text-decoration: none;
  transition: background .16s var(--ease);
}
.foot__mapitem:hover { background: var(--plate); }
.foot__maplabel {
  display: block;
  font: 700 .8rem var(--display);
  color: var(--bone);
  margin-bottom: .22rem;
}
.foot__mapblurb { display: block; font-size: .78rem; line-height: 1.5; color: var(--ash-dim); }

.foot__legal {
  border-top: var(--rule);
  padding-top: 1.5rem;
  font-size: .8rem;
  line-height: 1.65;
  color: var(--ash-dim);
  max-width: 78ch;
}
.foot__legal p { margin-bottom: .6rem; }
.foot__legal strong { color: var(--ash); }
.foot__thin { opacity: .75; }

/* --------------------------------------------------------------------------
   14. Page-specific odds and ends
   -------------------------------------------------------------------------- */
.pagehead { padding-block: clamp(2.6rem, 6vw, 4.2rem) clamp(1.6rem, 3vw, 2.4rem); }
.pagehead__title {
  font-size: clamp(2rem, 5.2vw, 3.3rem);
  letter-spacing: -.024em;
  max-width: 20ch;
  text-wrap: balance;
}
.pagehead__lede { max-width: 64ch; margin-top: 1rem; }

.stagemark {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 700 .7rem var(--display);
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--void);
  background: var(--phosphor);
  padding: .3rem .7rem;
  border-radius: 2px;
  margin-bottom: 1.1rem;
}
.stagemark--two { background: var(--amber); }

.split {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
}
/* Grid items default to min-width:auto, which lets a wide <pre> or .tree push
   the whole column past the viewport. Pin them to 0 so those blocks scroll
   inside themselves instead. */
.split__main, .split__aside { min-width: 0; }
.step, .step__panel, .step__body { min-width: 0; }
.split__aside { position: sticky; top: 5.5rem; }

.jump {
  background: var(--plate);
  border: var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.jump__title {
  font: italic 700 .66rem/1 var(--display);
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--ash-dim);
  margin: 0 0 .7rem;
}
.jump ul { list-style: none; margin: 0; padding: 0; }
.jump li { margin-bottom: .3rem; }
.jump a {
  font: 500 .8rem var(--mono);
  color: var(--ash);
  text-decoration: none;
  display: block;
  padding: .18rem 0;
  transition: color .16s var(--ease), padding-left .16s var(--ease);
}
.jump a:hover { color: var(--phosphor); padding-left: .3rem; }

.tree {
  font: 500 .8rem/1.85 var(--mono);
  background: #070a0c;
  border: 1px solid var(--seam);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  margin: 1.3rem 0;
  white-space: pre;
  color: var(--ash);
}
.tree b { color: var(--bone); font-weight: 500; }
.tree i { color: var(--phosphor); font-style: normal; }
.tree u { color: var(--amber); text-decoration: none; }
.tree s { color: var(--ash-dim); text-decoration: none; }

.legend {
  display: flex; flex-wrap: wrap; gap: 1.1rem;
  font: 500 .74rem var(--mono);
  color: var(--ash-dim);
  margin-top: -.6rem; margin-bottom: 1.6rem;
}
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend i {
  width: 9px; height: 9px; display: inline-block;
  transform: rotate(45deg);
}
.legend .k-game { background: var(--bone); }
.legend .k-olmod { background: var(--phosphor); }
.legend .k-mod { background: var(--amber); }

.faq { border-top: 1px solid var(--seam-soft); }
.faq__item { border-bottom: 1px solid var(--seam-soft); }
.faq__q {
  width: 100%;
  display: flex; align-items: flex-start; gap: .9rem;
  background: none; border: 0;
  padding: 1.05rem 0;
  text-align: left;
  color: var(--bone);
  font: 600 1rem var(--display);
  cursor: pointer;
}
.faq__q:hover { color: var(--amber); }
.faq__sign {
  flex: none; margin-top: .18rem;
  width: 14px; height: 14px;
  position: relative;
}
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; background: var(--phosphor);
  left: 50%; top: 50%;
}
.faq__sign::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.faq__sign::after  { width: 1.5px; height: 12px; transform: translate(-50%, -50%); transition: transform .2s var(--ease); }
.faq__q[aria-expanded="true"] .faq__sign::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__a {
  padding: 0 0 1.2rem 1.9rem;
  font-size: .95em;
  color: var(--ash);
  max-width: 72ch;
}
.faq__a > :last-child { margin-bottom: 0; }
.faq__a[hidden] { display: none; }

.pager {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between;
  border-top: var(--rule);
  padding-top: 1.6rem;
  margin-top: 2.6rem;
}
.pager__link {
  text-decoration: none;
  display: flex; flex-direction: column; gap: .2rem;
  max-width: 46%;
}
.pager__dir {
  font: italic 700 .64rem var(--display);
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--ash-dim);
}
.pager__label { font: 700 1rem var(--display); color: var(--bone); }
.pager__link:hover .pager__label { color: var(--amber); }
.pager__link--next { text-align: right; margin-left: auto; }

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 940px) {
  .split { grid-template-columns: 1fr; }
  .split__aside { position: static; order: -1; }
}

@media (max-width: 820px) {
  .navtoggle {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--plate); border: 1px solid var(--seam);
    color: var(--silver);
    font: 600 .74rem var(--display);
    text-transform: uppercase; letter-spacing: .12em;
    padding: .5rem .75rem; border-radius: 2px; cursor: pointer;
  }
  .navtoggle__bars {
    width: 14px; height: 9px;
    border-top: 1.5px solid var(--phosphor);
    border-bottom: 1.5px solid var(--phosphor);
    position: relative;
  }
  .navtoggle__bars::after {
    content: ""; position: absolute; left: 0; top: 50%;
    width: 100%; height: 1.5px; background: var(--phosphor);
    transform: translateY(-50%);
  }

  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--deck);
    border-bottom: var(--rule);
    padding: .5rem var(--gutter) 1rem;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: .7rem .4rem; border-bottom: 1px solid var(--seam-soft); }
  .nav__link.is-current { background: none; color: var(--phosphor); }
}

@media (max-width: 620px) {
  .step { padding-left: 0; }
  .spine::before { display: none; }
  .step__node {
    position: static;
    margin-bottom: .7rem;
    width: 32px; height: 32px;
  }
  .facts__row { grid-template-columns: 1fr; gap: .25rem; }
  .pager__link { max-width: 100%; }
  .pager__link--next { text-align: left; margin-left: 0; }
  .codeblock pre { padding-right: 1rem; padding-top: 2.6rem; }
  .codeblock__copy { top: .4rem; right: .4rem; }
}

/* --------------------------------------------------------------------------
   16. Preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .plan::after { display: none; }
}

@media print {
  .topbar, .lightbox, .readout__reset, .codeblock__copy, .navtoggle, .pager { display: none !important; }
  body { background: #fff; color: #000; }
  .step__panel, .card, .callout { border: 1px solid #999; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
