/* Crooli MC Launcher website. Shares the Crooli tokens (warm greys, ink, glass shader panels) but reads top to
   bottom in one column: intro, the launcher, three steps, what's included, download. Light by default. */
:root {
  --bg: #f5f5f3;
  --paper: #ffffff;
  --tile: #efefec;
  --ink: #161616;
  --ink-2: #4a4a47;
  --dim: #8b8b86;
  --line: #e4e4e0;
  --grass: #3f8f2e;
  --pill: #e9e9e6;
  --btn-bg: #1c1c1a;
  --btn-bg-hover: #000;
  --btn-fg: #fbfbfa;
  --tag-bg: rgba(63, 143, 46, 0.14);
  --tag-fg: #2c6a1f;
  --select: #d4efc8;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --mark-grass: #5fa83a;
  --mark-dirt: #8a5f3c;
  --mark-shade: #6e4a2d;
  --radius: 24px;
  --side: clamp(16px, 4vw, 48px);
  --wide: 1240px;
  --text: 720px;
  --section: clamp(96px, 12vw, 176px);
  --display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #171615;
  --paper: #1f1e1d;
  --tile: #2a2927;
  --ink: #ecebe8;
  --ink-2: #a8a6a1;
  --dim: #75736e;
  --line: rgba(255, 255, 250, 0.1);
  --grass: #7fd35c;
  --pill: #2a2927;
  --btn-bg: #ecebe8;
  --btn-bg-hover: #fff;
  --btn-fg: #1f1e1d;
  --tag-bg: rgba(127, 211, 92, 0.16);
  --tag-fg: #a6e58a;
  --select: #2c5a1f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .3s ease, color .3s ease;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
code { font-family: var(--mono); }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--select); }
:focus-visible { outline: 2px solid var(--grass); outline-offset: 3px; }
section[id] { scroll-margin-top: 96px; }

/* ---------- type ---------- */
.display { font: 500 clamp(46px, 6.4vw, 104px)/0.98 var(--display); letter-spacing: -0.022em; text-wrap: balance; }
.h2 { font: 500 clamp(34px, 4vw, 60px)/1.02 var(--display); letter-spacing: -0.018em; text-wrap: balance; }
.dim { color: var(--dim); }
.lede { max-width: 36em; color: var(--ink-2); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; letter-spacing: -0.005em; }
.lede b { color: var(--ink); font-weight: 500; }
.center { text-align: center; margin-inline: auto; }

