/* Вкладка «База игры» */
.db { padding-top: 14px; }
.db h1 { margin-bottom: 14px; text-align: center; }
.db h2 { margin: 18px 0 10px; font-size: 16px; }
.db a { text-decoration: none; }
.cnt { color: var(--muted); font-size: 12px; font-weight: 400; }
/* Строка подвкладок: активная — золотая с чертой, на узком экране листается вбок */
.dbsub { position: relative; display: flex; justify-content: center; margin: 0 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.dbsub::-webkit-scrollbar { display: none; }
.dbsub a { position: relative; flex: none; padding: 6px 13px 10px; color: var(--muted); font-size: 15px; font-weight: 500; white-space: nowrap; }
.dbsub a:hover { color: var(--text); }
.dbsub a:focus-visible { outline: 1px solid var(--gold); outline-offset: -2px; border-radius: 6px; }
.dbsub a.on { color: var(--gold); }
.dbsub a.on::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; background: var(--gold); }
.dbtop { margin-top: 4px; }
.dbtiles .dbsk { min-height: 100px; }
/* Подвкладка, которой ещё нет */
.dbsoon > p { margin: 6px 0 18px; color: var(--muted); text-align: center; }
.dbsoon .sk-chips { margin-bottom: 12px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--gold); }
.crumbs i { color: #5d5866; font-style: normal; }
/* Плитки главной */
.dbtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.dbt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; background: #19161c; border: 1px solid #28242c; border-radius: 8px; color: var(--text); text-align: center; }
a.dbt:hover, a.dbt:focus-visible { border-color: var(--gold-dim); background: #1f1b23; outline: none; }
a.dbt:hover .tl { color: var(--gold); }
.dbt .ti { display: flex; align-items: center; justify-content: center; height: 64px; }
.dbt img { max-width: 64px; max-height: 64px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); }
.dbt .tl { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.dbt small { position: absolute; top: 5px; right: 8px; color: #6f6878; font-size: 11px; }
.dbt.off { opacity: .35; }
/* Список баз класса */
.dbbases { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
a.bcard { color: var(--text); }
a.bcard:hover .bn { color: var(--gold); }
/* Страница базы: карточка слева, моды справа */
.dbbase { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
.dbleft { position: sticky; top: 68px; }
.dbleft .item { width: 100%; }
.dben { margin: 8px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.dbcraft { display: block; margin-top: 10px; padding: 12px 18px; background: var(--gold); border-radius: 8px; color: #1b1408; font: 600 16px system-ui, sans-serif; text-align: center; }
.dbcraft:hover, .dbcraft:focus-visible { background: #e6c374; outline: none; }
.dbsides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
.dbright h2 { margin: 0 0 6px; }
.dbright h3 { margin: 10px 0 6px; color: var(--gold); font-size: 14px; }
/* Строка мода: лучший тир, под ней все тиры */
.fam, .row { border-bottom: 1px solid #2a262e; font-size: 14px; line-height: 1.35; }
.fam summary, .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 7px 2px; }
.row { grid-template-columns: auto minmax(0, 1fr) auto; }
.row .t:first-child { grid-column: 1 / 3; }
.row img { align-self: center; }
.fam summary { cursor: pointer; list-style: none; }
.fam summary::-webkit-details-marker, .grp summary::-webkit-details-marker { display: none; }
.fam summary:hover, .fam summary:focus-visible { background: #18151c; outline: none; }
.fam .t, .row .t { color: #8888ff; }
.fam small, .row small { display: block; color: var(--muted); font-size: 12px; }
.fam small img { width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }
.fam .n, .row .n { color: #7d7486; font-size: 12px; white-space: nowrap; }
.fam summary .n::after { content: ' ▾'; }
.fam[open] summary .n::after { content: ' ▴'; }
.fam table { margin: 0 0 8px; font-size: 13px; }
.fam td { padding: 3px 6px; border: 0; color: var(--text); white-space: nowrap; vertical-align: middle; }
.fam tr:nth-child(odd) td { background: #18151c; }
.fam td:first-child { width: 1%; color: var(--gold); }
.fam td:first-child b { font-weight: 600; }
.fam td:nth-child(2) { width: 1%; color: var(--muted); }
.fam td:nth-child(3) { width: 100%; white-space: normal; }
.fam td:nth-child(4) { line-height: 0; text-align: right; }
.fam td:last-child { color: var(--muted); text-align: right; font-size: 12px; }
.fam td.w2 { color: var(--gold); }
.fam td.w3 { color: var(--warn); }
.fam td.w4 { color: var(--bad); font-weight: 600; }
/* Уровень предмета: тиров выше него на таком предмете не бывает */
.fam tr.off td, .fam.off summary, .row.off { opacity: .35; }
/* Клик по тиру — в калькулятор с этим модом */
.fam[data-m] tr, .row[data-m] { cursor: pointer; }
.fam[data-m] tr:hover td, .row[data-m]:hover { background: #2a2416; }
.fam[data-m] td:first-child b { display: inline-block; min-width: 26px; padding: 0 4px; border: 1px solid var(--gold-dim); border-radius: 4px; text-align: center; }
.fam[data-m] tr:hover td:first-child b { border-color: var(--gold); }
/* Основы крафта: текст по центру, цвета — как в игре */
.dbtext { max-width: 760px; }
.dbtext p { margin: 0 0 6px; line-height: 1.6; }
.c-normal { color: #c8c8c8; }
.c-magic { color: #8888ff; }
.c-rare { color: #ffff77; }
.c-ess { color: #b6d8ef; }
.c-des { color: #9cc255; }
.c-frac { color: #a29162; }
.c-corrupt { color: #d20000; }
.db .tags { margin: -6px 0 6px; }
/* Спрятанные группы модов */
.grp { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; background: #19161c; }
.grp > summary { padding: 9px 12px; color: var(--gold); font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; }
.grp > summary img { margin-right: 8px; vertical-align: -6px; }
.grp > summary::after { content: ' ▾'; color: #7d7486; font-weight: 400; }
.grp[open] > summary::after { content: ' ▴'; }
.grp > summary:hover, .grp > summary:focus-visible { background: #1f1b23; border-radius: 8px; outline: none; }
.grp .dbsides, .grp .dbflat { padding: 0 12px 10px; }
.dbflat .row { grid-template-columns: minmax(0, 1fr); }
.dbflat .row .t { grid-column: auto; }
.dbflat .row .n { display: none; }
/* Особенности базы над модами: места, кость, омены, качество, гнёзда — значки и числа, слова в подсказках */
.dbstrip { margin: 0 0 14px; }
.dbstrip > summary { display: none; }
.dbchips { display: flex; flex-wrap: wrap; gap: 6px; }
.dbch { display: inline-flex; align-items: center; gap: 2px; min-height: 36px; padding: 2px 10px; background: #19161c; border: 1px solid #28242c; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: default; }
.dbch img { width: 28px; height: 28px; }
.dbch b { margin-left: 4px; color: var(--text); font-weight: 600; }
/* Сортировка баз на странице класса */
.dbsort { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 6px; }
.dbsort button { padding: 4px 12px; background: #19161c; border: 1px solid #28242c; border-radius: 8px; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.dbsort button:hover { color: var(--text); border-color: var(--gold-dim); }
.dbsort button:focus-visible { outline: 1px solid var(--gold); outline-offset: 1px; }
.dbsort button[aria-pressed="true"] { color: var(--gold); border-color: var(--gold-dim); background: #221d16; }
.dbsort button[aria-pressed="true"]::after { content: ' ▾'; }
.dbsort button.asc::after { content: ' ▴'; }
/* Страницы валюты: карточка как в игре (шапка цвета валюты, описание синим, как применять — серым) и цена с линией за 7 дней */
.r-currency { border-color: #5c5240; }
.r-currency .item-head { color: #aa9e82; border-color: #5c5240; background: linear-gradient(#2e2a20, #17150f); }
.item .cdesc { color: #8888ff; }
.item .cdir { color: #7f7f7f; font-style: italic; font-size: 13px; }
.cdoes { margin: 0 0 14px; font-size: 16px; line-height: 1.55; }
.cmarket { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 12px 14px; background: #19161c; border: 1px solid #28242c; border-radius: 8px; }
.cprice { font-size: 22px; font-weight: 600; white-space: nowrap; }
.cprice img { width: 26px; height: 26px; vertical-align: -5px; }
.cchart { display: flex; align-items: center; gap: 8px; }
.spark.big { width: 120px; height: 40px; margin: 0; }
.spark.big polyline { stroke-width: 2; vector-effect: non-scaling-stroke; }
.cmarket small { color: var(--muted); font-size: 12px; }
.cvol { white-space: nowrap; }
.cvol img { width: 18px; height: 18px; vertical-align: -4px; }
.cmore { margin-left: auto; color: var(--gold); font-size: 14px; }
.cmarket .up { color: var(--good); }
.cmarket .down { color: var(--bad); }
.cmarket .flat { color: var(--muted); }
.cchip { display: inline-block; margin-top: 12px; padding: 5px 12px; border: 1px solid var(--gold-dim); border-radius: 999px; color: var(--gold); font-size: 13px; }
.cchip:hover, .cchip:focus-visible { background: #221d16; outline: none; }
.bcard .cpr img { width: 16px; height: 16px; vertical-align: -3px; }
/* Что даёт: класс предмета (или категория руны) → мод */
.cgh { margin: 20px 0 8px; }
.cgives td { padding: 6px 8px; border-bottom: 1px solid #2a262e; vertical-align: top; font-size: 14px; }
.cgives td:first-child { width: 34%; color: var(--muted); }
.cgives .mod { color: #8888ff; }
/* Большие и совершенные сферы: римская II / III поверх значка, как в игре */
.tier { position: relative; display: inline-block; line-height: 0; }
.tier::after { content: attr(data-t); position: absolute; left: 4%; top: 2%; color: #f3e6bd; font: 700 12px/1 "Fontin SmallCaps", "Palatino Linotype", Georgia, serif; text-shadow: 0 0 2px #000, 0 0 3px #000, 1px 1px 0 #000; pointer-events: none; }
.item .art .tier::after { font-size: 14px; }
.rn .tier::after { font-size: 11px; }
.item .art .tier { display: block; width: fit-content; margin: 0 auto; }
/* Курс валют: разделы как на бирже игры, таблица с линией за 7 дней */
.rtags .tag img { width: 18px; height: 18px; vertical-align: -4px; }
.rtools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 12px; }
.rcats { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 520px; }
.rcats button { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 5px; background: #19161c; border: 1px solid #28242c; border-radius: 8px; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.rcats button:hover { color: var(--text); border-color: var(--gold-dim); }
.rcats button:focus-visible { outline: 1px solid var(--gold); outline-offset: 1px; }
.rcats button[aria-pressed="true"] { color: var(--gold); border-color: var(--gold-dim); background: #221d16; }
.rcats img { width: 24px; height: 24px; }
#rateQ { flex: 0 1 220px; padding: 6px 10px; background: #0f0d11; color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; }
#rateQ:focus { outline: none; border-color: var(--gold); }
.rtab th, .rtab td { padding: 5px 8px; border-bottom: 1px solid #2a262e; text-align: right; white-space: nowrap; vertical-align: middle; }
.rtab thead th { color: var(--muted); font-weight: 500; font-size: 12px; border-bottom-color: var(--line); }
.rtab thead th:first-child, .rtab .rn, .rsub th { text-align: left; }
.rtab th button { padding: 0; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.rtab th button:hover, .rtab th[aria-sort] button { color: var(--gold); }
.rtab th[aria-sort="descending"] button::after { content: ' ▾'; }
.rtab th[aria-sort="ascending"] button::after { content: ' ▴'; }
.rtab tbody tr:not(.rsub):hover td { background: #18151c; }
.rtab .rn { width: 100%; white-space: normal; }
.rn img, .rn i { display: inline-block; width: 32px; height: 32px; margin-right: 10px; vertical-align: middle; }
.rtab td img { vertical-align: -4px; }
.rtab .rn img { vertical-align: middle; }
a.rnl { color: var(--text); }
a.rnl:hover span, a.rnl:focus-visible span { color: var(--gold); }
.rsub th { padding: 16px 8px 6px; color: var(--gold); font-size: 13px; font-weight: 600; border-bottom-color: var(--line); }
.spark { width: 60px; height: 20px; margin-right: 8px; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.rch { display: inline-block; min-width: 48px; }
.rates .up { color: var(--good); }
.rates .down { color: var(--bad); }
.rates .flat { color: var(--muted); }
.rnone { color: var(--muted); text-align: center; }
/* Восхождения: классы — круглые портреты; у восхождения — дерево и узлы карточками */
.asclasses { display: grid; grid-template-columns: repeat(auto-fill, minmax(540px, 1fr)); gap: 8px 36px; }
.ascls h2 { color: var(--gold); }
.asgrid { display: flex; flex-wrap: wrap; gap: 14px 12px; }
a.ascard { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 124px; color: var(--text); text-align: center; }
.asimg { display: block; width: 116px; height: 116px; padding: 3px; border-radius: 50%; background: linear-gradient(160deg, #6f5a2c, #2a2216 60%, #6f5a2c); box-shadow: 0 4px 14px rgba(0, 0, 0, .55); transition: box-shadow .15s, transform .15s; }
.asimg img { display: block; width: 100%; height: 100%; border-radius: 50%; }
a.ascard.alt .asimg { background: linear-gradient(160deg, #6d3b8f, #22142c 60%, #6d3b8f); }
.asn { font-size: 15px; line-height: 1.25; }
a.ascard:hover .asimg, a.ascard:focus-visible .asimg { box-shadow: 0 0 0 2px var(--gold), 0 6px 18px rgba(216, 178, 90, .25); transform: translateY(-2px); }
a.ascard:hover .asn, a.ascard:focus-visible .asn { color: var(--gold); }
a.ascard:focus-visible { outline: none; }
.ashead { display: flex; gap: 22px; align-items: center; max-width: 820px; margin: 0 auto 8px; }
.asart { flex: none; width: 180px; height: 180px; border-radius: 50%; box-shadow: 0 0 0 3px #6f5a2c, 0 8px 24px rgba(0, 0, 0, .6); }
.ashead h1 { margin: 0 0 4px; text-align: left; color: var(--gold); font-size: 28px; }
.ascl { margin: 0 0 10px; color: var(--muted); }
.asflav { margin: 0; font-style: italic; line-height: 1.5; color: #b9a58a; }
.astree { max-width: 700px; margin: 14px auto 0; }
.astree svg { display: block; width: 100%; height: auto; max-height: 86vh; }
.asbg image { opacity: .42; }
.asrim { fill: none; stroke: #6f5a2c; stroke-width: 10; }
.ased line, .ased path { fill: none; stroke: #8a7650; stroke-width: 14; stroke-opacity: .8; }
.asnd circle { fill: #0d0b0f; stroke: #8f7c58; stroke-width: 9; }
.asnd.notable circle { stroke: #d6ae55; stroke-width: 11; }
.asnd.start circle { stroke: #d6ae55; stroke-width: 12; }
.asnd.alt circle { stroke: #a35ad6; }
.asnd[tabindex] { cursor: pointer; outline: none; }
.asnd[tabindex]:hover circle, .asnd[tabindex]:focus-visible circle, .asnd.on circle { stroke: #fff1c4; }
.asnotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.asnc { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; background: #19161c; border: 1px solid #28242c; border-radius: 8px; scroll-margin-top: 80px; transition: border-color .2s; }
.asnc > img, .asopt > img { flex: none; border-radius: 50%; box-shadow: 0 0 0 2px #c9a24e; }
.asnc.small > img { box-shadow: 0 0 0 2px #7a6a4f; }
.asnc.alt > img { box-shadow: 0 0 0 2px #a35ad6; }
.asnc.on { border-color: var(--gold); }
.asnm { color: #e8d6a8; font-weight: 600; margin-bottom: 3px; }
.asnc .mod, .astip .mod { color: var(--blue); font-size: 14px; line-height: 1.4; }
.asg { margin-top: 3px; color: var(--text); font-size: 14px; }
.asg b { color: var(--gold); font-weight: 500; }
.asrem { margin-top: 4px; color: #8d8794; font-size: 13px; font-style: italic; }
.asfl { margin-top: 6px; color: #b5803f; font-size: 13px; font-style: italic; }
.asopts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px 16px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #2c2731; }
.asnc:has(.asopts) { grid-column: 1 / -1; }
.astip .asopts { grid-template-columns: minmax(0, 1fr); }
.asopt { display: flex; gap: 10px; align-items: flex-start; }
.asopt .asnm { font-weight: 500; }
.astip { position: absolute; z-index: 20; max-width: 340px; padding: 0 0 8px; background: rgba(10, 8, 12, .97); border: 1px solid #6f5a2c; border-radius: 6px; box-shadow: 0 8px 22px rgba(0, 0, 0, .7); pointer-events: none; text-align: center; }
.astip > .asnm { margin: 0 0 6px; padding: 6px 12px; background: #221c12; border-bottom: 1px solid #4e4126; border-radius: 6px 6px 0 0; }
.astip > div:not(.asnm) { padding: 0 12px; }
.astip .asopts { text-align: left; padding: 6px 12px 0; }
/* Подсказка закреплена (зажат Alt): в неё можно зайти мышкой, внутри — свои подсказки */
.tt { max-height: calc(100vh - 16px); overflow: hidden; }
.tt.pin { overflow-y: auto; scrollbar-width: thin; }
.tt.pin { pointer-events: auto; box-shadow: 0 0 0 1px var(--gold-dim), 0 10px 26px rgba(0, 0, 0, .75); }
.gpop.tt.pin { box-shadow: none; filter: drop-shadow(0 0 1px var(--gold-dim)) drop-shadow(0 10px 24px rgba(0, 0, 0, .75)); }
.tt a.kwl, .tt a.gsl { cursor: help; }
/* Крестик закреплённого окошка — в правом верхнем углу */
.ttx { display: none; position: absolute; top: 5px; right: 5px; z-index: 3; width: 24px; height: 24px; padding: 0; border: 1px solid #5d5866; border-radius: 50%; background: rgba(10, 8, 12, .92); color: #e9e4da; font: 16px/20px inherit; font-family: inherit; text-align: center; cursor: pointer; }
.ttx:hover, .ttx:focus-visible { border-color: var(--gold); color: var(--gold); outline: none; }
.tt.pin .ttx { display: block; }
.tt.pin { position: absolute; }
/* Камни: отбор сверху (вид, цвет, метки, поиск), карточки сеткой; у камня — подсказка как в игре и таблица по уровням */
/* Панель отбора — сеткой: поиск всегда справа в первой строке, как бы ни были длинны названия на языке страницы */
.gtools { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 8px 14px; align-items: center; margin: 4px 0 8px; }
.gkinds, .gcols, .gtagrow { display: flex; flex-wrap: wrap; gap: 6px; }
.gkinds button, .gtagrow button[data-g] { padding: 4px 11px; background: #19161c; border: 1px solid #28242c; border-radius: 8px; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.gtagrow { margin-bottom: 12px; }
.gtagrow button[data-g] { padding: 2px 9px; font-size: 13px; border-radius: 14px; }
/* Кружки цвета — в начале строки меток, отделены чертой */
.gtagrow .gcols { flex: none; align-items: center; gap: 6px; margin-right: 4px; padding-right: 10px; border-right: 1px solid var(--line); }
.gkinds button:hover, .gtagrow button[data-g]:hover { color: var(--text); border-color: var(--gold-dim); }
.gkinds button[aria-pressed="true"], .gtagrow button[data-g][aria-pressed="true"] { color: var(--gold); border-color: var(--gold-dim); background: #221d16; }
.gkinds button:focus-visible, .gtagrow button[data-g]:focus-visible, .gdot:focus-visible { outline: 1px solid var(--gold); outline-offset: 1px; }
.gtagrow button[hidden] { display: none; }
.gemtip .req { margin-top: 4px; }
.gemtip .req:empty { display: none; }
/* сброс отбора камней (цвет, метки, поиск) — появляется, когда что-то выбрано */
.greset { flex: none; padding: 2px 10px 3px; background: #19161c; border: 1px solid #28242c; border-radius: 14px; color: var(--muted); font: inherit; font-size: 15px; line-height: 1.2; cursor: pointer; }
.greset:hover { color: var(--text); border-color: var(--gold-dim); }
.greset[hidden] { display: none; }
.gdot { position: relative; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 2px solid #28242c; cursor: pointer; opacity: .55; }
/* Подсказка у кружка — характеристика камня (цвет), сразу при наведении */
.gdot:hover, .gdot:focus-visible { opacity: 1; }
.gdot:hover::after, .gdot:focus-visible::after { content: attr(data-hint); position: absolute; top: calc(100% + 6px); left: 50%; z-index: 20; transform: translateX(-50%); padding: 3px 8px; white-space: nowrap; background: rgba(10, 8, 12, .97); border: 1px solid #4e4126; border-radius: 5px; color: var(--text); font-size: 12px; pointer-events: none; }
.gdot[aria-pressed="true"] { opacity: 1; border-color: var(--text); }
.gdot.c-r { background: radial-gradient(circle at 35% 35%, #ff8a7a, #b3302a 60%, #5e1310); }
.gdot.c-g { background: radial-gradient(circle at 35% 35%, #a8f59a, #3f9b39 60%, #18451a); }
.gdot.c-b { background: radial-gradient(circle at 35% 35%, #a9c3ff, #3e67c9 60%, #172b5e); }
.gdot.c-w { background: radial-gradient(circle at 35% 35%, #ffffff, #a9a9a9 60%, #4b4b4b); }
#gemQ { width: 100%; padding: 6px 10px; background: #0f0d11; color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; }
#gemQ:focus { outline: none; border-color: var(--gold); }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
a.gcard { display: flex; gap: 10px; align-items: center; padding: 8px 10px; background: #19161c; border: 1px solid #28242c; border-radius: 8px; color: var(--text); }
a.gcard[hidden] { display: none; }
a.gcard:hover, a.gcard:focus-visible { border-color: var(--gold-dim); background: #1f1b23; outline: none; }
a.gcard:hover .gn { color: var(--gold); }
.gi { flex: none; display: flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 10px; background: radial-gradient(circle, #2a2530, #141116 70%); }
.gi.c-r { box-shadow: inset 0 0 0 1px #6e2a26; }
.gi.c-g { box-shadow: inset 0 0 0 1px #2f6a2c; }
.gi.c-b { box-shadow: inset 0 0 0 1px #2e4a8e; }
.gi img { width: 46px; height: 46px; border-radius: 6px; }
.gtx { display: flex; flex-direction: column; min-width: 0; }
.gn { font-size: 15px; line-height: 1.25; }
.gtg { color: #7d7486; font-size: 12px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gemtip .item-head { color: #1ba29b; border-color: #0d5552; background: linear-gradient(#11302e, #0a1817); }
.gemtip { border-color: #0d5552; }
.gemtip .art img { width: 64px; height: 64px; border-radius: 8px; }
.gtags { margin-bottom: 4px; color: #8a8a8a; }
.gemtip .prop .v { color: var(--text); }
.gemtip .mod { white-space: pre-line; }
.gdesc { color: #c9c2b6; font-size: 14px; line-height: 1.45; padding: 0 6px; }
.gsk { color: #1ba29b; font-weight: 600; margin-bottom: 2px; }
.gset { margin: 6px 0 2px; color: #b9b2a4; font-size: 13px; }
.gqh { color: #e9e4da; font-size: 13px; margin-bottom: 2px; }
.gfrom { margin-top: 14px; }
.gfrom h2 { margin: 0 0 8px; color: var(--gold); font-size: 15px; text-align: center; }
a.gfi { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; padding: 6px 10px; background: #19161c; border: 1px solid #28242c; border-radius: 8px; color: var(--text); }
a.gfi.u span { color: #c8783a; }
a.gfi:hover, a.gfi:focus-visible { border-color: var(--gold-dim); outline: none; }
a.gfi img { width: 36px; height: 36px; object-fit: contain; }
a.gsl { color: inherit; text-decoration: underline dotted rgba(216, 178, 90, .6); text-underline-offset: 3px; }
a.gsl:hover { color: var(--gold); }
.dbgem .dbleft { position: static; }
.dbgem.solo { grid-template-columns: minmax(0, 420px); justify-content: center; }
.dbgem.solo .dbleft { position: static; }
.gtab { overflow-x: auto; }
.glv { width: 100%; border-collapse: collapse; font-size: 14px; }
.glv th { white-space: normal; text-align: left; min-width: 90px; }
.glv td, .glv th { text-align: left; }
.glv tbody tr { cursor: pointer; }
.glv tbody tr.on td { background: #221d16; color: var(--gold); }
.glv2 { margin-top: 10px; }
.glv2 > summary { color: var(--gold); cursor: pointer; padding: 6px 0; }
/* Уники: разделы тайника, карточки с картинкой; у уника — подсказка как в игре */
.uqsec h2 { color: var(--gold); }
.uqsec[hidden], a.ucard[hidden] { display: none; }
.uqgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
a.ucard { display: flex; gap: 10px; align-items: center; padding: 8px 10px; background: #19161c; border: 1px solid #28242c; border-radius: 8px; color: var(--text); }
a.ucard:hover, a.ucard:focus-visible { border-color: #7a4a22; background: #1f1b23; outline: none; }
.uimg { flex: none; display: flex; width: 48px; height: 60px; align-items: center; justify-content: center; }
.uimg img { max-width: 48px; max-height: 60px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); }
.utx { display: flex; flex-direction: column; min-width: 0; }
.un { color: #c8783a; font-size: 15px; line-height: 1.25; }
a.ucard:hover .un { color: #e89350; }
.ubn { color: #7d7486; font-size: 12px; }
#uqQ { width: 100%; padding: 6px 10px; background: #0f0d11; color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; }
#uqQ:focus { outline: none; border-color: var(--gold); }
.r-unique { border-color: #6b3d18; }
.r-unique .item-head { display: flex; flex-direction: column; color: #c8783a; border-color: #6b3d18; background: linear-gradient(#3a2412, #1b1009); }
.r-unique .item-head .ub { font-size: 15px; }
.r-unique .art img { max-width: 100%; }
.ufl { color: #b5803f; font-style: italic; font-size: 14px; line-height: 1.45; padding: 0 8px; }
.ubase { margin: 8px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.ubase a { color: var(--gold); }
/* Гнёзда поддержек под подсказкой умения; окно выбора; подходящие поддержки справа */
/* Сверху справа: гнёзда и кнопки подбора; ниже — заголовок с поиском и список */
.gsockrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; padding: 12px 14px; background: #141a1b; border: 1px solid #1d3a39; border-radius: 10px; }
.gsock { display: flex; gap: 10px; }
.gauto { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.gauto button { position: relative; padding: 5px 11px; background: #19161c; border: 1px solid #28242c; border-radius: 8px; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.gauto button:hover, .gauto button:focus-visible { border-color: #1ba29b; color: #8ff0e8; outline: none; }
.gauto button[data-hint]:hover::after { content: attr(data-hint); position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; padding: 3px 8px; white-space: nowrap; background: rgba(10, 8, 12, .97); border: 1px solid #4e4126; border-radius: 5px; color: var(--text); font-size: 12px; pointer-events: none; }
.gsuphead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.gsuphead h2 { margin: 0; }
/* Числа камня, изменённые поддержками: светлее, рядом — на сколько */
.gemtip .chg { color: #b8d4ff; }
.gd { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px; background: rgba(127, 207, 138, .14); color: var(--good); font-size: 12px; font-style: normal; white-space: nowrap; }
.gd.bad { background: rgba(224, 112, 112, .14); color: var(--bad); }
.gsum { margin: 2px 0 4px; color: #e9e4da; font-size: 13px; }
.gslot { position: relative; width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 2px dashed #4e5a66; background: radial-gradient(circle, #1d2a2c, #0e1213 70%); cursor: pointer; }
.gslot:hover, .gslot:focus-visible { border-color: #1ba29b; outline: none; }
.gslot.on { border-style: solid; border-color: #1ba29b; }
.gslot img { width: 100%; height: 100%; border-radius: 50%; }
.gslot.on:hover::after { content: '×'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(10, 8, 12, .6); color: #fff1c4; font-size: 22px; }
.gpick { position: absolute; z-index: 35; width: 340px; max-width: calc(100vw - 16px); padding: 8px; background: #141117; border: 1px solid #0d5552; border-radius: 8px; box-shadow: 0 10px 26px rgba(0, 0, 0, .75); }
.gpick input { width: 100%; margin-bottom: 6px; padding: 6px 10px; background: #0f0d11; color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; }
.gpick input:focus { outline: none; border-color: #1ba29b; }
.gpickl { display: grid; gap: 4px; max-height: 50vh; overflow-y: auto; }
.gsup { margin-bottom: 18px; }
.gsup h2 { margin-top: 0; }
#supQ { flex: 0 1 260px; margin-left: auto; padding: 6px 10px; background: #0f0d11; color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; }
#supQ:focus { outline: none; border-color: var(--gold); }
.gsupl { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.gsi { display: flex; gap: 8px; align-items: center; width: 100%; padding: 4px 8px 4px 4px; background: #19161c; border: 1px solid #28242c; border-radius: 8px; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.gsi:hover, .gsi:focus-visible { border-color: #1ba29b; outline: none; }
.gsi img { flex: none; width: 32px; height: 32px; border-radius: 6px; }
.gsi > span { display: flex; flex-direction: column; min-width: 0; }
.gsi b { font-weight: 400; }
.gsi.rec b { color: var(--gold); }
.gsi small { display: flex; flex-wrap: wrap; gap: 2px 6px; font-size: 11px; line-height: 1.3; }
.gsi small i { font-style: normal; }
.gsi small i.up { color: var(--good); }
.gsi small i.down { color: var(--bad); }
.gsi.in { border-color: #1ba29b; background: #102423; }
.gsi.off { opacity: .4; }
.gsupfx .gsk { margin-top: 6px; }
/* Подсказка при наведении на камень или уник — карточка с его страницы; Alt — объяснения слов рядом */
.gpop { position: absolute; z-index: 40; width: 340px; pointer-events: none; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .75)); }
.gpop .item { margin: 0; }
.altbox { position: absolute; z-index: 41; width: 320px; max-height: 80vh; overflow: hidden; padding: 4px 0; background: rgba(10, 8, 12, .97); border: 1px solid #4e4126; border-radius: 6px; box-shadow: 0 8px 22px rgba(0, 0, 0, .7); pointer-events: none; }
.althint { padding: 0 8px 6px; text-align: right; }
.althint kbd { padding: 0 5px; border: 1px solid #5d5866; border-bottom-width: 2px; border-radius: 4px; color: #8d8794; font: 11px/16px inherit; font-family: inherit; }
.altw { padding: 8px 12px; }
.altw + .altw { border-top: 1px solid #2c2731; }
.altw .kwen { display: none; }
.altw .kwd { font-size: 13px; }
/* Слова игры: поиск и алфавит сверху, слова карточками; ссылка на слово — подсказка при наведении */
.kwtools { position: sticky; top: 56px; z-index: 5; display: flex; flex-wrap: nowrap; gap: 8px 14px; align-items: center; margin: 0 -8px 6px; padding: 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
#kwQ { flex: 0 1 240px; padding: 6px 10px; background: #0f0d11; color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; }
#kwQ:focus { outline: none; border-color: var(--gold); }
/* Алфавит — всегда одной строкой (русский длиннее английского): буквы растягиваются по ширине, не влезло — листается вбок */
.kwabc { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 1px; flex: 1 1 400px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.kwabc::-webkit-scrollbar { display: none; }
.kwabc a { flex: none; min-width: 20px; padding: 2px 3px; color: var(--muted); font-size: 13px; text-align: center; border-radius: 5px; }
.kwabc a:hover, .kwabc a:focus-visible { color: var(--gold); background: #221d16; outline: none; }
.kwg h2 { color: var(--gold); scroll-margin-top: 120px; }
.kwgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; align-items: start; }
.kw { padding: 10px 12px; background: #19161c; border: 1px solid #28242c; border-radius: 8px; scroll-margin-top: 120px; }
.kw:target, .kw.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-dim); }
.kwt { margin-bottom: 4px; color: #e8d6a8; font-weight: 600; }
.kwen { color: #6f6878; font-size: 12px; font-weight: 400; }
.kwd { color: #c9c2b6; font-size: 14px; line-height: 1.45; }
.kwd p { margin: 0 0 6px; }
.kwd p:last-child { margin: 0; }
a.kwl { color: var(--blue); text-decoration: underline dotted rgba(138, 168, 255, .5); text-underline-offset: 3px; }
a.kwl:hover { color: #b3c6ff; }
.kwtip { position: absolute; z-index: 30; max-width: 360px; padding: 10px 12px; background: rgba(10, 8, 12, .97); border: 1px solid #6f5a2c; border-radius: 6px; box-shadow: 0 8px 22px rgba(0, 0, 0, .7); pointer-events: none; }
.kwtip .kwen { display: none; }
@media (max-width: 1040px) {
  .dbsides { grid-template-columns: minmax(0, 1fr); }
  .dbright section + section { margin-top: 16px; }
}
@media (max-width: 899px) {
  .dbsub { justify-content: flex-start; margin: 0 -16px 14px; padding: 0 6px; }
  .dbsub a { padding: 6px 10px 10px; font-size: 14px; }
  .dbstrip { border: 1px solid var(--line); border-radius: 8px; background: #19161c; }
  .dbstrip > summary { display: block; padding: 9px 12px; color: var(--gold); font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; }
  .dbstrip > summary::-webkit-details-marker { display: none; }
  .dbstrip > summary::after { content: ' ▾'; color: #7d7486; font-weight: 400; }
  .dbstrip[open] > summary::after { content: ' ▴'; }
  .dbstrip .dbchips { padding: 0 10px 10px; }
  .rcats { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .rcats::-webkit-scrollbar { display: none; }
  .rcats button { flex: none; }
  #rateQ { flex: 1 1 100%; }
  .dbbase { grid-template-columns: minmax(0, 1fr); }
  .dbleft { position: static; max-width: 360px; width: 100%; margin: 0 auto; }
  .dbtiles { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .dbt .ti { height: 52px; }
  .dbt img { max-width: 52px; max-height: 52px; }
  .dbt .tl { font-size: 13px; }
  .asclasses { grid-template-columns: minmax(0, 1fr); }
  .asgrid { gap: 12px 10px; }
  a.ascard { width: calc(33.3% - 7px); max-width: 124px; }
  .asimg { width: 96px; height: 96px; }
  .asn { font-size: 13px; }
  .ashead { flex-direction: column; text-align: center; gap: 12px; }
  .ashead h1 { text-align: center; }
  .asart { width: 140px; height: 140px; }
  .asnotes { grid-template-columns: minmax(0, 1fr); }
  .kwtools { top: 48px; flex-wrap: wrap; margin: 0 -16px 6px; padding: 8px 16px; }
  #kwQ { flex: 1 1 100%; }
  .kwabc { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .kwabc::-webkit-scrollbar { display: none; }
  .kwgrid { grid-template-columns: minmax(0, 1fr); }
  .gtools { display: flex; flex-wrap: wrap; }
  .gkinds { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; width: calc(100% + 32px); }
  .gkinds button { flex: none; }
  #gemQ { flex: 1 1 100%; margin-left: 0; }
  .gtagrow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 0 16px; }
  .gtagrow button, .gtagrow .gcols { flex: none; }
  .ggrid { grid-template-columns: minmax(0, 1fr); }
  #uqQ { flex: 1 1 100%; margin-left: 0; }
  .uqgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .rtab { font-size: 13px; }
  .rtab th, .rtab td { padding: 5px 4px; }
  .rtab .spark { display: none; }
  .rch { min-width: 0; }
  .rn img, .rn i { width: 24px; height: 24px; margin-right: 6px; }
}

/* Подсказка блока «Особенности базы» — сразу при наведении или нажатии */
.dbch[data-hint] { position: relative; cursor: help; }
.dbch[data-hint]:focus { outline: none; border-color: var(--gold-dim); }
.dbch[data-hint]:hover::after, .dbch[data-hint]:focus::after { content: attr(data-hint); position: absolute; top: calc(100% + 6px); left: 50%; z-index: 20; transform: translateX(-50%); padding: 3px 8px; white-space: nowrap; background: rgba(10, 8, 12, .97); border: 1px solid #4e4126; border-radius: 5px; color: var(--text); font-size: 12px; font-weight: 400; pointer-events: none; }

/* «Хочу» в карточке базы — те же места, что в калькуляторе (стили .item .slot / .mslot — общие); мест нет или переход к списку — мигание */
.want .wside.flash .mslot, .want .wside.flash .slot { animation: wfull .6s; }
.dbsides > section.flash, .fam.flash > summary, .row.flash { animation: wlist .9s; }
@keyframes wfull { 30% { border-color: var(--bad); } }
@keyframes wlist { 25% { background: #2a2416; } }.dbcraft .wn { font-weight: 600; }
.fam.in > summary, .row.in { background: #15152a; }
.fam tr.in td { background: #1d1d3a; }
/* Древо пассивов: холст во всю ширину; классы и поиск сверху; кнопки приближения в углу; «во весь экран» — поверх шапки */
.pttools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 4px 0 10px; }
.ptcls { display: flex; flex-wrap: wrap; gap: 6px; }
.ptcls button { padding: 4px 12px; background: #19161c; border: 1px solid #28242c; border-radius: 8px; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.ptcls button:hover { color: var(--text); border-color: var(--gold-dim); }
.ptcls button:focus-visible { outline: 1px solid var(--gold); outline-offset: 1px; }
.ptcls button[aria-pressed="true"] { color: var(--gold); border-color: var(--gold-dim); background: #221d16; }
.ptfind { display: flex; align-items: center; gap: 8px; flex: 0 1 280px; }
#ptQ { flex: 1 1 auto; min-width: 0; padding: 6px 10px; background: #0f0d11; color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; }
#ptQ:focus { outline: none; border-color: var(--gold); }
.ptn { flex: none; min-width: 2ch; color: #ffe27a; font-size: 13px; font-variant-numeric: tabular-nums; }
.ptree { position: relative; height: min(76vh, 860px); min-height: 380px; margin-bottom: 18px; background: #0b0a0d; border: 1px solid #28242c; border-radius: 10px; overflow: hidden; }
.ptree canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
.ptree canvas.on { cursor: pointer; }
.ptree canvas.drag { cursor: grabbing; }
.ptree:not(.ready)::after { content: ''; position: absolute; inset: 50% auto auto 50%; width: 34px; height: 34px; margin: -17px; border: 3px solid #3a3226; border-top-color: var(--gold); border-radius: 50%; animation: ptspin 1s linear infinite; }
.ptree.fail::after { display: none; }
@keyframes ptspin { to { transform: rotate(1turn); } }
.ptp { position: absolute; pointer-events: none; }
.ptzoom { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
.ptzoom button { position: relative; width: 34px; height: 34px; padding: 0; background: rgba(20, 17, 23, .92); border: 1px solid #3a3440; border-radius: 8px; color: var(--text); font: 18px/1 inherit; font-family: inherit; cursor: pointer; }
.ptzoom button:hover, .ptzoom button:focus-visible { border-color: var(--gold-dim); color: var(--gold); outline: none; }
.ptzoom button[aria-pressed="true"] { color: var(--gold); border-color: var(--gold-dim); }
.ptzoom button[data-hint]:hover::after { content: attr(data-hint); position: absolute; top: 50%; right: calc(100% + 8px); transform: translateY(-50%); padding: 3px 8px; white-space: nowrap; background: rgba(10, 8, 12, .97); border: 1px solid #4e4126; border-radius: 5px; color: var(--text); font-size: 12px; pointer-events: none; }
.ptwrap.big { position: fixed; inset: 0; z-index: 39; display: flex; flex-direction: column; padding: 8px 16px 0; background: var(--bg); }
.ptwrap.big .pttools { margin-top: 0; }
.ptwrap.big .ptree { flex: 1 1 auto; height: auto; min-height: 0; margin: 0 -16px; border: 0; border-top: 1px solid #28242c; border-radius: 0; }
.ptbig, .ptbig body { overflow: hidden; }
.ptbig .sitebar, .ptbig .tabs { display: none; }
.ptc { cursor: pointer; }
.ptc:hover, .ptc:focus-visible { border-color: var(--gold-dim); outline: none; }
.ptc.key > img { box-shadow: 0 0 0 2px #e8c470, 0 0 0 4px #0d0b0f, 0 0 0 5px #e8c470; }
.ptmore { margin-top: 18px; }
.ptmore > summary { list-style: none; cursor: pointer; }
.ptmore > summary::-webkit-details-marker { display: none; }
.ptmore > summary h2 { display: inline; }
.ptmore > summary h2::after { content: ' ▾'; color: #7d7486; font-weight: 400; font-size: 15px; }
.ptmore[open] > summary h2::after { content: ' ▴'; }
.ptmore > .asnotes { margin-top: 12px; }
.ascall { margin-top: 22px; }
@media (max-width: 899px) {
  .pttools { flex-direction: column; flex-wrap: nowrap; align-items: stretch; } /* в столбик — одной линией, иначе ряд классов растягивает страницу */
  .ptcls { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .ptcls::-webkit-scrollbar { display: none; }
  .ptcls button { flex: none; }
  .ptfind { flex: 1 1 auto; }
  .ptree { height: 68vh; margin: 0 -16px 18px; border-radius: 0; border-left: 0; border-right: 0; }
}.astip.pin > .asnm { padding-left: 34px; padding-right: 34px; }
/* Сборка на древе: общие очки и наборы оружия I / II (цвет — как у взятых на древе), сброс, ссылка, выбор характеристики, итог */
.ptplan { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 10px; }
.ptmode { display: flex; gap: 6px; }
.ptmode button, .ptact button { position: relative; padding: 4px 12px; background: #19161c; border: 1px solid #28242c; border-radius: 8px; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.ptmode button b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ptmode button[data-m="0"] b { color: #f0cd75; }
.ptmode button[data-m="1"] b { color: #ff7a5c; }
.ptmode button[data-m="2"] b { color: #5cc8ff; }
.ptmode button:hover, .ptact button:hover { color: var(--text); border-color: #3a3440; }
.ptmode button[aria-pressed="true"] { color: var(--text); background: #221d16; border-color: #f0cd75; }
.ptmode button[data-m="1"][aria-pressed="true"] { background: #2a1714; border-color: #ff7a5c; }
.ptmode button[data-m="2"][aria-pressed="true"] { background: #13212a; border-color: #5cc8ff; }
.ptmode button[data-hint]:hover::after { content: attr(data-hint); position: absolute; top: calc(100% + 6px); left: 50%; z-index: 20; transform: translateX(-50%); padding: 3px 8px; white-space: nowrap; background: rgba(10, 8, 12, .97); border: 1px solid #4e4126; border-radius: 5px; color: var(--text); font-size: 12px; pointer-events: none; }
.ptmode button:focus-visible, .ptact button:focus-visible { outline: 1px solid var(--gold); outline-offset: 1px; }
.ptact { display: flex; gap: 6px; margin-left: auto; }
.pthint { color: #ffb070; font-size: 13px; }
.ptcls.need button { animation: ptneed .9s 2; }
@keyframes ptneed { 40% { border-color: #ffb070; color: #ffd6a8; } }
.ptattr { position: absolute; z-index: 3; display: flex; gap: 4px; padding: 5px; background: rgba(14, 12, 17, .96); border: 1px solid #4e4126; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .6); }
.ptattr[hidden] { display: none; }
.ptattr button { padding: 4px 10px; background: #19161c; border: 1px solid #2e2934; border-radius: 6px; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.ptattr .a-s { border-color: #7a2f29; }
.ptattr .a-d { border-color: #2f6b31; }
.ptattr .a-i { border-color: #33508f; }
.ptattr .a-s[aria-pressed="true"] { background: #c8463c; border-color: #c8463c; }
.ptattr .a-d[aria-pressed="true"] { background: #4aa64a; border-color: #4aa64a; }
.ptattr .a-i[aria-pressed="true"] { background: #4f78d8; border-color: #4f78d8; }
.ptattr button:hover { filter: brightness(1.25); }
.astip .ptcost { margin-top: 6px; color: #fff1c4; font-size: 13px; }
.ptsum { margin: 0 0 18px; }
.ptsum h2 { margin-top: 0; }
.ptsumg { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.ptsg { padding: 10px 14px; background: #19161c; border: 1px solid #28242c; border-left: 3px solid #f0cd75; border-radius: 8px; }
.ptsg.m1 { border-left-color: #ff7a5c; }
.ptsg.m2 { border-left-color: #5cc8ff; }
.ptsg h3 { margin: 0 0 6px; color: #e8d6a8; font-size: 15px; }
.ptsg .mod { color: var(--blue); font-size: 14px; line-height: 1.45; }
@media (max-width: 899px) {
  .ptact { margin-left: 0; }
  .ptsumg { grid-template-columns: minmax(0, 1fr); }
}@media (hover: none) { .althint { display: none; } } /* на телефоне Alt нет — значок не нужен *//* Предел очков: «45 / 123»; не хватает — кнопка мигает, перебор (уровень снизили) — красным */
.ptmode button.flash { animation: ptfull .7s 2; }
@keyframes ptfull { 40% { border-color: #ff5a50; background: #3a1714; } }
.ptmode button.over b { color: #ff5a50 !important; }
.ptlvl { display: flex; flex-direction: row; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.ptlvl input { width: 58px; padding: 4px 6px; background: #0f0d11; color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 13px; text-align: center; }
.ptlvl input:focus { outline: none; border-color: var(--gold); }
.astip .ptcost.bad { color: #ff7a6e; }/* Восхождения класса — кнопками рядом с наборами; у выбранного — очки «3 / 8» */
.ptasc { display: flex; flex-wrap: wrap; gap: 6px; }
.ptasc:empty { display: none; }
.ptasc button { position: relative; padding: 4px 12px; background: #19161c; border: 1px solid #28242c; border-radius: 8px; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.ptasc button:hover { color: var(--text); border-color: #3a3440; }
.ptasc button[aria-pressed="true"] { color: var(--text); background: #221d16; border-color: #c9a24e; }
.ptasc button b { color: #f0cd75; font-weight: 600; font-variant-numeric: tabular-nums; }
.ptasc button.flash { animation: ptfull .7s 2; }
.ptsg.m3 { border-left-color: #c9a24e; }/* Меню характеристики — значки игры (сила, ловкость, интеллект), выбранная подсвечена своим цветом; наборы I / II — кнопки игры */
.ptattr { gap: 6px; padding: 8px; align-items: stretch; }
.ptattr button { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 76px; padding: 6px 6px 5px; background: #141117; border-color: #2e2934; }
.ptattr button img { width: 40px; height: 40px; border-radius: 50%; }
.ptattr button span { font-size: 12px; color: var(--muted); }
.ptattr .a-s[aria-pressed="true"], .ptattr .a-d[aria-pressed="true"], .ptattr .a-i[aria-pressed="true"] { background: #1d1912; }
.ptattr .a-s[aria-pressed="true"] { border-color: #c8463c; box-shadow: inset 0 0 0 1px #c8463c; }
.ptattr .a-d[aria-pressed="true"] { border-color: #4aa64a; box-shadow: inset 0 0 0 1px #4aa64a; }
.ptattr .a-i[aria-pressed="true"] { border-color: #4f78d8; box-shadow: inset 0 0 0 1px #4f78d8; }
.ptattr [aria-pressed="true"] span { color: var(--text); }
.ptattr .ax { min-width: 0; justify-content: center; padding: 6px 10px; font-size: 14px; }
.ptmode button { display: inline-flex; align-items: center; gap: 6px; }
.ptmode button img { display: block; }
.ptmode button .on, .ptmode button[aria-pressed="true"] .off { display: none; }
.ptmode button[aria-pressed="true"] .on { display: block; }.ptmode button .off { display: none !important; }
.ptmode button .on { display: block; opacity: .55; }
.ptmode button[aria-pressed="true"] .on, .ptmode button:hover .on { opacity: 1; }/* Панель очков в углу древа — как в игре: тёмные плашки с золотой каймой; набор I — красный, II — зелёный; кнопки приближения — внизу */
.ptpanel { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; flex-direction: column; gap: 4px; width: 250px; }
.ptzoom { top: auto; bottom: 10px; }
.ptrow { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 10px; background: linear-gradient(#25201a, #15120e); border: 1px solid #6b5631; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .5); color: #d8cba8; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.ptrow[hidden] { display: none; }
.ptrow b { margin-left: auto; color: #fff3d0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ptrow:hover { border-color: #a98a4e; }
.ptrow:focus-visible { outline: 1px solid var(--gold); outline-offset: 1px; }
.ptic { display: grid; place-items: center; flex: none; width: 22px; height: 20px; border-radius: 3px; font-style: normal; font-weight: 700; font-family: Georgia, serif; }
.ptic0, .ptic3 { color: #e8c470; font-size: 15px; }
.ptic1 { background: #4a150e; border: 1px solid #a33a26; color: #ff8a6a; font-size: 13px; }
.ptic2 { background: #133511; border: 1px solid #3f8a32; color: #8af07a; font-size: 12px; letter-spacing: -1px; }
.ptarr { color: #8a7146; font-size: 10px; }
.ptrow[data-m="0"][aria-pressed="true"] { border-color: #c9a24e; }
.ptrow[data-m="1"][aria-pressed="true"] { border-color: #ff6448; box-shadow: 0 0 10px rgba(255, 100, 72, .45); }
.ptrow[data-m="2"][aria-pressed="true"] { border-color: #6cd65c; box-shadow: 0 0 10px rgba(108, 214, 92, .4); }
.ptrow[data-m="1"][aria-pressed="true"] .ptarr { color: #ff8a6a; }
.ptrow[data-m="2"][aria-pressed="true"] .ptarr { color: #8af07a; }
.ptascrow { cursor: default; }
.ptascrow a.kwl { color: inherit; }
.ptrow.over b { color: #ff5a50; }
.ptrow.flash { animation: ptfull .7s 2; }
.ptrow[data-hint]:hover::after { display: none; }
.ptpanel .ptfind { flex: none; position: relative; display: block; margin-top: 2px; }
.ptpanel #ptQ { width: 100%; padding: 6px 54px 6px 10px; background: rgba(12, 10, 8, .92); border-color: #6b5631; }
.ptpanel .ptn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
/* Меню характеристики — как в игре: плашка с выбранной, «Выберите одно:», строки «+5 к силе» */
.ptattr { flex-direction: column; width: 230px; gap: 5px; padding: 8px; background: rgba(12, 10, 8, .97); border: 1px solid #6b5631; border-radius: 6px; }
.ptah { padding: 5px 10px; text-align: center; font-family: Georgia, serif; font-size: 20px; color: #f3e6c4; background: linear-gradient(#3a3020, #1c170f); border: 1px solid #8a7146; border-radius: 8px; }
.ptas { text-align: center; font-style: italic; font-size: 13px; color: #a99f8e; }
.ptattr button { display: block; min-width: 0; width: 100%; padding: 5px 8px; text-align: center; background: linear-gradient(#2a2318, #16120c); border: 1px solid #5a4828; border-radius: 4px; color: #a9bcff; font-size: 14px; }
.ptattr button u { text-decoration: underline dotted; text-underline-offset: 3px; }
.ptattr [data-at][aria-pressed="true"] { background: linear-gradient(#3a3020, #1f1a10); border-color: #e8c470; box-shadow: none; color: #fff; }
.ptattr .ax { color: var(--muted); font-size: 12px; }
@media (max-width: 899px) {
  .ptpanel { left: 8px; right: auto; top: 8px; width: min(230px, calc(100% - 60px)); gap: 3px; }
  .ptrow { padding: 3px 8px; font-size: 12px; }
  .ptpanel #ptQ { padding: 4px 48px 4px 8px; font-size: 13px; }
}/* Меню характеристики: фон строки — цвет характеристики (сила — красный, ловкость — зелёный, интеллект — синий), выбранная — ярче */
.ptattr .a-s { background: linear-gradient(#55201a, #33110d); border-color: #7a2f29; color: #ffd6cf; }
.ptattr .a-d { background: linear-gradient(#1f4a1c, #11300f); border-color: #2f6b31; color: #d4ffcc; }
.ptattr .a-i { background: linear-gradient(#1f3160, #111c3d); border-color: #33508f; color: #d4e0ff; }
.ptattr .a-s:hover { background: linear-gradient(#6e2a22, #431712); }
.ptattr .a-d:hover { background: linear-gradient(#285e24, #173f14); }
.ptattr .a-i:hover { background: linear-gradient(#283e78, #17254f); }
.ptattr .a-s[aria-pressed="true"] { background: linear-gradient(#b23a2e, #74221a); border-color: #ff8a70; color: #fff; }
.ptattr .a-d[aria-pressed="true"] { background: linear-gradient(#3f9a37, #24611f); border-color: #9cf08c; color: #fff; }
.ptattr .a-i[aria-pressed="true"] { background: linear-gradient(#3d63c4, #233d80); border-color: #9cb6ff; color: #fff; }/* Меню гнезда для самоцвета — как меню характеристики: плашка с названием, «Утерянные» и уникальные карточками, свойства списком */
.ptjw { position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 5px; width: 320px; max-height: calc(100% - 20px); overflow-y: auto; padding: 8px; background: rgba(12, 10, 8, .97); border: 1px solid #6b5631; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .6); }
.ptjw[hidden] { display: none; }
.ptjw .ptah { font-size: 17px; }
.jwh { margin-top: 4px; color: #a99f8e; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.jwg { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.jwg.u { grid-template-columns: 1fr; }
.jwi { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 8px; background: linear-gradient(#2a2318, #16120c); border: 1px solid #5a4828; border-radius: 4px; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.jwi img { flex: none; width: 34px; height: 34px; object-fit: contain; }
.jwi:hover { border-color: #a98a4e; }
.jwi[aria-pressed="true"] { border-color: #e8c470; background: linear-gradient(#3a3020, #1f1a10); }
.jwi.none, .jwi.ax, .jwi.ok { justify-content: center; color: var(--muted); }
.jwi.ok { color: var(--text); }
.jwtop { display: flex; align-items: center; gap: 8px; }
.jwb { flex: none; width: 30px; height: 30px; padding: 0; background: #19161c; border: 1px solid #5a4828; border-radius: 4px; color: #e8c470; cursor: pointer; }
.jwn { color: #f3e6c4; font-weight: 600; }
.jwr { color: #a99f8e; font-size: 12px; }
.jwq { width: 100%; padding: 5px 8px; background: #0f0d11; color: var(--text); border: 1px solid #5a4828; border-radius: 4px; font: inherit; font-size: 13px; }
.jwq:focus { outline: none; border-color: #e8c470; }
.jwl { display: flex; flex-direction: column; gap: 3px; max-height: 300px; overflow-y: auto; }
.jwm { padding: 4px 8px; background: #16120c; border: 1px solid #3a3020; border-left: 3px solid #6b5631; border-radius: 3px; color: #a9bcff; font: inherit; font-size: 13px; line-height: 1.35; text-align: left; cursor: pointer; }
.jwm.s { border-left-color: #4f6aa8; }
.jwm u { text-decoration: underline dotted; text-underline-offset: 3px; }
.jwm:hover:not(:disabled) { border-color: #a98a4e; }
.jwm[aria-pressed="true"] { background: #2a2416; border-color: #e8c470; color: #fff; }
.jwm:disabled { opacity: .35; cursor: default; }
.ptsg.jw { border-left-color: #8fb4ff; }
.jwx { color: #a99f8e; font-size: 12px; }
@media (max-width: 899px) { .ptjw { width: min(320px, calc(100% - 16px)); } }.jw0 { opacity: .5; }
/* Подсказка гнезда с самоцветом: название (у уника — коричнево-оранжевое, как в игре, и база ниже), радиус, сколько узлов задевает */
.astip > .asnm.jwtu { color: #d0864a; line-height: 1.25; }
.astip > .asnm.jwtu span { color: #c8b48a; font-weight: 400; font-size: 13px; }
.astip .jwtc { color: #a99f8e; font-size: 13px; padding: 0 12px; }
.astip .jwtc b { color: var(--text); font-weight: 500; }
.astip .jwtc.m { margin-bottom: 4px; font-size: 12px; }/* Карточка самоцвета в гнезде древа — как предмет в игре */
.jwcard .item-body { text-align: center; }
.jwcard .prop .v { color: var(--text); }
.jwcard .mod.jwwhite { color: #e9e4da; }
.jwcard .jwnear { margin-top: 4px; color: #8d8794; font-size: 12.5px; }
.jwcard .jwdesc { color: #8d8794; font-size: 13px; font-style: italic; line-height: 1.4; }
.jwcard .jwart { margin: 8px auto 0; }
.jwcard .jwart img { width: 52px; height: 52px; object-fit: contain; }.astip .ptna { margin-top: 6px; color: #8d8794; text-align: left; }
.astip .ptan { margin-top: 2px; color: #7d7486; font-size: 12px; font-style: italic; text-align: left; }
/* Жидкие эмоции для зачарования — строка внизу окошка узла, видна с Alt */
.astip .ptoil { margin-top: 6px; color: #c8bfae; font-size: 13px; text-align: left; }
.astip .ptoil a.ptoi { color: #e8c470; text-decoration: underline dotted; text-underline-offset: 3px; }
.tt:not(.pin) .ptoil { display: none; }/* Жидкие эмоции картинками: три в ряд, название под картинкой */
.astip .ptoil { text-align: center; }
.astip .ptoh { color: #c8bfae; font-size: 12.5px; margin-bottom: 4px; }
.astip .ptor { display: flex; justify-content: center; gap: 10px; }
.astip .ptoil .ptoi { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 64px; color: #e8c470; font-size: 12px; line-height: 1.2; text-decoration: none; }
.astip .ptoil .ptoi img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .7)); }
.astip .ptoil a.ptoi:hover span { text-decoration: underline dotted; text-underline-offset: 3px; }
/* «Голоса» в подсказке «Зловещего гнезда»: картинка с названием, наведение (с Alt) — карточка уника */
.astip .ptan .ptvo { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 72px; margin-top: 4px; color: #e8c470; font-size: 12px; font-style: normal; line-height: 1.2; text-decoration: none; }
.astip .ptan .ptvo img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .7)); }
.astip .ptan a.ptvo:hover span { text-decoration: underline dotted; text-underline-offset: 3px; }
/* С Alt, как в игре: под названием узла — английское в скобках */
.astip .asnm .asen { display: block; color: #a99c80; font-size: 12.5px; font-weight: 400; }
.tt:not(.pin) .asen { display: none; }
/* Древо умений Атласа (блок .atree в db.js): в окошке узла — варианты узла с выбором (выбранный ярко) и плашка «Требуется …»; меню вариантов */
.astip .atvs { margin-top: 6px; text-align: left; }
.astip .atvs .ptas { margin-bottom: 3px; text-align: center; }
.astip .atv { margin: 2px 0; padding: 2px 0 2px 8px; border-left: 2px solid #3a3020; opacity: .6; }
.astip .atv.on { border-left-color: #e8c470; opacity: 1; }
.astip .atvn { color: #e8d6a8; font-size: 13px; }
.astip .atv .mod { font-size: 13px; }
.astip > .atreq { margin: 8px 10px 0; padding: 4px 10px; background: linear-gradient(#3a1a14, #22100b); border: 1px solid #6b3024; border-radius: 3px; color: #e9c0b2; font-size: 13px; }
.ptattr.atch { width: 300px; max-height: calc(100% - 20px); overflow-y: auto; }
.ptattr.atch .atopt { display: block; width: 100%; padding: 5px 8px; text-align: left; background: linear-gradient(#2a2318, #16120c); border: 1px solid #5a4828; border-radius: 4px; color: #a9bcff; font-size: 14px; cursor: pointer; }
.ptattr.atch .atopt:hover { filter: brightness(1.25); }
.ptattr.atch .atopt:focus-visible { outline: 1px solid var(--gold); outline-offset: 1px; }
.ptattr.atch .atvn { display: block; margin-bottom: 2px; color: #f3e6c4; font-size: 13px; }
.ptattr.atch .mod { color: #a9bcff; font-size: 13px; line-height: 1.35; }
.ptattr.atch .atopt[aria-pressed="true"] { background: linear-gradient(#3a3020, #1f1a10); border-color: #e8c470; }
.ptattr.atch .ax { text-align: center; }
.ptattr.atch .atnote { font-size: 12px; }
/* ---------- Мир: очки и бонусы, акты, испытания Восхождения ---------- */
.wd h1 { margin-bottom: 12px; }
.wd h2 { margin: 26px 0 10px; color: var(--gold); scroll-margin-top: 90px; }
.wd h2 a { color: inherit; }
.wd h3 { margin: 16px 0 8px; color: #cdb98a; font-size: 15px; }
.wdsum { margin-left: 6px; color: var(--muted); font-size: 14px; font-weight: 500; }
.wdcnt { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.wdcnt > * { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px; background: #19161c; border: 1px solid #28242c; border-radius: 8px; color: var(--muted); font-size: 14px; }
.wdcnt > a:hover { border-color: var(--gold-dim); }
.wdcnt b { color: #f0cd75; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wdcnt a.kwl { color: inherit; }
.wdgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; align-items: start; }
.wdc { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; background: #19161c; border: 1px solid #28242c; border-radius: 8px; scroll-margin-top: 90px; }
.wdc:target { border-color: var(--gold); }
.wdc > img, .wdo > img { flex: none; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.wdc.wdp { border-color: #4a3d22; background: #1d1913; }
.wdn { color: #f3e6c4; font-size: 15px; line-height: 1.3; }
.wdplus { margin-left: 8px; padding: 0 6px; border-radius: 6px; background: #3a2f17; color: #f0cd75; font-size: 13px; font-weight: 600; }
.wdt { margin-top: 3px; color: var(--blue); font-size: 14px; line-height: 1.4; }
.wdt a.kwl { color: inherit; }
.wdsrc { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.wdsrc i { margin: 0 5px; color: #5d5764; font-style: normal; }
.wdsrc a.wda { color: var(--muted); text-decoration: underline dotted #5d5764; text-underline-offset: 3px; }
.wdsrc a.wda:hover { color: var(--text); }
.wdq { color: #cdb98a; }
.wdch { grid-column: 1 / -1; flex-direction: column; gap: 8px; }
.wdchh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.wdchh .wdsrc { margin: 0; }
.wdpick { padding: 0 7px; border: 1px solid #4a3d22; border-radius: 6px; color: #cdb98a; font-size: 12px; }
.wdopts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; width: 100%; }
.wdo { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; background: #141216; border: 1px solid #241f28; border-radius: 8px; }
.wdo .wdn { font-size: 14px; }
.wdinfo { max-width: 820px; color: var(--muted); }
.wdinfo a.kwl { color: var(--text); }
.wdkeys { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.wdtab { width: auto; border-collapse: collapse; min-width: 260px; font-size: 14px; }
.wdfd { color: var(--muted); }
.wdtab th, .wdtab td { padding: 6px 14px; border: 1px solid #28242c; text-align: center; }
.wdtab th { color: var(--muted); font-weight: 500; }
.wdtab td { font-variant-numeric: tabular-nums; }
.wd [data-hint]:hover::after { content: attr(data-hint); position: absolute; top: calc(100% + 6px); left: 50%; z-index: 20; transform: translateX(-50%); padding: 3px 8px; white-space: nowrap; background: rgba(10, 8, 12, .95); border: 1px solid var(--line); border-radius: 6px; color: var(--text); font-size: 12px; font-style: normal; font-weight: 400; pointer-events: none; }
@media (max-width: 640px) {
  .wdgrid, .wdopts { grid-template-columns: 1fr; }
}
/* Древо пассивов: «Задания N/25» — какие задания пройдены (предел очков) */
.ptqb { position: relative; }
.ptqb > button { padding: 4px 12px; background: #19161c; border: 1px solid #28242c; border-radius: 8px; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; font-variant-numeric: tabular-nums; }
.ptqb > button:hover, .ptqb > button[aria-expanded="true"] { color: var(--text); border-color: #3a3440; }
.ptqb > button.part { color: #f0cd75; border-color: #6b5527; }
.ptqb > button::after { content: ' ▾'; color: #6f6878; }
.ptqbox { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; width: min(420px, 92vw); max-height: 70vh; overflow: auto; padding: 6px; background: #141216; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.ptqbox .qbact { display: block; width: 100%; margin: 6px 0 2px; padding: 2px 6px; background: none; border: 0; color: var(--gold); font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.ptqbox .qbact:hover { color: #f3e6c4; }
.ptqbox .qbrow { display: grid; grid-template-columns: auto 32px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.ptqbox .qbrow:hover { background: #1d1a21; }
.ptqbox .qbrow:has(input:not(:checked)) { opacity: .45; }
.ptqbox .qbrow input { accent-color: #c9a24e; }
.ptqbox .qbrow b { display: block; color: #f3e6c4; font-size: 13px; font-weight: 500; }
.ptqbox .qbrow small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.ptqbox .qbrow em { color: #f0cd75; font-size: 13px; font-style: normal; font-weight: 600; }
/* «Мир → Акты»: окно мира как в игре — картинка карты акта; поверх кнопок игры на картинке (вкладки актов, ромб подземного уровня) —
   невидимые кнопки: радиокнопки .wdr (акт) и флажок .wdu (подземный уровень); метки — подсказки как в игре */
.wdr, .wdu, .wdp { position: absolute; opacity: 0; pointer-events: none; }
.wdview { position: relative; margin: 4px 0 14px; aspect-ratio: 16 / 9; background: #0c0a0e; border: 1px solid #28242c; border-radius: 8px; overflow: hidden; }
.wdl { position: absolute; inset: 0; display: none; }
.wdl > img { display: block; width: 100%; height: 100%; }
.wdugb { display: none; }
#wa-1:checked ~ .wdview .a1.top, #wa-2:checked ~ .wdview .a2.top, #wa-3:checked ~ .wdview .a3.top, #wa-4:checked ~ .wdview .a4.top, #wa-6:checked ~ .wdview .a6.top { display: block; }
#wa-1:checked ~ .wdu:checked ~ .wdview .a1.top, #wa-2:checked ~ .wdu:checked ~ .wdview .a2.top, #wa-3:checked ~ .wdu:checked ~ .wdview .a3.top { display: none; }
#wa-1:checked ~ .wdu:checked ~ .wdview .a1.low, #wa-2:checked ~ .wdu:checked ~ .wdview .a2.low, #wa-3:checked ~ .wdu:checked ~ .wdview .a3.low { display: block; }
#wa-1:checked ~ .wdview .wdugb, #wa-2:checked ~ .wdview .wdugb, #wa-3:checked ~ .wdview .wdugb { display: block; }
/* акт 3: прошлое (флажок .wdp, «Древний Утцааль») — вместо настоящего; с подземным — подземный уровень прошлого. Переключают
   табличка на карте (.wdpc, подсказка — куда переключит) и кнопка под картой (.wdpb) */
#wa-3:checked ~ .wdp:checked ~ .wdview .a3.top, #wa-3:checked ~ .wdp:checked ~ .wdview .a3.low { display: none; }
#wa-3:checked ~ .wdu:not(:checked) ~ .wdp:checked ~ .wdview .a3.past, #wa-3:checked ~ .wdu:checked ~ .wdp:checked ~ .wdview .a3.plow { display: block; }
.wdpc { position: absolute; z-index: 4; display: none; border-radius: 4px; cursor: pointer; }
#wa-3:checked ~ .wdview .wdpc { display: block; }
.wdpc:hover { box-shadow: 0 0 0 1px #f0cd75, 0 0 12px 2px rgba(240, 205, 117, .45); }
.wdp:checked ~ .wdview .wdpc[data-back]:hover::after { content: attr(data-back); }
.wdpb { display: none; margin: -6px 0 10px; padding: 5px 11px; background: #19161c; border: 1px solid #28242c; border-radius: 8px; color: var(--muted); font-size: 13px; cursor: pointer; }
.wdpb:hover { color: var(--text); border-color: #3a3440; }
#wa-3:checked ~ .wdpb { display: inline-block; }
.wdp:checked ~ .wdpb { color: #f0cd75; border-color: #6b5527; background: #221d16; }
.wdp:focus-visible ~ .wdpb { outline: 1px dashed rgba(240, 205, 117, .6); }
.wdak, .wdugb { position: absolute; z-index: 4; cursor: pointer; border-radius: 4px; }
.wdugb { aspect-ratio: 1; border-radius: 50%; }
.wdugb:hover { box-shadow: 0 0 0 1px #f0cd75, 0 0 12px 2px rgba(240, 205, 117, .45); }
/* выбранный акт — короткая золотая черта под надписью вкладки (наведение — та же, бледная); ::after занят подсказкой data-hint */
.wdak::before { content: ''; position: absolute; left: 27%; right: 27%; top: 88%; height: 2px; border-radius: 1px; background: #f0cd75; box-shadow: 0 0 6px 1px rgba(240, 205, 117, .7); opacity: 0; transition: opacity .12s; }
.wdak:hover::before { opacity: .5; }
#wa-1:checked ~ .wdview [for="wa-1"]::before, #wa-2:checked ~ .wdview [for="wa-2"]::before, #wa-3:checked ~ .wdview [for="wa-3"]::before, #wa-4:checked ~ .wdview [for="wa-4"]::before, #wa-6:checked ~ .wdview [for="wa-6"]::before { opacity: 1; }
.wdu:checked ~ .wdview .wdugb { box-shadow: 0 0 0 2px #f0cd75, 0 0 14px 4px rgba(240, 205, 117, .55); }
.wdu:focus-visible ~ .wdview .wdugb { outline: 1px dashed rgba(240, 205, 117, .6); }
.wd .wdugb[data-hint]:hover::after { left: auto; right: 0; transform: none; white-space: normal; width: 260px; }
.wdpin { position: absolute; z-index: 1; display: block; width: 2.6%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; cursor: help; }
/* наведение — лёгкое свечение самой метки, без обводки */
.wdpin { mix-blend-mode: screen; }
.wdpin::before { content: ''; position: absolute; inset: -45%; border-radius: 50%; background: radial-gradient(circle closest-side, rgba(255, 240, 205, .38), rgba(255, 226, 165, .14) 55%, transparent); opacity: 0; transition: opacity .12s; pointer-events: none; }
.wdpin:hover, .wdpin:focus-visible { z-index: 3; outline: none; }
.wdpin:hover::before, .wdpin:focus-visible::before { opacity: 1; }
/* ссылка на область (#a-…: из мини-гайда, «Очков и бонусов», «Испытаний») — метка заметно вспыхивает: яркое золотое свечение и
   расходящееся кольцо, 4 раза; повторный клик (класс wdagain) — другое имя анимации, она идёт с начала */
.wdpin::after { content: ''; position: absolute; inset: -8%; border: 3px solid #ffd77a; border-radius: 50%; box-shadow: 0 0 12px 3px rgba(255, 196, 82, .85), inset 0 0 8px 2px rgba(255, 196, 82, .6); opacity: 0; pointer-events: none; }
.wdpin:target { z-index: 3; }
.wdpin:target::before { inset: -95%; background: radial-gradient(circle closest-side, rgba(255, 224, 150, .9), rgba(255, 190, 80, .4) 50%, transparent); animation: wdping 1.2s ease-in-out 4; }
.wdpin:target::after { animation: wdring 1.2s ease-out 4; }
.wdpin.wdagain:target::before { animation-name: wdping2; }
.wdpin.wdagain:target::after { animation-name: wdring2; }
@keyframes wdping { 50% { opacity: 1; } }
@keyframes wdping2 { 50% { opacity: 1; } }
@keyframes wdring { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes wdring2 { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(2.8); opacity: 0; } }
/* важная метка (очки, бонус, испытание) — «+» как в игре (кнопка «есть очки пассивных умений») у правого верхнего края */
.wdgift { position: absolute; z-index: 2; width: max(1.7%, 13px); aspect-ratio: 1; margin: -1.25% 0 0 1.25%; transform: translate(-50%, -50%); pointer-events: none; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .9)); transition: filter .12s; }
.wdgift img { display: block; width: 100%; height: 100%; }
.wdpin:hover + .wdgift, .wdpin:focus-visible + .wdgift, .wdpin:target + .wdgift { filter: drop-shadow(0 0 2px #000) brightness(1.4); }
/* мини-гайд под картой: очки и бонусы выбранного акта; название области — ссылка на метку, растянута на всю строку */
.wgd > section { display: none; }
#wa-1:checked ~ .wgd .g1, #wa-2:checked ~ .wgd .g2, #wa-3:checked ~ .wgd .g3, #wa-4:checked ~ .wgd .g4, #wa-6:checked ~ .wgd .g6 { display: block; }
.wgd h2 { margin: 6px 0 8px; font-size: 18px; }
.wgl { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 6px; align-items: start; margin: 0; padding: 0; list-style: none; }
.wgr { position: relative; display: flex; gap: 10px; align-items: center; padding: 7px 10px; background: #141216; border: 1px solid #241f28; border-radius: 8px; }
.wgr:has(a.wga) { cursor: pointer; }
.wgr:has(a.wga:hover) { border-color: #4a3d22; background: #19161b; }
.wgr a.wga::after { content: ''; position: absolute; inset: 0; border-radius: 8px; }
.wgr a:not(.wga) { position: relative; z-index: 1; }
.wgi { flex: none; width: 40px; height: 40px; object-fit: contain; }
.wgb { flex: 1; min-width: 0; }
.wgn { color: #e3d4ae; font-size: 15px; }
.wgn .wdpick { margin-left: 4px; vertical-align: 1px; }
.wgn a.wgx { color: inherit; text-decoration: underline dotted #6f6650; text-underline-offset: 3px; }
.wgt { color: #8fa6d8; font-size: 13.5px; line-height: 1.35; }
.wgo { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.wgo > div { display: flex; gap: 6px; align-items: center; }
.wgo > div + div { padding-top: 3px; border-top: 1px solid #241f28; }
.wgoi { flex: none; width: 26px; height: 26px; object-fit: contain; }
.wgs { margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.wgs i { margin: 0 5px; color: #5d5764; font-style: normal; }
.wgs a.wga { color: var(--muted); text-decoration: underline dotted #5d5764; text-underline-offset: 3px; }
.wgr:has(a.wga:hover) a.wga { color: var(--text); }
.wgf { flex: none; width: 48px; height: 48px; object-fit: contain; }
@media (max-width: 640px) {
  .wgl { grid-template-columns: 1fr; }
}
.wdanc { display: block; scroll-margin-top: 90px; }
/* Подсказка метки как в игре: фон окошка игры тремя полосами — верх (название и полоса уровня), середина тянется, низ.
   --w — ширина; высоты верха — доли картинки 528×114 (название 64, полоса 50) */
.wdtip { --w: 400px; position: absolute; z-index: 40; box-sizing: border-box; width: var(--w); padding: calc(var(--w) * .2159) 0 12px; color: #c9c1b3; font-size: 14px; line-height: 1.35; text-align: center; pointer-events: none; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .75));
  background: url(img/world/popup-top.png) top / 100% auto no-repeat, url(img/world/popup-bot.png) bottom / 100% auto no-repeat, url(img/world/popup-mid.png) top / 100% auto repeat-y;
  background-clip: border-box, border-box, content-box; }
.wdtip.tt.pin { box-shadow: none; filter: drop-shadow(0 0 1px var(--gold-dim)) drop-shadow(0 10px 24px rgba(0, 0, 0, .75)); }
.wdth { margin-top: calc(var(--w) * -.2159); height: calc(var(--w) * .1212); padding: 0 34px; overflow: hidden; color: #e3d4ae; font-family: Georgia, serif; font-size: 19px; line-height: calc(var(--w) * .1212 + 4px); white-space: nowrap; text-overflow: ellipsis; }
.wdth .wdplus { font-family: inherit; vertical-align: 2px; }
.wdtl { height: calc(var(--w) * .0947); padding: 0 34px; overflow: hidden; color: #cfc7b8; font-size: 14.5px; line-height: calc(var(--w) * .0947); white-space: nowrap; text-overflow: ellipsis; }
.wdtf { padding: 8px 34px 0; color: #8f897c; font-style: italic; }
.wdtw { color: #f2efe8; font-style: normal; }
.wdtc { margin: 9px 34px 0; padding-top: 7px; border-top: 1px solid transparent; border-image: linear-gradient(90deg, transparent, #5c4b2c, transparent) 1; }
.wdtc .wdtf { padding: 2px 0 0; }
.wdtch { margin-bottom: 2px; color: #85775a; font-size: 12px; letter-spacing: .04em; }
.wdtr { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 2px 0; color: #d9d2c4; }
.wdtr > img { flex: none; width: 22px; height: 22px; object-fit: contain; }
.wdtd .wdtr { color: #8f897c; }
.tt.pin .wdtr[data-tip]:hover, .tt.pin a.wdtr:hover, .wdpanel .wdtr[data-tip]:hover { color: #fff; cursor: help; }
.tt.pin .wdtr[data-tip]:hover > span, .wdpanel .wdtr[data-tip] > span { text-decoration: underline dotted #6f6650; text-underline-offset: 3px; }
a.wdtr { color: #d9d2c4; }
.wdtq .wdtr { color: #c7d3ea; }
/* задание: шаги (цель → где), у шагов этой метки — запись журнала */
.wdts { margin: 9px 30px 0; padding: 0 0 0 20px; color: #8f897c; font-size: 13.5px; text-align: left; }
.wdts li { margin: 3px 0; }
.wdts li b { color: #c9c1b3; font-weight: 400; }
.wdts li i { margin-left: 6px; color: #786f60; font-size: 12px; font-style: normal; }
.wdts li i::before { content: '→ '; }
.wdts li p { display: none; margin: 2px 0 5px; color: #a39b8c; font-size: 12.5px; font-style: italic; }
.wdts li.here b { color: #f0cd75; }
.wdts li.here p { display: block; }
.wdtrw { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.wdtrw span { display: flex; flex-direction: column; align-items: center; gap: 1px; max-width: 110px; }
.wdtrw small { color: #a39b8c; font-size: 11.5px; line-height: 1.2; }
/* очки и бонусы: картинка, название, что даёт */
.wdtgs { margin: 8px 30px 0; text-align: left; }
.wdtg { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; }
.wdtg + .wdtg { border-top: 1px solid #2a251f; }
.wdtg > img { flex: none; object-fit: contain; }
.wdtg b { display: block; color: #e3d4ae; font-weight: 400; }
.wdtx { color: #8fa6d8; font-size: 13.5px; }
.wdtx a.kwl { color: inherit; }
.wdtgc .wdtgs { margin: 2px 0 0; }
.wdtgc .wdtg { align-items: center; }
.wdtgc .wdtg > img { width: 52px; height: 52px; }
.wdtip .althint { padding: 7px 0 0; text-align: center; }
/* телефон: наведения нет — нажатая метка открывает подсказку под картой, строки в ней — следующую */
.wdpanel:empty { display: none; }
.wdpanel { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 0 12px; }
.wdpanel .wdtip { --w: min(400px, calc(100vw - 32px)); position: relative; pointer-events: auto; }
/* телефон: вкладки на картинке мелкие — те же кнопки строкой под картой */
.wdmob { display: none; }
@media (max-width: 640px) {
  .wdmob { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 10px; }
  .wdmob label { padding: 5px 11px; background: #19161c; border: 1px solid #28242c; border-radius: 8px; color: var(--muted); font-size: 13px; cursor: pointer; }
  .wdmob .wdmu { display: none; }
  #wa-1:checked ~ .wdmob .wdmu, #wa-2:checked ~ .wdmob .wdmu, #wa-3:checked ~ .wdmob .wdmu { display: block; }
  #wa-1:checked ~ .wdmob [for="wa-1"], #wa-2:checked ~ .wdmob [for="wa-2"], #wa-3:checked ~ .wdmob [for="wa-3"], #wa-4:checked ~ .wdmob [for="wa-4"], #wa-6:checked ~ .wdmob [for="wa-6"], .wdu:checked ~ .wdmob .wdmu { color: #f0cd75; border-color: #6b5527; background: #221d16; }
}
