/* Immersive — public site. Tokens match the Paper file "Immersive — Website". */
@font-face { font-family: Barlow; font-weight: 400; font-display: swap; src: url(/fonts/barlow-400.woff2) format('woff2'); }
@font-face { font-family: Barlow; font-weight: 500; font-display: swap; src: url(/fonts/barlow-500.woff2) format('woff2'); }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap; src: url(/fonts/barlow-600.woff2) format('woff2'); }
@font-face { font-family: Barlow; font-weight: 700; font-display: swap; src: url(/fonts/barlow-700.woff2) format('woff2'); }
@font-face { font-family: Barlow; font-weight: 800; font-display: swap; src: url(/fonts/barlow-800.woff2) format('woff2'); }
@font-face { font-family: 'Barlow SC'; font-weight: 600; font-display: swap; src: url(/fonts/barlow-sc-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow SC'; font-weight: 700; font-display: swap; src: url(/fonts/barlow-sc-700.woff2) format('woff2'); }
@font-face { font-family: VT323; font-weight: 400; font-display: swap; src: url(/fonts/vt323.woff2) format('woff2'); }

:root {
  --ground: #0A0A0A; --ground-2: #0C0E0D; --surface: #121514; --well: #070807;
  --rule: #2A302D; --rule-soft: #161A18;
  --text: #F2F2F0; --body: #C4C9C5; --dim: #8A918C; --faint: #5A615C;
  --red: #E8372E; --amber: #D9A441; --green: #7FB685; --blue: #8FB3D9;
  --display: Barlow, 'Arial Narrow', Arial, sans-serif;
  --label: 'Barlow SC', Barlow, Arial, sans-serif;
  --mono: VT323, ui-monospace, Consolas, monospace;
  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1440px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--ground); color: var(--body); font: 400 17px/1.6 var(--display); -webkit-font-smoothing: antialiased; }
/* reveals start 16 px to the right; clip so that never adds a sideways scroll on phones (clip keeps sticky working) */
main, .footer { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; color: var(--text); font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; line-height: 1; }
p { margin: 0; }
code { font: 400 1.15em var(--mono); color: var(--text); }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 1.2em; }
.dim { color: var(--dim); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--red); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---- film grain + scanlines over everything ---- */
/* Static texture: fixed to the screen, never moves. */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 90;
  background: url(/fx/grain_512.png) 0 0 / 256px 256px repeat; opacity: .26; }

