/* Couch co-op mods: one stylesheet, no framework.
   Per-mod accent colours are appended by scripts/build.py from site/content/*.json. */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-600-latin.5bc49d41f3.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: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-700-latin.e3e520cb74.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;
}

:root {
  --bg: #0b0f15;
  --bg-raise: #0f141c;
  --panel: #121923;
  --panel-2: #18212d;
  --panel-3: #1e2936;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --text: #e8edf3;
  --muted: #a1adbb;
  --dim: #6f7d8c;
  --accent: #e8edf3;
  --accent-ink: #0b0f15;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .75);
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: 16px;
  color-scheme: dark;
}
@media (min-width: 700px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(111, 200, 242, .07), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(242, 166, 64, .06), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.62 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
picture { display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
code, kbd, .mono { font-family: var(--mono); font-size: .88em; }
code { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 5px; padding: .08em .38em; word-break: break-word; }
kbd { display: inline-block; min-width: 1.6em; text-align: center; padding: .05em .45em; border-radius: 6px; background: var(--panel-3); border: 1px solid var(--line-2); border-bottom-width: 2px; color: var(--text); font-size: .82em; line-height: 1.5; }
strong { color: #fff; font-weight: 650; }
.dim { color: var(--dim); }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.icon { width: 22px; height: 22px; flex: none; }
.icon--sm { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(11, 15, 21, .78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { font: 700 1.3rem/1 var(--display); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: flex; gap: 4px; flex: none; }
.topnav a {
  position: relative; text-decoration: none; color: var(--muted);
  font: 600 1.02rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 10px; border-radius: 8px; transition: color .15s, background .15s;
}
.topnav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.topnav a[aria-current="page"] { color: var(--text); }
.topnav a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
@media (max-width: 420px) { .brand__name { font-size: 1.08rem; } .topnav a { padding: 10px 7px; font-size: .95rem; } }

/* ---------------------------------------------------------------- shared bits */
.eyebrow {
  margin: 0 0 12px; color: var(--muted);
  font: 600 .98rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.eyebrow a:hover { border-bottom-color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: .01em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(2.8rem, 8vw, 5.4rem); text-transform: uppercase; letter-spacing: .005em; }
.lead { font-size: clamp(1.04rem, 1.6vw, 1.2rem); color: #ced7e1; max-width: 40em; margin: 16px 0 0; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.chips li {
  font: 600 .84rem/1 var(--body); color: #d6dee7; padding: 7px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font: 700 1.1rem/1 var(--display); letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, background .15s, border-color .15s, box-shadow .15s, filter .15s;
}
.btn:active { transform: translateY(1px); }
.btn--light { background: var(--text); color: var(--bg); margin-top: 26px; }
.btn--light:hover { background: #fff; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { filter: brightness(1.08); }
.btn--ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .22); }
.btn--block { width: 100%; }

.section { padding-top: clamp(48px, 8vw, 88px); }
.section__title {
  font-size: clamp(1.9rem, 4vw, 2.6rem); text-transform: uppercase; margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.section__title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

/* ---------------------------------------------------------------- home hero (it's a split screen) */
.home-hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; isolation: isolate; }
.home-hero__split { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-rows: 1fr 1fr; gap: 4px; background: #000; }
.home-hero__half { position: relative; overflow: hidden; }
.home-hero__half picture, .home-hero__half img { width: 100%; height: 100%; }
.home-hero__half img { object-fit: cover; }
.home-hero__half:first-child img { object-position: 50% 25%; }
.home-hero__half:last-child img { object-position: 50% 30%; }
.ptag {
  position: absolute; right: var(--gutter); top: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 8px; border-radius: 8px;
  background: rgba(8, 11, 16, .72); border: 1px solid rgba(255, 255, 255, .12);
  font: 700 .95rem/1 var(--display); letter-spacing: .08em; color: var(--accent);
}
.ptag span { color: #dfe6ee; font-weight: 600; letter-spacing: .04em; }
.home-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 15, 21, .82) 34%, rgba(11, 15, 21, .2) 70%, rgba(11, 15, 21, .35) 100%);
}
.home-hero__content { padding-bottom: clamp(36px, 7vw, 76px); padding-top: 120px; }
.home-hero__content h1 { text-shadow: 0 4px 30px rgba(0, 0, 0, .55); }
@media (min-width: 900px) {
  .home-hero { align-items: center; }
  .home-hero::before {
    background:
      linear-gradient(90deg, rgba(11, 15, 21, .94) 0%, rgba(11, 15, 21, .78) 34%, rgba(11, 15, 21, .1) 68%),
      linear-gradient(0deg, var(--bg) 0%, transparent 22%);
  }
  .home-hero__content { padding-top: 60px; padding-bottom: 60px; }
  .home-hero__content > * { max-width: 560px; }
}

/* Phones and small tablets: the split screen sits on top as a picture, the words go under it. */
@media (max-width: 899px) {
  .home-hero { display: block; min-height: 0; }
  .home-hero__split { position: relative; inset: auto; height: 96vw; max-height: 640px; }
  .home-hero::before {
    inset: 0 0 auto 0; height: 96vw; max-height: 640px;
    background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 15, 21, .5) 20%, rgba(11, 15, 21, 0) 48%);
  }
  .home-hero__content { position: relative; padding-top: 0; margin-top: -34px; }
}

/* ---------------------------------------------------------------- home tiles */
.tiles { display: grid; gap: 22px; }
@media (min-width: 980px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s;
}
.tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); z-index: 2; }
.tile__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover .tile__media img { transform: scale(1.035); }
.tile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18, 25, 35, .9), transparent 45%); }
.tile__version {
  position: absolute; left: 16px; bottom: 14px; z-index: 1; padding: 5px 9px; border-radius: 7px;
  background: var(--accent); color: var(--accent-ink); font: 700 .95rem/1 var(--display); letter-spacing: .06em;
}
.tile__body { display: flex; flex-direction: column; align-items: flex-start; padding: 6px 22px 24px; flex: 1; }
.tile__game { margin: 0; color: var(--muted); font-size: .92rem; }
.tile__game a { color: var(--text); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.tile__title { font-size: clamp(2rem, 4vw, 2.5rem); text-transform: uppercase; margin: 6px 0 10px; }
.tile__title a { text-decoration: none; }
.tile__blurb { margin: 0; color: #c8d1db; }
.tile .chips { margin-top: 16px; }
.tile .btn { margin-top: 22px; }

/* ---------------------------------------------------------------- how it works */
.how__grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .how__grid { grid-template-columns: repeat(3, 1fr); } }
.how__item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; }
.how__num { font: 700 1rem/1 var(--display); color: var(--dim); letter-spacing: .1em; }
.how__item h3 { font-size: 1.55rem; text-transform: uppercase; margin: 10px 0 8px; }
.how__item p { margin: 0; color: var(--muted); }
.how__fine { color: var(--dim); font-size: .92rem; margin: 20px 0 0; max-width: 46em; }

