@font-face {
  font-family: "Minecraft Rus";
  src: url("fonts/minecraft-rus.ttf?v=1") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #22272e;
  --band: #1c2128;
  --raised: #2d333b;
  --raised-hover: #373e47;
  --line: #444c56;
  --line-soft: #373e47;
  --grid: rgba(173, 186, 199, 0.08);
  --text: #adbac7;
  --muted: #8b95a1;
  --contrast: #e1e8ef;
  --brand: #c24c82;
  --brand-hover: #cf5a90;
  --brand-press: #a94072;
  --brand-soft: rgba(194, 76, 130, 0.16);
  --amber: #f0a35e;
  --ok: #4f9a55;
  --ok-text: #6bc46f;
  --accent: #e275ad;
  --edge: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
  --edge-pressed: inset 0 3px 0 rgba(0, 0, 0, 0.25);
  --pixel: "Minecraft Rus", "Courier New", monospace;
  --sans: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

#packs, [href="#packs"] { --accent: #e275ad; }
#inside, [href="#inside"] { --accent: #f0a35e; }
#install, [href="#install"] { --accent: #6bc46f; }
#server, [href="#server"] { --accent: #6cb6ff; }
#updates, [href="#updates"] { --accent: #b083f0; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--contrast); text-decoration-color: rgba(225, 232, 239, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--brand-hover); }
:focus-visible { outline: 2px solid var(--brand-hover); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; color: var(--contrast); font-weight: 600; text-wrap: balance; }
p { margin: 0; }
code { font: 500 0.92em/1.4 var(--mono); color: var(--contrast); background: var(--raised); border: 1px solid var(--line-soft); padding: 1px 6px; overflow-wrap: anywhere; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 30; top: 8px; left: 8px; padding: 8px 14px; background: var(--raised); }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-content: start; }
.band { background: var(--band); }
.fine { font-size: 14px; color: var(--muted); }

/* The grid sits above section backgrounds so it reads as one frame down the whole page;
   pointer-events keeps it out of the way of every control under it. */
body::after {
  content: ""; position: fixed; top: 0; bottom: 0; left: 50%; z-index: 5; pointer-events: none;
  width: min(1200px, 100%); transform: translateX(-50%);
  border-inline: 1px solid var(--grid);
  background: linear-gradient(to right,
    transparent calc(25% - 1px), var(--grid) calc(25% - 1px) 25%,
    transparent 25% calc(50% - 1px), var(--grid) calc(50% - 1px) 50%,
    transparent 50% calc(75% - 1px), var(--grid) calc(75% - 1px) 75%,
    transparent 75%);
}

section { position: relative; padding-block: 88px; border-top: 1px solid var(--line-soft); }
section[id]::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 320px; pointer-events: none;
  background: linear-gradient(color-mix(in srgb, var(--accent) 11%, transparent), transparent);
}
section > .wrap { position: relative; }
section[id] h2 { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 0;
  font: 600 13.5px/1 var(--sans); letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.08s ease, transform 0.06s ease;
}
.btn:active { transform: translateY(1px); }
.btn.solid { background: var(--brand); color: #fff; box-shadow: var(--edge); }
.btn.solid:hover { background: var(--brand-hover); }
.btn.solid:active { background: var(--brand-press); box-shadow: var(--edge-pressed); }
.btn.ring { background: var(--raised); color: var(--contrast); border-color: var(--line); box-shadow: var(--edge); }
.btn.ring:hover { background: var(--raised-hover); border-color: #5b6470; }
.btn.ring:active { box-shadow: var(--edge-pressed); }
.btn.big { height: 56px; padding: 0 28px; font-size: 14.5px; }
.btn.started, .btn.started:hover { background: var(--ok); border-color: var(--ok); color: #fff; }

.nav { position: sticky; top: 0; z-index: 20; background: rgba(28, 33, 40, 0.97); border-bottom: 1px solid var(--line-soft); }
.nav-inner { display: flex; align-items: stretch; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 700 14px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--contrast); }
.brand img { image-rendering: pixelated; }
.nav-links { display: flex; margin-right: auto; }
.nav-links a {
  display: flex; align-items: center; padding: 0 14px; border-bottom: 2px solid transparent;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 14px;
  transition: background-color 0.12s, color 0.12s, border-color 0.12s;
}
.nav-links a:hover { color: var(--contrast); background: var(--raised); border-bottom-color: var(--brand); }
.nav-links a[aria-current] { color: var(--contrast); border-bottom-color: var(--accent); }
.nav-actions { display: flex; }
.nav-actions .btn { height: 100%; border-width: 0 0 0 1px; border-color: var(--line-soft); box-shadow: none; }
.nav-actions .btn:active { transform: none; filter: brightness(0.92); }
.nav { transition: box-shadow 0.2s; }
.nav.scrolled { box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--now, var(--brand)); transform: scaleX(0); transform-origin: left; transition: background-color 0.4s; }

.hero { padding-block: 80px 104px; border-top: 0; overflow: hidden; isolation: isolate; }
.hero-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(34, 39, 46, 0.45), rgba(34, 39, 46, 0.62) 60%, rgba(34, 39, 46, 0.97)); }
.hero-body { display: grid; justify-items: center; text-align: center; gap: 24px; }
.hero-logo { width: min(460px, 86%); height: auto; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35)); }
h1 { font-family: var(--pixel); font-weight: 400; font-size: 64px; line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; -webkit-font-smoothing: none; text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45); }
.hero-lede { max-width: 40em; font-size: 18px; line-height: 1.6; color: #e1e8ef; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.hero-note, .shot-cap, .reel-note, .guide-note { font: 400 12.5px/1.5 var(--mono); color: #c3ccd5; }
.hero-note::before, .shot-cap::before, .reel-note::before, .guide-note::before {
  content: ""; display: inline-block; width: 20px; margin-right: 8px; vertical-align: middle; border-top: 1px dashed currentColor; opacity: 0.7;
}

.section-head { display: grid; gap: 12px; max-width: 660px; }
.section-head.row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; max-width: none; }
.section-head.row > div:first-child { display: grid; gap: 12px; max-width: 660px; }
h2 { font-family: var(--pixel); font-weight: 400; font-size: 40px; line-height: 1.1; letter-spacing: 0.02em; text-transform: uppercase; -webkit-font-smoothing: none; }
h3 { font-size: 17px; line-height: 1.35; }
.section-head p { font-size: 16.5px; }
.section-head b { color: var(--contrast); font-weight: 600; }