/* ---- type helpers ---- */
.link-caps, .btn { font: 700 14px/1 var(--label); letter-spacing: .14em; text-transform: uppercase; }
.link-caps { color: var(--text); display: inline-flex; gap: 8px; }
.link-caps:hover { color: var(--red); }
.h2-sm { font-size: 32px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 28px;
  border: 1px solid transparent; border-radius: 2px; color: var(--text); cursor: pointer; background: none; transition: background .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #F04A41; color: #fff; }
.btn-ghost { border-color: rgba(242,242,240,.35); background: rgba(10,10,10,.35); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { padding: 11px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-split { justify-content: space-between; padding: 14px 16px; }
.btn-split small { font: 400 19px/1 var(--mono); letter-spacing: 0; color: rgba(255,255,255,.8); }

/* ---- notices ---- */
.notice { padding: 10px var(--gutter); background: #1D1709; border-bottom: 1px solid #4A3E22; color: #E6D3A8; font-size: 15px; text-align: center; }
.notice-tag { font: 400 18px var(--mono); color: var(--amber); margin-right: 8px; }
.notice-info { background: #0F1612; border-color: #284032; color: #CFE3D2; }
.notice-info .notice-tag { color: var(--green); }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10,10,10,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 14px; font: 800 24px var(--display); letter-spacing: .02em; color: var(--text); }
.brand-mark { width: 12px; height: 22px; background: var(--red); }
.game-switch { display: flex; flex-shrink: 0; margin-left: -8px; border: 1px solid var(--rule); font: 400 17px/1 var(--mono); letter-spacing: .04em; }
.game-switch a { padding: 5px 8px 4px; color: var(--dim); transition: color .11s, background .11s; }
.game-switch a:hover { color: var(--text); }
.game-switch a[aria-current] { background: var(--text); color: #0A0A0A; }
.nav-links { display: flex; gap: 40px; margin-left: 24px; font: 600 15px var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.nav-links a[aria-current] { color: var(--text); }
.nav-discord { margin-left: auto; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

/* ---- hero ---- */
.hero { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: clamp(560px, calc(100svh - 76px), 900px);
  padding: 120px var(--gutter); overflow: hidden; text-align: center; isolation: isolate; }
.hero > :not(.hero-media) { position: relative; z-index: 2; }
/* The picture sits 5% oversize on every side, so the slow push and the sway never show an edge. */
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #050606; }
.hero-plate { position: absolute; left: -5%; top: -5%; width: 110%; height: 110%; max-width: none; object-fit: cover; object-position: 62% 45%; opacity: .8;
  animation: heroPush 28s var(--e-inout, ease-in-out) infinite alternate, heroFlicker 6.2s linear infinite; }
@keyframes heroPush { from { scale: 1; } to { scale: 1.07; } }
@keyframes heroFlicker { 0%, 31%, 33.5%, 72%, 73.2%, 100% { opacity: .8; } 32% { opacity: .66; } 32.6% { opacity: .76; } 72.6% { opacity: .7; } }
/* live film grain: the grain plate jumps to a new offset 16 times a second */
.hero-noise { position: absolute; inset: -128px; background: url(/fx/grain_512.png) 0 0 / 256px 256px repeat; opacity: .22; animation: heroNoise .5s steps(1) infinite; }
@keyframes heroNoise {
  0% { transform: translate(0, 0); } 12.5% { transform: translate(-61px, 37px); } 25% { transform: translate(43px, -88px); } 37.5% { transform: translate(-97px, -14px); }
  50% { transform: translate(78px, 52px); } 62.5% { transform: translate(-23px, 94px); } 75% { transform: translate(105px, -41px); } 87.5% { transform: translate(-52px, -70px); } }
/* tracking glitch: a thin bright line that shows for a frame at a few heights */
.hero-lines { position: absolute; inset: 0; background: linear-gradient(rgba(242,242,240,.16), rgba(242,242,240,.16)) 0 0 / 100% 2px no-repeat; opacity: 0;
  animation: heroTrack 7.4s steps(1) infinite; }
@keyframes heroTrack { 0% { opacity: 0; } 41% { opacity: 1; transform: translateY(23vh); } 41.6% { transform: translateY(61vh); } 42.2% { opacity: 0; }
  83% { opacity: 1; transform: translateY(44vh); } 83.5% { opacity: 0; } }
/* CRT refresh: a soft band of brighter scanlines rolls down the picture */
.hero-roll { position: absolute; left: 0; right: 0; top: 0; height: 32%;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.35) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, transparent, rgba(225,232,228,.055) 50%, transparent);
  -webkit-mask: linear-gradient(180deg, transparent, #000 50%, transparent); mask: linear-gradient(180deg, transparent, #000 50%, transparent);
  animation: heroRoll 8s linear infinite; }
@keyframes heroRoll { from { transform: translateY(-100%); } to { transform: translateY(330%); } }
/* WebGL CRT pass (public/js/crt.js) replaces the plain layers when it starts */
.hero-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-media.is-crt > :is(.hero-plate, .hero-noise, .hero-lines, .hero-roll) { display: none; }
.hero-media::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 58% 52% at 50% 50%, rgba(6,7,7,.62), rgba(6,7,7,0) 72%),
    linear-gradient(0deg, var(--ground) 0%, rgba(10,10,10,0) 24%), linear-gradient(180deg, rgba(10,10,10,.5) 0%, rgba(10,10,10,0) 16%); }
.viewfinder { position: absolute !important; inset: 48px var(--gutter); pointer-events: none; }
.viewfinder i { position: absolute; width: 40px; height: 40px; border: 2px solid rgba(242,242,240,.85); }
.viewfinder i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.viewfinder i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.viewfinder i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.viewfinder i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.hud { position: absolute !important; left: calc(var(--gutter) + 56px); right: calc(var(--gutter) + 56px); display: flex; justify-content: center; gap: 16px;
  font: 400 20px/1 var(--mono); color: rgba(242,242,240,.75); white-space: nowrap; }
.hud-bottom { bottom: 88px; }
.hud-bottom a { overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.hud .red { color: var(--red); }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: 28px; max-width: 760px; }
.hero-copy p { font-size: 20px; line-height: 1.55; color: #C9CDC9; max-width: 600px; }
.actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.lockup { display: inline-flex; flex-direction: column; align-items: center; gap: 16px; }
.lockup-word { font: 800 clamp(64px, 11vw, 150px)/.86 var(--display); letter-spacing: -.01em; color: var(--text); }
.lockup-sub { display: flex; align-items: center; gap: 22px; font: 600 clamp(14px, 1.8vw, 24px)/1 var(--label); letter-spacing: .42em; color: var(--text); padding-left: .42em; }
.lockup-sub i { width: clamp(40px, 8vw, 120px); height: 3px; background: var(--red); }

/* ---- sections ---- */
.section { padding: 112px 0; }
.section-alt { background: var(--ground-2); border-block: 1px solid var(--rule); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head h2, .split-side h2 { font-size: clamp(40px, 5vw, 56px); }
.section-head > p { color: var(--dim); }

/* ---- mod cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; transition: border-color .15s; }
.card:hover { border-color: #4A524D; }
.card-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0D100F; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: 12px; top: 12px; padding: 3px 8px; background: rgba(10,10,10,.82); font: 400 18px/1.2 var(--mono); color: var(--text); }
.badge-amber { background: var(--amber); color: #0A0A0A; }
.no-signal { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #0D100F url(/fx/scanlines_4.png) 0 0 / 4px 4px; }
.no-signal b { font: 400 30px var(--mono); color: var(--dim); }
.no-signal small { font: 400 18px var(--mono); color: var(--faint); }
.card-body { padding: 24px 24px 0; flex: 1; }
.card-body h3 { font-size: 28px; margin-bottom: 12px; }
.card-body p { font-size: 16px; line-height: 1.55; color: #B9BEB9; }
.card-actions { display: flex; flex-direction: column; gap: 14px; padding: 20px 24px 24px; }
.card-links { display: flex; justify-content: space-between; gap: 8px; font: 600 13px var(--label); letter-spacing: .12em; text-transform: uppercase; }
.card-links a:last-child { color: var(--dim); }
.card-sub { font: 600 13px var(--label); letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }

/* ---- changelog terminal ---- */
.split { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 64px; align-items: start; }
.split-side { display: flex; flex-direction: column; gap: 16px; }
.split-side p { color: var(--dim); }
.terminal { border: 1px solid var(--rule); border-radius: 2px; background: var(--well); overflow: hidden; }
.terminal-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--rule); background: var(--surface); font: 400 18px var(--mono); color: var(--dim); }
.log-row { display: grid; grid-template-columns: 110px 100px 110px 1fr 24px; gap: 20px; align-items: baseline; padding: 14px 20px; border-bottom: 1px solid var(--rule-soft); font: 400 20px/1.2 var(--mono); }
.log-row:hover { background: #0E110F; }
.log-date { color: var(--faint); }
.log-ver { color: var(--text); }
.log-ver.is-preview { color: var(--amber); }
.log-note { font: 400 16px/1.45 var(--display); color: #C9CDC9; }
.log-dl { color: var(--dim); text-align: right; }

/* ---- install steps ---- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 2px solid var(--rule); }
.steps li.is-first { border-color: var(--red); }
.step-n { font: 400 40px/1 var(--mono); color: var(--text); }
.steps h3 { font-size: 22px; }
.steps p { font-size: 16px; color: #B9BEB9; }
.copybox { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 14px; background: var(--well); border: 1px solid var(--rule); border-radius: 2px; min-width: 0; }
.copybox code { font-size: 17px; color: #A3AAA5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid #3A413D; border-radius: 2px; background: none; color: var(--body); cursor: pointer; font: 600 12px var(--label); letter-spacing: .12em; }
.copy:hover, .copy.done { border-color: var(--green); color: var(--green); }

/* ---- footer ---- */
.footer { background: #060606; border-top: 1px solid var(--rule); padding: 64px 0 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-brand p { margin-top: 12px; font-size: 15px; color: var(--dim); max-width: 360px; }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-cols div { display: flex; flex-direction: column; gap: 12px; font: 600 13px var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.footer-cols h4 { font: 600 13px var(--label); letter-spacing: .14em; color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--rule); font: 400 18px var(--mono); color: var(--faint); }

/* ---- page heads (changelog, install) ---- */
.page-head { padding: 80px 0 36px; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(48px, 7vw, 80px); line-height: .9; margin-bottom: 14px; }
.page-head p { font-size: 18px; color: #B9BEB9; max-width: 640px; }
.page-head-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips a { padding: 8px 15px; border: 1px solid #3A413D; border-radius: 2px; font: 700 13px var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--body); }
.chips a[aria-current] { background: var(--text); border-color: var(--text); color: #0A0A0A; }

/* ---- changelog timeline ---- */
.timeline { padding-bottom: 120px; }
.entry { display: grid; grid-template-columns: 200px 1fr; gap: 48px; padding: 40px 0; border-bottom: 1px solid var(--rule); }
.entry-date { display: flex; flex-direction: column; gap: 6px; }
.entry-date .mono { font-size: 22px; color: var(--text); }
.tag-latest, .tag-preview { font: 600 12px var(--label); letter-spacing: .16em; font-style: normal; color: var(--green); }
.tag-preview { color: var(--amber); }
.entry-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.entry-head h2 { font-size: 30px; display: flex; align-items: baseline; gap: 16px; }
.entry-head h2 .mono { font-size: 26px; font-weight: 400; }
.entry-dl { display: flex; align-items: center; gap: 20px; }
.notes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.notes li::before { content: '· '; color: var(--dim); }
.callout { margin-top: 16px; padding: 12px 14px; border-left: 2px solid var(--amber); background: rgba(217,164,65,.06); color: #D9C9A4; font-size: 15px; }
.empty { padding: 60px 0; color: var(--dim); }

/* ---- mod page ---- */
.mod-hero { position: relative; display: flex; align-items: flex-end; height: 440px; overflow: hidden; }
.mod-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.mod-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ground) 0%, rgba(10,10,10,.6) 45%, rgba(10,10,10,.2) 100%); }
.mod-hero-inner { position: relative; z-index: 1; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 40px; }
.crumbs { display: block; font: 400 20px var(--mono); color: #A3AAA5; margin-bottom: 14px; }
.mod-hero h1 { font-size: clamp(56px, 8vw, 96px); line-height: .88; margin-bottom: 14px; }
.mod-hero p { font-size: 19px; color: #D4D8D4; max-width: 620px; }
.mod-meta { display: flex; gap: 28px; font: 400 20px var(--mono); color: #A3AAA5; white-space: nowrap; }
.mod-body { display: grid; grid-template-columns: 1fr 380px; gap: 64px; padding-top: 8px; padding-bottom: 120px; }
.mod-main { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.tabs { display: flex; gap: 36px; border-bottom: 1px solid var(--rule); font: 600 15px var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); overflow-x: auto; }
.tabs a { padding: 18px 0 16px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a[aria-current] { color: var(--text); border-color: var(--red); }
.block { display: flex; flex-direction: column; gap: 20px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.block-head p { font-size: 15px; color: var(--dim); }
.gallery-main { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: #0D100F; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main figcaption { position: absolute; left: 16px; bottom: 16px; padding: 4px 10px; background: rgba(10,10,10,.82); font: 400 18px var(--mono); color: var(--text); text-transform: uppercase; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 2px; background: none; cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; opacity: .6; transition: opacity .2s; }
.gallery-thumbs button:hover, .gallery-thumbs button[aria-current] { opacity: 1; }
.gallery-thumbs button[aria-current] { border-color: var(--red); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { margin: 0; }
.feature-list div { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 14px 0; border-top: 1px solid var(--rule); }
.feature-list div:last-child { border-bottom: 1px solid var(--rule); }
.feature-list dt { font: 700 14px/1.8 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.feature-list dd { margin: 0; font-size: 16px; }
.clips { border: 1px solid var(--rule); border-radius: 2px; background: var(--well); }
.clip { display: grid; grid-template-columns: 38px 230px 1fr auto; gap: 18px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--rule-soft); }
.clip:last-child { border-bottom: 0; }
.play { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #3A413D; background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.play:hover, .clip.playing .play { background: var(--red); border-color: var(--red); }
.play:disabled { opacity: .35; cursor: default; }
.clip-title { display: flex; flex-direction: column; gap: 3px; }
.clip-title b { font-weight: 600; font-size: 16px; color: var(--text); }
.clip-title small { font: 400 17px var(--mono); color: var(--dim); }
.wave { width: 100%; height: 32px; color: var(--text); }
.clip .wave { --p: 0%; background: linear-gradient(90deg, rgba(232,55,46,.18) var(--p), transparent var(--p)); }
.ab { display: flex; border: 1px solid #3A413D; border-radius: 2px; font: 700 12px var(--label); letter-spacing: .14em; }
.ab span { padding: 6px 10px; color: var(--dim); }
.ab .on { background: var(--text); color: #0A0A0A; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 2px; background: var(--well); }
.versions { width: 100%; border-collapse: collapse; font-size: 15px; }
.versions th { padding: 12px 20px; text-align: left; font: 600 12px var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--rule); }
.versions td { padding: 14px 20px; border-bottom: 1px solid var(--rule-soft); vertical-align: baseline; }
.versions tr:last-child td { border-bottom: 0; }
.versions td.mono { font-size: 21px; white-space: nowrap; color: var(--text); }
.versions td.mono.dim { font-size: 19px; color: var(--dim); }
.versions em { font-style: normal; margin-left: 6px; font-size: 18px; }
.versions .num { text-align: right; white-space: nowrap; }
.mod-side { display: flex; flex-direction: column; gap: 24px; padding-top: 104px; position: sticky; top: 76px; align-self: start; }
.panel { display: flex; flex-direction: column; gap: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--rule); border-radius: 2px; }
.panel-dashed { background: none; border-style: dashed; border-color: #3A413D; gap: 10px; }
.panel-label { font: 600 13px var(--label); letter-spacing: .16em; color: var(--dim); }
.panel-label.amber { color: var(--amber); }
.panel-note { font-size: 14px; line-height: 1.5; color: var(--dim); }
.panel-note:empty { display: none; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.editions { display: flex; flex-direction: column; gap: 8px; }
.edition { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 2px; cursor: pointer; }
.edition:has(input:checked) { border-color: var(--red); background: rgba(232,55,46,.06); }
.edition input { accent-color: var(--red); margin: 3px 0 0; width: 16px; height: 16px; flex-shrink: 0; }
.edition b { display: block; font-size: 16px; color: var(--text); }
.edition small { display: block; font-size: 14px; line-height: 1.5; color: #A3AAA5; }
.specs { margin: 0; font-size: 14px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.specs dt { color: var(--dim); }
.specs dd { margin: 0; color: var(--text); text-align: right; }

/* ---- install doc ---- */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 48px; padding-bottom: 120px; }
.toc { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: #A3AAA5; }
.toc .panel-label { padding-bottom: 10px; }
.toc a { padding: 8px 12px; border-left: 2px solid #262B28; }
.toc a:hover, .toc a.is-active { color: var(--text); border-color: var(--red); }
.doc-body { display: flex; flex-direction: column; max-width: 880px; min-width: 0; }
.doc-sec { min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 48px 0; border-top: 1px solid var(--rule); }
.doc-sec:first-child { padding-top: 0; border-top: 0; }
.numbered { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 40px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--rule); font-size: 16px; }
.numbered li:last-child { border-bottom: 1px solid var(--rule); }
.numbered li::before { content: counter(n, decimal-leading-zero); font: 400 26px/1 var(--mono); color: var(--red); }
.numbered b { color: var(--text); font-weight: 600; }
.doc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.doc-pair h3 { font-size: 26px; }
.doc-pair small { color: var(--dim); }
.doc-pair p { font-size: 15px; line-height: 1.6; }
.warn { color: #D9C9A4 !important; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags code { padding: 5px 10px; background: var(--well); border: 1px solid var(--rule); font-size: 18px; color: var(--body); }
.faq { margin: 0; }
.faq-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 40px; padding: 22px 0; border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq dt { font: 600 18px/1.4 var(--display); color: var(--text); }
.faq dd { margin: 0; font-size: 16px; line-height: 1.6; color: #B9BEB9; }
.stuck { flex-direction: row; align-items: center; margin-top: 8px; }
.stuck b { color: var(--text); }
.stuck p { font-size: 15px; color: #B9BEB9; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .mod-body { grid-template-columns: 1fr; }
  .mod-side { position: static; padding-top: 0; order: -1; }
  .split { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .nav-links, .nav-discord { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open .nav-links { display: flex; margin: 0; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ground); border-bottom: 1px solid var(--rule); }
  .nav.is-open .nav-links a { padding: 16px var(--gutter); border-top: 1px solid var(--rule-soft); }
  .steps { grid-template-columns: 1fr; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .doc-pair { grid-template-columns: 1fr; }
  .faq-item { grid-template-columns: 1fr; padding: 18px 0; }
  .entry { grid-template-columns: 1fr; gap: 12px; }
  .log-row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .log-date, .log-dl { display: none; }
  .log-note { grid-column: 1 / -1; }
  .clip { grid-template-columns: 38px 1fr auto; }
  .clip .wave { display: none; }
  .mod-hero-inner { flex-direction: column; align-items: flex-start; }
  .mod-meta { gap: 16px; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .feature-list div { grid-template-columns: 1fr; gap: 4px; }
  .section { padding: 72px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .nav-inner { height: 64px; }
  .brand { font-size: 19px; }
  .hero { padding: 100px 20px 120px; }
  .hud-bottom { bottom: 56px; }
  .hud { left: 36px; right: 36px; font-size: 16px; }
  .hero-plate { object-position: 66% 45%; }
  .viewfinder { inset: 24px 16px; }
  .actions { flex-direction: column; width: 100%; }
  .actions .btn { width: 100%; }
  .stuck { flex-direction: column; align-items: stretch; }
  .footer-cols { gap: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- mod page: long-form sections, add-on download, other mods ---- */
.detail { gap: 16px; padding-top: 40px; border-top: 1px solid var(--rule); }
.detail-intro { font-size: 17px; line-height: 1.6; max-width: 68ch; }
.detail-note { font-size: 15px; line-height: 1.6; color: var(--dim); max-width: 68ch; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 72ch; }
.ticks li { display: block; position: relative; padding-left: 22px; font-size: 16px; line-height: 1.55; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .68em; width: 10px; height: 2px; background: var(--red); }
.ticks b { color: var(--text); font-weight: 600; }
.ticks code, .numbered code, .doc-sec p code { font-size: 1.1em; color: var(--text); overflow-wrap: anywhere; }
.detail-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.detail-groups h3 { font: 700 14px/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--text); padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--rule); }
.detail-groups .ticks li { font-size: 15px; }
.keys { margin: 0; }
.keys div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); }
.keys div:last-child { border-bottom: 1px solid var(--rule); }
.keys dt { display: flex; align-items: center; gap: 6px; }
.keys dt i { font-style: normal; color: var(--faint); }
.keys dd { margin: 0; font-size: 16px; }
.keys kbd { font: 400 18px/1 var(--mono); color: var(--text); background: #1A1E1C; border: 1px solid #2E3431; border-bottom-width: 2px; border-radius: 3px; padding: 5px 9px 4px; white-space: nowrap; }
.addon { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 16px; border: 1px dashed #3A413D; border-radius: 2px; }
.addon:hover { border-color: var(--text); }
.addon b { display: block; font-size: 15px; color: var(--text); }
.addon b::before { content: '+ '; color: var(--red); }
.addon small { display: block; font-size: 13px; line-height: 1.5; color: #A3AAA5; }
.addon em { font-style: normal; font-size: 17px; color: var(--dim); white-space: nowrap; }
.specs a, .inline-link { text-decoration: underline; text-underline-offset: 3px; }
.specs a:hover, .inline-link:hover { color: var(--red); }
.pairs { display: flex; flex-direction: column; }
.pairs a { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--rule); }
.pairs a:last-child { border-bottom: 1px solid var(--rule); }
.pairs b { font: 700 14px/1.8 var(--label); letter-spacing: .14em; color: var(--text); }
.pairs span { font-size: 16px; }
.pairs em { font-style: normal; font-size: 17px; color: var(--dim); }
.pairs a:hover b { color: var(--red); }
.numbered li > div { min-width: 0; }
@media (max-width: 900px) {
  .detail-groups { grid-template-columns: 1fr; gap: 24px; }
  .keys div { grid-template-columns: 1fr; gap: 8px; }
  .pairs a { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .pairs span { grid-column: 1 / -1; grid-row: 2; }
}
