/* NLauncher — /mods (2026-10-01, редизайн). Поверх /assets/land/land.v1.css.
 * Главный момент — живой поиск в герое (превью выдачи справа) и каталог с фильтром «версия + загрузчик».
 * Версионированный файл: правки — новым modsx.v2.css. */

/* ---------- hero ---------- */
.m-hero { padding: 22px 0 0; }
.m-band { position: relative; border-radius: 28px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); min-height: 560px;
  display: grid; grid-template-columns: minmax(0, 6.2fr) minmax(0, 4.8fr); align-items: center; gap: 24px; padding: 56px 52px; isolation: isolate; }
.m-scene { position: absolute; right: 0; top: 0; height: 100%; width: 54%; object-fit: cover; object-position: 30% 50%; z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%); mask-image: linear-gradient(90deg, transparent 0%, #000 40%); }
.m-hero-txt, .m-peek, .m-peek ul, .m-peek li { min-width: 0; }
html[data-theme="dark"] .m-scene { filter: brightness(.82) saturate(1.05); }
.m-kick { margin: 0 0 16px; font-size: 15px; font-weight: 650; color: var(--ink-2); line-height: 1.45; }
.m-kick b { color: var(--ink); font-variant-numeric: tabular-nums; }
.m-hero h1 { margin: 0; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.03; letter-spacing: -.038em; font-weight: 820; max-width: 640px; text-wrap: balance; }
.m-lead { margin: 20px 0 0; font-size: 18.5px; line-height: 1.55; color: var(--ink-2); max-width: 540px; text-wrap: pretty; }
.m-search { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line-2); box-shadow: 0 18px 40px -26px rgba(14,17,22,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); max-width: 660px; }
.m-q { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; padding: 0 12px; min-height: 48px; border-radius: 12px; color: var(--mute); }
.m-q:focus-within { background: var(--bg); }
.m-q input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.m-q input::placeholder { color: var(--mute); }
.m-sel { flex: 1 1 140px; }
.m-sel select { width: 100%; appearance: none; -webkit-appearance: none; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23737A87' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") right 10px center / 14px no-repeat;
  color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 600; padding: 0 32px 0 12px; cursor: pointer; }
.m-sel select:focus-visible { outline: 2px solid var(--acc); }
.m-search .l-btn { min-height: 48px; padding: 0 22px; }
.m-pop { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 13.5px; }
.m-pop > span { color: var(--mute); font-weight: 600; margin-right: 2px; }
.m-pop button { border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--ink-2); padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.m-pop button:hover { color: var(--ink); border-color: var(--ink-2); }

