
/* l2boh-local: guides — страницы гайдов (квесты), 09.11 */
.g-facts { margin: 0 0 14px; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.g-facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 9px 14px; }
.g-facts > div + div { border-top: 1px solid var(--line); }
.g-facts > div:nth-child(odd) { background: rgba(255, 255, 255, .02); }
.g-facts dt { color: var(--ash, #8f8775); font-size: 14px; }
.g-facts dd { margin: 0; color: var(--text); font-size: 15px; }
@media (max-width: 600px) { .g-facts > div { grid-template-columns: 1fr; gap: 2px; } }

.terms-doc .g-steps { list-style: none; counter-reset: gs; margin: 0; padding: 0; }
.terms-doc .g-steps > li { counter-increment: gs; position: relative; margin: 0; padding: 14px 0 12px 46px; border-top: 1px solid var(--line); max-width: none; }
.terms-doc .g-steps > li:first-child { border-top: 0; padding-top: 4px; }
.terms-doc .g-steps > li::before { content: counter(gs); position: absolute; left: 0; top: 12px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold-lo); color: var(--gold-hi); font: 700 15px/1 var(--f-disp); background: rgba(217, 180, 90, .08); }
.terms-doc .g-steps > li:first-child::before { top: 2px; }
.terms-doc .g-loc { margin: 0 0 6px; color: var(--gold); font-weight: 600; font-size: 15px; letter-spacing: .01em; }
.terms-doc .g-loc::before { content: "⌖ "; color: var(--gold-lo); }
.terms-doc .g-steps b, .terms-doc #kratko b, .terms-doc #zaranee b, .terms-doc #nagrada b { color: var(--gold-hi); font-weight: 600; }
.terms-doc .g-tip { padding: 8px 12px; border-left: 2px solid var(--gold-lo); background: rgba(217, 180, 90, .06); font-size: 14px; }
.terms-doc .g-need { margin: 10px 0 8px; padding: 10px 14px; border: 1px solid var(--gold-lo); border-left-width: 3px; border-radius: 4px; background: rgba(217, 180, 90, .10); color: var(--text); font-size: 15px; }
.terms-doc .g-need--alt { border-color: var(--line-strong); border-left-color: var(--gold-lo); background: rgba(255, 255, 255, .03); color: var(--muted); }
.terms-doc .g-need__t { display: inline-block; margin-right: 6px; color: var(--gold); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.terms-doc .g-need a, .terms-doc a.g-q { color: var(--gold-hi); font-weight: 600; }
.g-ico { display: inline-block; width: 24px; height: 24px; vertical-align: -7px; margin-right: 7px; border-radius: 2px; }
.g-it { white-space: nowrap; }
.g-shot { margin: 10px 0 4px; }
.g-shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: 4px; }
.g-shot figcaption { margin-top: 6px; font-size: 13px; color: var(--ash, #8f8775); }

/* арт класса рядом с таблицей «Коротко о квесте» */
.g-hero { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 14px; }
.g-hero .g-facts { margin: 0; }
.g-hero__img { display: block; width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
@media (max-width: 600px) { .g-hero { grid-template-columns: 1fr; } .g-hero__img { max-width: 260px; margin: 0 auto; } }

/* хлебные крошки на гайдах */
.g-crumbs { margin: 0 0 8px; font-size: 13px; color: var(--ash); }
.g-crumbs a { color: var(--muted); text-underline-offset: 3px; }
.g-crumbs a:hover { color: var(--gold-hi); }
.g-crumbs span[aria-hidden] { margin: 0 6px; color: var(--gold-lo); }

/* Библиотека квестов: разделы и карточки */
.qlib { padding-top: 6px; padding-bottom: 8px; }
.qlib__head { margin-bottom: 22px; }
.qlib__head .pg-lead { margin-top: 8px; max-width: 760px; }
.qsec { margin: 0 0 30px; }
.qsec__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.qsec__h h2 { margin: 0; color: var(--gold); font: 700 13px/1.3 var(--l2-ui-font, sans-serif); letter-spacing: .12em; text-transform: uppercase; }
.qsec__h p { margin: 0; color: var(--ash); font-size: 13px; }
.qgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.qc { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; padding: 14px 14px 12px; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: var(--bg-2); color: var(--text); text-decoration: none; isolation: isolate; }
.qc__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .4s ease; }
.qc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16, 13, 10, .15) 0%, rgba(16, 13, 10, .55) 45%, rgba(16, 13, 10, .96) 100%); }
.qc::after { content: ""; position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-top: 1px solid var(--gold-lo); border-right: 1px solid var(--gold-lo); opacity: .8; }
a.qc:hover, a.qc:focus-visible { border-color: var(--gold-lo); box-shadow: 0 0 0 1px rgba(217, 180, 90, .25), 0 6px 18px rgba(0, 0, 0, .45); }
a.qc:hover .qc__img, a.qc:focus-visible .qc__img { transform: scale(1.04); }
.qc__t { display: block; font: 700 20px/1.15 var(--f-disp); letter-spacing: .01em; color: var(--text); text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.qc__s { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.35; color: var(--muted); text-shadow: 0 1px 2px rgba(0, 0, 0, .9); }
.qc__foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; }
.qc__n { color: var(--gold); font-weight: 700; font-size: 14px; }
.qc__n small { color: var(--ash); font-weight: 400; font-size: 12px; margin-left: 3px; }
.qc__go { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.qc--soon { min-height: 0; padding: 12px 14px; background: rgba(255, 255, 255, .015); border-style: dashed; border-color: var(--line); }
.qc--soon::before, .qc--soon::after { display: none; }
.qc--soon .qc__t { font-size: 17px; color: var(--muted); text-shadow: none; }
.qc--soon .qc__s { text-shadow: none; color: var(--ash); }
.qc--soon .qc__go { color: var(--ash); }
.qgrid--soon { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.qlib__note { color: var(--ash); font-size: 13px; margin: 0 0 8px; }
@media (max-width: 600px) { .qc { min-height: 150px; } .qc__t { font-size: 18px; } .qgrid--soon { grid-template-columns: 1fr 1fr; gap: 8px; } }
.qc.qc--soon { min-height: 0; justify-content: flex-start; }
.qc--soon .qc__foot { margin-top: 8px; }
.qc--art { aspect-ratio: 420 / 550; min-height: 0; }
.qc--art .qc__img { object-position: center top; }
.qgrid:has(.qc--art) { grid-template-columns: repeat(auto-fill, minmax(200px, 230px)); }
.qc--noimg { min-height: 130px; background: radial-gradient(120% 90% at 85% 0%, rgba(217, 180, 90, .14), transparent 60%), linear-gradient(180deg, #1d1813, #120f0b); }
.qc--noimg::before { display: none; }
/* мешки и ящики обмена */
.terms-doc .g-box { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .02); }
.terms-doc .g-box__h { margin: 0 0 4px; }
.terms-doc .g-box__h b { color: var(--gold-hi); font-size: 16px; }
.terms-doc .g-box__m { margin-left: 6px; color: var(--gold); font-size: 13px; }
.terms-doc .g-box__n { margin: 0 0 6px; font-size: 14px; }
.terms-doc .g-chips { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 0; padding: 0; list-style: none; }
.terms-doc .g-chips li { margin: 0; max-width: none; font-size: 14px; white-space: nowrap; }
.terms-doc .g-chips b { color: var(--text); font-weight: 500; }
.terms-doc .g-chips small { color: var(--gold); margin-left: 2px; }
@media (max-width: 600px) { .terms-doc .g-chips li { white-space: normal; } }
.qc--text { min-height: 0; justify-content: flex-start; }
.qc--text .qc__s { margin-top: 8px; font-size: 14px; line-height: 1.55; }

/* меню «Спойл и крафт»: категории × грейды */
.cm { display: grid; gap: 18px 28px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; margin-bottom: 22px; }
.cm-h { margin: 0 0 6px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(180deg, #221c15, #18130e); color: var(--text); font: 700 18px/1.2 var(--f-disp); letter-spacing: .02em; }
.cm-list { list-style: none; margin: 0; padding: 0; }
.cm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 4px 4px 8px; border-radius: 4px; }
.cm-row:hover { background: rgba(217, 180, 90, .05); }
.cm-name { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: var(--gold); font-size: 17px; font-weight: 500; }
.cm-name img { width: 26px; height: 26px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); flex: none; }
.cm-grades { display: inline-flex; gap: 4px; flex: none; }
.cm-g { display: grid; place-items: center; width: 40px; height: 38px; border-radius: 4px; background: #17130f; border: 1px solid #241d16; font-weight: 700; font-size: 14px; text-decoration: none; cursor: default; }
a.cm-g { cursor: pointer; } a.cm-g:hover { border-color: var(--gold-lo); background: #221b13; }
.cm-g--ng { color: #9a9a9a; } .cm-g--d { color: #9999ff; } .cm-g--c { color: #2fcc2f; } .cm-g--b { color: #ff6666; } .cm-g--a { color: #a8a8a8; } .cm-g--s { color: #ffef66; }
@media (max-width: 420px) { .cm { grid-template-columns: 1fr; } .cm-g { width: 32px; height: 32px; font-size: 13px; } .cm-grades { gap: 3px; } .cm-name { font-size: 15px; gap: 7px; } .cm-name img { width: 22px; height: 22px; } }

/* меню крафта: 2 колонки, бижутерия под оружием; кликабельные кнопки */
.cm { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
a.cm-name { text-decoration: none; } a.cm-name:hover { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }
/* страница категории */
.kh-ico { width: 30px; height: 30px; margin-right: 12px; vertical-align: -5px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.5); }
.kg-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 14px; }
.kg { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.015); scroll-margin-top: 16px; }
.kg:target { border-color: var(--gold-lo); box-shadow: 0 0 0 1px rgba(217,180,90,.2); }
.kg__h { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; color: var(--text); font: 700 19px/1.2 var(--f-disp); }
.kg__h .cm-g { width: 34px; height: 30px; font-size: 13px; }
.kg__soon { margin: 0; color: var(--ash); font-size: 14px; }
.kg-more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 18px 0 10px; font-size: 14px; color: var(--ash); }
.kg-more a { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); text-decoration: none; }
.kg-more a:hover { color: var(--gold-hi); }
.kg-more img { width: 20px; height: 20px; border-radius: 2px; }
@media (max-width: 460px) { .cm { grid-template-columns: 1fr; } }
.cm-row--set { margin-bottom: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cm-row--set .cm-name { color: var(--gold-hi); }
.terms-doc .g-start { margin: 6px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .02); }
.terms-doc .dino-list { margin: 8px 0 14px; }
.terms-doc .dino-list li { max-width: none; margin: 0; }
.terms-doc .dino-list .db-it { color: var(--gold-hi); text-decoration: none; }
/* карточки классов с артом */
.qgrid--art { grid-template-columns: repeat(auto-fill, minmax(200px, 230px)); }
.qc--sq { aspect-ratio: 1 / 1; min-height: 0; }
.qc--sq .qc__img { object-position: 70% 30%; }
.qc--wait { cursor: default; }
.qc--wait .qc__go { color: var(--ash); }
.qc--wait::after { display: none; }
/* единый формат карточек классов: 3:4 */
.qgrid--art { grid-template-columns: repeat(auto-fill, minmax(180px, 210px)); }
.qc--cls { aspect-ratio: 3 / 4; min-height: 0; }
.qc--cls .qc__img { object-fit: cover; object-position: center top; }
@media (max-width: 600px) { .qgrid--art { grid-template-columns: repeat(2, 1fr); } }
.qc__nick { display: inline-block; margin-left: 6px; padding: 1px 7px 2px; border-radius: 4px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1a140c; font: 700 12px/1.3 var(--l2-ui-font, sans-serif); letter-spacing: .02em; text-shadow: none; vertical-align: 3px; white-space: nowrap; }
.qc--soon .qc__nick { background: #2a2116; color: var(--gold); border: 1px solid var(--gold-lo); }
.h-page .qc__nick { font-size: 15px; vertical-align: 5px; }

/* карточка квеста с 3D-рендером NPC (портрет) */
.qc__img--r { object-position: center 22%; }