/* ---------------------------------------------------------------- mod hero */
.mod-hero { position: relative; isolation: isolate; padding: 64px 0 34px; overflow: hidden; }
.mod-hero__media { position: absolute; inset: 0; z-index: -2; }
.mod-hero__media picture, .mod-hero__media img { width: 100%; height: 100%; }
.mod-hero__media img { object-fit: cover; object-position: 50% 30%; }
.mod-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 15, 21, .86) 38%, rgba(11, 15, 21, .45) 100%);
}
.mod-hero__grid { display: grid; gap: 26px; align-items: end; }
.mod-hero__text { padding-top: 90px; }
.mod-hero__text h1 { font-size: clamp(2.6rem, 7.5vw, 5rem); text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: #cfd7e0; }
@media (min-width: 980px) {
  .mod-hero { padding: 96px 0 56px; min-height: min(84vh, 740px); display: flex; align-items: flex-end; }
  .mod-hero::before {
    background:
      linear-gradient(90deg, rgba(11, 15, 21, .92) 0%, rgba(11, 15, 21, .62) 45%, rgba(11, 15, 21, .25) 100%),
      linear-gradient(0deg, var(--bg) 0%, transparent 30%);
  }
  .mod-hero__grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; }
  .mod-hero__text { padding-top: 0; padding-bottom: 6px; }
}

@media (max-width: 979px) {
  .mod-hero { padding-top: 0; }
  .mod-hero__media { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .mod-hero::before { inset: 0 0 auto 0; aspect-ratio: 16 / 9; background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 15, 21, 0) 42%); }
  .mod-hero__text { position: relative; padding-top: 0; margin-top: -22px; }
}

