/* ------------------------------------------------------------ tokens */
:root {
  --bg: #0b0d12;
  --bg-2: #0f1218;
  --surface: #14171f;
  --surface-2: #1b1f29;
  --surface-3: #232835;
  --line: #242a37;
  --line-2: #313849;
  --text: #f1f3f8;
  --text-2: #c4cad6;
  --muted: #8b93a5;
  --brand: #4fd1a5;
  --brand-2: #7ee8c4;
  --brand-ink: #04211a;
  --accent: var(--brand);
  --warn: #f5b945;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.7);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fa;
    --bg-2: #eef0f5;
    --surface: #ffffff;
    --surface-2: #f2f4f8;
    --surface-3: #e8ebf1;
    --line: #e3e6ed;
    --line-2: #d3d8e2;
    --text: #10131a;
    --text-2: #394152;
    --muted: #677084;
    --brand: #0e9f71;
    --brand-2: #16b583;
    --brand-ink: #ffffff;
    --warn: #b7791f;
    --shadow: 0 1px 2px rgba(16,19,26,.05), 0 8px 24px -12px rgba(16,19,26,.18);
    --shadow-lg: 0 30px 60px -24px rgba(16,19,26,.35);
    color-scheme: light;
  }
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 16px/1.65 Rubik, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin: 0 0 18px; font-weight: 700; }
p { margin: 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; }
code { background: var(--surface-3); padding: .12em .45em; border-radius: 6px; }
pre { margin: 0; background: var(--bg-2); border: 1px solid var(--line); padding: 14px 16px; border-radius: var(--r-sm); overflow-x: auto; text-align: left; }
pre code { background: none; padding: 0; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; right: 16px; top: -60px; z-index: 50; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

/* ------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.scrolled .top { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.08rem; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; font-weight: 800; color: var(--brand-ink); background: linear-gradient(145deg, var(--brand-2), var(--brand)); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
.top nav { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 999px; }
.top nav a { text-decoration: none; color: var(--muted); padding: 6px 14px; border-radius: 999px; font-size: .94rem; font-weight: 500; white-space: nowrap; transition: color .15s, background .15s; }
.top nav a:hover { color: var(--text); }
.top nav a[aria-current="page"] { background: var(--surface-3); color: var(--text); }

/* ------------------------------------------------------------ buttons, pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 12px; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--brand-ink);
  background: linear-gradient(180deg, var(--brand-2), var(--brand)); box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--brand) 80%, transparent), 0 1px 0 rgba(255,255,255,.25) inset;
  transition: transform .15s var(--ease), filter .15s, box-shadow .15s; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-lg { min-height: 50px; padding: 0 22px; font-size: 1.02rem; border-radius: 14px; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); filter: none; }
.btn-off { background: var(--surface-2); color: var(--muted); box-shadow: none; cursor: default; }
.btn-off:hover { transform: none; filter: none; }
.btn-sub { font-weight: 500; opacity: .7; font-size: .9em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 10px 3px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-ready { color: var(--brand); background: color-mix(in srgb, var(--brand) 13%, transparent); }
.st-beta { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); }
.st-ready i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.plat { font-size: .8rem; color: var(--muted); }
.card-top { display: flex; align-items: center; gap: 10px; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; display: inline-block; margin: 0 8px; vertical-align: middle; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; padding: 64px 0 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 70%; height: 130%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 22%, transparent), transparent); filter: blur(10px); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; margin-bottom: 20px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; margin: 0 0 18px; font-weight: 800; letter-spacing: -.02em; }
.grad { background: linear-gradient(90deg, var(--brand-2), var(--brand) 40%, #8fb8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--text-2); max-width: 58ch; margin-bottom: 26px; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column; }
.stats dt { font-size: .82rem; color: var(--muted); order: 2; }
.stats dd { margin: 0; font-size: 1.7rem; font-weight: 800; line-height: 1.2; }

.fan { position: relative; height: 380px; }
.fan-card { text-decoration: none; position: absolute; width: 74%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); transition: transform .5s var(--ease); }
.fan-card .cover { border-radius: var(--r-lg); aspect-ratio: 16 / 10; }
.fan-card .cover { justify-content: flex-start; padding-top: 22px; }
.fan-card .cover-mark { font-size: 3.4rem; }
.f0 { top: 0; left: 0; transform: rotate(-7deg); z-index: 1; }
.f1 { top: 70px; left: 13%; transform: rotate(2deg); z-index: 2; }
.f2 { top: 140px; left: 26%; transform: rotate(-2deg); z-index: 3; }
.fan:hover .f0 { transform: rotate(-10deg) translate(-12px, -8px); }
.fan:hover .f1 { transform: rotate(1deg) translateY(-6px); }
.fan:hover .f2 { transform: rotate(1deg) translate(10px, 6px); }

/* ------------------------------------------------------------ how it works */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how-item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.how-item b { display: block; margin-bottom: 2px; }
.how-item p { color: var(--muted); font-size: .92rem; }
.how-n { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; font-weight: 700; color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent); }