.m-peek { align-self: center; justify-self: end; width: 100%; max-width: 400px; border-radius: 20px; padding: 16px; background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(8,12,22,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
html[data-theme="dark"] .m-peek { background: rgba(23,26,33,.86); }
.m-peek-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 4px 12px; }
.m-peek-h b { font-size: 15px; }
.m-peek-h span { font-size: 12.5px; color: var(--mute); font-weight: 600; text-align: right; }
.m-peek ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.m-peek li { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); min-height: 58px; }
.m-peek li.sk { background: var(--bg-2); border-color: transparent; }
.m-peek li.x-in { animation: m-in .3s cubic-bezier(.2,.8,.3,1) both; }
@keyframes m-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.m-peek .m-ic { width: 38px; height: 38px; border-radius: 10px; font-size: 15px; }
.m-peek .t { flex: 1; min-width: 0; }
.m-peek .t b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-peek .t small { display: block; font-size: 12.3px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-peek .ok { flex: none; font-size: 11.5px; font-weight: 750; color: var(--ok); background: var(--ok-soft); padding: 3px 7px; border-radius: 7px; white-space: nowrap; }
.m-peek .empty { justify-content: center; color: var(--mute); font-size: 14px; background: transparent; border-style: dashed; }
.m-peek-all { display: block; margin: 12px 4px 2px; font-weight: 700; font-size: 14px; }
.m-ic { display: grid; place-items: center; flex: none; overflow: hidden; color: #fff; font-weight: 800; background: var(--acc); }
.m-ic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 980px) {
  .m-band { grid-template-columns: 1fr; padding: 40px 28px 28px; min-height: 0; }
  .m-scene { width: 100%; height: 46%; top: auto; bottom: 0; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%); mask-image: linear-gradient(180deg, transparent 0%, #000 45%); }
  .m-peek { justify-self: stretch; max-width: none; }
}
@media (max-width: 560px) {
  .m-hero { padding-top: 12px; }
  .m-band { padding: 28px 16px 16px; border-radius: 22px; }
  .m-lead { font-size: 16.5px; }
  .m-search { padding: 6px; }
  .m-sel { flex: 1 1 40%; }
  .m-search .l-btn { flex: 1 1 100%; }
}

/* ---------- каталог ---------- */
.m-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.m-cats { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.m-cats button { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.m-cats button:hover { color: var(--ink); border-color: var(--line-2); }
.m-cats button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.m-cats[hidden] { display: none; }
.m-state { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); min-height: 1.3em; }
.m-state b { color: var(--ink); }
.m-state .ok { color: var(--ok); font-weight: 700; }
.m-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.m-card { position: relative; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: border-color .15s ease; }
.m-card:hover { border-color: var(--line-2); }
.m-card-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.m-card .m-ic { width: 48px; height: 48px; border-radius: 12px; font-size: 19px; }
.m-card-n { min-width: 0; }
.m-card-n b { display: block; font-size: 16px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-card-n small { display: block; font-size: 13px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em; }
.m-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.m-tags span { font-size: 12px; font-weight: 650; padding: 3px 8px; border-radius: 7px; background: var(--bg-2); color: var(--ink-2); }
.m-tags span.fit { background: var(--ok-soft); color: var(--ok); }
.m-card-f { margin-top: auto; display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.m-dl { font-size: 13px; color: var(--mute); font-weight: 650; display: inline-flex; align-items: center; gap: 5px; margin-right: auto; font-variant-numeric: tabular-nums; }
.m-src-l { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--ink-2); flex: none; }
.m-src-l:hover { color: var(--ink); border-color: var(--ink-2); }
.m-card .sk { height: 14px; border-radius: 6px; background: var(--bg-2); }
.m-skel { min-height: 196px; }
.m-empty { grid-column: 1 / -1; padding: 34px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--ink-2); text-align: center; line-height: 1.5; }
.m-more { display: flex; justify-content: center; margin-top: 22px; }
@media (max-width: 980px) { .m-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .m-grid { grid-template-columns: 1fr; } .m-bar .l-seg { width: 100%; } .m-bar .l-seg button { flex: 1 1 auto; justify-content: center; } }
@media (max-width: 560px) { .m-cats { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 18px; padding: 0 16px; scrollbar-width: none; } .m-cats::-webkit-scrollbar { display: none; } .m-cats button { flex: none; } }

/* ---------- история со скриншотами ---------- */
.m-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; }
.m-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; opacity: .38; transition: opacity .35s ease; }
.m-step.on { opacity: 1; }
.m-step h3 { margin: 0 0 12px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.025em; }
.m-step p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 520px; }
.m-step-img { display: none; margin: 22px 0 0; }
.m-step-img img, .m-stage img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -32px rgba(8,12,22,.55); }
.m-stage { position: relative; }
.m-stage-in { position: sticky; top: 96px; height: calc(100vh - 140px); max-height: 760px; display: grid; place-items: center; border-radius: var(--r-l); background: var(--stage) center / cover no-repeat; overflow: hidden; }
.m-stage-in::before { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 35%, transparent); }
.m-stage-in figure { position: absolute; inset: 28px; margin: 0; display: grid; place-items: center; opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .45s ease, transform .45s ease; }
.m-stage-in figure.on { opacity: 1; transform: none; }
.m-stage-in figure img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 980px) {
  .m-story { grid-template-columns: 1fr; gap: 0; }
  .m-stage { display: none; }
  .m-step { min-height: 0; opacity: 1; padding: 0 0 48px; }
  .m-step-img { display: block; }
  .m-step-img img { max-width: 560px; }
}
@media (prefers-reduced-motion: reduce) { .m-step { opacity: 1; } }