/* ---------------------------------------------------------------- download card */
.dl-card {
  background: rgba(16, 22, 31, .86); border: 1px solid var(--line-2); border-radius: 20px; padding: 18px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow);
  scroll-margin-top: 90px;
}
.btn--download {
  width: 100%; min-height: 76px; justify-content: flex-start; gap: 16px; padding: 14px 20px; border-radius: 14px;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 34px -10px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--download:hover { filter: brightness(1.07); box-shadow: 0 14px 40px -10px color-mix(in srgb, var(--accent) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--download .icon { width: 30px; height: 30px; }
.btn__stack { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; }
.btn__main { font-size: 1.55rem; letter-spacing: .05em; }
.btn__sub { font: 600 .86rem/1 var(--body); letter-spacing: 0; text-transform: none; opacity: .78; }
.btn.is-disabled { filter: grayscale(.7) brightness(.7); cursor: not-allowed; }

.meta { margin: 16px 0 0; display: grid; gap: 0; }
.meta div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.meta dt { color: var(--muted); flex: none; }
.meta dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.meta .mono { font-size: .84rem; }

.hash { margin-top: 14px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 10px; }
.hash__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font: 600 .82rem/1 var(--body); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.hash__value { display: block; background: none; border: 0; padding: 0; font-size: .8rem; line-height: 1.55; color: #dfe7ef; word-break: break-all; letter-spacing: .02em; }
.hash__how { margin: 8px 0 0; font-size: .8rem; color: var(--dim); }
.hash__how code { font-size: .92em; }
.copy {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); color: var(--text);
  font: 600 .8rem/1 var(--body); letter-spacing: 0; text-transform: none;
}
.copy:hover { background: rgba(255, 255, 255, .11); }
.copy.is-done { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }

/* ---------------------------------------------------------------- section tabs */
.tabs {
  position: sticky; top: 60px; z-index: 20; margin-top: 8px;
  background: rgba(11, 15, 21, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.tabs__inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs__inner::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; padding: 14px 12px; color: var(--muted); text-decoration: none; white-space: nowrap;
  font: 600 1.02rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid transparent;
}
.tabs a:hover { color: var(--text); }
.tabs a.is-active { color: var(--text); border-bottom-color: var(--accent); }

/* ---------------------------------------------------------------- mod body */
.mod-body { display: grid; gap: 28px; padding-top: 10px; padding-bottom: 40px; }
@media (min-width: 980px) {
  .mod-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
  .mod-side { position: sticky; top: 130px; align-self: start; }
}
.block { padding-top: 44px; scroll-margin-top: 110px; }
.block h2 { font-size: clamp(2rem, 4vw, 2.5rem); text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.block h2::before { content: ""; width: 6px; height: .8em; border-radius: 2px; background: var(--accent); flex: none; }
.block h3 { font-size: 1.45rem; text-transform: uppercase; margin: 28px 0 10px; color: #f3f6f9; }
.block p { margin: 0 0 14px; color: #cdd6e0; max-width: 46em; }
.block h4 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .05em; margin: 20px 0 10px; }

.ticks, .dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 48em; }
.ticks li, .dots li { position: relative; padding-left: 30px; color: #cdd6e0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}
.ticks li::after {
  content: ""; position: absolute; left: 6px; top: calc(.28em + 4px); width: 5px; height: 9px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.dots li::before { content: ""; position: absolute; left: 7px; top: .66em; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }

details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }

.codes { margin-top: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.codes > summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; font: 700 1.25rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.codes > summary::after, .faq summary::after, .more > summary::after {
  content: ""; width: 9px; height: 9px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); transition: transform .2s; flex: none; margin-left: 14px;
}
.codes[open] > summary::after, .faq details[open] summary::after, .more[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.codes__body { padding: 0 18px 18px; border-top: 1px solid var(--line); }
.codes__body > p { margin-top: 14px; font-size: .95rem; }
.codes__grid { display: grid; gap: 6px; margin: 0; }
@media (min-width: 640px) { .codes__grid { grid-template-columns: 1fr 1fr; gap: 6px 16px; } }
.codes__grid div { display: flex; align-items: baseline; gap: 12px; padding: 7px 10px; border-radius: 8px; background: rgba(255, 255, 255, .03); }
.codes__grid dt { font-family: var(--mono); font-size: .82rem; font-weight: 600; color: var(--accent); min-width: 9.5em; letter-spacing: .02em; }
.codes__grid dd { margin: 0; color: #cdd6e0; font-size: .92rem; }

.specs { margin: 0; display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.specs div { display: grid; gap: 4px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.specs div:last-child { border-bottom: 0; }
@media (min-width: 640px) { .specs div { grid-template-columns: 150px 1fr; gap: 16px; } }
.specs dt { color: var(--muted); font-weight: 600; font-size: .93rem; }
.specs dd { margin: 0; color: #dbe2ea; }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.gallery__item { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .2s; }
.gallery__item:hover img { transform: scale(1.04); filter: brightness(1.08); }
.gallery__item:focus-visible { outline-offset: 2px; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 50em; }
.steps > li {
  counter-increment: step; position: relative; padding: 14px 16px 14px 62px; min-height: 54px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: #d3dbe4;
}
.steps > li::before {
  content: counter(step); position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  font: 700 1.2rem/1 var(--display);
}
.steps--compact > li { padding-top: 12px; padding-bottom: 12px; min-height: 0; }
.steps--compact > li::before { top: 9px; width: 28px; height: 28px; font-size: 1.05rem; }
.note { margin-top: 14px !important; padding: 12px 14px; border-left: 3px solid var(--accent); background: rgba(255, 255, 255, .03); border-radius: 0 10px 10px 0; }
#uninstall .steps { margin-bottom: 14px; }

.more { margin-top: 4px; }
.more > summary { display: inline-flex; align-items: center; color: var(--muted); font-weight: 600; padding: 6px 0; }
.more > summary:hover { color: var(--text); }
.more p { margin-top: 8px; }

.faq { display: grid; gap: 8px; max-width: 50em; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-weight: 650; color: #eef2f6; }
.faq details p { padding: 0 16px 14px; margin: 0; }

.changelog { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 50em; }
.changelog > li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.changelog__head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.changelog__head time { color: var(--muted); font-size: .9rem; }
.badge { font: 700 1.15rem/1 var(--display); letter-spacing: .04em; padding: 5px 9px; border-radius: 7px; background: var(--panel-3); border: 1px solid var(--line-2); }
.tag { font: 700 .78rem/1 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); background: var(--accent); padding: 5px 8px; border-radius: 6px; }
.changelog ul { margin: 0; padding-left: 20px; color: #cdd6e0; }
.changelog ul li { margin: 3px 0; }

.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 44px; }
.side-card + .side-card { margin-top: 14px; }
.side-card__title { font-size: 1.35rem; text-transform: uppercase; margin-bottom: 12px; letter-spacing: .04em; }
.glance { margin: 0; }
.glance div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.glance div:last-child { border-bottom: 0; }
.glance dt { color: var(--muted); }
.glance dd { margin: 0; text-align: right; }
.glance a { color: var(--accent); }
.credit p { margin: 0 0 14px; color: #cdd6e0; }
.credit .btn { margin-bottom: 14px; font-size: 1.02rem; }
.credit__fine { font-size: .86rem; color: var(--dim) !important; }
.credit__fine:last-child { margin-bottom: 0 !important; }
@media (max-width: 979px) { .side-card:first-child { margin-top: 10px; } }

/* ---------------------------------------------------------------- lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 7, 10, .94); color: var(--text); }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__fig { margin: 0; width: min(94vw, 1600px); }
.lightbox__img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: 10px; background: #000; }
.lightbox__cap { margin-top: 12px; text-align: center; color: #cdd6e0; font-size: .95rem; padding: 0 48px; }
.lightbox__btn {
  position: fixed; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2); color: #fff; font: 400 2rem/1 var(--body);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .16); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; transform: none; } }

/* ---------------------------------------------------------------- 404 + footer */
.notfound { padding-top: 110px; padding-bottom: 80px; }
.notfound__list { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.notfound__list .btn--light { margin-top: 0; }
.footer { margin-top: 70px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .2); }
.footer__inner { padding-top: 32px; padding-bottom: 40px; display: grid; gap: 16px; }
.footer__brand { display: flex; align-items: center; gap: 10px; font: 700 1.2rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.footer__brand .brand__mark { width: 26px; height: 26px; }
.footer__legal { margin: 0; color: var(--dim); font-size: .88rem; max-width: 60em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__links a { color: var(--muted); font-size: .92rem; text-decoration: none; }
.footer__links a:hover { color: var(--text); }

/* per-mod accents, generated from site/content/*.json */
body.mod-over-the-hill, [data-mod="over-the-hill"] { --accent: #f2a640; --accent-ink: #1d1203; }
body.mod-peak, [data-mod="peak"] { --accent: #6fc8f2; --accent-ink: #04131c; }
