/* JJ Modding — black, graphite and champagne gold. */
:root {
  --black: #070708;
  --onyx: #0c0c0e;
  --graphite: #141417;
  --graphite-2: #1b1b1f;
  --line: rgba(230, 207, 154, 0.14);
  --line-strong: rgba(230, 207, 154, 0.32);
  --gold: #d2a64e;
  --gold-deep: #9a7128;
  --champagne: #e9d3a0;
  --amber: #f0a43a;
  --ivory: #f3eee4;
  --muted: #a9a294;
  --dim: #6f6a61;
  --glass: rgba(20, 20, 23, 0.62);
  --gold-metal: linear-gradient(180deg, #f8e7b8 0%, #e2bd6c 32%, #b8862f 58%, #e7c77d 80%, #fff1c9 100%);
  --gold-edge: linear-gradient(135deg, rgba(248, 231, 184, 0.55), rgba(154, 113, 40, 0.15) 40%, rgba(233, 211, 160, 0.4));
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Fine film grain over everything: keeps large black areas from looking flat. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: var(--champagne); text-decoration-color: rgba(233, 211, 160, 0.35); text-underline-offset: 3px; }
a:hover { color: #fff3d6; }
code { font: 0.86em var(--mono); color: var(--champagne); background: rgba(233, 211, 160, 0.07); border: 1px solid var(--line); padding: 0.1em 0.4em; border-radius: 6px; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(210, 166, 78, 0.35); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--gold); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.gold { background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn {
  --pad: 15px 26px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: 999px; border: 1px solid transparent;
  font: 600 14px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; isolation: isolate; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s, color 0.3s, background 0.3s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn small { font-weight: 500; letter-spacing: 0.02em; text-transform: none; opacity: 0.7; }
.btn-sm { --pad: 11px 18px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-gold {
  color: #1a1204;
  background: linear-gradient(180deg, #f6e2ad 0%, #dcb35e 45%, #b8862f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 249, 230, 0.75), inset 0 -1px 0 rgba(90, 60, 10, 0.5), 0 10px 30px -12px rgba(210, 166, 78, 0.55);
}
/* Light sweep across the gold on hover. */
.btn-gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 0.9s var(--ease);
}
.btn-gold:hover { color: #1a1204; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 249, 230, 0.8), inset 0 -1px 0 rgba(90, 60, 10, 0.5), 0 18px 40px -14px rgba(240, 164, 58, 0.6); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-ghost, .btn-outline { color: var(--champagne); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(8px); }
.btn-ghost:hover, .btn-outline:hover { color: #fff3d6; border-color: var(--champagne); background: rgba(233, 211, 160, 0.06); transform: translateY(-2px); }

/* ---------- header ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 18px max(16px, calc((100vw - var(--wrap)) / 2));
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 7, 8, 0.78); backdrop-filter: blur(18px) saturate(1.2); padding-top: 12px; padding-bottom: 12px; border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); }
.brand-mark { width: 56px; height: auto; filter: drop-shadow(0 2px 10px rgba(210, 166, 78, 0.25)); }
.brand-text { font: 600 22px/1 var(--display); letter-spacing: 0.04em; white-space: nowrap; }
.brand-text em { font-style: italic; font-weight: 500; background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav nav { display: flex; gap: 30px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; position: relative; padding: 6px 0; transition: color 0.3s; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-metal); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.nav nav a:hover, .nav nav a.active { color: var(--ivory); }
.nav nav a:hover::after, .nav nav a.active::after { transform: scaleX(1); transform-origin: left; }

/* ---------- hero ---------- */
/* With the effect running (.fx) the hero is tall and its contents stay pinned while the
   scroll distance drives the explosion; otherwise it is one still screen. */
.hero { --logo-w: min(84vw, 76svh); --logo-top: 9svh; position: relative; height: 100svh; }
.hero.fx { height: 320svh; }
.hero-pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(55% 45% at 50% 36%, rgba(120, 82, 22, 0.24), transparent 70%),
    radial-gradient(120% 60% at 50% 115%, rgba(40, 30, 14, 0.65), transparent 60%),
    var(--black);
}
.hero-logo { position: absolute; z-index: 1; left: 50%; top: var(--logo-top); width: var(--logo-w); translate: -50% 0; animation: emerge 1.8s var(--ease) both 0.1s; }
.hero-logo img { width: 100%; height: auto; }
.hero.fx-ready .hero-logo { opacity: 0; animation: none; }
@keyframes emerge { from { opacity: 0; transform: translateY(20px) scale(0.97); filter: blur(8px) brightness(0.3); } }
.hero-gl { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.hero-text {
  position: absolute; z-index: 2; left: 0; right: 0; padding: 0 16px; text-align: center;
  top: calc(var(--logo-top) + var(--logo-w) * 0.7 + 1.5svh);
}
/* Forged-metal headline: brushed gold face, bevel highlight and a short extrusion. It never moves;
   the debris in hero.js collides with these exact glyph outlines. */
.forged {
  margin: 0; font: 900 clamp(40px, 6.2vw, 104px)/1.04 "Cinzel", "Cormorant Garamond", serif; letter-spacing: 0.04em;
  color: transparent;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #fff6d8 0%, #f0cf7f 22%, #c39236 46%, #7d5414 54%, #e7bf68 72%, #fff0c2 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 1px 0 rgba(255, 244, 210, 0.5)) drop-shadow(0 2px 0 #6b4810) drop-shadow(0 2px 0 #3f2906) drop-shadow(0 16px 24px rgba(0, 0, 0, 0.9));
}
.forged .br { display: none; }
.tagline { margin: 14px 0 0; color: var(--champagne); font: 600 clamp(11px, 1.05vw, 14px)/1.4 var(--sans); letter-spacing: 0.5em; padding-left: 0.5em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: clamp(18px, 3svh, 30px); }
.scroll-cue { position: absolute; z-index: 4; left: 50%; bottom: 22px; translate: -50% 0; width: 22px; height: 36px; border: 1px solid var(--line-strong); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: var(--champagne); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- sections ---------- */
.section { position: relative; width: min(var(--wrap), 100% - 32px); margin: 0 auto; padding: clamp(80px, 11vw, 140px) 0 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.kicker { margin: 0 0 16px; color: var(--gold); font: italic 500 18px/1 var(--display); letter-spacing: 0.06em; }
.section h2 { margin: 0; font: 600 clamp(38px, 5.4vw, 66px)/1.02 var(--display); letter-spacing: -0.015em; }
.section-sub { margin: 20px 0 0; color: var(--muted); font-size: 17px; max-width: 600px; }

/* Shared dark-glass surface with a fine gold edge and brushed-metal sheen. */
.surface, .mod, .empty, .standard li, .steps li, .faq details {
  position: relative; background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 40%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px),
    var(--glass);
  border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 244, 214, 0.05) inset, 0 30px 60px -40px rgba(0, 0, 0, 0.9);
}

/* ---------- library ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 600 12px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: all 0.3s; }
.chip:hover { color: var(--ivory); border-color: var(--line-strong); }
.chip.is-on { color: #1a1204; background: var(--gold-metal); border-color: transparent; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.mod { display: flex; flex-direction: column; padding: 28px; transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s; }
.mod::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--gold-edge); opacity: 0; transition: opacity 0.5s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.mod:hover { transform: translateY(-4px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(210, 166, 78, 0.08); }
.mod:hover::before { opacity: 1; }
.mod[hidden] { display: none; }
.mod-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--champagne); padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 999px; }
.ver { font: 13px var(--mono); color: var(--dim); }
.mod h3 { margin: 0 0 10px; font: 600 30px/1.1 var(--display); }
.mod-sum { margin: 0 0 14px; color: var(--muted); }
.mod-feats { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; }
.mod-feats li { padding-left: 18px; position: relative; }
.mod-feats li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; rotate: 45deg; background: var(--gold); }
.verified { display: flex; gap: 8px; align-items: center; margin: 0 0 16px; font-size: 13px; color: #cfe3c0; }
.verified svg { width: 16px; height: 16px; fill: none; stroke: #9fd28a; stroke-width: 2.4; flex: none; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 20px; padding: 14px 0; border-block: 1px solid var(--line); }
.specs dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.specs dd { margin: 2px 0 0; font-size: 14px; }
.mod-actions { display: grid; gap: 10px; margin-top: auto; }
.mod-more { margin-top: 16px; font-size: 14px; color: var(--muted); }
.mod-more summary { cursor: pointer; color: var(--champagne); font-weight: 600; list-style: none; }
.mod-more summary::-webkit-details-marker { display: none; }
.mod-more summary::after { content: " +"; }
.mod-more[open] summary::after { content: " −"; }
.mod-more h4 { margin: 18px 0 6px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.mod-more ol, .mod-more ul { margin: 0; padding-left: 20px; }
.deps span { color: var(--dim); font-family: var(--mono); font-size: 12px; }
.hash { display: grid; gap: 8px; }
.hash code { display: block; font-size: 12px; padding: 8px 10px; }
.copy-btn { justify-self: start; margin-top: 2px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: transparent; color: var(--champagne); font: 600 12px var(--sans); cursor: pointer; }
.copy-btn:hover { background: rgba(233, 211, 160, 0.08); }

.empty { display: grid; justify-items: center; text-align: center; padding: clamp(48px, 7vw, 84px) clamp(22px, 5vw, 64px); overflow: hidden; }
.empty::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 0%, rgba(210, 166, 78, 0.12), transparent 70%); pointer-events: none; }
.empty-mark { position: relative; width: 64px; height: 64px; margin-bottom: 26px; border: 1px solid var(--line-strong); rotate: 45deg; display: grid; place-items: center; }
.empty-mark span { width: 18px; height: 18px; background: var(--gold-metal); box-shadow: 0 0 30px rgba(240, 164, 58, 0.5); animation: pulse 3.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.45; transform: scale(0.8); } }
.empty h3 { position: relative; margin: 0; max-width: 620px; font: 600 clamp(28px, 3.6vw, 40px)/1.12 var(--display); }
.empty p { position: relative; max-width: 600px; margin: 18px 0 28px; color: var(--muted); }

/* image-first cards */
.mod { padding: 0; overflow: hidden; }
.mod-media { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #17150f, #0c0c0e); border-bottom: 1px solid var(--line); overflow: hidden; }
.mod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.5s; }
.mod:hover .mod-media img { transform: scale(1.04); filter: brightness(1.08); }
.noshot { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.flag { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(120, 30, 20, 0.85); color: #ffd9cc; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.mod-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.mod h3 a { color: inherit; text-decoration: none; }
.incl { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; padding: 9px 12px; border-radius: 10px; background: rgba(210, 166, 78, 0.12); border: 1px solid var(--line-strong); color: var(--champagne); font-size: 13.5px; font-weight: 600; }
.incl svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--gold); stroke-width: 2.4; }
.upd { margin: 14px 0 0; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; font-size: 13px; color: var(--muted); }
.upd strong { color: var(--champagne); }
.upd-box { padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 13px; color: var(--muted); }
.upd-box p { margin: 0; }
.upd-box strong { color: var(--champagne); }
.upd-box code { font-size: 11px; }
.card-steps { margin: 0 0 16px; padding: 14px 16px 12px; border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: 10px; background: rgba(233, 211, 160, 0.04); }
.cs-title { margin: 0 0 6px; color: var(--champagne); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.card-steps ol { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 13.5px; line-height: 1.5; color: var(--ivory); }
.card-steps li::marker { color: var(--gold); font-weight: 700; }
.mod h3 a:hover { color: var(--champagne); }
.mod .specs { grid-template-columns: 1fr 1fr; }
.mod-actions { grid-template-columns: 1fr 1fr; }

/* library controls */
.lib-controls { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(3, minmax(140px, 1fr)); gap: 12px; margin-bottom: 14px; }
.lib-controls input, .lib-controls select {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--glass); color: var(--ivory); font: 500 15px var(--sans); appearance: none; -webkit-appearance: none;
}
.lib-controls select { padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: right 18px top 20px, right 13px top 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.lib-controls select option { background: #141417; }
.lib-controls input:focus, .lib-controls select:focus { outline: none; border-color: var(--champagne); box-shadow: 0 0 0 3px rgba(233, 211, 160, 0.15); }
.lib-search { position: relative; }
.lib-search svg { position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; fill: none; stroke: var(--dim); stroke-width: 2; }
.lib-search input { padding-left: 42px; }
.lib-count { margin: 0 0 18px; color: var(--dim); font-size: 13px; }
.lib-none { color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; color: var(--champagne); font: inherit; text-decoration: underline; cursor: pointer; }

/* games, about, news */
.games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.game { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); }
.game h3 { margin: 0 0 8px; font: 600 30px/1.1 var(--display); }
.game p { margin: 0 0 12px; color: var(--muted); }
.game .game-count { color: var(--champagne); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px; max-width: 980px; color: var(--muted); font-size: 17px; }
.about-grid p { margin: 0; }
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 860px; }
.news li { padding: 22px 24px; border-left: 2px solid var(--gold); background: var(--glass); border-radius: 0 var(--radius) var(--radius) 0; }
.news time { color: var(--dim); font-size: 13px; }
.news h3 { margin: 4px 0 6px; font: 600 24px/1.2 var(--display); }
.news h3 a { color: var(--ivory); text-decoration: none; }
.news p { margin: 0; color: var(--muted); }
.cta-left { justify-content: flex-start; }

/* mod detail pages */
.mod-page { width: min(var(--wrap), 100% - 32px); margin: 0 auto; padding-top: 110px; }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 26px; }
.crumbs a { color: var(--muted); }
.mod-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; margin-bottom: 44px; }
.mod-hero h1 { margin: 0; font: 600 clamp(40px, 5.6vw, 72px)/1.02 var(--display); }
.lede-left { margin: 16px 0 0; color: var(--muted); font-size: 18px; max-width: 620px; }
.flag-line { margin: 18px 0 0; padding: 12px 16px; border: 1px solid rgba(220, 100, 80, 0.45); border-radius: 10px; color: #ffcfc2; background: rgba(120, 30, 20, 0.25); font-size: 14px; }
.mod-hero .verified { margin-top: 18px; }
.dl-box { padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--glass); display: grid; gap: 12px; }
.dl-box .specs { grid-template-columns: 1fr 1fr; margin: 6px 0 0; }
.gallery ul { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.gallery a { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); }
.gallery a:hover, .gallery a:focus-visible { border-color: var(--champagne); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.noshot-wide { margin: 0 0 48px; padding: 40px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--dim); }
.mod-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.mod-cols h2 { margin: 0 0 14px; font: 600 30px/1.1 var(--display); }
.mod-cols h3 { margin: 18px 0 6px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.mod-cols p, .mod-cols li { color: var(--muted); }
.mod-cols ul, .mod-cols ol { padding-left: 20px; margin: 0; }
.changelog { list-style: none; padding: 0 !important; }
.changelog li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.changelog p { margin: 4px 0 0; }
.muted { color: var(--dim) !important; }
.lightbox { padding: 0; border: 1px solid var(--line-strong); border-radius: 14px; background: #0b0b0d; max-width: min(1400px, 94vw); color: var(--ivory); }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(4px); }
.lightbox img { display: block; max-width: 100%; max-height: 82vh; }
.lb-cap { margin: 0; padding: 12px 16px; color: var(--muted); font-size: 14px; }
.lb-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.6); color: var(--ivory); font-size: 24px; cursor: pointer; }
.preview-banner { position: fixed; z-index: 300; left: 0; right: 0; bottom: 0; padding: 8px 16px; text-align: center; background: #7a1c12; color: #fff; font: 700 13px var(--sans); letter-spacing: 0.04em; }
@media (max-width: 860px) {
  .lib-controls { grid-template-columns: 1fr 1fr; }
  .lib-search { grid-column: 1 / -1; }
  .mod-hero, .mod-cols { grid-template-columns: 1fr; }
}

.latest-none { margin: -20px 0 0; color: var(--muted); max-width: 620px; }
.latest { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 860px; }
.latest a { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: baseline; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ivory); background: var(--glass); transition: border-color 0.3s; }
.latest a:hover { border-color: var(--line-strong); }
.latest .ln { font: 600 22px/1.2 var(--display); }
.latest .lv, .latest time { color: var(--dim); font-size: 13px; }

/* ---------- standard ---------- */
.standard { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.standard li { padding: 24px 22px 22px; transition: border-color 0.4s, transform 0.5s var(--ease); }
.standard li:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.standard .n { display: block; margin-bottom: 18px; font: italic 600 30px/1 var(--display); background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.standard h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.standard p { margin: 0; font-size: 14px; color: var(--muted); }
.standard-note { margin: 28px 0 0; padding-left: 18px; border-left: 2px solid var(--gold); color: var(--muted); max-width: 640px; }

/* ---------- install ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; counter-reset: s; }
.steps li { display: flex; gap: 18px; padding: 26px 24px; }
.step-n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); font: 600 20px/1 var(--display); color: var(--champagne); }
.steps h3 { margin: 6px 0 6px; font-size: 16px; }
.steps p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { padding: 0; transition: border-color 0.3s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; cursor: pointer; list-style: none; font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); rotate: 45deg; translate: 0 -3px; transition: rotate 0.4s var(--ease), translate 0.4s var(--ease); }
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* ---------- footer ---------- */
.footer { margin-top: clamp(100px, 13vw, 170px); border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(20, 20, 23, 0.6), var(--black)); }
.footer-inner { width: min(var(--wrap), 100% - 32px); margin: 0 auto; padding: 40px 0 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.footer nav a:hover { color: var(--ivory); }
.fine { width: min(var(--wrap), 100% - 32px); margin: 0 auto; padding: 0 0 40px; font-size: 13px; color: var(--dim); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding: 16px; }
.lost img { width: min(420px, 80vw); }
.lost h1 { margin: 0; font: 600 clamp(36px, 6vw, 60px)/1 var(--display); }
.lost p { margin: 0; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .brand-text { font-size: 20px; }
  .hero { --logo-w: 92vw; --logo-top: 12svh; }
  .hero.fx { height: 260svh; }
}
@media (max-width: 600px) {
  .forged { font-size: 12.5vw; }
  .forged .br { display: block; }
  .tagline { letter-spacing: 0.32em; padding-left: 0.32em; }
}
@media (max-width: 520px) {
  .brand-mark { width: 46px; }
  .nav .btn { --pad: 10px 14px; font-size: 11px; }
  .cta-row .btn { width: 100%; }
  .specs { grid-template-columns: 1fr; }
  .steps li { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