/* ---------- готовые сборки ---------- */
.m-row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.m-row-head .l-head { margin: 0; }
.m-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.m-pack { display: flex; flex-direction: column; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; color: var(--ink); transition: border-color .15s ease, transform .15s ease; min-width: 0; }
.m-pack:hover { color: var(--ink); border-color: var(--line-2); transform: translateY(-2px); }
.m-pack-img { position: relative; aspect-ratio: 16 / 8; background: var(--pc, var(--bg-2)) center / cover no-repeat; display: block; }
.m-pack-img .m-ic { position: absolute; left: 16px; bottom: -22px; width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 0 0 3px var(--surface); font-size: 22px; }
.m-pack-img .ver { position: absolute; right: 12px; top: 12px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(8,12,22,.6); padding: 4px 9px; border-radius: 8px; backdrop-filter: blur(6px); }
.m-pack-b { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 5px; }
.m-pack.has-ic .m-pack-b { padding-top: 32px; }
.m-pack-b b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-pack-b small { color: var(--mute); font-size: 13px; font-weight: 600; }
.m-pack-b .m-tags { margin-top: 6px; }
@media (max-width: 980px) { .m-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .m-packs { grid-template-columns: 1fr; } }

/* ---------- сборки игроков ---------- */
.m-players { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.m-pl { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink); min-width: 0; }
.m-pl:hover { color: var(--ink); border-color: var(--line-2); }
.m-pl .m-ic { width: 60px; height: 60px; border-radius: 14px; font-size: 22px; image-rendering: pixelated; }
.m-pl .t { min-width: 0; flex: 1; }
.m-pl .t b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-pl .t small { display: block; font-size: 13px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-pl .code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: var(--ink-2); background: var(--bg-2); padding: 3px 7px; border-radius: 6px; flex: none; }
@media (max-width: 980px) { .m-players { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .m-players { grid-template-columns: 1fr; } }

/* ---------- окно «Как поставить» ---------- */
.m-dlg { width: min(520px, calc(100vw - 32px)); border: 1px solid var(--line-2); border-radius: 22px; padding: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.m-dlg::backdrop { background: rgba(8,12,22,.55); backdrop-filter: blur(3px); }
.m-dlg[open] { animation: m-in .25s cubic-bezier(.2,.8,.3,1) both; }
.m-dlg-x { position: absolute; right: 14px; top: 14px; margin: 0; }
.m-dlg-x button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.m-dlg-h { display: flex; gap: 14px; align-items: center; padding-right: 40px; }
.m-dlg-h .m-ic { width: 52px; height: 52px; border-radius: 13px; font-size: 20px; }
.m-dlg-h small { color: var(--mute); font-weight: 600; font-size: 13px; }
.m-dlg-h h3 { margin: 2px 0 0; font-size: 20px; line-height: 1.25; letter-spacing: -.015em; }
.m-how-steps { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: h; display: grid; gap: 12px; }
.m-how-steps li { counter-increment: h; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; color: var(--ink-2); line-height: 1.5; font-size: 15px; }
.m-how-steps li::before { content: counter(h); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); font-weight: 800; font-size: 13.5px; }
.m-how-steps b { color: var(--ink); }
.m-dlg-acts { margin-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.m-dlg-acts .l-btn { flex: 1 1 auto; }
.m-dlg-n { margin: 14px 0 0; font-size: 13px; color: var(--mute); }