/* ------------------------------------------------------------ catalog */
.section { margin-top: 88px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.count { font-size: .92rem; margin-top: 4px; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: .95rem; font-weight: 500; color: var(--muted); background: none; border: 0; padding: 8px 16px; border-radius: 10px; cursor: pointer; white-space: nowrap; transition: color .15s, background .15s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.seg button span { font-size: .78rem; color: var(--muted); background: var(--surface-2); padding: 0 7px; border-radius: 999px; }
.seg-sm button { padding: 6px 12px; font-size: .9rem; }
.search { position: relative; display: flex; align-items: center; }
.search .ic { position: absolute; right: 12px; color: var(--muted); pointer-events: none; }
.search input { font: inherit; font-size: .95rem; width: 220px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 9px 40px 9px 14px; transition: border-color .15s, box-shadow .15s; }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.empty { text-align: center; padding: 56px 16px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty .ic { width: 36px; height: 36px; opacity: .6; }
.empty b { color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 24px 48px -24px color-mix(in srgb, var(--accent) 45%, transparent); }
.card .cover { border-radius: 0; }
.card:hover .cover-mark { transform: translateY(-3px) scale(1.03); }
.card.soon { opacity: .72; }
.card.soon .cover { filter: grayscale(.55); }
.card-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 2px 0 0; font-size: 1.12rem; font-weight: 700; }
.card p { color: var(--muted); font-size: .92rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; color: var(--muted); font-size: .84rem; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.go { margin-inline-start: auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--text-2); transition: background .2s, color .2s, transform .25s var(--ease); }
.go .ic { width: 16px; height: 16px; }
.card:hover .go { background: var(--accent); color: #0b0d12; transform: translateX(-3px); }

.soon-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.soon-label { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--muted); padding: 0 6px; }
.soon-card { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 280px; max-width: 440px; padding: 10px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.soon-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.soon-mark { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; font-weight: 800; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 70%, #fff 5%), color-mix(in srgb, var(--accent) 35%, #07080c)); }
.soon-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.soon-text b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soon-text span { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------ cover art */
.cover { position: relative; aspect-ratio: 16 / 8.5; overflow: hidden; isolation: isolate; direction: ltr;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 18px;
  background:
    radial-gradient(90% 110% at 100% 0%, color-mix(in srgb, var(--accent) 90%, #fff 10%) 0%, transparent 60%),
    radial-gradient(80% 90% at 0% 100%, color-mix(in srgb, var(--accent) 45%, #000) 0%, transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 40%, #0a0b10), #07080c); }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 1px, transparent 1px 12px); -webkit-mask-image: linear-gradient(90deg, #000, transparent 75%); mask-image: linear-gradient(90deg, #000, transparent 75%); }
.cover::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -18%; top: -40%; z-index: -1; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 0 0 26px rgba(255,255,255,.03), 0 0 0 58px rgba(255,255,255,.02); }
.cover-mark { font-weight: 800; font-size: 2.7rem; line-height: .95; color: #fff; letter-spacing: -.03em; text-shadow: 0 4px 24px rgba(0,0,0,.35); transition: transform .35s var(--ease); transform-origin: left bottom; }
.cover-game { color: rgba(255,255,255,.78); font-size: .78rem; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover-plat { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff; background: rgba(0,0,0,.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.14); }
.cover-plat .ic { width: 18px; height: 18px; }
.cover-big { border-radius: var(--r-lg); aspect-ratio: 16 / 10.5; box-shadow: var(--shadow-lg); padding: 22px 24px; }
.cover-big .cover-mark { font-size: clamp(3.2rem, 7vw, 4.6rem); }
.cover-big .cover-game { font-size: .88rem; }
.cover-game[dir="rtl"] { text-align: left; font-weight: 600; font-size: 1rem; color: #fff; }

/* ------------------------------------------------------------ why + faq */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why-3 { grid-template-columns: repeat(3, 1fr); }
.why-grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.why-grid .ic { width: 38px; height: 38px; padding: 8px; border-radius: 11px; color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); margin-bottom: 14px; }
.why-grid b { display: block; margin-bottom: 4px; }
.why-grid p { color: var(--muted); font-size: .92rem; }

.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 20px 18px; color: var(--text-2); }

/* ------------------------------------------------------------ mod page */
.mod-hero { position: relative; padding: 22px 0 44px; overflow: hidden; }
.mod-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 20% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
              linear-gradient(to bottom, transparent 60%, var(--bg)); }
.mod-hero > .wrap { position: relative; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: .92rem; margin-bottom: 22px; padding: 4px 4px 4px 10px; border-radius: 8px; transition: color .15s, background .15s; }
.crumb:hover { color: var(--text); background: var(--surface); }
.crumb .ic { width: 16px; height: 16px; }
.mod-hero-in { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 44px; align-items: center; }
.mod-hero-in .cover { order: 2; }
.mod-hero-text h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; margin: 14px 0 12px; }
.mod-hero-text .lead { margin-bottom: 24px; }
.facts { display: flex; flex-wrap: wrap; margin: 26px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); width: fit-content; max-width: 100%; overflow: hidden; }
.facts div { padding: 10px 18px; border-inline-start: 1px solid var(--line); }
.facts div:first-child { border-inline-start: 0; }
.facts dt { font-size: .76rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-size: .95rem; white-space: nowrap; }

.subnav { position: sticky; top: 64px; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-block: 1px solid var(--line); }
.subnav-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { position: relative; padding: 13px 14px; text-decoration: none; color: var(--muted); font-size: .94rem; font-weight: 500; white-space: nowrap; transition: color .15s; }
.subnav a:hover { color: var(--text); }
.subnav a.on { color: var(--text); }
.subnav a.on::after { content: ""; position: absolute; inset: auto 14px -1px; height: 2px; border-radius: 2px; background: var(--accent); }

.mod-body { padding-top: 12px; }
.block { margin-top: 56px; }
.page-hero { padding: 56px 0 8px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin: 0 0 14px; }
.page-hero.center .lead { margin-inline: auto; }
.page-hero.center .cta { justify-content: center; }
.big404 { font-size: clamp(5rem, 16vw, 9rem) !important; background: linear-gradient(180deg, var(--text), var(--muted)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.features li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; color: var(--text-2); }
.features .ic { width: 26px; height: 26px; padding: 5px; border-radius: 8px; color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); stroke-width: 2.4; }
.callout { display: flex; gap: 14px; margin-top: 16px; padding: 18px 20px; border-radius: var(--r); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--line)); }
.callout-ic { color: var(--warn); }
.callout-ic .ic { width: 24px; height: 24px; }
.callout b { display: block; margin-bottom: 4px; }
.callout ul { margin: 0; padding-inline-start: 18px; color: var(--text-2); }
.callout li + li { margin-top: 4px; }

.files { display: flex; flex-direction: column; gap: 10px; }
.file { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; transition: border-color .2s; }
.file:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.file-ic { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 13px; color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); }
.file-ic .ic { width: 24px; height: 24px; }
.file-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.file-meta { color: var(--muted); font-size: .86rem; }
.sha { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 4px; font: 500 .74rem ui-monospace, Menlo, monospace; color: var(--muted); padding: 2px 8px; margin-inline-start: -8px; border-radius: 6px; transition: color .15s, background .15s; }
.sha .ic { width: 14px; height: 14px; }
.sha:hover { color: var(--text); background: var(--surface-2); }
.sha:focus-visible { outline: 2px solid var(--accent); }
.hint { color: var(--muted); font-size: .88rem; margin-top: 12px; }
.hint a { color: var(--text-2); }

.install-grid { display: grid; grid-template-columns: 1fr minmax(0, 380px); gap: 24px; margin-top: 18px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { position: relative; counter-increment: s; padding: 0 56px 26px 0; }
.steps li::before { content: counter(s); position: absolute; right: 0; top: -2px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 700; color: var(--accent); background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--accent) 60%, var(--line)); }
.steps li:not(:last-child)::after { content: ""; position: absolute; right: 17px; top: 38px; bottom: 2px; width: 2px; background: linear-gradient(var(--line-2), var(--line)); border-radius: 2px; }
.steps b { display: block; margin-bottom: 3px; font-size: 1.02rem; }
.steps p { color: var(--text-2); }
.tree-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.tree-title { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.tree { font: 500 .88rem ui-monospace, Menlo, monospace; }
.tree-row { display: flex; align-items: center; gap: 8px; padding: 5px 0 5px calc(var(--d) * 20px); color: var(--text-2); }
.tree-row .ic { width: 18px; height: 18px; color: var(--muted); }
.tree-row.hl { color: var(--text); }
.tree-row.hl .ic { color: var(--accent); }
.tree-row.hl span { background: color-mix(in srgb, var(--accent) 14%, transparent); padding: 0 6px; border-radius: 5px; }
.tree-row em { font: italic .76rem Rubik, sans-serif; color: var(--muted); margin-left: auto; }
.code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }

.timeline { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--line); margin-inline-start: 6px; }
.timeline li { position: relative; padding: 0 22px 20px 0; }
.timeline li::before { content: ""; position: absolute; right: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--bg); }
.timeline li.latest::before { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.timeline time { font-size: .82rem; color: var(--muted); }
.timeline p { color: var(--text-2); }

.soon-block { text-align: center; padding: 48px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.soon-block .ic { width: 34px; height: 34px; color: var(--accent); margin-bottom: 6px; }
.soon-block p { color: var(--muted); }

/* ------------------------------------------------------------ mobile dock, toast */
.dock { position: fixed; inset: auto 0 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .3s var(--ease); display: none; }
.dock.show { transform: none; }
.dock-in { display: flex; align-items: center; gap: 12px; max-width: 640px; margin-inline: auto; }
.dock-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.dock-text b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-text span { font-size: .8rem; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 500; font-size: .92rem; box-shadow: var(--shadow-lg); transition: opacity .2s, transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ footer */
.foot { margin-top: 110px; border-top: 1px solid var(--line); background: var(--bg-2); padding: 44px 0 calc(44px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .9rem; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin-top: 14px; max-width: 46ch; }
.foot-brand .brand { color: var(--text); }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links b { color: var(--text); margin-bottom: 4px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); }

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

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .fan { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .mod-hero-in { grid-template-columns: 1fr; gap: 24px; }
  .mod-hero-in .cover { order: 0; }
  .install-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 120px; }
  .hero { padding: 36px 0 28px; }
  .how { grid-template-columns: 1fr; gap: 10px; }
  .section { margin-top: 64px; }
  .tools { width: 100%; }
  .search, .search input { width: 100%; }
  .features, .code-grid, .why-3 { grid-template-columns: 1fr; }
  .brand-text { font-size: .98rem; }
  .top nav { background: none; border: 0; padding: 0; }
  .top nav a { padding: 6px 9px; font-size: .9rem; }
  .top nav a:last-child { display: none; }
  .cover-big { aspect-ratio: 16 / 8; }
  .facts { width: 100%; }
  .facts div { flex: 1 1 40%; border-inline-start: 0; border-top: 1px solid var(--line); }
  .facts div:nth-child(-n+2) { border-top: 0; }
  .facts div:nth-child(even) { border-inline-start: 1px solid var(--line); }
  .file { flex-wrap: wrap; }
  .file .btn { width: 100%; }
  .dock { display: block; }
  .foot { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .btn-lg { flex: 1; }
}
@media (max-width: 420px) {
  .why-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ games → mods → versions */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { text-decoration: none; padding: 3px 8px; border-radius: 8px; transition: color .15s, background .15s; }
.crumbs a:hover { color: var(--text); background: var(--surface); }
.crumbs span { color: var(--text-2); padding: 3px 8px; }
.crumbs .ic { width: 14px; height: 14px; opacity: .6; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.chip { font-size: .76rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.mods-count { display: inline-flex; align-items: center; gap: 5px; margin-inline-end: 10px; }
.mods-count .ic { width: 15px; height: 15px; }
.tag { font-size: .74rem; font-weight: 600; color: var(--accent); padding: 2px 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.sub { margin: -8px 0 18px; }
.block-head { display: flex; align-items: baseline; gap: 12px; }
.block-head h2 { margin-bottom: 18px; }

.modlist { display: flex; flex-direction: column; gap: 12px; }
.modcard { display: flex; align-items: center; gap: 18px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.modcard:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--accent) 50%, transparent); }
.modcard-mark { display: grid; place-items: center; flex: none; width: 72px; height: 72px; border-radius: 18px; font-weight: 800; font-size: 1.45rem; color: #fff;
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 85%, #fff 15%), color-mix(in srgb, var(--accent) 35%, #07080c)); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.modcard-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.modcard-title { font-size: 1.18rem; }
.modcard-sum { color: var(--muted); font-size: .92rem; }
.modcard-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: .84rem; }
.modcard-go { display: inline-flex; align-items: center; gap: 8px; flex: none; font-weight: 600; font-size: .92rem; color: var(--text); padding: 10px 14px; border-radius: 12px; background: var(--surface-2); transition: background .2s, color .2s; }
.modcard-go .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.modcard:hover .modcard-go { background: var(--accent); color: #0b0d12; }
.modcard:hover .modcard-go .ic { transform: translateX(-3px); }

.versions { display: flex; flex-direction: column; gap: 10px; }
.ver { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; transition: border-color .2s; }
.ver:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.ver.latest { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.ver-num { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; min-width: 96px; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.ver-num span { font-size: .7rem; color: var(--muted); }
.ver-num b { font-size: 1.35rem; font-weight: 800; color: var(--accent); line-height: 1.2; }
.ver-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }

.which { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.which summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; list-style: none; font-weight: 500; color: var(--text-2); }
.which summary::-webkit-details-marker { display: none; }
.which summary .ic { width: 18px; height: 18px; color: var(--muted); }
.which summary .ic:last-child { margin-inline-start: auto; transition: transform .25s var(--ease); }
.which[open] summary .ic:last-child { transform: rotate(180deg); }
.which-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px 16px; }
.which-grid > div { background: var(--bg-2); border-radius: 12px; padding: 14px; }
.which-grid .ic { width: 22px; height: 22px; color: var(--accent); margin-bottom: 6px; }
.which-grid b { display: block; }
.which-grid p { color: var(--text-2); font-size: .92rem; }
.which-grid p b { display: inline; }

@media (max-width: 720px) {
  .modcard { flex-wrap: wrap; gap: 14px; }
  .modcard-mark { width: 56px; height: 56px; border-radius: 15px; font-size: 1.15rem; }
  .modcard-go { width: 100%; justify-content: center; }
  .ver { flex-wrap: wrap; gap: 12px; }
  .ver-num { min-width: 80px; }
  .ver .btn { width: 100%; }
  .which-grid { grid-template-columns: 1fr; }
}
