/* ============================================================
   Вики ONECLI. CREATOR — тёмная неоновая тема (как oneclicreator.com)
   ============================================================ */
:root {
  --bg: #05060c;
  --bg-2: #0a0916;
  --panel: #0e0c1d;
  --panel-2: #141028;
  --line: rgba(176, 38, 255, .18);
  --line-2: rgba(233, 230, 255, .08);
  --violet: #b026ff;
  --magenta: #ff2d9b;
  --green: #46ff8c;
  --cyan: #00f0ff;
  --gold: #ffd257;
  --text: #e9e6ff;
  --dim: #a59fce;
  --mute: #6f6994;
  --head: 'Russo One', sans-serif;
  --body: 'Exo 2', system-ui, sans-serif;
  --top-h: 72px;
  --nav-w: 268px;
  --toc-w: 220px;
  --r: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: calc(var(--top-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body); background: var(--bg); color: var(--text);
  line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image:
    radial-gradient(1000px 500px at 85% -10%, rgba(176, 38, 255, .12), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(0, 240, 255, .06), transparent 60%);
  background-attachment: fixed;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* ---------- верхняя панель ---------- */
.top {
  position: sticky; top: 0; z-index: 50; height: var(--top-h);
  display: flex; align-items: center; gap: 18px; padding: 0 20px;
  background: rgba(5, 6, 12, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--text); }
.top__logo:hover { text-decoration: none; }
.top__logo img { width: 92px; height: auto; filter: drop-shadow(0 0 10px rgba(176, 38, 255, .4)); }
.top__logo b {
  font-family: var(--head); font-weight: 400; font-size: 13px; letter-spacing: .18em;
  padding: 4px 9px; border-radius: 6px; color: var(--bg); background: linear-gradient(90deg, var(--green), var(--cyan));
}
.top__site { margin-left: auto; color: var(--dim); font-size: 14px; white-space: nowrap; }
.top__site:hover { color: var(--text); text-decoration: none; }
.top__burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; flex-shrink: 0; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.top__burger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-open .top__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .top__burger span:nth-child(2) { opacity: 0; }
.nav-open .top__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- поиск ---------- */
.search { position: relative; flex: 1; max-width: 520px; }
.search input {
  width: 100%; height: 42px; padding: 0 44px 0 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font: 500 15px var(--body); transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--mute); }
.search input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(176, 38, 255, .18); }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 12px var(--body); color: var(--mute); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 7px; pointer-events: none; }
.search__res {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); max-height: min(70vh, 560px); overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6); padding: 6px;
}
.sr { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.sr:hover, .sr.is-on { background: var(--panel-2); text-decoration: none; }
.sr img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; background: rgba(255, 255, 255, .03); border-radius: 8px; }
.sr b { display: block; font-weight: 600; }
.sr small { display: block; color: var(--violet); font-size: 12px; letter-spacing: .02em; }
.sr span { display: block; color: var(--dim); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.sr mark { background: rgba(70, 255, 140, .22); color: var(--text); border-radius: 3px; padding: 0 1px; }
.sr-empty { padding: 14px; color: var(--dim); font-size: 14px; }

/* ---------- каркас ---------- */
.shell { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr) var(--toc-w); gap: 40px; max-width: 1480px; margin: 0 auto; padding: 0 24px; }
.shell--wide { grid-template-columns: var(--nav-w) minmax(0, 1fr); }
.nav {
  position: sticky; top: var(--top-h); align-self: start; height: calc(100vh - var(--top-h));
  overflow: auto; padding: 24px 6px 40px 0; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.nav__group { margin-bottom: 18px; }
.nav__cat { font: 400 11px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin: 0 0 6px 12px; }
.nav ul { list-style: none; }
.nav a { display: block; padding: 5px 12px; border-radius: 8px; color: var(--dim); font-size: 14.5px; line-height: 1.4; border-left: 2px solid transparent; }
.nav a:hover { color: var(--text); background: rgba(176, 38, 255, .07); text-decoration: none; }
.nav a.is-on { color: var(--text); background: rgba(176, 38, 255, .13); border-left-color: var(--green); }
.main { min-width: 0; padding: 32px 0 64px; }

.toc { position: sticky; top: var(--top-h); align-self: start; max-height: calc(100vh - var(--top-h)); overflow: auto; padding: 36px 0 40px; font-size: 13.5px; }
.toc__h { font: 400 11px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.toc ul { list-style: none; border-left: 1px solid var(--line-2); }
.toc a { display: block; padding: 4px 0 4px 12px; color: var(--mute); line-height: 1.4; margin-left: -1px; border-left: 1px solid transparent; }
.toc .l3 a { padding-left: 24px; font-size: 13px; }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.is-on { color: var(--green); border-left-color: var(--green); }

/* ---------- статья ---------- */
.doc { max-width: 860px; }
.doc--wide { max-width: none; }
.crumbs { font-size: 13px; color: var(--mute); margin-bottom: 10px; }
.crumbs a { color: var(--dim); }
.crumbs span { margin: 0 6px; opacity: .5; }
.doc h1 { font: 400 clamp(28px, 4vw, 42px)/1.15 var(--head); letter-spacing: .01em; margin-bottom: 12px; text-shadow: 0 0 30px rgba(176, 38, 255, .35); }
.lead { font-size: 18px; color: var(--dim); margin-bottom: 28px; max-width: 760px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font: 400 clamp(21px, 2.6vw, 27px)/1.25 var(--head); margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.prose h2::before { content: ''; display: inline-block; width: 8px; height: 8px; margin: 0 12px 4px 0; border-radius: 2px; background: var(--green); box-shadow: 0 0 12px var(--green); transform: rotate(45deg); }
.prose h3 { font: 600 19px/1.3 var(--body); color: var(--cyan); margin-top: 30px; }
.prose h4 { font: 600 16px var(--body); margin-top: 22px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--violet); }
.prose strong { color: #fff; font-weight: 700; }
.prose code { font: 500 .9em ui-monospace, Consolas, monospace; background: rgba(0, 240, 255, .08); color: var(--cyan); padding: 1px 6px; border-radius: 5px; }
.prose pre { background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 14px; overflow: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { border-left: 3px solid var(--violet); background: rgba(176, 38, 255, .07); padding: 12px 16px; border-radius: 0 10px 10px 0; color: var(--dim); }
.prose hr { border: 0; border-top: 1px solid var(--line-2); margin: 32px 0; }
.prose img { display: block; border-radius: 10px; }
.prose > p > img { margin: 8px 0; border: 1px solid var(--line-2); }

.tbl { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(14, 12, 29, .6); -webkit-overflow-scrolling: touch; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.45; }
.tbl th { font: 600 12.5px var(--body); text-transform: uppercase; letter-spacing: .05em; color: var(--dim); text-align: left; background: rgba(176, 38, 255, .08); white-space: nowrap; }
.tbl th, .tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.tbl td img { width: 200px; max-width: none; border-radius: 8px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.gallery img { display: block; width: 100%; height: auto; border-radius: 0; cursor: zoom-in; }
.gallery figcaption { padding: 9px 12px; font-size: 14px; font-weight: 600; }
.zoom { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(3, 3, 8, .88); cursor: zoom-out; }
.zoom img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }

.tbd {
  display: inline-block; font: 600 11px/1 var(--body); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  color: var(--gold); border: 1px dashed rgba(255, 210, 87, .5); border-radius: 6px; padding: 3px 6px; vertical-align: 1px;
}

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.pn { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--text); font-weight: 600; transition: border-color .2s, transform .2s; }
.pn:hover { border-color: var(--violet); text-decoration: none; transform: translateY(-2px); }
.pn small { display: block; font-weight: 500; color: var(--mute); font-size: 12px; margin-bottom: 2px; }
.pn--next { text-align: right; }

/* ---------- главная ---------- */
.hero { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); min-height: 360px; display: flex; align-items: flex-end; }
.hero__bg { position: absolute; inset: 0; background: url(/img/hero.webp) center 40% / cover no-repeat; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 6, 12, .94) 0%, rgba(5, 6, 12, .7) 55%, rgba(5, 6, 12, .25) 100%), linear-gradient(0deg, rgba(5, 6, 12, .85), transparent 60%); }
.hero__in { position: relative; padding: clamp(24px, 4vw, 48px); max-width: 720px; }
.hero__kicker { display: inline-block; font: 400 11px var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.hero h1 { font: 400 clamp(30px, 5vw, 54px)/1.08 var(--head); margin-bottom: 14px; }
.hero h1 span { display: block; background: linear-gradient(90deg, var(--violet), var(--magenta) 50%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--dim); font-size: 17px; margin-bottom: 22px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(14, 12, 29, .8); color: var(--text); font-weight: 600; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.btn:hover { text-decoration: none; border-color: var(--violet); box-shadow: 0 0 18px rgba(176, 38, 255, .35); }
.btn--g { background: linear-gradient(90deg, var(--green), var(--cyan)); color: var(--bg); border: 0; }
.btn--g:hover { box-shadow: 0 0 22px rgba(70, 255, 140, .5); }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 28px; }
.hcard { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px 20px; transition: border-color .2s; }
.hcard:hover { border-color: var(--line); }
.hcard h2 { font: 400 13px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin-bottom: 10px; }
.hcard ul { list-style: none; }
.hcard li + li { margin-top: 4px; }
.hcard a { color: var(--text); font-size: 15px; }
.hcard a:hover { color: var(--green); }

/* ---------- каталог ---------- */
.cat-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cat-q, .cat-sort { height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 500 15px var(--body); padding: 0 14px; }
.cat-q { flex: 1; min-width: 200px; }
.cat-q:focus, .cat-sort:focus { outline: none; border-color: var(--violet); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--dim); font: 600 13.5px var(--body); cursor: pointer; transition: all .2s; }
.chip i { font-style: normal; color: var(--mute); margin-left: 4px; }
.chip:hover { color: var(--text); border-color: var(--line); }
.chip.is-on { color: var(--bg); background: var(--green); border-color: var(--green); }
.chip.is-on i { color: rgba(5, 6, 12, .6); }
.cat-count { color: var(--mute); font-size: 13px; margin-bottom: 12px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.icard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 16px 12px 14px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; color: var(--text); font: inherit; transition: border-color .2s, transform .2s, box-shadow .2s; }
.icard:hover { border-color: var(--violet); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(176, 38, 255, .18); }
.icard img { width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.icard b { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.icard small { color: var(--mute); font-size: 12px; }
.icard .ibadge { font-size: 11px; color: var(--cyan); }

.item-dlg { margin: auto; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 40px); border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); color: var(--text); padding: 0; box-shadow: 0 40px 100px rgba(0, 0, 0, .7); }
.item-dlg::backdrop { background: rgba(3, 3, 8, .75); backdrop-filter: blur(4px); }
.item-dlg__in { padding: 26px; }
.idl-head { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; padding-right: 36px; }
.idl-head img { width: 96px; height: 96px; object-fit: contain; background: radial-gradient(circle, rgba(176, 38, 255, .2), transparent 70%); border-radius: 14px; flex-shrink: 0; }
.idl-head h2 { font: 400 24px/1.2 var(--head); }
.idl-head small { color: var(--violet); font-size: 13px; }
.idl-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-size: 20px; cursor: pointer; }
.idl-x:hover { border-color: var(--violet); }
.idl-desc { color: var(--dim); white-space: pre-line; }
.idl-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 16px 0; }
.idl-stats div { background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; }
.idl-stats dt { font-size: 11.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .05em; }
.idl-stats dd { font-weight: 700; }
.idl-sec { margin-top: 16px; }
.idl-sec h3 { font: 400 12px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.idl-sec ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.idl-sec li a, .idl-sec li span { display: inline-block; padding: 4px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line-2); color: var(--text); font-size: 14px; }
.idl-sec li a:hover { border-color: var(--violet); text-decoration: none; }
.idl-sec p { color: var(--dim); font-size: 14px; }
.idl-link { margin-top: 18px; font-size: 13px; color: var(--mute); }