.label { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border: 1px solid var(--line); font: 500 12px/1 var(--sans); color: var(--muted); white-space: nowrap; }
.counter { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; background: var(--raised-hover); font: 600 12px/1 var(--sans); color: var(--contrast); font-variant-numeric: tabular-nums; }

.editions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.edition { position: relative; display: grid; gap: 12px; }
.edition-btn {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  width: 100%; height: 80px; padding: 0 22px 0 26px; border: 1px solid transparent; border-radius: 0;
  font: 600 14px/1 var(--sans); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 0.12s, border-color 0.12s, box-shadow 0.08s, transform 0.06s;
}
.edition-btn:active { transform: translateY(1px); }
.edition-btn.solid { background: var(--brand); color: #fff; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25); }
.edition-btn.solid:hover { background: var(--brand-hover); }
.edition-btn.ring { background: var(--raised); color: var(--contrast); border-color: var(--line); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2); }
.edition-btn.ring:hover { background: var(--raised-hover); border-color: #5b6470; }
.edition-btn[aria-expanded="true"] { box-shadow: inset 0 4px 0 rgba(0, 0, 0, 0.25); }
.edition-name { font-family: var(--pixel); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; -webkit-font-smoothing: none; }
.edition-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: flex-end; font: 500 12.5px/1.3 var(--mono); opacity: 0.9; }
.chev { width: 22px; height: 22px; transition: transform 0.15s ease; }
.edition-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.edition-sum { font-size: 14.5px; color: var(--muted); }
.menu {
  position: absolute; z-index: 10; top: 88px; left: 0; right: 0; list-style: none; margin: 0; padding: 0;
  background: var(--raised); border: 1px solid var(--line); box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
  animation: menu-in 0.12s ease-out;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.menu li + li { border-top: 1px solid var(--line-soft); }
.menu-row { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 14px; padding: 12px 12px 12px 14px; color: var(--contrast); text-decoration: none; transition: background-color 0.12s; }
.menu-row:hover { background: var(--raised-hover); }
.menu-row:focus-visible { outline-offset: -2px; }
.launcher { width: 40px; height: 40px; display: grid; place-items: center; background: var(--band); border: 1px solid var(--line-soft); }
.launcher i { display: block; width: 22px; height: 22px; background: var(--c); -webkit-mask: var(--u) center / contain no-repeat; mask: var(--u) center / contain no-repeat; }
.launcher img { width: 24px; height: 24px; }
.menu-name { display: grid; gap: 3px; }
.menu-name b { font-weight: 600; font-size: 15.5px; }
.menu-name small { font: 400 12.5px/1.4 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.dl-ico { width: 40px; height: 40px; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: var(--edge); transition: background-color 0.12s; }
.menu-row:hover .dl-ico { background: var(--brand-hover); }
.menu-row:active .dl-ico { box-shadow: var(--edge-pressed); }
.dl-ico svg { width: 18px; height: 18px; }
.menu-row.started .dl-ico { background: var(--ok); }
.menu-row.off { opacity: 0.6; cursor: default; }
.menu-row.off:hover { background: none; }

.gallery-section { padding-block: 40px 36px; }
.reel { padding-block: 6px; overflow-x: auto; scrollbar-width: none; }
.js .reel { overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.js .reel.dragging, .js .reel.dragging .shot-img { cursor: grabbing; }
.reel-track { list-style: none; margin: 0; display: flex; gap: 16px; width: max-content; padding: 0 24px 0 max(24px, calc((100% - 1200px) / 2 + 24px)); }
.reel-track > li { flex: none; width: clamp(260px, 32vw, 480px); }
.shot { display: grid; gap: 10px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: inherit; }
.shot-img { position: relative; display: block; overflow: hidden; border: 1px solid var(--line-soft); background: var(--band); cursor: zoom-in; }
.shot-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; -webkit-user-drag: none; transition: transform 0.6s cubic-bezier(0.2, 0.75, 0.2, 1); }
.shot:hover .shot-img img { transform: scale(1.04); }
.shot-zoom { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 34px; height: 34px; background: rgba(28, 33, 40, 0.92); border: 1px solid var(--line); color: var(--contrast); opacity: 0; transform: translateY(-4px); transition: opacity 0.15s, transform 0.15s; }
.shot-zoom svg { width: 16px; height: 16px; }
.shot:hover .shot-zoom, .shot:focus-visible .shot-zoom { opacity: 1; transform: none; }
.shot:focus-visible { outline: none; }
.shot:focus-visible .shot-img { outline: 2px solid var(--brand-hover); outline-offset: 2px; }
.shot-cap { color: var(--muted); }
@media (hover: none) { .shot-zoom { opacity: 1; transform: none; } }
.reel-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 16px; }
.reel-note { color: var(--muted); }
html:not(.js) .reel-side { display: none; }
.reel-side { display: flex; align-items: center; gap: 18px; }
.reel-dots { display: flex; gap: 4px; }
.reel-dots button { width: 18px; height: 20px; padding: 0; border: 0; cursor: pointer; background: linear-gradient(var(--line), var(--line)) center / 100% 6px no-repeat; }
.reel-dots button:hover { background-image: linear-gradient(#5b6470, #5b6470); }
.reel-dots button[aria-current="true"] { background-image: linear-gradient(var(--brand), var(--brand)); }
.reel-ctl { display: flex; gap: 8px; }
.sq {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 0; background: var(--raised); color: var(--contrast); box-shadow: var(--edge);
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 0.12s, border-color 0.12s;
}
.sq:hover { background: var(--raised-hover); border-color: #5b6470; }
.sq:active { box-shadow: var(--edge-pressed); }
.sq svg { width: 16px; height: 16px; }
.sq[aria-pressed="true"] .i-pause, .sq:not([aria-pressed="true"]) .i-play { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  display: inline-flex; gap: 8px; align-items: center; height: 36px; padding: 0 8px 0 14px;
  border: 1px solid var(--line); border-radius: 0; background: var(--raised); color: var(--text);
  font: 500 14px/1 var(--sans); cursor: pointer; transition: background-color 0.12s, color 0.12s, border-color 0.12s, transform 0.06s;
}
.chips button.plain { padding-right: 14px; }
.chips button:hover { background: var(--raised-hover); color: var(--contrast); }
.chips button:active { transform: translateY(1px); }
.chips button[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--contrast); box-shadow: inset 0 -2px 0 var(--brand); }
.chips .sep { width: 1px; background: var(--line); margin: 4px 4px; }
.search input { width: min(300px, 100%); height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 0; background: var(--ground); color: var(--contrast); font: 400 14.5px/1 var(--sans); transition: border-color 0.12s; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--brand-hover); box-shadow: inset 0 -2px 0 var(--brand-hover); }

.cmp { border: 1px solid var(--line); overflow: hidden; background: var(--ground); }
.cmp-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px 72px 72px; align-items: center; gap: 16px; padding: 10px 16px; }
.cmp-row + .cmp-row, #cmp-body .cmp-row:first-child { border-top: 1px solid var(--line-soft); }
#cmp-body .cmp-row:hover { background: rgba(173, 186, 199, 0.04); }
.cmp-head { background: var(--raised); font: 600 11.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-block: 12px; }
.cmp-col { text-align: center; justify-self: center; }
.cmp-mod { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: center; min-width: 0; color: var(--text); text-decoration: none; }
.cmp-mod img, .cmp-mod .ph { width: 32px; height: 32px; background: var(--raised); object-fit: cover; image-rendering: auto; }
.cmp-mod .ph { display: grid; place-items: center; font: 600 13px/1 var(--sans); color: var(--muted); }
.cmp-mod span { display: grid; min-width: 0; }
.cmp-mod b { color: var(--contrast); font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.cmp-mod:hover b { text-decoration: underline; text-decoration-color: var(--brand-hover); text-underline-offset: 3px; }
.cmp-mod small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-type { font-size: 13px; color: var(--muted); }
.cmp-more { justify-self: center; }
.yes, .no { width: 24px; height: 24px; display: grid; place-items: center; justify-self: center; }
.yes { background: rgba(79, 154, 85, 0.2); color: var(--ok-text); }
.no { color: #636e7b; }
.yes svg, .no svg { width: 14px; height: 14px; }

.tabs { display: inline-flex; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); background: var(--raised); }
.tabs button {
  height: 40px; padding: 0 16px; border: 0; border-radius: 0; background: transparent; color: var(--text);
  font: 600 12.5px/1 var(--sans); letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
  transition: background-color 0.12s, color 0.12s;
}
.tabs button + button { border-left: 1px solid var(--line); }
.tabs button:hover { color: var(--contrast); background: var(--raised-hover); }
.tabs button[aria-selected="true"] { background: var(--brand); color: #fff; box-shadow: var(--edge); }
.tabs button:focus-visible { outline-offset: -2px; }

.guide { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { counter-increment: step; display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); overflow: hidden; background: var(--band); }
.step-text { display: grid; gap: 8px; padding: 16px 18px 18px; align-content: start; }
.step-text h3 { display: flex; gap: 12px; align-items: center; }
.step-text h3::before {
  content: counter(step); flex: none; display: grid; place-items: center; width: 24px; height: 24px;
  background: var(--amber); color: #1c2128; font: 400 16px/1 var(--pixel); -webkit-font-smoothing: none;
}
.step-text p { font-size: 14.5px; }

.mock { --app: #1bd96a; --app-ink: #0b1a10; position: relative; aspect-ratio: 16 / 10; display: flex; overflow: hidden; background: #16181c; border-bottom: 1px solid var(--line); font: 600 11px/1.2 var(--sans); color: #97a0aa; }
.mock.cf { --app: #f16436; --app-ink: #fff; background: #1d1d1f; }
.mock.pl { --app: #4c8ed9; --app-ink: #fff; background: #2a2c30; }
.mock.col { flex-direction: column; }
.m-rail { width: 15%; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 12px 0; background: rgba(255, 255, 255, 0.025); border-right: 1px solid rgba(255, 255, 255, 0.06); }
.m-ico { width: 22px; height: 22px; background: rgba(255, 255, 255, 0.08); }
.m-ico.plus { margin-top: auto; display: grid; place-items: center; background: var(--app); color: var(--app-ink); font-size: 15px; }
.m-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; }
.m-title { color: #eef2f5; font-size: 12.5px; }
.m-sub { color: #97a0aa; font-weight: 500; font-size: 10.5px; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-grid.two { grid-template-columns: repeat(2, 1fr); }
.m-grid.five { grid-template-columns: repeat(5, 1fr); }
.m-grid > i { aspect-ratio: 4 / 3; background: rgba(255, 255, 255, 0.06); }
.m-grid.five > i { aspect-ratio: 1; }
.m-btn { display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 11px; background: rgba(255, 255, 255, 0.09); color: #eef2f5; font-size: 10.5px; white-space: nowrap; }
.m-btn.on { background: rgba(255, 255, 255, 0.2); }
.m-btn.app { background: var(--app); color: var(--app-ink); }
.m-link { color: var(--app); text-decoration: underline; font-size: 11px; }
.m-tab { color: #97a0aa; font-weight: 500; font-size: 10.5px; }
.m-toolbar { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.025); }
.m-row { display: flex; align-items: center; gap: 8px; }
.m-col { display: grid; gap: 5px; flex: 1; min-width: 0; }
.m-push { margin-left: auto; }
.m-end { margin-top: auto; justify-content: flex-end; }
.m-field { display: flex; align-items: center; height: 24px; padding: 0 9px; background: rgba(255, 255, 255, 0.07); color: #c9d1d9; font-weight: 500; font-size: 10.5px; overflow: hidden; white-space: nowrap; }
.m-field.dim { color: #6e7781; }
.m-field.grow { flex: 1; min-width: 0; }
.m-bar { height: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.m-bar i { display: block; width: 68%; height: 100%; background: var(--app); }
.m-pack { width: 30px; height: 30px; }
.m-tile { display: grid; justify-items: center; align-content: center; gap: 5px; padding: 8px 6px; background: rgba(255, 255, 255, 0.06); color: #eef2f5; font-size: 10px; text-align: center; }
.m-tile.on { background: rgba(76, 142, 217, 0.28); box-shadow: inset 0 0 0 1px var(--app); }
.m-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.m-modal { position: absolute; left: 13%; right: 13%; top: 15%; display: flex; flex-direction: column; gap: 9px; padding: 13px; background: #2b2e34; box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45); }
.mock.cf .m-modal { background: #2c2c2f; }
.m-split { flex: 1; display: flex; min-height: 0; }
.m-list { width: 34%; display: flex; flex-direction: column; gap: 3px; padding: 9px; border-right: 1px solid rgba(255, 255, 255, 0.07); }
.m-list.side { width: 30%; border-right: 0; border-left: 1px solid rgba(255, 255, 255, 0.07); }
.m-list > span:not(.m-btn) { padding: 5px 8px; font-weight: 500; font-size: 10.5px; }
.m-list > span.on { background: var(--app); color: var(--app-ink); }
.hl { position: relative; outline: 2px solid var(--amber); outline-offset: 3px; }
.hl::after {
  content: ""; position: absolute; right: -13px; bottom: -17px; width: 17px; height: 17px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 1.5l10 7.2-4.6.8 2.9 4.9-1.9 1.1-2.9-4.9-3.5 3.1z' fill='%23ffffff' stroke='%23000000' stroke-width='1' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.server { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 56px; align-items: center; }
.server > div:first-child { display: grid; gap: 12px; }
.address { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 6px 6px 6px 20px; border: 1px solid var(--line); background: var(--raised); }
.address code { font-size: 16px; background: none; border: 0; padding: 0; }
.links { grid-column: 1 / -1; list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.links a {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border: 1px solid var(--line); background: var(--raised); box-shadow: var(--edge);
  text-decoration: none; font: 600 12.5px/1 var(--sans); letter-spacing: 0.05em; text-transform: uppercase;
  transition: background-color 0.12s, transform 0.06s;
}
.links a:hover { background: var(--raised-hover); }
.links a:active { transform: translateY(1px); box-shadow: var(--edge-pressed); }

.updates { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.scheme { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.scheme div { display: grid; gap: 8px; padding: 14px 12px; background: var(--band); }
.scheme div + div { border-left: 1px solid var(--line-soft); }
.scheme dt { font-family: var(--pixel); font-size: 32px; line-height: 1; color: var(--contrast); -webkit-font-smoothing: none; }
.scheme div:nth-child(2) { background: var(--brand-soft); box-shadow: inset 0 -3px 0 var(--brand); }
.scheme dd { margin: 0; font: 400 11.5px/1.35 var(--mono); color: var(--muted); }
.history { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.history::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; background: var(--line-soft); }
.history > li { position: relative; padding: 6px 0 22px 34px; display: grid; gap: 8px; }
.history::after { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; background: var(--accent); transform: scaleY(var(--p, 0)); transform-origin: top; }
.history > li::before { content: ""; position: absolute; z-index: 1; left: 1px; top: 12px; width: 12px; height: 12px; background: var(--ground); border: 2px solid var(--line); transition: border-color 0.3s; }
.history > li.passed::before { border-color: var(--accent); }
.history > li:first-child::before { background: var(--accent); border-color: var(--accent); }
.entry-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.entry-head .v { font-family: var(--pixel); font-size: 16px; color: var(--contrast); -webkit-font-smoothing: none; }
.entry-head b { color: var(--contrast); font-weight: 600; }
.entry-head time, .entry-head .status { font: 400 12.5px/1.4 var(--mono); color: var(--muted); }
.entry-head .status { color: var(--amber); }
.entry-head a { font: 400 12.5px/1.4 var(--mono); color: var(--muted); }
.entry-head a:hover { color: var(--contrast); }
.history details { border: 1px solid var(--line); background: var(--band); }
.history summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; list-style: none; font: 600 12.5px/1.2 var(--sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text); }
.history summary::-webkit-details-marker { display: none; }
.history summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s; }
.history details[open] summary::before { transform: rotate(45deg); }
.history summary:hover { color: var(--contrast); background: var(--raised); }
.changes { display: grid; gap: 14px; padding: 4px 16px 16px; }
.changes h4 { font-size: 13px; font-weight: 600; color: var(--contrast); }
.changes ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; display: grid; gap: 3px; }

.foot { position: relative; padding-block: 56px 36px; border-top: 1px solid var(--line-soft); background: var(--band); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px 40px; align-items: start; }
.foot-brand { display: grid; gap: 16px; justify-items: start; }
.foot-brand img { width: 220px; height: auto; }
.foot-brand p { max-width: 34ch; font-size: 14px; color: var(--muted); }
.foot h2 { margin: 0 0 12px; font: 600 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); -webkit-font-smoothing: antialiased; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-col a { display: inline-flex; align-items: center; gap: 10px; padding-block: 6px; color: var(--text); text-decoration: none; font-size: 14.5px; transition: color 0.12s; }
.foot-col a svg { width: 16px; height: 16px; flex: none; color: var(--muted); transition: color 0.12s; }
.foot-col a[href^="#"]::before { content: ""; flex: none; width: 8px; height: 8px; margin-inline: 4px; background: var(--accent); }
.foot-col a:hover { color: var(--contrast); }
.foot-col a:hover svg { color: var(--c, var(--contrast)); }
.foot-legal { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.foot-legal p { max-width: 70ch; font-size: 13px; color: var(--muted); }
.foot-legal .foot-host { font: 400 12.5px/1.5 var(--mono); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nav-icons { display: flex; }
.ico-link { position: relative; display: grid; place-items: center; width: 52px; border-left: 1px solid var(--line-soft); color: var(--text); transition: background-color 0.12s, color 0.12s; }
.ico-link svg { width: 18px; height: 18px; }
.ico-link:hover { background: var(--raised); color: var(--c, var(--contrast)); }
.ico-link:focus-visible { outline-offset: -2px; }
.ico-link::after {
  content: attr(aria-label); position: absolute; top: calc(100% + 8px); left: 50%; padding: 6px 9px;
  background: var(--raised); border: 1px solid var(--line); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
  font: 600 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--contrast); white-space: nowrap;
  opacity: 0; pointer-events: none; transform: translate(-50%, -4px); transition: opacity 0.15s, transform 0.15s;
}
.ico-link:hover::after, .ico-link:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.links a svg { width: 15px; height: 15px; flex: none; margin-right: 10px; color: var(--muted); transition: color 0.12s; }
.links a:hover svg { color: var(--c, var(--contrast)); }

/* Square scrollbars. Chrome ignores the ::-webkit-scrollbar rules as soon as scrollbar-color is
   set, so the standard properties only go to browsers without the pseudo elements (Firefox). */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--band); box-shadow: inset 1px 0 0 var(--line-soft); }
::-webkit-scrollbar-thumb { background: var(--line) padding-box; border: 3px solid transparent; border-left-width: 4px; }
::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background-color: var(--now, var(--brand)); }
::-webkit-scrollbar-corner { background: var(--band); }
::-webkit-scrollbar-button { display: none; }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--line) var(--band); }
}

/* Section rail: dots for each section, a fill that follows the scroll, and the current
   section name written up the side. Only shown where the gutter beside the page is wide enough. */
.rail { display: none; }
@media (min-width: 1320px) {
  .js .rail {
    position: fixed; z-index: 15; left: 16px; top: 50%; display: grid; justify-items: center; gap: 16px;
    opacity: 0; transform: translate(-12px, -50%); pointer-events: none;
    transition: opacity 0.35s, transform 0.35s cubic-bezier(0.2, 0.75, 0.2, 1);
  }
  .js .rail.on { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
}
.rail-track { position: relative; }
.rail-track::before, .rail-fill { content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px; }
.rail-track::before { background: var(--line-soft); }
.rail-fill { display: block; background: var(--now, var(--brand)); transform: scaleY(0); transform-origin: top; transition: background-color 0.4s; }
.rail ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rail a { position: relative; display: grid; place-items: center; width: 24px; height: 24px; text-decoration: none; }
.rail a::before {
  content: ""; width: 10px; height: 10px; background: var(--ground); border: 2px solid var(--line);
  transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}
.rail a:hover::before { border-color: var(--accent); }
.rail a[aria-current]::before { width: 16px; height: 16px; background: var(--accent); border-color: var(--accent); }
.rail a span {
  position: absolute; left: 34px; top: 50%; padding: 6px 9px; background: var(--raised); border: 1px solid var(--line); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
  font: 600 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--contrast); white-space: nowrap;
  pointer-events: none; opacity: 0; transform: translate(-6px, -50%); transition: opacity 0.15s, transform 0.15s;
}
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.rail-now { display: flex; align-items: center; gap: 10px; margin: 0; writing-mode: vertical-rl; rotate: 180deg; font: 600 11px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--now, var(--muted)); transition: color 0.4s; }
.rail-now b { font: 400 16px/1 var(--pixel); letter-spacing: 0; color: var(--contrast); -webkit-font-smoothing: none; }

html.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); overflow: hidden; }
.lightbox[open] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
.lightbox::backdrop { background: transparent; }
.lb-shade { position: absolute; inset: 0; background: rgba(17, 20, 24, 0.96); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 64px 96px 12px; touch-action: pan-y pinch-zoom; }
.lb-img { display: block; max-width: none; border: 1px solid var(--line); background: var(--band); box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.4); transform-origin: 0 0; user-select: none; -webkit-user-drag: none; }
.lb-bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 96px 24px; }
.lb-cap { display: flex; align-items: baseline; gap: 14px; font: 400 13px/1.5 var(--mono); color: var(--text); }
.lb-count { font: 400 16px/1 var(--pixel); color: var(--contrast); -webkit-font-smoothing: none; }
.lb-thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-thumbs button { width: 56px; padding: 0; border: 1px solid var(--line); background: var(--band); cursor: pointer; opacity: 0.5; transition: opacity 0.15s, border-color 0.15s; }
.lb-thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lb-thumbs button:hover { opacity: 0.85; }
.lb-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--brand-hover); box-shadow: 0 3px 0 var(--brand); }
.lb-close { position: absolute; top: 16px; right: 16px; }
.lb-prev, .lb-next { position: absolute; top: calc(50% - 60px); width: 48px; height: 48px; }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

/* Motion. Every hidden start state hangs off .js, which the head script sets, so the page
   stays fully visible when scripts are off or motion.js never arrives. */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes rise-sm { from { opacity: 0; transform: translateY(8px); } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes settle { from { opacity: 0; scale: 1.08; } }
@keyframes drop { from { transform: translateY(-100%); } }

.js .nav { animation: drop 0.5s cubic-bezier(0.2, 0.75, 0.2, 1) backwards; }
.js .hero-shot { animation: settle 1.6s cubic-bezier(0.2, 0.75, 0.2, 1) backwards; }
.js .hero-logo { animation: rise 0.8s cubic-bezier(0.2, 0.75, 0.2, 1) 0.1s backwards; }
.js .hero h1 { animation: wipe 0.7s steps(14, end) 0.4s backwards; }
.js .hero-lede { animation: rise 0.7s cubic-bezier(0.2, 0.75, 0.2, 1) 0.6s backwards; }
.js .hero-actions { animation: rise 0.7s cubic-bezier(0.2, 0.75, 0.2, 1) 0.72s backwards; }
.js .hero-note { animation: rise 0.7s cubic-bezier(0.2, 0.75, 0.2, 1) 0.84s backwards; }

.js [data-reveal=""] { transition: opacity 0.7s cubic-bezier(0.2, 0.75, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.75, 0.2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal=""]:not(.in) { opacity: 0; transform: translateY(28px); }
.editions > .edition:nth-child(2), .guide > .step:nth-child(2) { --d: 1; }
.guide > .step:nth-child(3) { --d: 2; }
section h2 { justify-self: start; }
.js [data-reveal]:not(.in) h2 { clip-path: inset(0 100% 0 0); }
.js [data-reveal].in h2 { animation: wipe 0.6s steps(12, end) 0.1s backwards; }
.js .cmp.in #cmp-body .cmp-row[style] { animation: rise-sm 0.45s cubic-bezier(0.2, 0.75, 0.2, 1) backwards; animation-delay: calc(var(--i) * 22ms); }
.js .history:not(.in) > li { opacity: 0; }
.js .history.in > li { animation: rise 0.6s cubic-bezier(0.2, 0.75, 0.2, 1) backwards; animation-delay: calc(var(--i, 0) * 80ms); }
.js section[id]::after { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--accent); opacity: 0.6; transform-origin: left; transition: transform 1.2s cubic-bezier(0.2, 0.75, 0.2, 1); }
.js section[id]:not(.in)::after { transform: scaleX(0); }
.js section[id]::before { transition: opacity 1s ease; }
.js section[id]:not(.in)::before { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:active, .edition-btn:active, .chips button:active, .links a:active { transform: none; }
  .js [data-reveal=""]:not(.in), .js .history:not(.in) > li { opacity: 1; transform: none; }
  .js [data-reveal]:not(.in) h2 { clip-path: none; }
  .js section[id]:not(.in)::after { transform: none; }
  .js section[id]:not(.in)::before { opacity: 1; }
  .shot:hover .shot-img img { transform: none; }
}
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .server, .updates { grid-template-columns: 1fr; }
  .guide { grid-template-columns: 1fr; max-width: 560px; }
  .cmp-row { grid-template-columns: minmax(0, 1fr) 56px 56px; }
  .cmp-type { display: none; }
  h1 { font-size: 48px; }
}
@media (max-width: 760px) {
  .nav-icons, .reel-dots, .lb-thumbs { display: none; }
}
@media (max-width: 700px) {
  body::after { background: none; }
  .editions { grid-template-columns: 1fr; }
  .menu { position: static; animation: none; box-shadow: none; }
}
@media (max-width: 600px) {
  section { padding-block: 60px; }
  .hero { padding-block: 44px 64px; }
  h1 { font-size: 32px; }
  h2 { font-size: 32px; }
  .hero-lede { font-size: 16.5px; }
  .nav-actions .ring { display: none; }
  .brand span { display: none; }
  .edition-btn { height: 72px; padding: 0 18px 0 20px; }
  .edition-name { font-size: 32px; }
  .edition-meta { font-size: 12px; }
  .scheme dt { font-size: 24px; }
  .address { flex-wrap: wrap; }
  .cmp-row { gap: 8px; padding-inline: 12px; }
  .cmp-mod small { display: none; }
  .reel-track > li { width: 78vw; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .reel-note { flex-basis: 100%; }
  .lb-stage { padding: 56px 12px 8px; }
  .lb-bar { justify-content: center; min-height: 76px; padding: 8px 72px 20px; }
  .lb-cap { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
  .lb-thumbs { display: none; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; width: 44px; height: 44px; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .tabs { display: flex; width: 100%; }
  .tabs button { flex: 1 1 0; min-width: 0; height: auto; min-height: 44px; padding: 6px 8px; font-size: 11.5px; letter-spacing: 0.03em; line-height: 1.2; white-space: normal; }
}

/* Table extras: the NEW and UPDATED tags from the release diff, and sorting. */
.cmp-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cmp-name b { min-width: 0; }
.tag { flex: none; display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border: 1px solid var(--line); font: 600 10.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tag.new { background: rgba(79, 154, 85, 0.18); border-color: var(--ok); color: var(--ok-text); }
.tag.upd { background: rgba(240, 163, 94, 0.14); border-color: var(--amber); color: var(--amber); }
.mods-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sort select {
  height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 0; appearance: none; cursor: pointer;
  background: var(--ground) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%238b95a1' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  color: var(--contrast); font: 400 14.5px/1 var(--sans);
}
.sort select:focus { outline: none; border-color: var(--brand-hover); box-shadow: inset 0 -2px 0 var(--brand-hover); }

/* The hero's trailer panel, only there when the release names a trailer. */
.hero-text { display: grid; justify-items: center; gap: 24px; }
.preview-note { padding: 8px 14px; border: 1px solid var(--amber); background: rgba(240, 163, 94, 0.14); font: 500 13px/1.4 var(--mono); color: var(--amber); }
.hero.has-trailer .hero-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 48px; text-align: left; justify-items: stretch; }
.hero.has-trailer .hero-text { justify-items: start; }
.hero.has-trailer .hero-actions { justify-content: flex-start; }
.hero.has-trailer h1 { font-size: 46px; }
.trailer { position: relative; margin: 0; border: 1px solid var(--line); background: rgba(17, 20, 24, 0.9); box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.35); }
.trailer-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); font: 600 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.trailer-bar b { display: inline-flex; align-items: center; gap: 8px; color: var(--contrast); font-weight: 600; }
.trailer-bar b::before { content: ""; width: 8px; height: 8px; background: var(--brand); }
.trailer-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.trailer-stage img, .trailer-stage iframe, .trailer-stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.trailer-play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.trailer-play::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px); }
.trailer-play i { position: relative; z-index: 1; display: grid; place-items: center; width: 72px; height: 52px; background: var(--brand); box-shadow: var(--edge); transition: background-color 0.12s, transform 0.12s; }
.trailer-play i::before { content: ""; margin-left: 4px; border-left: 18px solid #fff; border-block: 11px solid transparent; }
.trailer-play:hover i { background: var(--brand-hover); transform: scale(1.05); }
.trailer figcaption { padding: 8px 12px; font: 400 12.5px/1.5 var(--mono); color: var(--muted); }

/* A page per mod, written by tools/build_site.py. */
.modpage .mod-hero { padding-block: 36px 48px; border-top: 0; background: linear-gradient(color-mix(in srgb, var(--accent) 13%, var(--band)), var(--ground)); }
.mod-hero-in { display: grid; gap: 24px; }
.mod-back { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font: 400 12.5px/1.5 var(--mono); color: var(--muted); text-decoration: none; }
.mod-back::before { content: ""; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.mod-back:hover { color: var(--contrast); }
.mod-title { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: start; }
.mod-icon { width: 96px; height: 96px; border: 1px solid var(--line); background: var(--raised); object-fit: cover; box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3); }
.mod-icon.ph { display: grid; place-items: center; font: 400 44px/1 var(--pixel); color: var(--contrast); -webkit-font-smoothing: none; }
.mod-title-text { display: grid; gap: 10px; min-width: 0; }
.mod-kicker { font: 600 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
h1.mod-name { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.1; text-transform: none; overflow-wrap: anywhere; }
.mod-lede { max-width: 62ch; font-size: 17px; color: var(--contrast); }
.mod-badges { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mod-badges li { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--line); background: var(--raised); font: 500 12.5px/1 var(--sans); color: var(--text); }
.mod-badges li.tag { height: 26px; font: 600 11.5px/1 var(--mono); }
.mod-badges li.tag.new { background: rgba(79, 154, 85, 0.18); border-color: var(--ok); color: var(--ok-text); }
.mod-badges li.tag.upd { background: rgba(240, 163, 94, 0.14); border-color: var(--amber); color: var(--amber); }
.mod-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.modpage .mod-body { padding-block: 48px 80px; }
.mod-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.mod-main { display: grid; gap: 44px; min-width: 0; align-content: start; }
.mod-block { display: grid; gap: 14px; }
.mod-block h2 { font-size: 28px; color: var(--accent); }
.mod-sub { font: 400 12.5px/1.5 var(--mono); color: var(--muted); }
.mod-prose { display: grid; gap: 12px; font-size: 15.5px; }
.mod-prose p { max-width: 72ch; }
.mod-prose.changes { padding: 16px 18px; border: 1px solid var(--line); background: var(--band); font-size: 14.5px; }
.mod-prose h4 { font-size: 14px; color: var(--contrast); }
.mod-prose ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.mod-prose pre { margin: 0; padding: 10px 12px; overflow: auto; background: var(--ground); border: 1px solid var(--line-soft); }
.mod-prose pre code { border: 0; padding: 0; background: none; }
.mod-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.mod-gallery li { display: grid; gap: 6px; align-content: start; }
.mod-gallery a { display: block; overflow: hidden; border: 1px solid var(--line-soft); background: var(--band); }
.mod-gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.75, 0.2, 1); }
.mod-gallery a:hover img { transform: scale(1.04); }
.mod-gallery span { font: 400 12.5px/1.4 var(--mono); color: var(--muted); }
.mod-side { position: sticky; top: 88px; display: grid; gap: 14px; padding: 20px; border: 1px solid var(--line); background: var(--band); }
.mod-side .side-h { margin-top: 6px; font: 600 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); -webkit-font-smoothing: antialiased; }
.mod-side .side-h:first-child { margin-top: 0; }
.facts { margin: 0; display: grid; }
.facts div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-size: 13.5px; color: var(--contrast); overflow-wrap: anywhere; }
.facts code { font-size: 11.5px; }
.mod-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mod-links a { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: 1px solid var(--line); background: var(--raised); box-shadow: var(--edge); text-decoration: none; font: 600 12px/1 var(--sans); letter-spacing: 0.05em; text-transform: uppercase; transition: background-color 0.12s; }
.mod-links a:hover { background: var(--raised-hover); }
.modpage .history > li { padding-bottom: 14px; }
.modpage .history::after { display: none; }
.modpage .history > li.ev-updated::before { border-color: var(--amber); }
.modpage .history > li.ev-removed::before { border-color: #e5534b; }
.mod-video { position: relative; display: block; max-width: 640px; overflow: hidden; border: 1px solid var(--line); background: #000; text-decoration: none; }
.mod-video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.85; transition: opacity 0.15s; }
.mod-video:hover img { opacity: 1; }
.mod-video i { position: absolute; left: 50%; top: 45%; display: grid; place-items: center; width: 68px; height: 48px; transform: translate(-50%, -50%); background: var(--brand); box-shadow: var(--edge); }
.mod-video i::before { content: ""; margin-left: 4px; border-left: 17px solid #fff; border-block: 10px solid transparent; }
.mod-video span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); font: 600 14px/1.3 var(--sans); color: #fff; }

/* The Ecosystem's own page. */
.eco-hero { padding-block: 40px 88px; border-top: 0; overflow: hidden; isolation: isolate; }
.eco-hero-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.55; }
.eco-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(34, 39, 46, 0.97) 30%, rgba(34, 39, 46, 0.55)), linear-gradient(transparent 60%, var(--ground)); }
.eco-hero-in { display: grid; gap: 18px; justify-items: start; }
.eco-hero h1 { font-size: clamp(40px, 7vw, 76px); margin-top: 18px; }
.eco-lede { max-width: 46ch; font-size: 19px; line-height: 1.55; color: var(--contrast); }
.eco-hero .mod-actions { margin-top: 10px; }
.eco-features { padding-block: 72px; }
.eco-list { display: grid; gap: 72px; }
.eco-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eco-row:nth-child(even) .eco-shot { order: 2; }
.eco-shot { display: block; overflow: hidden; border: 1px solid var(--line); background: var(--band); box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.3); }
.eco-shot img { width: 100%; height: auto; transition: transform 0.6s cubic-bezier(0.2, 0.75, 0.2, 1); }
.eco-shot:hover img { transform: scale(1.03); }
.eco-text { display: grid; gap: 14px; align-content: center; }
.eco-text h2 { font-size: 34px; color: var(--contrast); }
.eco-text p { font-size: 16.5px; max-width: 52ch; }
.eco-text ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.eco-key { display: flex; align-items: center; gap: 10px; font: 600 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
kbd { display: inline-grid; place-items: center; min-width: 28px; height: 26px; padding: 0 7px; border: 1px solid var(--line); border-bottom-width: 3px; background: var(--raised); font: 600 12px/1 var(--mono); color: var(--contrast); text-transform: none; letter-spacing: 0; }
.eco-more { padding-block: 64px; background: var(--band); }
.eco-more h2 { color: var(--accent); }
.eco-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.eco-cards li { display: grid; gap: 8px; align-content: start; padding: 18px; border: 1px solid var(--line); background: var(--ground); }
.eco-cards b { color: var(--contrast); font-size: 15.5px; }
.eco-cards span { font-size: 14px; color: var(--muted); }
@media (max-width: 1000px) {
  .eco-row { grid-template-columns: 1fr; gap: 20px; }
  .eco-row:nth-child(even) .eco-shot { order: 0; }
  .eco-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .eco-cards { grid-template-columns: 1fr; }
  .eco-text h2 { font-size: 26px; }
}
.modpage .foot { padding-block: 8px 30px; }
.modpage .foot-legal { margin-top: 0; }
@media (max-width: 1000px) {
  .hero.has-trailer .hero-body { grid-template-columns: 1fr; }
  .mod-grid { grid-template-columns: 1fr; }
  .mod-side { position: static; }
}
@media (max-width: 600px) {
  .mod-title { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .mod-icon { width: 64px; height: 64px; }
  .mods-tools { width: 100%; }
  .mods-tools > * { flex: 1 1 160px; }
  .mods-tools .search input, .sort select { width: 100%; }
}