/* ---------- shared pieces ---------- */
.panel { position: relative; overflow: hidden; border-radius: var(--radius); isolation: isolate; }
.shader { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
/* Before WebGL paints, and when it can't: CSS stand-ins in the same colours. */
.panel { background: linear-gradient(120deg, #173b12, #3f7d2a 45%, #86c95f 80%, #e9f6dc); }
.panel:has(> [data-palette="sky"]) { background: linear-gradient(120deg, #1b2f63, #3f72cf 45%, #8fb8f2 80%, #e8f1ff); }
.panel:has(> [data-palette="dirt"]) { background: linear-gradient(120deg, #3a2414, #8a5f3c 50%, #d7a96a 85%, #f5e8d2); }
.panel:has(> [data-palette="night"]) { background: linear-gradient(120deg, #0e1430, #22306a 50%, #5a6fc8 85%, #d9e0ff); }

.shot {
  position: relative; overflow: hidden; border-radius: 14px; background: #2a2c31;
  box-shadow: 0 0 0 1px rgba(0,0,0,.18), 0 1px 0 rgba(255,255,255,.12) inset, 0 50px 100px -30px rgba(0,0,0,.5);
}
.shot img { width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 22px/1 var(--display); letter-spacing: -0.015em; }
.brand .product { margin-left: 2px; padding-left: 12px; border-left: 1px solid var(--line); font-weight: 400; color: var(--dim); }
.mark { width: 22px; height: 22px; flex: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px; white-space: nowrap;
  font: 500 16px/1 var(--sans); letter-spacing: -0.005em;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn.dark { background: var(--btn-bg); color: var(--btn-fg); }
.btn.dark:hover { background: var(--btn-bg-hover); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
.btn.ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--tile); transform: translateY(-1px); }
.btn[hidden] { display: none; }
.btn small:empty { display: none; }
.btn small { font: 400 13px/1 var(--mono); opacity: .55; }
.ulink {
  white-space: nowrap; color: var(--ink-2);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px; transition: color .2s;
}
.ulink:hover { color: var(--ink); }
.cta { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 40px; }

.theme-toggle {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 0; border-radius: 999px; background: none; color: var(--ink-2); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ---------- top bar: sticks, and frosts once you scroll ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--side);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.topbar.stuck {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.pillnav { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--pill); }
.pillnav a { padding: 8px 16px; border-radius: 999px; font-size: 15px; color: var(--ink-2); transition: background-color .2s, color .2s; }
.pillnav a:hover, .pillnav .theme-toggle:hover { background: var(--paper); color: var(--ink); }
#stars { color: var(--dim); }

/* ---------- 1. intro ---------- */
.intro { max-width: 980px; margin: 0 auto; padding: clamp(10px, 1.6vw, 24px) var(--side) clamp(24px, 3.5vw, 44px); text-align: center; }
.intro .display { font-size: clamp(40px, 5.4vw, 80px); }
.intro .lede { max-width: 46em; margin: 20px auto 0; }
.intro .cta { margin-top: 28px; }
.ver {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; padding: 6px 13px 6px 11px;
  border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; color: var(--ink-2); transition: color .2s, box-shadow .2s; animation: up .9s .1s var(--ease) backwards;
}
.ver[hidden] { display: none; }
.ver:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--dim); }
.ver #ver-num { color: var(--ink); font-weight: 500; }
.ver-date { color: var(--dim); }
.ver-date:not(:empty)::before { content: ", "; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grass); box-shadow: 0 0 0 4px var(--tag-bg); }

/* ---------- 2. showcase ---------- */
.showcase {
  max-width: var(--wide); margin: 0 auto; margin-inline: max(var(--side), calc((100% - var(--wide)) / 2));
  padding: clamp(16px, 2.5vw, 36px) clamp(16px, 7vw, 104px) 0;
}
.showcase .shot { border-radius: 14px 14px 0 0; transform-origin: 50% 100%; animation: rise 1.1s .5s var(--ease) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }

.facts {
  max-width: var(--wide); margin: 40px auto 0; padding: 0 var(--side);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.facts div { padding-top: 18px; border-top: 1px solid var(--line); }
.facts dt { font: 400 15px/1.3 var(--mono); color: var(--ink); }
.facts dd { margin-top: 6px; color: var(--dim); font-size: 15px; }

/* ---------- 3. how it works ---------- */
.how, .more { max-width: var(--wide); margin: var(--section) auto 0; padding: 0 var(--side); }
.how > .h2, .more > .h2 { max-width: 14em; margin-bottom: clamp(56px, 7vw, 96px); }
.step { display: grid; gap: 32px; }
.step + .step { margin-top: clamp(80px, 10vw, 140px); }
.step-text { max-width: var(--text); margin: 0 auto; text-align: center; }
.num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px;
  border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  font: 500 15px/1 var(--mono); color: var(--ink);
}
.step h3 { font: 500 clamp(28px, 2.8vw, 40px)/1.08 var(--display); letter-spacing: -0.015em; }
.step p { margin: 14px auto 0; max-width: 36em; color: var(--ink-2); font-size: 17px; }
.step-art { padding: clamp(28px, 6vw, 88px) clamp(16px, 8vw, 120px); }
.step-art .shot { max-width: 980px; margin: 0 auto; transition: transform .6s var(--ease); }

/* day / dusk / night picker */
.seg { display: inline-flex; gap: 2px; margin-top: 24px; padding: 4px; border-radius: 999px; background: var(--pill); }
.seg button { border: 0; background: none; cursor: pointer; padding: 10px 20px; border-radius: 999px; font: 500 15px/1 var(--sans); color: var(--ink-2); transition: background-color .2s, color .2s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.sky-shot img { transition: opacity .35s ease; }
.sky-shot img.fade { opacity: 0; }

/* ---------- 4. more: text beside the picture, alternating sides ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 9vw, 128px); }
.feature.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.feature.flip .feature-text { order: 2; }
.feature-text h3 { font: 500 clamp(28px, 2.8vw, 40px)/1.08 var(--display); letter-spacing: -0.015em; text-wrap: balance; }
.feature-text p { margin-top: 16px; max-width: 34em; color: var(--ink-2); font-size: 17px; }
.feature-text code { padding: 1px 6px; border-radius: 6px; background: var(--tile); color: var(--ink); font-size: .88em; }
.feature-art { padding: clamp(24px, 4vw, 56px) clamp(16px, 3vw, 48px); }
.feature-art .shot { transition: transform .6s var(--ease); }

/* ---------- 5. included ---------- */
.included { max-width: 980px; margin: var(--section) auto 0; padding: 0 var(--side); text-align: center; }
.included .lede { margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.chips li { font: 400 14px/1 var(--mono); color: var(--ink-2); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); padding: 11px 14px; border-radius: 999px; }
.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; margin-top: 72px; text-align: left; }
.extras li { padding-top: 18px; border-top: 1px solid var(--line); }
.extras b { display: block; font: 500 19px/1.2 var(--display); letter-spacing: -0.01em; }
.extras span { display: block; margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* ---------- 5. download ---------- */
.get { max-width: 880px; margin: var(--section) auto 0; padding: 0 var(--side); text-align: center; }
.get .lede { margin-top: 22px; }
.cmdline {
  display: flex; align-items: center; gap: 14px; min-width: 0; margin-top: 56px; text-align: left;
  padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
}
.cmdline code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 14px; color: var(--ink); scrollbar-width: none; }
.copy {
  height: 30px; padding: 0 12px; border-radius: 8px; border: 0; cursor: pointer;
  background: var(--tile); color: var(--ink); font: 500 12px/1 var(--sans); transition: background-color .2s;
}
.copy:hover { background: var(--line); }
.tag { flex: none; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-radius: 6px; background: var(--tag-bg); color: var(--tag-fg); }
.fine { margin-top: 14px; color: var(--dim); font-size: 14px; }
.fine a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }

/* top note, centred in the bar */
.topnote { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; transition: opacity .25s ease; }
.topbar.stuck .topnote { opacity: 0; pointer-events: none; }
@media (max-width: 1340px) { .topnote { display: none; } }

/* ---------- features: real screenshots in a grid ---------- */
.features { max-width: var(--wide); margin: var(--section) auto 0; padding: 0 var(--side); }
.features .lede { margin: 16px auto 0; }
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; margin-top: clamp(40px, 5vw, 72px); }
.fcard h3 { margin-top: 20px; font: 500 21px/1.2 var(--display); letter-spacing: -0.01em; }
.fcard p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.fshot { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 14px; border-radius: 20px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.fshot img { max-height: 100%; width: auto; max-width: 100%; border-radius: 10px; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .25); object-fit: contain; }
@media (max-width: 1000px) { .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .fgrid { grid-template-columns: 1fr; } }


/* ---------- footer: the grass block, full width, with the words on top ---------- */
.foot { position: relative; margin: var(--section) 0 0; min-height: 230px; display: grid; align-items: end; overflow: hidden; color: #fff; }
.foot-bg { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; z-index: 0; }
.foot::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(0,0,0,.42)); pointer-events: none; }
.foot-in { position: relative; z-index: 2; display: grid; justify-items: center; gap: 12px; padding: 64px var(--side) 26px; text-align: center; text-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font: 600 22px/1 var(--display); letter-spacing: -0.015em; }
.foot-brand .mark { width: 26px; height: 26px; }
.foot-brand span { margin-left: 2px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .45); font-weight: 400; opacity: .9; }
.foot nav { display: flex; gap: 22px; font-size: 14px; }
.foot nav a { opacity: .92; } .foot nav a:hover { opacity: 1; text-decoration: underline; }
.foot p { max-width: 52em; font-size: 12.5px; opacity: .85; }

/* ================= motion ================= */
@keyframes up { from { opacity: 0; transform: translateY(18px); } }
.intro .lede { animation: up 1s .45s var(--ease) backwards; }
.intro .cta { animation: up 1s .58s var(--ease) backwards; }
.showcase { animation: up 1.1s .3s var(--ease) backwards; }

/* headlines rise line by line */
.split-lines .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.split-lines .line-in { display: block; }
.js .split-lines .line-in { transform: translateY(112%); transition: transform 1.15s var(--ease); transition-delay: calc(var(--i) * 110ms + 80ms); }
.js .split-lines.in .line-in { transform: none; }

/* sections fade up; step panels open out from a rounded inset */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .split-lines.reveal { opacity: 1; transform: none; }
.js .reveal.clip { transform: none; clip-path: inset(6% 6% 6% 6% round 56px); transition: opacity .7s ease, clip-path 1.4s var(--ease); }
.js .reveal.clip.in { clip-path: inset(0 round var(--radius)); }
.js .reveal.clip > .shader { transform: scale(1.16); transition: transform 2.2s var(--ease); }
.js .reveal.clip.in > .shader { transform: none; }

/* theme change spreads from the toggle */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: theme-wipe .7s cubic-bezier(.4, 0, .2, 1); }
@keyframes theme-wipe { from { clip-path: circle(0 at var(--vx, 50%) var(--vy, 0)); } to { clip-path: circle(150vmax at var(--vx, 50%) var(--vy, 0)); } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --radius: 18px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature-text { order: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .extras { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  .step-art { padding: 28px 16px; }
}
@media (max-width: 620px) {
  .topbar { padding: 12px 16px; }
  .brand .product { display: none; }
  .pillnav a:not(:last-of-type) { display: none; }
  .intro { text-align: left; }
  .intro .lede { margin-left: 0; }
  .intro .cta { justify-content: flex-start; }
  .showcase { padding: 28px 12px 0; }
  .showcase .shot { border-radius: 10px 10px 0 0; }
  .facts { gap: 18px 16px; }
  .facts dt { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro .lede, .intro .cta, .showcase, .showcase .shot { animation: none; }
  .js .reveal, .js .split-lines .line-in, .js .reveal.clip, .js .reveal.clip > .shader { opacity: 1; transform: none; clip-path: none; transition: none; }
}

/* ================= downloads page ================= */
.dl-intro { padding-bottom: clamp(40px, 5vw, 64px); }
.platforms { max-width: var(--wide); margin: 0 auto; padding: 0 var(--side); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.platform {
  display: flex; flex-direction: column; align-items: flex-start; padding: 28px 24px;
  border-radius: var(--radius); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  animation: up .9s var(--ease) backwards;
}
.platform:nth-child(2) { animation-delay: .07s; } .platform:nth-child(3) { animation-delay: .14s; }
.platform.mine { box-shadow: inset 0 0 0 2px var(--grass); }
.platform .tag { margin-bottom: 14px; }
.platform h2 { font: 500 26px/1.1 var(--display); letter-spacing: -0.012em; }
.platform > p { margin: 8px 0 28px; color: var(--ink-2); font-size: 15px; }
.platform .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; } /* buttons line up along the bottom of every card */
.platform .btn { margin-top: 0; padding-inline: 14px; font-size: 15px; white-space: nowrap; }
.platform .actions { gap: 8px; }
.platform .meta { margin-top: 12px; font: 400 13px/1.4 var(--mono); color: var(--dim); }
.ico { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.which { max-width: 760px; margin: 22px auto 0; padding: 0 var(--side); }
.which b { color: var(--ink-2); font-weight: 500; }

.first { max-width: 980px; margin: var(--section) auto 0; padding: 0 var(--side); }
.first .lede { margin-top: 18px; }
.first-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }
.first-cols > div { padding-top: 20px; border-top: 1px solid var(--line); }
.first-cols h3 { font: 500 22px/1.2 var(--display); letter-spacing: -0.01em; }
.first-cols p { margin-top: 10px; color: var(--ink-2); }
.first-cols b { color: var(--ink); font-weight: 500; }
.first-cols .cmdline { margin-top: 18px; }

.history { max-width: 880px; margin: var(--section) auto 0; padding: 0 var(--side); }
.releases { margin-top: 56px; padding: 0; list-style: none; }
.rel { padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.rel:target .rel-ver { color: var(--grass); }
.rel-head { display: flex; align-items: baseline; gap: 10px 18px; flex-wrap: wrap; }
.rel-ver { font: 500 clamp(34px, 3.6vw, 48px)/1 var(--display); letter-spacing: -0.018em; transition: color .2s; }
.rel-ver:hover { color: var(--grass); }
.rel-head time { color: var(--dim); }
.rel-body { margin-top: 20px; color: var(--ink-2); max-width: 40em; }
.rel-body p { margin: 0 0 10px; }
.rel-body h4 { margin: 22px 0 8px; font: 500 16px/1.3 var(--display); color: var(--ink); }
.rel-body ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; }
.rel-body li::marker { color: var(--grass); }
.rel-body strong { color: var(--ink); font-weight: 500; }
.rel-body code { padding: 1px 6px; border-radius: 6px; background: var(--tile); color: var(--ink); font-size: .88em; }
.rel-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.file {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; transition: background-color .2s, transform .2s var(--ease);
}
.file:hover { background: var(--tile); transform: translateY(-1px); }
.file small { font: 400 12px/1 var(--mono); color: var(--dim); }
.rel-loading { padding: 40px 0; text-align: center; color: var(--dim); }
.page-downloads .get { margin-top: var(--section); }
.page-downloads .get .cmdline { margin-top: 0; }

@media (max-width: 900px) {
  .platforms, .first-cols { grid-template-columns: 1fr; }
  .first-cols { gap: 32px; }
}
@media (prefers-reduced-motion: reduce) { .platform { animation: none; } }

/* ================= mods page ================= */
.page-mods .dl-intro { padding-bottom: clamp(20px, 3vw, 36px); }
.browse { max-width: var(--wide); margin: 0 auto; padding: 0 var(--side); }
.kinds { display: flex; width: fit-content; margin: 0 auto 28px; flex-wrap: wrap; justify-content: center; }
.mbar { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.field[hidden] { display: none; }
.field input, .field select { height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 400 15px var(--sans); outline: none; min-width: 0; }
.field input:focus, .field select:focus { box-shadow: inset 0 0 0 2px var(--grass); }
.mnote { margin: 16px 0 28px; max-width: 60em; }
.mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mcard { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.mhead { display: flex; align-items: center; gap: 14px; }
.mhead img, .mph { width: 56px; height: 56px; flex: none; border-radius: 14px; object-fit: cover; background: var(--tile); }
.mtitle { min-width: 0; }
.mtitle h3 { font: 500 18px/1.2 var(--display); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mby { margin: 2px 0 0; color: var(--dim); font-size: 13.5px; }
.mtext { margin: 0; color: var(--ink-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; }
.mmeta { margin: 0; font: 400 12.5px/1.4 var(--mono); color: var(--dim); }
.mtags { display: flex; flex-wrap: wrap; gap: 6px; }
.mfoot { margin-top: auto; padding-top: 4px; }
.mactions { display: flex; align-items: center; gap: 18px; }
.btn.small { height: 38px; padding: 0 16px; font-size: 14px; }
.mempty { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--dim); }
.mmore { display: flex; justify-content: center; margin-top: 32px; }
.mmore[hidden], #more[hidden] { display: none; }
@media (max-width: 1000px) { .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mbar .grow { grid-column: 1 / -1; } }
@media (max-width: 620px) { .mgrid { grid-template-columns: 1fr; } }