/* ---------- бестиарий ---------- */
.beasts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.beast { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px; }
.beast--agr { border-color: rgba(255, 45, 155, .25); }
.beast__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.beast h3 { font: 400 18px/1.25 var(--head); }
.beast__tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 6px; color: var(--green); background: rgba(70, 255, 140, .1); white-space: nowrap; }
.beast--agr .beast__tag { color: var(--magenta); background: rgba(255, 45, 155, .12); }
.beast__lvl { color: var(--mute); font-size: 13px; margin: 2px 0 12px; }
.beast dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.beast dl div { background: rgba(255, 255, 255, .03); border-radius: 8px; padding: 6px 8px; }
.beast dt { font-size: 10.5px; color: var(--mute); text-transform: uppercase; }
.beast dd { font-weight: 700; }
.beast__row { font-size: 14px; color: var(--dim); }
.beast__row b { color: var(--text); font-weight: 600; }
.beast__note { font-size: 13px; color: var(--mute); margin-top: 8px; line-height: 1.45; }

/* ---------- персонажи ---------- */
.chars { margin-top: 36px; }
.chars__h { font: 400 13px var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--violet); margin-bottom: 16px; }
.char {
  display: grid; grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); gap: 0; margin-bottom: 18px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; scroll-margin-top: calc(var(--top-h) + 16px);
}
.char:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(240px, 380px); }
.char:nth-of-type(even) .char__stage { order: 2; }
.char__stage {
  position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 380px; padding: 24px 16px 0;
  background:
    radial-gradient(60% 45% at 50% 92%, rgba(70, 255, 140, .28), transparent 70%),
    radial-gradient(70% 70% at 50% 35%, rgba(176, 38, 255, .34), transparent 70%),
    linear-gradient(180deg, #120c24, #07060f);
  overflow: hidden;
}
.char__stage::before { /* сетка-пол */
  content: ''; position: absolute; left: -20%; right: -20%; bottom: 0; height: 38%;
  background: repeating-linear-gradient(90deg, rgba(0, 240, 255, .12) 0 1px, transparent 1px 44px), repeating-linear-gradient(0deg, rgba(0, 240, 255, .12) 0 1px, transparent 1px 22px);
  transform: perspective(300px) rotateX(58deg); transform-origin: bottom; -webkit-mask: linear-gradient(0deg, #000, transparent); mask: linear-gradient(0deg, #000, transparent);
}
.char__stage img {
  position: relative; width: auto; max-width: 100%; max-height: 420px; object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .7)) drop-shadow(0 0 26px rgba(176, 38, 255, .25));
  transition: transform .4s ease;
}
.char:hover .char__stage img { transform: translateY(-6px) scale(1.02); }
.char__info { padding: clamp(20px, 3vw, 34px); align-self: center; }
.char__info h2 { font: 400 clamp(26px, 3.2vw, 36px)/1.1 var(--head); }
.char__title { color: var(--cyan); font-weight: 600; margin: 6px 0 14px; }
.char__story { color: var(--dim); font-size: 16.5px; }
.char__meta { margin-top: 16px; }
.char__meta dt { font-size: 11.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.char__meta dd { font-weight: 600; }
.char__gives { margin-top: 16px; }
.char__gives h3 { font: 400 11.5px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.char__gives ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.char__gives li { padding: 4px 10px; border-radius: 8px; background: rgba(70, 255, 140, .07); border: 1px solid rgba(70, 255, 140, .18); font-size: 14px; }
.char__badge { display: inline-block; margin-bottom: 10px; font: 700 11px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(255, 210, 87, .45); border-radius: 6px; padding: 3px 8px; }
.char--secret { border-color: rgba(255, 210, 87, .22); }
.char--secret .char__stage {
  background:
    radial-gradient(60% 45% at 50% 92%, rgba(255, 210, 87, .22), transparent 70%),
    radial-gradient(70% 70% at 50% 35%, rgba(255, 45, 155, .22), transparent 70%),
    linear-gradient(180deg, #160a14, #07060c);
}
.char--secret .char__stage::before { background: repeating-linear-gradient(90deg, rgba(255, 210, 87, .1) 0 1px, transparent 1px 44px), repeating-linear-gradient(0deg, rgba(255, 210, 87, .1) 0 1px, transparent 1px 22px); }
.char--secret .char__gives h3 { color: var(--gold); }
.char--secret .char__gives li { background: rgba(255, 210, 87, .07); border-color: rgba(255, 210, 87, .22); }

.hchars { margin-top: 28px; }
.hchars__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.hchars__head h2 { font: 400 13px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.hchars__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.hchar {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 210px; padding: 10px 6px 10px; border-radius: 14px; color: var(--text);
  border: 1px solid var(--line-2); background: radial-gradient(70% 60% at 50% 45%, rgba(176, 38, 255, .28), transparent 70%), linear-gradient(180deg, #120c24, #07060f);
  transition: border-color .2s, transform .2s;
}
.hchar:hover { border-color: var(--violet); transform: translateY(-3px); text-decoration: none; }
.hchar img { flex: 1; min-height: 0; width: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .6)); }
.hchar b { font: 400 12px var(--head); letter-spacing: .06em; }
.hchar--secret img { filter: brightness(0) drop-shadow(0 0 12px rgba(255, 210, 87, .55)); }
.hchar--secret b { color: var(--gold); }
@media (max-width: 900px) {
  .char, .char:nth-of-type(even) { grid-template-columns: 1fr; }
  .char:nth-of-type(even) .char__stage { order: 0; }
  .char__stage { min-height: 300px; }
  .char__stage img { max-height: 320px; }
  .hchars__row { grid-auto-columns: 112px; }
  .hchar { height: 180px; }
}

/* ---------- подвал ---------- */
.foot { border-top: 1px solid var(--line); padding: 26px 24px 34px; text-align: center; font-size: 14px; color: var(--dim); }
.foot__dim { color: var(--mute); font-size: 13px; margin-top: 6px; }

/* ---------- адаптив ---------- */
@media (max-width: 1240px) {
  .shell { grid-template-columns: var(--nav-w) minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 900px) {
  :root { --top-h: 60px; }
  .top { padding: 0 12px; gap: 10px; }
  .top__burger { display: flex; }
  .top__logo img { width: 66px; }
  .top__site { display: none; }
  .search kbd { display: none; }
  .search input { height: 40px; padding: 0 12px; font-size: 16px; }
  .shell, .shell--wide { display: block; padding: 0 16px; }
  .nav {
    position: fixed; z-index: 40; top: var(--top-h); left: 0; bottom: 0; height: auto; width: min(320px, 86vw);
    background: var(--bg-2); border-right: 1px solid var(--line); padding: 18px 12px 40px;
    transform: translateX(-100%); transition: transform .3s ease; visibility: hidden;
  }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav-open::after { content: ''; position: fixed; inset: var(--top-h) 0 0; background: rgba(0, 0, 0, .55); z-index: 30; }
  .main { padding-top: 22px; }
  .lead { font-size: 16.5px; }
  .tbl td img { width: 150px; }
  .pager { grid-template-columns: 1fr; }
  .pn--next { text-align: left; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .icard img { width: 64px; height: 64px; }
  .item-dlg__in { padding: 20px 16px; }
  .idl-head img { width: 72px; height: 72px; }
  .top__logo b { font-size: 11px; padding: 3px 7px; }
}
@media (max-width: 420px) {
  .top__logo b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
