/* JennySP — стили по макету Figma. Все размеры из макета 1440 / 390. */

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg: #101014;
  --surface: #19191f;
  --shot: #17181e;
  --line: #33333e;
  --box: #625868;
  --text: #f5f4f7;
  --muted: #aaa7b4;
  --pink: #f078b5;
  --pink-hover: #f48dc2;
  --pink-press: #e2669f;
  --logo: rgba(237, 146, 255, 0.74);
  --chip: rgba(240, 120, 181, 0.12);
  --chip-muted: rgba(170, 167, 180, 0.1);
  --radius: 6px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root[data-theme="light"] {
  --bg: #f5f4f7;
  --surface: #ffffff;
  --shot: #ecebf0;
  --line: #dddae3;
  --box: #b7b1bd;
  --text: #17161c;
  --muted: #6c6877;
  --chip: rgba(240, 120, 181, 0.14);
  --chip-muted: rgba(108, 104, 119, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 21px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ic { width: 18px; height: 18px; flex: none; display: block; }
.ic-16 { width: 16px; height: 16px; }
.ic-17 { width: 17px; height: 17px; }
.ic-20 { width: 20px; height: 20px; }
.ic-22 { width: 22px; height: 22px; }
.ic-24 { width: 24px; height: 24px; }
.ic-28 { width: 28px; height: 28px; }

/* ── Страница и атмосфера ───────────────────────────────────────────────── */

.page { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: clip; isolation: isolate; }
/* Атмосфера рисуется в координатах макета 1440 и масштабируется по ширине экрана (1920 и шире). */
.atmo { position: absolute; inset: 0 0 auto 0; height: max(1261px, 87.57vw); max-height: 100%; z-index: -1; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, #161119 0%, #161119 7.61%, #111015 53.81%, var(--bg) 100%); }
:root[data-theme="light"] .atmo { background: linear-gradient(180deg, #f7eef4 0%, var(--bg) 100%); }
.atmo i { position: absolute; display: block; }
.atmo .haze-rose { left: -12.5%; top: max(111px, 7.71vw); width: max(660px, 45.83vw); height: max(480px, 33.33vw); background: rgba(214, 90, 153, 0.14); filter: blur(72.5px); }
.atmo .haze-violet { left: 70.14%; top: max(51px, 3.54vw); width: max(620px, 43.06vw); height: max(540px, 37.5vw); background: rgba(164, 104, 200, 0.13); filter: blur(85px); }
.atmo .haze-low { left: 72.92%; top: max(686px, 47.64vw); width: max(440px, 30.56vw); height: max(300px, 20.83vw); background: rgba(172, 72, 122, 0.06); filter: blur(75px); }
.atmo .cube { color: #a67894; }
.atmo .cube svg { width: 100%; height: 100%; display: block; }
.atmo .c1 { left: 4.31%; top: max(164px, 11.39vw); width: max(92px, 6.39vw); aspect-ratio: 92 / 107.33; opacity: .18; }
.atmo .c2 { left: 81.81%; top: max(264px, 18.33vw); width: max(118px, 8.19vw); aspect-ratio: 118 / 137.67; opacity: .16; }
.atmo .c3 { left: 16.11%; top: max(340px, 23.61vw); width: max(32px, 2.22vw); aspect-ratio: 32 / 37.33; opacity: .1; }
.atmo .c4 { left: 91.67%; top: max(506px, 35.14vw); width: max(48px, 3.33vw); aspect-ratio: 48 / 56; opacity: .09; }
.atmo .dots { width: max(60px, 4.17vw); height: max(60px, 4.17vw); opacity: .17;
  background-image: radial-gradient(circle, #ba8aa8 1px, transparent 1.2px); background-size: max(28px, 1.94vw) max(28px, 1.94vw); }
.atmo .d1 { left: 6.6%; top: max(375px, 26.04vw); }
.atmo .d2 { left: 90.21%; top: max(159px, 11.04vw); }

/* ── Логотип ────────────────────────────────────────────────────────────── */

/* Логотип из макета: силуэт Jenny с рожками и контуром гогглов (img/logo.svg, вектор по img/logo-mockup.png). */
.logo { display: block; width: 26.5px; height: 32px; flex: none; background: url("/img/logo-4869fa06db964f9c5bc2b1e1f1edb63f.svg") center / contain no-repeat; }
.logo-50 { width: 41.4px; height: 50px; }
.logo-26 { width: 21.5px; height: 26px; }
.wordmark { font-weight: 700; font-size: 24px; line-height: 35px; color: var(--text); }

/* ── Навигация ──────────────────────────────────────────────────────────── */

.nav { position: relative; z-index: 20; height: 96px; display: flex; align-items: center; justify-content: center; padding: 0 64px; }
.nav-glass { position: absolute; left: 50%; transform: translateX(-50%); width: min(1312px, calc(100% - 128px)); top: 14px; height: 68px; border-radius: 20px;
  background: rgba(25, 23, 31, 0.55); border: 1px solid rgba(240, 213, 231, 0.07);
  -webkit-backdrop-filter: blur(32px); backdrop-filter: blur(32px); }
:root[data-theme="light"] .nav-glass { background: rgba(255, 255, 255, 0.7); border-color: rgba(23, 22, 28, 0.06); }
.nav-row { position: relative; width: 100%; max-width: 1264px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; width: 192px; height: 48px; flex: none; }
.nav-sep { width: 1px; height: 22px; background: rgba(214, 180, 203, 0.16); flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; height: 48px; }
.nav-link { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 12px; border-radius: 12px;
  font-weight: 500; font-size: 13px; line-height: 19px; color: var(--muted); transition: color .15s, background-color .15s; }
.nav-link:hover { color: var(--text); background: rgba(245, 244, 247, 0.05); }
.nav-space { flex: 1; }
.nav-login { display: flex; align-items: center; gap: 10px; height: 44px; font-weight: 600; font-size: 14px; line-height: 20px; color: var(--muted); }
.nav-login:hover { color: var(--text); }
.nav-burger { display: none; width: 22px; height: 22px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }

/* Меню аккаунта (Overlay / Account menu, Theme menu, Language menu) */
.account { position: relative; }
.account > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  width: 64px; height: 42px; border-radius: 16px; background: #392332 center / cover no-repeat; overflow: hidden; }
.account > summary::-webkit-details-marker { display: none; }
.account > summary .initial { font-weight: 600; font-size: 14px; line-height: 20px; color: var(--text); }
.account > summary:hover { opacity: .85; }
.overlay { background: rgba(32, 27, 37, 0.72); border: 1px solid rgba(249, 219, 237, 0.09); border-radius: 18px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
:root[data-theme="light"] .overlay { background: rgba(255, 255, 255, 0.86); border-color: rgba(23, 22, 28, 0.08); }
.acct-pop { position: absolute; right: 0; top: 54px; z-index: 30; width: 296px; }
.acct-menu, .sub-menu { width: 296px; display: flex; flex-direction: column; }
.acct-pop .sub-menu { position: absolute; left: calc(100% + 8px); top: 0; }
.acct-pop.flip .sub-menu { left: auto; right: calc(100% + 8px); }
.mi.open { background: rgba(245, 244, 247, 0.05); }
.lang .sub-menu { position: absolute; right: 0; z-index: 30; }
.acct-menu { padding: 16px; gap: 8px; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3); }
.sub-menu { padding: 18px; gap: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.sub-menu.up { top: auto; bottom: 36px; }
.acct-id { display: flex; align-items: flex-start; gap: 12px; min-height: 56px; }
.acct-av { width: 44px; height: 44px; flex: none; border-radius: 15px; background: #392332 center / cover no-repeat;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; color: var(--text); }
.acct-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acct-name b { font-weight: 600; font-size: 15px; line-height: 22px; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.acct-name span { font-size: 12px; line-height: 17px; color: var(--pink); }
.acct-div { height: 1px; background: var(--line); }
.mi { display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 10px 8px; border: 0; border-radius: 8px; background: none;
  font-weight: 500; font-size: 13px; line-height: 19px; color: var(--text); cursor: pointer; text-align: left; }
.mi .ic { color: var(--muted); }
.mi:hover { background: rgba(245, 244, 247, 0.05); }
.mi .mi-val { margin-left: auto; font-weight: 400; font-size: 12px; line-height: 17px; color: var(--muted); }
.mi .ic-14 { width: 14px; height: 14px; }
.mi.danger, .mi.danger .ic { color: #f29b9b; }
.sub-title { font-weight: 600; font-size: 17px; line-height: 25px; color: var(--text); }
.opt { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
  font-size: 14px; line-height: 20px; color: var(--muted); }
.opt:hover { color: var(--text); }
.opt.on { color: var(--pink); }
.opt[disabled] { cursor: default; }
.opt[disabled]:hover { color: var(--muted); }

/* Мобильное меню (Overlay / Mobile menu) */
.drawer { position: fixed; inset: 0; z-index: 50; display: none; }
.drawer.open { display: block; }
.m-menu { position: absolute; left: 24px; right: 24px; top: 82px; padding: 24px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.m-item { display: flex; align-items: center; gap: 8px; height: 46px; padding: 10px 16px; border-radius: 10px; background: #22222a;
  border: 1px solid var(--line); font-weight: 600; font-size: 14px; line-height: 20px; color: var(--text); }
:root[data-theme="light"] .m-item { background: var(--surface); }
.m-item:hover { border-color: #4a4a58; }

/* ── Контент ────────────────────────────────────────────────────────────── */

main { flex: 1; }
.content { width: 100%; max-width: 1440px; margin: 0 auto; padding: 56px 120px 72px; display: flex; flex-direction: column; align-items: stretch; gap: 32px; }
.content.home { padding: 48px 120px 64px; gap: 25px; }
.content.dl { padding: 48px 120px 64px; }
.content.narrow { padding-left: 240px; padding-right: 240px; }
.content.mid { padding-left: 168px; padding-right: 168px; }
.content.slim { padding-left: 320px; padding-right: 320px; gap: 28px; }
.content.auth { max-width: 468px; padding: 56px 24px 72px; gap: 28px; min-height: 620px; }
.content.auth.w520 { max-width: 568px; }
.content.g28 { gap: 28px; }

.kicker { font-weight: 600; font-size: 10px; line-height: 15px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--pink); }
.kicker.muted { color: var(--muted); }
.head { display: flex; flex-direction: column; gap: 10px; }
.h1 { font-weight: 600; font-size: 32px; line-height: 38px; color: var(--text); }
.lead { font-weight: 400; font-size: 14px; line-height: 21px; color: var(--muted); }
.h2 { font-weight: 600; font-size: 22px; line-height: 33px; }
.h3 { font-weight: 600; font-size: 21px; line-height: 32px; }
.h-23 { font-weight: 600; font-size: 23px; line-height: 35px; }
.body-15 { font-size: 15px; line-height: 23px; color: var(--muted); }
.t13 { font-size: 13px; line-height: 20px; color: var(--muted); }
.t12 { font-size: 12px; line-height: 18px; color: var(--muted); }
.t11 { font-size: 11px; line-height: 17px; color: var(--muted); }
.strong { color: var(--text); font-weight: 500; }
.pink { color: var(--pink); }
.divider { height: 1px; background: var(--line); opacity: .55; border: 0; margin: 0; width: 100%; flex: none; }

.row-head { display: flex; align-items: flex-start; gap: 24px; }
.row-head > .head { flex: 1; min-width: 0; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: transparent; color: var(--text); font-weight: 500; font-size: 14px; line-height: 21px;
  cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { border-color: #4a4a58; background: rgba(245, 244, 247, 0.03); }
.btn.primary { background: var(--pink); border-color: var(--pink); color: #101014; }
.btn.primary:hover { background: var(--pink-hover); border-color: var(--pink-hover); }
.btn.primary:active { background: var(--pink-press); border-color: var(--pink-press); }
.btn.on { border-color: rgba(240, 120, 181, 0.5); color: var(--pink); }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn.block { width: 100%; }
.btn.sq { width: 44px; padding: 0; }
.btn.danger:hover { border-color: rgba(240, 120, 181, 0.6); color: var(--pink); }
.danger-text { color: #f29b9b; background: none; border: 0; padding: 0; cursor: pointer; }
.danger-text:hover { color: var(--pink); }

/* Ссылки со стрелкой */
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; font-weight: 500; font-size: 13px; line-height: 20px; color: var(--muted); }
.link:hover { color: var(--text); }
.link.pink { color: var(--pink); }
.link.pink:hover { color: var(--pink-hover); }

/* Чипы / лейблы */
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 4px; background: var(--chip);
  font-weight: 500; font-size: 11px; line-height: 17px; color: var(--pink); white-space: nowrap; }
.chip.muted { background: var(--chip-muted); color: var(--muted); }
a.chip:hover { background: rgba(240, 120, 181, 0.2); }

/* Поля ввода */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { display: flex; align-items: flex-start; font-weight: 500; font-size: 13px; line-height: 20px; color: var(--text); }
.field-label .fill { flex: 1; }
.field-label a { font-weight: 500; font-size: 12px; line-height: 18px; color: var(--pink); }
.input { display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 14px; line-height: 21px; outline: none;
  transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: var(--muted); }
.input:hover { border-color: #44444f; }
.input:focus, .input:focus-within { border-color: rgba(240, 120, 181, 0.6); box-shadow: 0 0 0 3px rgba(240, 120, 181, 0.12); }
textarea.input { height: 112px; padding: 12px 14px; resize: vertical; align-items: flex-start; }
.input.search { padding: 0 14px; }
.input.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 14px; color: var(--text); }
.input.search input::placeholder { color: var(--muted); }
.input.search .ic { color: var(--muted); }
.input.search input:focus-visible { outline: none; }
.hint { font-size: 12px; line-height: 18px; color: var(--muted); }
.error { font-size: 12px; line-height: 18px; color: var(--pink); }
.input.invalid { border-color: rgba(240, 120, 181, 0.7); }
select.input { appearance: none; padding-right: 42px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23AAA7B4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m19 9-7 6-7-6'/%3E%3C/svg%3E") right 14px center no-repeat; }

/* Мультиселект (Категории / Девушки) */
.mselect { position: relative; }
.mselect > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; height: 44px; padding: 14px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 21px; color: var(--text); }
.mselect > summary::-webkit-details-marker { display: none; }
.mselect > summary span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mselect > summary span.empty { color: var(--muted); }
.mselect > summary .ic { color: var(--muted); transition: transform .15s; }
.mselect[open] > summary .ic { transform: rotate(180deg); }
.mselect[open] > summary { border-color: rgba(240, 120, 181, 0.6); }
.mselect-list { position: absolute; left: 0; right: 0; top: 50px; z-index: 10; padding: 6px 12px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35); max-height: 280px; overflow: auto; }

/* Чекбокс: вся строка 40px кликабельна */
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; width: 100%; cursor: pointer; font-size: 13px; line-height: 20px; color: var(--muted); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { position: relative; width: 20px; height: 20px; flex: none; border: 1px solid var(--box); border-radius: 5px; transition: background-color .15s, border-color .15s; }
.check .box::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 10px; border: solid #101014;
  border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); opacity: 0; }
.check:hover .box { border-color: #8a7d90; }
.check input:checked ~ .box { background: var(--pink); border-color: var(--pink); }
.check input:checked ~ .box::after { opacity: 1; }
.check input:checked ~ .lbl { color: var(--text); }
.check input:focus-visible ~ .box { outline: 2px solid var(--pink); outline-offset: 2px; }

/* Вкладки */
.tabs { display: flex; flex-direction: column; }
.tabs-row { display: flex; align-items: center; gap: 28px; height: 44px; overflow-x: auto; scrollbar-width: none; }
.tab { position: relative; display: flex; align-items: center; height: 44px; font-weight: 500; font-size: 13px; line-height: 20px; color: var(--muted); white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.on { font-weight: 600; color: var(--pink); }
.tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--pink); border-radius: 2px; }

/* Таблицы */
.table { display: flex; flex-direction: column; width: 100%; }
.tr { display: flex; align-items: center; gap: 16px; min-height: 64px; font-size: 13px; line-height: 20px; color: var(--muted); }
.tr.th { min-height: 42px; font-weight: 500; font-size: 11px; line-height: 17px; }
.tr > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr .name { color: var(--text); font-weight: 500; }
.tr .act { color: var(--pink); text-align: right; }
.tr .act a:hover, .tr .act button:hover { color: var(--pink-hover); }
.tr + .divider { opacity: .55; }
a.tr:hover .name { color: var(--pink); }

/* Превью паков */
.thumb { width: 84px; height: 84px; flex: none; border-radius: var(--radius); background: #392332; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.s48 { width: 48px; height: 48px; }
.thumb.s56 { width: 56px; height: 56px; }
.thumb.s68 { width: 68px; height: 68px; }
.thumb.s72 { width: 72px; height: 72px; }
.thumb.s80 { width: 80px; height: 80px; }
.thumb.s88 { width: 88px; height: 88px; }
.tone-0 { background: #392332; } .tone-1 { background: #242334; } .tone-2 { background: #342936; } .tone-3 { background: #382b29; } .tone-4 { background: #322331; }

/* Строка ресурс-пака */
.pack-row { display: flex; align-items: center; gap: 20px; min-height: 116px; }
.pack-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.pack-title { font-weight: 600; font-size: 18px; line-height: 27px; color: var(--text); transition: color .15s; }
a.pack-row:hover .pack-title { color: var(--pink); }
.pack-desc { font-size: 13px; line-height: 20px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pack-meta { display: flex; align-items: flex-start; gap: 12px; font-size: 12px; line-height: 18px; color: var(--muted); }
.pack-meta .author { font-weight: 500; }
.pack-pop { width: 154px; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.pop { display: flex; align-items: center; justify-content: flex-end; gap: 8px; height: 20px; font-size: 12px; line-height: 18px; color: var(--muted); }
.pop .ic { width: 16px; height: 16px; }

/* Инлайн-уведомление */
.notice { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); }
.notice .ic { width: 22px; height: 22px; color: var(--pink); }
.notice-body { display: flex; flex-direction: column; gap: 6px; }
.notice-body b { font-weight: 500; font-size: 14px; line-height: 21px; color: var(--text); }
.notice-body span { font-size: 13px; line-height: 20px; color: var(--muted); }
.notice.err .ic { color: var(--pink); }

/* ── Home ───────────────────────────────────────────────────────────────── */

.intro { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 40px 0 32px; }
.identity { display: flex; align-items: center; justify-content: center; gap: 18px; height: 72px; }
.identity span { font-weight: 600; font-size: 56px; line-height: 67px; letter-spacing: -0.02em; color: var(--text); }
.intro-text { width: 680px; max-width: 100%; font-size: 17px; line-height: 26px; text-align: center; color: var(--muted); }
.actions { display: flex; align-items: center; justify-content: center; gap: 12px; height: 48px; }
.action { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 8px; font-weight: 500; font-size: 15px; line-height: 22px; color: var(--muted); border-radius: 8px; }
.action.primary { color: var(--text); }
.action .ic { width: 20px; height: 20px; }
.action.primary .ic { color: var(--pink); }
.action:hover { color: var(--text); }
.action:hover .ic { color: var(--pink); }
.action-sep { width: 1px; height: 18px; background: var(--line); opacity: .75; }
.sec-head { display: flex; align-items: center; justify-content: center; height: 44px; }
.sec-head h2 { font-weight: 600; font-size: 24px; line-height: 36px; color: var(--text); }
.preview { display: flex; justify-content: center; }
.preview-glass { position: relative; width: 1140px; max-width: 100%; aspect-ratio: 1140 / 651; display: flex; align-items: center; justify-content: center;
  border-radius: 18px; background: rgba(55, 55, 55, 0.1); -webkit-backdrop-filter: blur(43.55px); backdrop-filter: blur(43.55px); }
/* Превью «до / после»: --pos — положение линии (по умолчанию середина). Линию берут и тянут, курсор «рука», без эффектов наведения. */
.compare { position: relative; width: 96.67%; aspect-ratio: 1102 / 620; border-radius: 12px; overflow: hidden;
  user-select: none; -webkit-user-select: none; }
.compare.drag, .compare.drag .cmp-handle { cursor: grabbing; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .cmp-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; outline: none;
  background: #fff; cursor: grab; touch-action: none; }
/* Невидимая полоса пошире линии, чтобы её было легко взять мышью или пальцем. */
.cmp-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -18px; right: -18px; }
/* Ручка: сплошная белая капсула, ничего внутри. */
.cmp-knob { position: absolute; top: 50%; left: 50%; width: 12px; height: 48px; margin: -24px 0 0 -6px;
  border-radius: 999px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.latest { display: flex; align-items: flex-start; gap: 32px; }
.latest-meta { width: 200px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.latest-meta .ver { font-weight: 600; font-size: 21px; line-height: 32px; color: var(--text); }
.latest-sum { flex: 1; max-width: 704px; display: flex; flex-direction: column; gap: 8px; }
.latest-sum .t { font-weight: 600; font-size: 20px; line-height: 30px; color: var(--text); }
.latest-sum .d { font-size: 14px; line-height: 21px; color: var(--muted); }
.latest .link { width: 232px; flex: none; }

/* Credits (из ТЗ, в стиле макета) */
.credits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 32px; }
.credit-group { display: flex; flex-direction: column; gap: 12px; }
.credit { display: flex; align-items: center; gap: 12px; }
.credit .av { width: 40px; height: 40px; border-radius: 8px; background: #392332 center / cover; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; color: var(--text); flex: none; }
.credit b { display: block; font-weight: 500; font-size: 14px; line-height: 21px; color: var(--text); }
.credit span, .credit a { font-size: 12px; line-height: 18px; color: var(--muted); }
.credit a:hover { color: var(--pink); }

/* ── Download ───────────────────────────────────────────────────────────── */

.install { display: flex; align-items: flex-start; gap: 40px; }
.steps { width: 320px; flex: none; display: flex; flex-direction: column; }
.steps .kicker { margin-bottom: 16px; }
.step { display: flex; align-items: center; gap: 12px; min-height: 110px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; width: 100%; }
.step-idx { width: 28px; flex: none; font-weight: 600; font-size: 12px; line-height: 18px; color: var(--muted); align-self: center; }
.step-body { display: flex; flex-direction: column; gap: 8px; width: 280px; }
.step-t { font-weight: 500; font-size: 15px; line-height: 23px; color: var(--text); transition: color .15s; }
.step-d { font-size: 13px; line-height: 20px; color: var(--muted); }
.step.on .step-idx, .step.on .step-t { color: var(--pink); }
.step:hover .step-t { color: var(--pink); }
.steps .hint { margin-top: 20px; }
.shot { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.shot-head { display: flex; align-items: center; gap: 16px; height: 36px; }
.shot-head .t { font-weight: 600; font-size: 21px; line-height: 32px; color: var(--text); }
.shot-head .fill { flex: 1; }
.shot-head .n { font-weight: 500; font-size: 11px; line-height: 17px; color: var(--pink); }
.shot-box { position: relative; width: 100%; aspect-ratio: 840 / 400.91; border-radius: 9.545px; background: var(--shot); border: 1px solid var(--line); overflow: hidden; }
.shot-box video, .shot-box img { width: 100%; height: 100%; object-fit: cover; }
.shot-caption { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 20px; color: var(--muted); }
.shot-pane[hidden] { display: none; }
.release { display: flex; align-items: center; gap: 24px; }
.release-info { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.release-info .t { font-weight: 600; font-size: 23px; line-height: 35px; color: var(--text); }
.release-info .d { font-size: 14px; line-height: 21px; color: var(--muted); }
.release .btn { width: 272px; }
.reqs { display: flex; flex-wrap: wrap; gap: 8px; }

/* Download feedback */
.help-cols { display: flex; align-items: flex-start; gap: 48px; }
.help { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.help b { font-weight: 600; font-size: 19px; line-height: 29px; color: var(--text); }
.help p { font-size: 14px; line-height: 21px; color: var(--muted); min-height: 42px; }
.fallback { display: flex; align-items: center; gap: 16px; }
.fallback .btn { width: 230px; }

/* ── Wiki ───────────────────────────────────────────────────────────────── */

.docs { display: flex; align-items: flex-start; gap: 40px; }
.docs-nav { width: 200px; flex: none; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 24px; }
/* Меню Wiki длинное: прилипает при прокрутке и крутится само, целиком помещаясь в окно (высоту подгоняет app.js). Полосы прокрутки нет. */
.docs-nav { max-height: calc(100vh - 176px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -ms-overflow-style: none; }
.docs-nav::-webkit-scrollbar { display: none; }
/* Пункты разделов — плотно, а вокруг заголовков разделов прежние 24 px. */
.docs-nav { gap: 8px; }
.docs-nav .docs-group > .kicker { margin-top: 16px; margin-bottom: 16px; }
.docs-group { display: contents; }
.docs-link { display: flex; align-items: center; gap: 8px; min-height: 28px; font-weight: 500; font-size: 13px; line-height: 20px; color: var(--muted); }
.docs-link:hover, .docs-link.on { color: var(--text); }
.docs-link img { width: 18px; height: 18px; image-rendering: pixelated; }
.docs-select { display: none; }
.docs-select.input { cursor: pointer; color: var(--muted); text-align: left; font-size: 14px; }

/* Overlay / Wiki search */
.wsearch-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(10, 10, 13, 0.6); display: flex; justify-content: center; align-items: flex-start; padding: 120px 16px 16px; }
.wsearch { width: 620px; max-width: 100%; max-height: calc(100vh - 150px); overflow: auto; display: flex; flex-direction: column; gap: 16px;
  padding: 24px; border-radius: 8px; background: #101014; border: 1px solid rgba(249, 219, 237, 0.09); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
:root[data-theme="light"] .wsearch { background: var(--bg); }
.wsearch .input.search { flex: none; height: 44px; border-radius: 6px; box-shadow: none; }
.wsearch .input.search:focus-within { border-color: #44444f; }
.wsearch .input.search .ic { width: 18px; height: 18px; }
.wsearch .input.search input { font-size: 14px; line-height: 21px; }
.wsearch input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.wsearch-results { display: flex; flex-direction: column; gap: 16px; }
.wsearch-results .divider { margin: 0; }
.wsearch-results .t13 { font-size: 14px; color: var(--muted); }
.wsearch-label { font-weight: 500; font-size: 11px; line-height: 17px; color: var(--pink); }
.wsearch-hit { display: flex; align-items: flex-start; gap: 12px; height: 62px; flex: none; }
.wsearch-hit .ic { width: 20px; height: 20px; color: var(--muted); flex: none; }
.wsearch-hit span { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding-top: 1px; }
.wsearch-hit b { font-weight: 500; font-size: 14px; line-height: 21px; color: var(--text); }
.wsearch-hit i { font-style: normal; font-size: 12px; line-height: 18px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsearch-hit:hover b, .wsearch-hit.on b { color: var(--pink); }
.article { flex: 1; min-width: 0; max-width: 680px; display: flex; flex-direction: column; gap: 26px; }
.art-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; line-height: 18px; color: var(--muted); }
.callout { display: flex; align-items: flex-start; gap: 14px; }
.callout .ic { width: 20px; height: 20px; color: var(--pink); }
.callout b { display: block; font-weight: 500; font-size: 14px; line-height: 21px; color: var(--text); margin-bottom: 5px; }
.callout p { font-size: 14px; line-height: 21px; color: var(--muted); }
.prose { display: flex; flex-direction: column; gap: 26px; }
.prose > * { margin: 0; }
.prose h2 { font-weight: 600; font-size: 23px; line-height: 35px; color: var(--text); margin-bottom: -16px; scroll-margin-top: 24px; }
.prose h3 { font-weight: 600; font-size: 18px; line-height: 27px; color: var(--text); margin-bottom: -16px; }
.prose p, .prose li { font-size: 15px; line-height: 23px; color: var(--muted); }
.prose ul, .prose ol { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose a { color: var(--pink); }
.prose a:hover { color: var(--pink-hover); }
.prose strong { color: var(--text); font-weight: 500; }
.prose code { display: inline-block; padding: 0 6px; border-radius: 4px; background: var(--surface); font-size: 13px; color: var(--text); }
.prose pre { margin: 0; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--surface);
  font-family: var(--font); font-weight: 500; font-size: 13px; line-height: 20px; color: var(--text); white-space: pre-wrap; }
.prose pre code { padding: 0; background: none; font-family: inherit; font-size: inherit; }
.prose img { border-radius: var(--radius); }
.art-nav { display: flex; align-items: flex-start; gap: 16px; }
.art-nav > * { flex: 1; }
.art-nav .next { justify-content: flex-start; }
.toc { width: 200px; flex: none; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 24px; }
.toc a { font-size: 12px; line-height: 18px; color: var(--muted); }
.toc a:hover, .toc a.on { color: var(--text); }

/* Карточка персонажа (Wiki / Персонажи) */
.char { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.char-media { position: relative; border-radius: var(--radius); background: var(--surface); overflow: hidden; aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; }
.char-media img, .char-media video { width: 100%; height: 100%; object-fit: cover; }
.char-media .viewer { position: absolute; inset: 0; }
.char-media-tabs { display: flex; gap: 8px; margin-top: 10px; }
.stats { display: flex; flex-direction: column; }
.stat { display: flex; gap: 12px; padding: 5px 0; min-height: 30px; font-size: 13px; line-height: 20px; }
.stat dt { width: 120px; flex: none; color: var(--muted); }
.stat dd { margin: 0; flex: 1; color: var(--text); font-weight: 500; }
.char-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.recipe { border-radius: var(--radius); background: var(--surface); padding: 14px; display: inline-flex; }
.recipe img { image-rendering: pixelated; max-height: 180px; }

/* ── Resources ──────────────────────────────────────────────────────────── */

.catalog { display: flex; align-items: flex-start; gap: 40px; }
.filters { width: 200px; flex: none; display: flex; flex-direction: column; gap: 20px; }
.filter { display: flex; flex-direction: column; gap: 3px; }
.filter-t { font-weight: 500; font-size: 13px; line-height: 20px; color: var(--text); margin-bottom: 5px; }
.results { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.toolbar { display: flex; align-items: flex-start; gap: 16px; }
.toolbar .search { flex: 1; }
.toolbar .sort { width: 248px; flex: none; }
.applied { display: flex; align-items: center; gap: 8px; min-height: 24px; flex-wrap: wrap; }
.applied .fill { flex: 1; }
.list { display: flex; flex-direction: column; }
.pager { display: flex; align-items: center; gap: 8px; }
.pager .fill { flex: 1; }
.pager .btn.on { border-color: rgba(240, 120, 181, 0.5); color: var(--pink); }
.empty { padding: 48px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.empty b { font-weight: 600; font-size: 18px; line-height: 27px; }
.mobile-only { display: none !important; }
.filters-title { display: none; }

/* Сортировка */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-list { position: absolute; right: 0; top: 50px; z-index: 10; min-width: 100%; padding: 6px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35); }
.dropdown-list a { display: flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.dropdown-list a:hover { background: rgba(245, 244, 247, 0.05); color: var(--text); }
.dropdown-list a.on { color: var(--pink); }

/* Страница ресурса */
.res-head { display: flex; align-items: flex-start; gap: 20px; }
.res-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.res-by { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 20px; color: var(--muted); }
.res-by a { font-weight: 500; color: var(--pink); }
.res-head .btn { width: 230px; }
.details { display: flex; align-items: flex-start; gap: 48px; }
.details-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.details-side { width: 328px; flex: none; display: flex; flex-direction: column; gap: 20px; }
.pack-preview { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 330px; border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.pack-preview img { height: 294px; width: auto; max-width: 100%; object-fit: contain; }
.pack-preview .lbl { position: absolute; left: 16px; top: 14px; font-weight: 500; font-size: 10px; line-height: 15px; color: var(--muted); }
.changes { display: flex; flex-direction: column; gap: 10px; }
.change { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 21px; color: var(--muted); }
.change .ic { width: 17px; height: 17px; margin-top: 2px; color: var(--pink); }
.dl-row { display: flex; align-items: center; gap: 12px; min-height: 30px; font-size: 13px; line-height: 20px; }
.dl-row dt { width: 148px; flex: none; color: var(--muted); }
.dl-row dd { margin: 0; flex: 1; font-weight: 500; color: var(--text); }
.stars { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; line-height: 27px; }
.stars .ic { width: 21px; height: 21px; color: var(--pink); }
/* Картинки пака в форме: загруженные (клик — убрать) и только что выбранные. */
.pack-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-bottom: 10px; }
.pack-image { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface); cursor: pointer; }
.pack-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pack-image input { position: absolute; opacity: 0; pointer-events: none; }
.pack-image-cover { position: absolute; left: 6px; top: 6px; padding: 2px 6px; border-radius: 6px; font-size: 10px; line-height: 14px;
  background: rgba(0, 0, 0, 0.6); color: #fff; }
.pack-image-remove { position: absolute; inset: auto 0 0 0; padding: 4px; text-align: center; font-size: 11px; line-height: 16px;
  background: rgba(0, 0, 0, 0.55); color: #fff; opacity: 0; transition: opacity .15s; }
.pack-image:hover .pack-image-remove { opacity: 1; }
.pack-image:has(input:checked) img { opacity: .25; }
.pack-image:has(input:checked) .pack-image-remove { opacity: 1; background: rgba(240, 120, 181, 0.85); }
/* Пока список паков подгружается без перезагрузки — чуть приглушаем его. */
[data-swap] .results, [data-swap] .list, .mgmt-main[data-swap] { transition: opacity .15s; }
[data-swap].swapping .results, [data-swap].swapping .list, .mgmt-main.swapping { opacity: .55; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery a { border-radius: var(--radius); background: var(--surface); overflow: hidden; aspect-ratio: 16 / 10; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.versions .tr { min-height: 56px; }

/* Загрузка */
.upload { display: flex; align-items: flex-start; gap: 48px; }
.upload-form { flex: 1; min-width: 0; max-width: 624px; display: flex; flex-direction: column; gap: 24px; }
.two { display: flex; gap: 24px; }
.two > * { flex: 1; min-width: 0; }
.attach { position: relative; display: flex; align-items: center; gap: 16px; min-height: 80px; padding: 16px; border-radius: var(--radius); background: var(--surface);
  border: 1px dashed transparent; cursor: pointer; transition: border-color .15s; }
.attach:hover, .attach.drag { border-color: rgba(240, 120, 181, 0.45); }
.attach input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.attach .file { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.attach .file b { font-weight: 500; font-size: 14px; line-height: 21px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach .file span { font-size: 12px; line-height: 18px; color: var(--muted); }
.attach .clear { position: relative; z-index: 2; width: 18px; height: 18px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.attach .clear:hover { color: var(--pink); }
.attach .ic-28 { color: var(--pink); }
.form-actions { display: flex; align-items: center; gap: 12px; }
.form-actions .btn.primary { width: 272px; }
.form-actions .btn:not(.primary) { width: 120px; }
.guide { width: 288px; flex: none; display: flex; flex-direction: column; gap: 20px; }
.guide-item { display: flex; flex-direction: column; gap: 6px; }
.guide-item .n { font-weight: 500; font-size: 11px; line-height: 17px; color: var(--pink); }
.guide-item b { font-weight: 500; font-size: 14px; line-height: 21px; color: var(--text); }
.guide-item p { font-size: 13px; line-height: 20px; color: var(--muted); }

/* ── Профиль ────────────────────────────────────────────────────────────── */

.me { display: flex; align-items: flex-start; gap: 24px; min-height: 110px; }
.me-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.me .btn, .me form .btn { width: 300px; }
.me-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.me-meta b { font-weight: 600; font-size: 18px; line-height: 27px; }
.acct { display: flex; align-items: flex-start; gap: 64px; }
.acct-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.acct-side { width: 328px; flex: none; display: flex; flex-direction: column; gap: 20px; }
.acct-line { display: flex; align-items: flex-start; gap: 24px; }
.acct-line .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.acct-line .info span { font-size: 12px; line-height: 18px; color: var(--muted); }
.acct-line .info b { font-weight: 500; font-size: 15px; line-height: 23px; color: var(--text); }
.acct-line .info b.pw { font-weight: 400; font-size: 16px; line-height: 24px; letter-spacing: 1px; }
.acct-line .ok { display: flex; align-items: center; gap: 8px; width: 220px; height: 30px; font-size: 12px; line-height: 18px; color: var(--muted); }
.acct-line .ok .ic { width: 17px; height: 17px; color: var(--pink); }
.acct-line .btn { width: 220px; }
.nums { display: flex; gap: 32px; }
.num { width: 148px; display: flex; flex-direction: column; gap: 5px; }
.num b { font-weight: 600; font-size: 28px; line-height: 34px; color: var(--text); }
.num span { font-size: 12px; line-height: 18px; color: var(--muted); }
.status { font-size: 13px; line-height: 20px; }
.status.approved { color: var(--pink); }
.status.pending { color: var(--muted); }
.status.rejected, .status.needs-changes { color: #f29b9b; }

/* ── Auth ───────────────────────────────────────────────────────────────── */

.auth-col { width: 420px; max-width: 100%; display: flex; flex-direction: column; gap: 32px; }
.auth-col.w520 { width: 520px; gap: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-alt { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 20px; color: var(--muted); }
.big-title { display: flex; align-items: flex-start; gap: 14px; }
.big-title .ic { width: 28px; height: 28px; color: var(--pink); margin-top: 3px; }
.big-title h1 { font-weight: 600; font-size: 28px; line-height: 34px; }
.mailbox { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--radius); background: var(--surface); }
.mailbox span { font-size: 11px; line-height: 17px; color: var(--muted); }
.mailbox b { font-weight: 500; font-size: 16px; line-height: 24px; color: var(--text); }
.btn-row { display: flex; align-items: center; gap: 12px; }

/* ── Админка ────────────────────────────────────────────────────────────── */

.mgmt { display: flex; align-items: flex-start; gap: 40px; }
.mgmt-nav { width: 192px; flex: none; display: flex; flex-direction: column; gap: 16px; }
.mgmt-links { display: flex; flex-direction: column; }
.mgmt-link { display: flex; align-items: center; gap: 10px; height: 36px; font-weight: 500; font-size: 13px; line-height: 20px; color: var(--muted); }
.mgmt-link:hover { color: var(--text); }
.mgmt-link.on { color: var(--pink); }
.mgmt-link .count { margin-left: auto; font-size: 11px; color: var(--pink); }
.mgmt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.metric { display: flex; flex-direction: column; gap: 6px; }
.metric b { font-weight: 600; font-size: 32px; line-height: 38px; color: var(--text); }
.metric b.pink { color: var(--pink); }
.metric strong { font-weight: 500; font-size: 14px; line-height: 21px; color: var(--text); }
.metric span { font-size: 12px; line-height: 18px; color: var(--muted); }
.qhead { display: flex; align-items: center; gap: 16px; }
.qhead .h2 { flex: 1; }
.qhead .btn { width: 200px; }
.review { display: flex; align-items: flex-start; gap: 48px; }
.review-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.review-side { width: 360px; flex: none; display: flex; flex-direction: column; gap: 20px; }
.review-side form { display: flex; flex-direction: column; gap: 20px; }
.checklist { display: flex; flex-direction: column; gap: 8px; }
.subfile { display: flex; align-items: center; gap: 14px; }
.subfile .ic { width: 24px; height: 24px; color: var(--pink); }
.subfile .info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.subfile .info b { font-weight: 500; font-size: 14px; line-height: 21px; }
.subfile .btn { width: 230px; }
.mini-pack { display: flex; align-items: flex-start; gap: 16px; }
.mini-pack .info { display: flex; flex-direction: column; gap: 5px; }
.mini-pack .info b { font-weight: 600; font-size: 18px; line-height: 27px; }
.inline-form { display: inline; }
.inline-form button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--pink); font-size: 13px; }
.inline-form select { width: auto; height: 32px; padding: 0 26px 0 0; font-size: 13px; color: var(--muted); background-color: transparent; border-color: transparent; background-position: right 4px center; }
.inline-form select:hover, .inline-form select:focus { color: var(--text); border-color: transparent; box-shadow: none; }
.inline-form button.t12 { font-size: 12px; color: var(--muted); }
.inline-form button.t12:hover { color: var(--pink); }

/* ── Changelog ──────────────────────────────────────────────────────────── */

.rel { display: flex; align-items: flex-start; gap: 48px; padding: 0; }
.rel-date { width: 224px; flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.rel-date .v { font-weight: 600; font-size: 21px; line-height: 32px; color: var(--text); }
.rel-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rel-body h2 { font-weight: 600; font-size: 23px; line-height: 35px; }
.rel-change { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 21px; color: var(--muted); }
.rel-change .ic { width: 18px; height: 18px; margin-top: 1.5px; color: var(--pink); }
.rel-change .tag { width: 72px; flex: none; font-weight: 500; font-size: 11px; line-height: 21px; color: var(--pink); text-transform: uppercase; letter-spacing: .6px; }
.rel details > summary { list-style: none; cursor: pointer; }
.rel details > summary::-webkit-details-marker { display: none; }

/* ── Футер ──────────────────────────────────────────────────────────────── */

.footer { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 40px 64px 28px; }
/* Rectangle 8 из макета: пятно #F59CCC ниже края страницы — даёт градиент снизу. */
.footer-glow { position: absolute; width: 182px; height: 223px; left: calc(50% - 91px); top: 377px; background: #f59ccc; filter: blur(205px); pointer-events: none; z-index: -1; }
.footer-content { display: flex; align-items: flex-start; gap: 1px; width: 692px; }
.footer-brand { width: 400px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.footer-brand .brandline { display: flex; align-items: center; gap: 12px; height: 44px; }
.footer-brand .wordmark { font-size: 28px; line-height: 41px; }
.made { display: flex; align-items: center; gap: 8px; height: 24px; font-size: 12px; line-height: 17px; color: var(--muted); }
.made .ic { width: 16px; height: 16px; }
.socials { display: flex; align-items: center; gap: 20px; height: 28px; }
.socials .flink { gap: 8px; }
.flink { display: flex; align-items: center; gap: 8px; height: 28px; font-weight: 500; font-size: 13px; line-height: 19px; color: var(--muted); }
.flink:hover { color: var(--text); }
.flink .ic { width: 16px; height: 16px; }
/* Соцсети: фирменные логотипы; при наведении — плитка в цветах приложения. */
.soc .soc-ic { position: relative; width: 22px; height: 22px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; color: var(--muted); transition: background-color .15s, color .15s, box-shadow .15s; }
.soc .soc-ic svg { width: 15px; height: 15px; display: block; }
.soc .soc-ic .h { display: none; }
.soc:hover .soc-ic { color: #fff; }
.soc.patreon:hover .soc-ic { background: #ff424d; box-shadow: 0 4px 12px rgba(255, 66, 77, 0.35); }
.soc.patreon:hover .soc-ic svg { width: 12px; height: 12px; }
.soc.boosty:hover .soc-ic { background: linear-gradient(135deg, #f8a131 0%, #f15f2c 100%); box-shadow: 0 4px 12px rgba(241, 95, 44, 0.4); }
.soc.boosty:hover .soc-ic svg { width: 13px; height: 13px; }
.soc.discord:hover .soc-ic { background: #5865f2; box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4); }
.soc.discord:hover .soc-ic svg { width: 14px; height: 14px; }
.soc.telegram:hover .soc-ic { border-radius: 50%; background: linear-gradient(180deg, #2aabee 0%, #229ed9 100%); box-shadow: 0 4px 12px rgba(42, 171, 238, 0.4); }
.soc.telegram:hover .soc-ic .g { display: none; }
.soc.telegram:hover .soc-ic .h { display: block; width: 14px; height: 14px; margin-left: -1px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col.w180 { width: 180px; flex: none; }
.footer-col.w220 { width: 220px; flex: none; }
.footer-col .flink { gap: 9px; }
.footer-col .flink .ic { width: 17px; height: 17px; }
.footer-div { width: 608px; max-width: 100%; height: 1px; background: rgba(240, 213, 231, 0.08); }
.footer-bottom { display: flex; align-items: center; gap: 14px; width: 578px; max-width: 100%; height: 28px; }
.footer-bottom .copy { font-size: 12px; line-height: 17px; color: var(--muted); }
.footer-bottom .fill { flex: 1; }
.lang { position: relative; }
.lang > summary { list-style: none; display: flex; align-items: center; gap: 8px; height: 28px; font-size: 12px; line-height: 17px; color: var(--muted); cursor: pointer; }
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover { color: var(--text); }
.lang > summary .ic { width: 16px; height: 16px; }
.lang > summary .ic.chev { width: 12px; height: 12px; }
.lang .menu { top: auto; bottom: 36px; width: 180px; }

/* ── Адаптив: макет Mobile 390 ──────────────────────────────────────────── */

@media (max-width: 1360px) {
  .content, .content.home, .content.dl { padding-left: 64px; padding-right: 64px; }
  .content.narrow, .content.mid, .content.slim { padding-left: 64px; padding-right: 64px; }
  .nav-glass { width: calc(100% - 64px); }
  .nav { padding: 0 48px; }
}

@media (max-width: 1100px) {
  .nav-links, .nav-sep, .nav-login { display: none; }
  .nav-burger { display: block; }
  .toc { display: none; }
  .credits { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav { height: 82px; padding: 0 30px; }
  .nav-glass { width: calc(100% - 32px); top: 11px; height: 60px; border-radius: 18px; }
  .brand { width: auto; height: 32px; gap: 8px; }
  .brand .logo { width: 21.5px; height: 26px; }
  .brand .wordmark { font-size: 22px; line-height: 32px; }
  .content, .content.home, .content.dl, .content.narrow, .content.mid, .content.slim { padding: 32px 24px 48px; gap: 22px; }
  .content.auth { max-width: none; min-height: 0; }
  .identity span { font-size: 30px; line-height: 36px; text-align: center; }
  .identity { gap: 12px; height: 56px; }
  .identity .logo-50 { width: 33px; height: 40px; }
  .intro { padding: 16px 0 8px; }
  .intro-text { font-size: 15px; line-height: 23px; }
  .install, .catalog, .details, .upload, .acct, .review, .mgmt, .docs, .rel, .latest, .release, .res-head, .me { flex-direction: column; gap: 22px; }
  .steps, .shot, .filters, .details-side, .guide, .acct-side, .review-side, .mgmt-nav, .docs-nav, .rel-date, .latest-meta, .latest-sum, .latest .link { width: 100%; max-width: none; }
  .docs-nav { position: static; max-height: none; overflow: visible; }
  .docs-nav .docs-group, .docs-nav .search-form { display: none; }
  .docs-select { display: block; }
  .docs-nav { gap: 0; }
  .docs-select.input { display: flex; }
  .wsearch-backdrop { padding: 82px 24px 24px; }
  .acct-pop { width: min(296px, calc(100vw - 48px)); }
  .acct-pop .sub-menu, .acct-pop.flip .sub-menu { left: 0; right: 0; width: auto; top: calc(100% + 8px) !important; }
  .toolbar > * { width: 100%; }
  .toolbar .search { flex: none; }
  .applied .mobile-only { display: inline !important; }
  .pack-row { display: grid; grid-template-columns: 68px 1fr; grid-template-areas: "thumb title" "thumb meta" "desc desc" "pop pop"; gap: 7px 14px; }
  .pack-row > .thumb { grid-area: thumb; }
  .pack-row .pack-info { display: contents; }
  .pack-row .pack-title { grid-area: title; align-self: end; }
  .pack-row .pack-meta { grid-area: meta; align-self: start; }
  .pack-row .pack-desc { grid-area: desc; margin-top: 5px; }
  .pack-row .pack-pop { grid-area: pop; }
  .pack-row.pending-row { display: flex; }
  .pending-row .pack-title { align-self: auto; }
  .row-head { flex-direction: column; gap: 22px; }
  .row-head > .btn, .row-head > a.btn { width: 100% !important; }
  .table .tr > * { flex: 1 1 0 !important; width: auto !important; }
  .table .tr > .act { flex: 0 0 auto !important; }
  .me-meta { align-items: flex-start; }
  .qhead { flex-wrap: wrap; }
  .pending-row .pack-info { display: flex; }
  .m-steps { flex-direction: column; gap: 28px; }
  .m-step { display: flex; flex-direction: column; gap: 14px; }
  .m-step .t { font-weight: 600; font-size: 21px; line-height: 32px; }
  .m-step .shot-box { aspect-ratio: 342 / 163.23; border-radius: 3.886px; }
  .release .release-info .t { font-size: 22px; line-height: 33px; }
  .release .btn, .res-head .btn, .me .btn, .me form, .me form .btn, .form-actions .btn.primary, .acct-line .btn, .subfile .btn, .qhead .btn { width: 100%; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn:not(.primary) { flex: 1; }
  .acct-line { flex-direction: column; gap: 12px; }
  .two { flex-direction: column; }
  .filters { display: none; }
  /* Overlay / Mobile filters */
  .filters.open { display: flex; position: fixed; z-index: 40; left: 24px; right: 24px; top: 82px; max-height: calc(100vh - 106px); overflow: auto;
    width: auto; padding: 24px; gap: 16px; border-radius: 8px; background: var(--bg); border: 1px solid rgba(249, 219, 237, 0.09); }
  .filters-title { display: block; font-weight: 600; font-size: 24px; line-height: 36px; color: var(--text); }
  .filters .btn.primary { width: 100%; }
  .mobile-only { display: flex !important; }
  .desktop-only { display: none !important; }
  .toolbar { flex-direction: column; gap: 12px; }
  .toolbar .search, .toolbar .sort { width: 100%; }
  .m-tools { display: flex; gap: 12px; }
  .m-tools > * { flex: 1; }
  .pack-row { flex-wrap: wrap; align-items: flex-start; gap: 12px 14px; min-height: 0; padding: 0 0 2px; }
  .pack-row .thumb { width: 68px; height: 68px; }
  .pack-row .pack-info { flex: 1 1 200px; }
  .pack-title { font-size: 17px; line-height: 26px; }
  .pack-desc { white-space: normal; }
  .pack-pop { width: 100%; flex-direction: row; justify-content: flex-start; gap: 16px; }
  .list .divider { margin: 22px 0; }
  .pack-preview { height: 260px; }
  .pack-preview img { height: 220px; }
  .footer { padding: 32px 24px 28px; }
  .footer-content { width: 100%; flex-wrap: wrap; gap: 28px 24px; }
  .footer-brand { width: 100%; }
  .footer-col.w180, .footer-col.w220 { width: calc(50% - 12px); }
  .footer-bottom { flex-wrap: wrap; height: auto; }
  .char { grid-template-columns: 1fr; }
  .tr .hide-m { display: none; }
  .metrics { grid-template-columns: 1fr; }
  .help-cols { flex-direction: column; gap: 28px; }
  .fallback { flex-direction: column; align-items: stretch; }
  .fallback .btn { width: 100%; }
  .gallery { grid-template-columns: 1fr; }
  .h1 { font-size: 28px; line-height: 34px; }
  .credits { grid-template-columns: 1fr; }
  .atmo .c2, .atmo .c4, .atmo .d2 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Wiki: персонажи и поиск */
.char-sec { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 24px; }
.char-title { display: flex; align-items: center; gap: 12px; }
.char-title img { width: 32px; height: 32px; image-rendering: pixelated; }
.char-info { display: flex; flex-direction: column; gap: 16px; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; }
.search-hit { display: flex; flex-direction: column; gap: 4px; padding: 4px 0; }
.search-hit b { font-weight: 600; font-size: 18px; line-height: 27px; transition: color .15s; }
.search-hit:hover b { color: var(--pink); }
.char-media .viewer canvas { width: 100% !important; height: 100% !important; }
.thumb { display: flex; align-items: center; justify-content: center; }
.thumb .thumb-icon { width: 62%; height: 62%; object-fit: contain; image-rendering: pixelated; }
.pack-preview img.pixel { height: 160px; image-rendering: pixelated; }
.attach.invalid { border-color: rgba(240, 120, 181, 0.7); }
.attach .thumb { position: relative; z-index: 0; }
.avatar-initial { font-weight: 600; font-size: 32px; line-height: 38px; color: var(--text); opacity: .85; }
.pending-row { align-items: flex-start; min-height: 104px; }
.pending-status { width: 388px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.pending-status .status { font-weight: 500; }
.avatar-form label.btn { position: relative; }
@media (max-width: 860px) { .pending-status { width: 100%; } .avatar-form, .avatar-form label.btn { width: 100% !important; } }

/* ── Admin / Контент из GitHub ── */
.sync-card { display: flex; align-items: center; gap: 24px; padding: 20px; border-radius: var(--radius); background: var(--surface); }
.sync-info { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; font-size: 14px; color: var(--muted); }
.sync-info b { color: var(--text); font-size: 15px; font-weight: 500; }
.sync-info span { overflow-wrap: anywhere; }
.sync-act { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.sync-act .link { color: var(--muted); font-size: 14px; }
.sync-act .link:hover { color: var(--text); }
.sync-errors { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; border-radius: var(--radius); border: 1px solid rgba(255, 90, 90, .35); font-size: 13px; color: var(--muted); }
.sync-errors b { color: #ff7a7a; font-weight: 500; font-size: 14px; }
@media (max-width: 860px) {
  .sync-card { flex-direction: column; align-items: stretch; }
  .sync-act { justify-content: space-between; }
}
