/* Тёмная «каменная» тема в духе Path of Exile. Все цвета — переменные здесь. */
:root {
  --bg: #0d0b09;
  --panel: #1a1612;
  --panel-2: #231d17;
  --line: #3a3027;
  --text: #e6dcc8;
  --muted: #9b8e7a;
  --gold: #c8a25a;
  --gold-hi: #f0cf86;
  --red: #b3261e;
  --life: #c0392b;
  --mana: #2f5fbf;
  --es: #5ec8e6;
  --xp: #8e5bd0;
  --mob: #8a5a2b;
  --ok: #5fae5b;
  /* редкости вещей */
  --r-normal: #a3a3a3;   /* обычные — серый */
  --r-magic: #5b86ff;    /* магические — синий */
  --r-rare: #f2d33c;     /* редкие — жёлтый */
  --r-set: #3ecf6a;      /* сетовые — зелёный */
  --r-unique: #e8812e;   /* уникальные — оранжевый */
  --r-mythic: #b06bff;   /* мифики — фиолетовый */
  --radius: 10px;
  --tabs-h: 62px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overscroll-behavior: none;
}
body {
  background:
    radial-gradient(ellipse at top, rgba(200, 162, 90, .08), transparent 60%),
    var(--bg);
}
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ───────── HUD ───────── */
#hud {
  position: sticky; top: 0; z-index: 5;
  padding: 10px 16px 8px;
  background: linear-gradient(var(--bg) 70%, rgba(13, 11, 9, .85));
  border-bottom: 1px solid var(--line);
}
.hud-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.hud-name b { font-family: 'Cormorant SC', Georgia, serif; color: var(--gold-hi); letter-spacing: .3px; }
.hud-gold { color: var(--gold); font-weight: 600; }
.bars { display: flex; gap: 6px; }
.bars .bar { flex: 1; }

.bar {
  position: relative; height: 18px; border-radius: 4px; overflow: hidden;
  background: #000; border: 1px solid var(--line);
}
.bar i { position: absolute; inset: 0; width: 0; transition: width .35s ease; }
.bar span {
  position: relative; display: block; text-align: center;
  font-size: 11px; line-height: 16px; font-weight: 700; text-shadow: 0 1px 2px #000;
}
.bar.thin { height: 4px; margin-top: 5px; border: 0; }
.bar.life i { background: linear-gradient(#e0473a, var(--life) 60%, #7a1a12); }
.bar.mana i { background: linear-gradient(#4f85e8, var(--mana) 60%, #1b3a7a); }
.bar.es i { background: linear-gradient(#a5ecff, var(--es) 60%, #2a7d96); }
.bar.xp i { background: var(--xp); }
.bar.mob i { background: linear-gradient(#c08040, var(--mob) 60%, #4d2f12); }
.bar.big { height: 24px; }
.bar.big span { line-height: 22px; font-size: 13px; }

/* ───────── основная область ───────── */
#view { padding: 12px 16px calc(var(--tabs-h) + 24px + env(safe-area-inset-bottom, 0px)); max-width: 640px; margin: 0 auto; }

.card {
  background: linear-gradient(var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 4px 16px rgba(0, 0, 0, .4);
}
h1, h2, h3 { font-family: 'Cormorant SC', Georgia, serif; color: var(--gold-hi); margin: 0 0 6px; font-weight: 700; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 15px; }

/* текст экранов игры (Telegram-HTML) */
.rich { white-space: pre-wrap; word-wrap: break-word; }
.rich b, .rich strong { color: var(--gold-hi); }
.rich i, .rich em { color: #cbbd9f; }
.rich code, .rich pre { font: 12.5px/1.4 ui-monospace, Menlo, monospace; color: #d9c9a5; }
.rich pre { white-space: pre-wrap; margin: 4px 0; }
.rich blockquote {
  margin: 6px 0; padding: 6px 10px; border-left: 3px solid var(--gold);
  background: rgba(0, 0, 0, .25); border-radius: 0 6px 6px 0;
}
.rich a { color: var(--es); }
.rich .tg-spoiler { background: var(--muted); color: transparent; border-radius: 3px; cursor: pointer; }
.rich .tg-spoiler.open { background: none; color: inherit; }

/* ───────── кнопки ───────── */
.btns { display: flex; flex-direction: column; gap: 8px; }
.btn-row { display: flex; gap: 8px; }
.btn {
  flex: 1; min-height: 44px; padding: 10px 12px;
  border: 1px solid #5a4630; border-radius: 8px;
  background: linear-gradient(#3a2e22, #261e16);
  color: var(--text); font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: transform .08s, filter .15s;
}
.btn:active { transform: scale(.97); filter: brightness(1.2); }
.btn.primary { border-color: #a27d3c; background: linear-gradient(#8a6526, #5c4116); color: #fff3d6; }
.btn.danger { border-color: #8f2a22; background: linear-gradient(#7a1f18, #4a120d); color: #ffd9d4; }
.btn.ghost { background: transparent; }
.btn[disabled] { opacity: .45; cursor: default; }

.input-row { display: flex; gap: 8px; margin-top: 12px; }
.input-row input {
  flex: 1; min-height: 44px; padding: 0 12px; border-radius: 8px;
  border: 1px solid #5a4630; background: #120f0c; color: var(--text); font: inherit;
}

/* ───────── локация ───────── */
.zone-head { display: flex; gap: 12px; align-items: center; }
.zone-emoji { font-size: 44px; line-height: 1; filter: drop-shadow(0 0 12px rgba(200, 162, 90, .35)); }
.zone-desc { margin-top: 8px; font-style: italic; color: #cbbd9f; }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; margin: 10px 0 4px; color: var(--muted); }
.boss-teaser { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(179, 38, 30, .12); border: 1px solid rgba(179, 38, 30, .35); }

/* ───────── бой ───────── */
.mob-card { text-align: center; position: relative; }
.mob-card.boss { border-color: #8f2a22; box-shadow: 0 0 24px rgba(179, 38, 30, .25); }
.mob-emoji { font-size: 64px; line-height: 1.1; display: inline-block; }
.mob-name { font-family: 'Cormorant SC', Georgia, serif; font-size: 19px; color: var(--gold-hi); }
.mob-sub { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.mob-info { font-size: 12.5px; margin-top: 8px; }
.effects { font-size: 13px; color: #e6a95e; margin-top: 8px; }
.log { font-size: 13px; max-height: 190px; overflow-y: auto; }
.log div { padding: 3px 0; border-bottom: 1px solid rgba(58, 48, 39, .5); }
.log div:last-child { border: 0; }

.shake { animation: shake .3s; }
@keyframes shake {
  20% { transform: translateX(-6px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(3px); }
}
.dmg {
  position: absolute; left: 50%; top: 30%; transform: translateX(-50%);
  font-weight: 800; font-size: 22px; color: #ffd36b; text-shadow: 0 2px 4px #000;
  pointer-events: none; animation: rise .9s ease-out forwards;
}
.dmg.heal { color: var(--ok); }
@keyframes rise { to { transform: translate(-50%, -50px); opacity: 0; } }

/* ───────── карта ───────── */
.act-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; padding-bottom: 2px; }
.act-tabs .btn { flex: 0 0 auto; min-height: 36px; padding: 6px 12px; }
.act-tabs .btn.on { border-color: var(--gold); color: var(--gold-hi); }
.zone-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 12px; margin-bottom: 8px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; cursor: pointer;
}
.zone-item .ze { font-size: 24px; }
.zone-item .zt { flex: 1; }
.zone-item small { display: block; color: var(--muted); }
.zone-item.here { border-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(200, 162, 90, .3); }
.zone-item.locked { opacity: .55; cursor: default; }

/* ───────── сумка ───────── */
.r-normal { --rc: var(--r-normal); } .r-magic { --rc: var(--r-magic); } .r-rare { --rc: var(--r-rare); }
.r-set { --rc: var(--r-set); } .r-unique { --rc: var(--r-unique); } .r-mythic { --rc: var(--r-mythic); }
.rname { color: var(--rc, var(--text)) !important; }

/* ───────── иконки вещей ───────── */
.ico {
  --rc0: var(--rc, #4a4036);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  border: 2px solid var(--rc0); border-radius: 8px; color: var(--rc0);
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc0) 22%, #120f0c), #0b0907 75%);
  box-shadow: inset 0 0 10px color-mix(in srgb, var(--rc0) 35%, transparent), 0 0 8px color-mix(in srgb, var(--rc0) 30%, transparent);
}
.ico svg { width: 66%; height: 66%; fill: color-mix(in srgb, currentColor 18%, transparent); stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 2px color-mix(in srgb, currentColor 50%, transparent)); }
.ico.r-empty { --rc0: #3a3027; box-shadow: none; opacity: .55; }
.ico-xs { width: 22px; height: 22px; border-width: 1.5px; border-radius: 5px; vertical-align: -6px; margin-right: 5px; }
.ico-sm { width: 30px; height: 30px; border-radius: 6px; }
.ico-md { width: 44px; height: 44px; }
.ico-lg { width: 64px; height: 64px; border-radius: 10px; }
.ico-fill { width: 100%; height: 100%; }
.ico { position: relative; }
.ico.r-mythic::after {
  content: ''; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: 0 0 16px color-mix(in srgb, var(--rc0) 70%, transparent); animation: glowpulse 2.4s ease-in-out infinite;
}
@keyframes glowpulse { 50% { opacity: 1; } }

/* блок вещи в тексте экрана */
.rich blockquote.item-quote { border-left-color: var(--rc); background: color-mix(in srgb, var(--rc) 6%, rgba(0, 0, 0, .25)); }

/* кнопка с вещью */
.btn.item-btn { display: flex; align-items: center; gap: 10px; text-align: left; border-left: 3px solid var(--rc); }

/* строка вещи в списке */
.item-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 8px 10px; margin-bottom: 6px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer;
}
.item-row:active { transform: scale(.98); }
.item-text { min-width: 0; }
.item-text b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-text small { color: var(--muted); font-size: 12px; }

/* карточка вещи */
.item-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.item-name { font-size: 17px; }

/* кукла снаряжения */
.doll {
  display: grid; gap: 6px 8px; max-width: 320px; margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 74px);
  grid-template-areas:
    "weapon helmet amulet"
    "weapon body   ring1"
    "gloves body   ring2"
    "boots  belt   rod";
}
.doll-cell {
  display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-width: 0; min-height: 0; padding: 0;
  border: 0; background: none; color: var(--text); font: inherit; cursor: pointer;
}
.doll-cell .ico { flex: 1; min-height: 0; width: 100%; height: auto; border-radius: 10px; }
.doll-cell .ico svg { width: auto; height: 62%; }
.doll-cell small { font-size: 10.5px; line-height: 1.15; text-align: center; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doll-cell.empty { cursor: default; }
.doll-cell:not(.empty):active .ico { transform: scale(.96); }
.slot-weapon { grid-area: weapon; } .slot-helmet { grid-area: helmet; } .slot-amulet { grid-area: amulet; }
.slot-body { grid-area: body; } .slot-ring1 { grid-area: ring1; } .slot-ring2 { grid-area: ring2; }
.slot-gloves { grid-area: gloves; } .slot-belt { grid-area: belt; } .slot-boots { grid-area: boots; } .slot-rod { grid-area: rod; }
.slot-weapon .ico svg, .slot-body .ico svg { height: 42%; }

/* ───────── заставка ───────── */
.splash {
  height: 180px; margin: -12px -16px 12px; background: url(/assets/avatars/avatar_1.png) center/cover;
  mask-image: linear-gradient(#000 60%, transparent);
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
}

/* ───────── нижние вкладки ───────── */
#tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; height: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: linear-gradient(rgba(26, 22, 18, .96), #0d0b09); border-top: 1px solid var(--line);
}
#tabs button {
  flex: 1; border: 0; background: none; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer;
}
#tabs button span { display: block; font-size: 22px; line-height: 1.2; filter: grayscale(.6); }
#tabs button.on { color: var(--gold-hi); }
#tabs button.on span { filter: none; }
#tabs button b { font-weight: inherit; }

/* ───────── всплывашки и окна ───────── */
#toasts { position: fixed; top: 10px; left: 16px; right: 16px; z-index: 20; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.toast {
  margin: 0 auto; max-width: 480px; padding: 10px 14px; border-radius: 8px;
  background: rgba(35, 29, 23, .97); border: 1px solid var(--gold); color: var(--text);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .6); white-space: pre-wrap; animation: fade .25s;
}
@keyframes fade { from { opacity: 0; transform: translateY(-8px); } }
#modal {
  position: fixed; inset: 0; z-index: 15; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .6); padding: 16px;
}
.modal-card { width: 100%; max-width: 520px; max-height: 80vh; overflow-y: auto; margin-bottom: env(safe-area-inset-bottom, 0px); }
#loader {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 30;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: load 1s linear infinite;
}
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ───────── занятость ───────── */
body.busy .btn, body.busy .tile, body.busy .item-row, body.busy .doll-cell, body.busy .zone-item { pointer-events: none; }
body.busy #view { opacity: .85; transition: opacity .2s .15s; }

/* ───────── город ───────── */
.heal-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; min-height: 84px; padding: 8px 4px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: linear-gradient(var(--panel-2), var(--panel));
  color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.2;
}
.tile .ti { font-size: 28px; line-height: 1; }
.tile:active { transform: scale(.96); }
.tile.alert { border-color: var(--gold); }
.tile.alert::after {
  content: ''; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px;
  border-radius: 50%; background: #e0473a; box-shadow: 0 0 6px #e0473a;
}

/* ───────── герой ───────── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); font-size: 13px; }
.attr-list { display: flex; flex-direction: column; }
.attr-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(58, 48, 39, .6); }
.attr-row:last-child { border-bottom: 0; }
.attr-name { flex: 1; min-width: 0; }
.attr-name small { display: block; color: var(--muted); font-size: 12px; }
.attr-val { font-size: 18px; color: var(--gold-hi); min-width: 36px; text-align: right; }
.attr-row .plus { flex: 0 0 auto; min-height: 30px; padding: 0 12px; font-size: 18px; line-height: 1; }
.notice { margin-top: 10px; color: var(--gold-hi); font-weight: 600; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.stat small { display: block; color: var(--muted); font-size: 11.5px; }
.stat b { font-size: 17px; color: var(--text); }
.res-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.res { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.res b { font-size: 16px; }
.res.fire b { color: #ff7a4d; } .res.cold b { color: #7cc7ff; } .res.light b { color: #ffe066; } .res.chaos b { color: #c27dff; }
.res.capped { border-color: var(--ok); }
.res.neg { border-color: var(--red); }

/* ───────── эффекты боя ───────── */
#fx { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 16; pointer-events: none; }
.fx-text {
  position: fixed; z-index: 13; transform: translate(-50%, -50%); pointer-events: none;
  font-weight: 800; font-size: 20px; text-shadow: 0 2px 4px #000, 0 0 10px currentColor;
  animation: rise 1s ease-out forwards;
}
.fx-vignette {
  position: fixed; inset: 0; z-index: 11; pointer-events: none; will-change: opacity;
  background: radial-gradient(ellipse at center, transparent 55%, color-mix(in srgb, var(--vc) 70%, transparent) 100%);
  animation: vig .55s ease-out forwards;
}
.fx-flash { position: fixed; inset: 0; z-index: 11; pointer-events: none; will-change: opacity; animation: fxflash .2s ease-out forwards; }
@keyframes fxflash { from { opacity: var(--fa); } to { opacity: 0; } }
@keyframes vig { from { opacity: .9; } to { opacity: 0; } }
.shake-big { animation: shakebig .35s; will-change: transform; }
@keyframes shakebig {
  15% { transform: translate(-8px, 3px); } 30% { transform: translate(7px, -4px); } 45% { transform: translate(-5px, 2px); }
  60% { transform: translate(4px, -2px); } 80% { transform: translate(-2px, 1px); }
}

/* ───────── сумка: статы вещи ───────── */
.item-stats { font-size: 12px; color: #cbbd9f; margin-top: 2px; white-space: normal; line-height: 1.35; }
.item-stats b { color: var(--text); font-weight: 600; }

/* вещь в магазине — нажимается целиком */
.rich blockquote.tap { cursor: pointer; transition: transform .08s, background .15s; }
.rich blockquote.tap:active { transform: scale(.98); background: color-mix(in srgb, var(--rc) 16%, rgba(0, 0, 0, .25)); }
.rich blockquote.tap::after { content: '›'; float: right; margin-top: -1.4em; color: var(--rc); font-size: 22px; line-height: 1; }

/* ───────── дерево пассивок ───────── */
.tree-points { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.tree-points .pts { font-weight: 700; color: var(--muted); }
.tree-points .pts.on { color: var(--gold-hi); text-shadow: 0 0 10px rgba(240, 207, 134, .5); }
.tree-tabs .btn { border-color: color-mix(in srgb, var(--gc) 45%, #5a4630); }
.tree-tabs .btn.on { border-color: var(--gc); color: #fff; background: linear-gradient(color-mix(in srgb, var(--gc) 35%, #3a2e22), #261e16); }
.tree-tabs .btn small { color: var(--muted); font-weight: 500; }
.branch { padding: 10px 10px 4px; }
.branch.flash { animation: brflash 1.2s; }
@keyframes brflash { 30% { box-shadow: 0 0 0 2px var(--gc), 0 0 24px color-mix(in srgb, var(--gc) 50%, transparent); } }
.branch-head { display: flex; justify-content: space-between; padding: 0 4px; font-size: 14px; }
.constellation { width: 100%; height: auto; display: block; overflow: visible; }
.constellation .link { stroke: #3a3027; stroke-width: 2; }
.constellation .link.on { stroke: var(--gc); stroke-width: 2.5; }
.constellation .node { cursor: pointer; }
.constellation .hit { fill: transparent; }
.constellation .dot { fill: #15110d; stroke: #4a4036; stroke-width: 2; transition: transform .1s; transform-box: fill-box; transform-origin: center; }
.constellation .node:active .dot { transform: scale(1.25); }
.constellation .node.taken .dot { fill: var(--gc); stroke: #fff6dc; stroke-width: 1.5; filter: drop-shadow(0 0 5px var(--gc)); }
.constellation .node.avail .dot { stroke: var(--gc); stroke-width: 2.5; }
.constellation .node.avail.ready .dot { animation: nodepulse 1.4s ease-in-out infinite; }
@keyframes nodepulse { 50% { fill: color-mix(in srgb, var(--gc) 40%, #15110d); stroke-width: 3.5; } }
.constellation .node.k-notable .dot { stroke-width: 3; }
.constellation .node.ks .dot { fill: #120d18; stroke: #6a5a7a; }
.constellation .node.ks.taken .dot { fill: #c27dff; stroke: #fff; filter: drop-shadow(0 0 8px #c27dff); }
.constellation .node.ks.avail .dot { stroke: #c27dff; }

.ks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.ks-tile {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 6px; text-align: center;
  border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(var(--panel-2), var(--panel));
  color: var(--text); font: inherit; font-size: 13px; cursor: pointer;
}
.ks-tile small { color: var(--muted); font-size: 11px; }
.ks-gem { font-size: 22px; width: 44px; height: 44px; display: grid; place-items: center;
  border: 2px solid #4a4036; border-radius: 50%; background: #120d18; }
.ks-tile.locked { opacity: .5; }
.ks-tile.avail .ks-gem { border-color: #c27dff; box-shadow: 0 0 10px rgba(194, 125, 255, .5); }
.ks-tile.taken { border-color: #c27dff; box-shadow: inset 0 0 18px rgba(194, 125, 255, .2); }
.ks-tile.taken .ks-gem { border-color: #fff; background: radial-gradient(#c27dff, #3a1a5c); }

.node-sheet .sheet-gem {
  width: 56px; height: 56px; flex: 0 0 auto; display: grid; place-items: center; font-size: 28px; border-radius: 50%;
  border: 2px solid var(--gc); box-shadow: 0 0 14px color-mix(in srgb, var(--gc) 55%, transparent);
  background: radial-gradient(color-mix(in srgb, var(--gc) 30%, #15110d), #0b0907);
}
.sheet-title { font-size: 17px; color: var(--gold-hi); }
.ks-plus { color: #9fe8a0; margin-bottom: 6px; }
.ks-minus { color: #ff9a8a; margin-bottom: 6px; }

/* ───────── общее для разделов ───────── */
.btn.back { background: transparent; border-color: var(--line); color: var(--muted); font-weight: 500; min-height: 40px; }
.small { font-size: 12.5px; }
.sec-note { margin: -4px 4px 10px; font-size: 13px; }
.sec-title { margin: 16px 4px 8px; font-size: 17px; }
.badge {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: color-mix(in srgb, var(--gold) 25%, transparent); color: var(--gold-hi); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
}
.badge.ok { background: rgba(95, 174, 91, .2); color: #9fe8a0; border-color: rgba(95, 174, 91, .5); }
.act-tabs .btn .badge { margin-left: 6px; background: #b3261e; color: #fff; border-color: #e0473a; }
.bar.slim { height: 8px; border-radius: 4px; }
.bar.gold i { background: linear-gradient(90deg, #8a6526, var(--gold-hi)); }
.toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 0;
  border: 0; border-top: 1px solid rgba(58, 48, 39, .6); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.toggle-row small { display: block; color: var(--muted); font-size: 12px; }
.switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; border-radius: 13px; background: #2a231c; border: 1px solid var(--line); transition: background .2s; }
.switch i { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #8b7e6a; transition: transform .2s, background .2s; }
.switch.on { background: color-mix(in srgb, var(--gold) 45%, #2a231c); border-color: var(--gold); }
.switch.on i { transform: translateX(20px); background: var(--gold-hi); }

/* задания */
.quest { cursor: pointer; }
.quest-top { display: flex; align-items: center; gap: 8px; font-size: 15.5px; }
.quest-top b { flex: 1; color: var(--gold-hi); }
.quest-diff { font-size: 14px; }
.quest-desc { margin: 6px 0 2px; font-size: 13.5px; color: #cbbd9f; }
.quest-reward { display: flex; gap: 2px; margin-top: 8px; font-size: 13.5px; }
.quest-reward .rich { display: inline; }
.quest.ready { border-color: var(--gold); box-shadow: 0 0 18px rgba(200, 162, 90, .25); }
.quest.done { opacity: .55; }
.btn.claim { position: relative; width: 100%; margin-top: 10px; }
.btn.claim::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: 0 0 16px rgba(240, 207, 134, .6); animation: glowpulse 1.6s ease-in-out infinite; }

/* умения */
.skill-card, .mastery { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; }
.skill-card {
  padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px;
  background: linear-gradient(var(--panel-2), var(--panel)); color: var(--text); font: inherit; cursor: pointer;
}
.bar-cell .skill-card { margin: 0; padding: 0; border: 0; background: none; cursor: default; }
.skill-card.on-bar { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); }
.skill-body { flex: 1; min-width: 0; }
.skill-top { display: flex; align-items: baseline; gap: 6px; }
.skill-top b { flex: 1; color: var(--gold-hi); }
.skill-stats { font: 12.5px/1.4 ui-monospace, Menlo, monospace; color: #d9c9a5; margin: 3px 0; }
.skill-ico {
  --sc: #c9b48a; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px;
  border: 2px solid var(--sc); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--sc) 25%, #120f0c), #0b0907 75%);
  box-shadow: 0 0 10px color-mix(in srgb, var(--sc) 35%, transparent), inset 0 0 10px color-mix(in srgb, var(--sc) 30%, transparent);
}
.skill-md { width: 48px; height: 48px; font-size: 24px; }
.skill-sm { width: 40px; height: 40px; font-size: 20px; }
.skill-ico.empty { --sc: #3a3027; box-shadow: none; color: var(--muted); }
.bar-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bar-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; }
.bar-slot small { width: 100%; font-size: 11px; text-align: center; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-cell-head { margin-bottom: 6px; font-size: 12.5px; }

/* мастерство, особые эффекты */
.mastery.in-hand { border-color: var(--gold); }
.special { display: flex; gap: 12px; align-items: center; }
.special-gem {
  flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; border-radius: 50%;
  border: 2px solid var(--r-unique); background: radial-gradient(color-mix(in srgb, var(--r-unique) 25%, #15110d), #0b0907);
  box-shadow: 0 0 10px color-mix(in srgb, var(--r-unique) 40%, transparent);
}

/* ресурсы */
.res-tile .ti { font: 700 22px/1 'Cormorant SC', Georgia, serif; color: var(--gold-hi); }
.res-tile small { color: var(--muted); font-size: 11px; font-weight: 500; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.res-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .25); text-align: center; }
.res-item .ti { font-size: 24px; }
.res-item small { font-size: 11px; color: var(--muted); line-height: 1.2; }
.res-item b { color: var(--gold-hi); }
.res-item.zero { opacity: .4; }
.res-item.tier-rare { border-color: color-mix(in srgb, var(--r-rare) 45%, var(--line)); }
.res-item.tier-mythic { border-color: color-mix(in srgb, var(--r-mythic) 55%, var(--line)); }

/* лутфильтр */
.chip.toggle { cursor: pointer; font: inherit; font-size: 13px; color: var(--text); }
.chip.toggle.hide { background: rgba(179, 38, 30, .22); border-color: #8f2a22; color: #ffb0a6; }
.chip.toggle.keep { background: rgba(95, 174, 91, .2); border-color: rgba(95, 174, 91, .6); color: #b8f0b8; }
.chips { margin-top: 8px; }
.stepper { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.stepper > span { flex: 1; }
.stepper .btn { flex: 0 0 auto; min-height: 36px; padding: 4px 10px; }

/* герои */
.hero-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: var(--text); font: inherit; cursor: pointer; }
.hero-card > div { flex: 1; }
.hero-card b { font-size: 16px; color: var(--gold-hi); }
.hero-card.active { border-color: var(--gold); cursor: default; }
.hero-card.empty { opacity: .45; cursor: default; }

/* восхождение */
.ladder { position: relative; margin: 6px 0 10px; }
.step { position: relative; display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.step:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 38px; bottom: -8px; width: 2px; background: var(--line); }
.step.done:not(:last-child)::after { background: var(--gold); }
.step-dot { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid var(--line); background: #15110d; font-size: 14px; z-index: 1; }
.step.done .step-dot { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 35%, #15110d); color: #fff; }
.step.open .step-dot { border-color: var(--gold-hi); box-shadow: 0 0 10px rgba(240, 207, 134, .45); }
.step.locked { opacity: .5; }
.step small { color: var(--muted); }

.screen-head { margin-bottom: 8px; }
.screen-head h1 { font-size: 21px; }
.screen-head .rich { color: var(--muted); font-size: 13px; }

/* орбы */
.orb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.orb { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 4px 10px;
  border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(var(--panel-2), var(--panel)); text-align: center; }
.orb-gem { width: 48px; height: 48px; display: grid; place-items: center; font-size: 24px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4a3d2e, #120f0c 70%); border: 1px solid #6a5639;
  box-shadow: 0 0 12px rgba(200, 162, 90, .25), inset 0 2px 6px rgba(255, 255, 255, .08); }
.orb b { font-size: 12px; line-height: 1.2; }
.orb small { font-size: 10px; color: var(--muted); }
.orb-n { position: absolute; top: 6px; right: 6px; font-weight: 800; font-size: 13px; color: var(--gold-hi); }
.orb.zero { opacity: .4; }
.orb.zero .orb-n { color: var(--muted); }

/* гадальные карты */
.tarot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.tarot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 10px;
  border-radius: 12px; text-align: center; border: 1px solid #5a4630;
  background: linear-gradient(160deg, #2b2219, #15110d 60%, #201912); box-shadow: inset 0 0 0 3px rgba(200, 162, 90, .08); }
.tarot-art { font-size: 34px; line-height: 1.2; }
.tarot b { color: var(--gold-hi); font-size: 14px; }
.tarot .bar { width: 100%; }
.tarot-n { color: var(--text); font-weight: 600; }
.tarot-rw { color: var(--muted); font-size: 11.5px; line-height: 1.25; }
.tarot.ready { border-color: var(--gold); box-shadow: 0 0 14px rgba(200, 162, 90, .3); }
.tarot.done { border-color: rgba(95, 174, 91, .6); }
.tarot.done .tarot-art { filter: saturate(.6); }
.tarot-badge { position: absolute; top: 6px; right: 8px; }
.tarot .btn { width: 100%; min-height: 36px; margin-top: 4px; }

/* души пинаклов */
.soul-ring { position: relative; height: 290px; margin: 4px auto; max-width: 300px; }
.soul { position: absolute; left: 50%; top: 50%; width: 76px; margin: -38px 0 0 -38px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.soul-gem { width: 54px; height: 54px; display: grid; place-items: center; font-size: 26px; border-radius: 50%;
  border: 2px solid #3a3027; background: #120d18; filter: grayscale(1) brightness(.6); }
.soul small { font-size: 10.5px; line-height: 1.15; color: var(--muted); }
.soul .badge { position: absolute; top: -4px; right: 2px; margin: 0; }
.soul.have .soul-gem { filter: none; border-color: #c27dff; background: radial-gradient(#5a2d8a, #120d18 75%);
  box-shadow: 0 0 16px rgba(194, 125, 255, .55); }
.soul.have small { color: var(--text); }
.soul-core { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; display: grid; place-items: center;
  border-radius: 50%; border: 1px dashed #6a5a7a; color: #c27dff; font: 700 18px/1 'Cormorant SC', Georgia, serif; }

/* ───────── сцена локации ───────── */
.scene-card { padding: 0; overflow: hidden; }
.scene-card > .zone-desc, .scene-card > div:not(.scene) { margin: 0 14px; }
.scene-card > .zone-desc { margin-top: 10px; }
.scene-card > :last-child { margin-bottom: 14px; }
.scene {
  position: relative; height: 172px; overflow: hidden;
  background: linear-gradient(180deg, var(--s1) 0%, var(--s2) 55%, var(--s3) 100%);
}
.scene-sun { position: absolute; left: 62%; top: 26px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--glow) 70%, transparent) 0%, transparent 70%); opacity: .55; }
.scene-land { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-land .far { fill: color-mix(in srgb, var(--s1) 70%, #000); opacity: .85; }
.scene-land .near { fill: #0a0806; }
.scene-mark { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); font-size: 46px;
  filter: drop-shadow(0 0 14px var(--glow)); animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translate(-50%, -6px); } }
.scene-fog { position: absolute; left: -50%; right: -50%; bottom: 18px; height: 60px; opacity: .22;
  background: radial-gradient(ellipse at 30% 50%, var(--fog), transparent 60%), radial-gradient(ellipse at 75% 60%, var(--fog), transparent 55%);
  animation: fogdrift 18s linear infinite alternate; will-change: transform; }
@keyframes fogdrift { to { transform: translateX(22%); } }
.scene-title { position: absolute; left: 14px; right: 14px; bottom: 10px; text-shadow: 0 2px 6px #000; }
.scene-title h1 { margin: 0; font-size: 24px; }
.scene-sub { color: #e6dcc8; font-size: 12.5px; opacity: .85; }
.scene-fire { position: absolute; right: 22px; bottom: 14px; font-size: 26px; animation: flick 1.2s ease-in-out infinite alternate; }
@keyframes flick { to { transform: scale(1.12) translateY(-2px); opacity: .85; } }

/* тропа прогресса */
.trail { display: flex; align-items: center; gap: 8px; }
.trail-end { font-size: 20px; }
.trail-end.hot { animation: flick .8s ease-in-out infinite alternate; }
.trail-road { position: relative; flex: 1; height: 10px; border-radius: 5px;
  background: repeating-linear-gradient(90deg, #3a3027 0 8px, transparent 8px 14px); }
.trail-done { position: absolute; left: 0; top: 2px; bottom: 2px; border-radius: 3px;
  background: linear-gradient(90deg, #8a6526, var(--gold-hi)); transition: width .5s ease; }
.trail-hero { position: absolute; top: 50%; transform: translate(-50%, -62%); font-size: 20px; transition: left .5s ease;
  filter: drop-shadow(0 2px 2px #000); }

/* карточки путей */
.paths { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.path-card, .boss-card {
  --pc: #8b7e6a; display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--pc) 55%, var(--line));
  background: linear-gradient(110deg, color-mix(in srgb, var(--pc) 14%, var(--panel-2)), var(--panel) 70%);
  color: var(--text); font: inherit; cursor: pointer; animation: pathin .35s ease-out both;
}
@keyframes pathin { from { opacity: 0; transform: translateY(8px); } }
.path-card:active, .boss-card:active { transform: scale(.98); }
.path-card.steel { --pc: #c9b48a; } .path-card.danger { --pc: #ff7a2e; } .path-card.legend { --pc: #b06bff; }
.path-card.mystery { --pc: #5b9bff; } .path-card.gold { --pc: #f0cf86; } .path-card.heal { --pc: #5fd36b; }
.path-ico { position: relative; flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; font-size: 28px;
  border-radius: 50%; border: 2px solid var(--pc); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--pc) 25%, #120f0c), #0b0907 75%); }
.path-ico-mob { position: absolute; right: -6px; bottom: -6px; font-size: 18px; filter: drop-shadow(0 1px 2px #000); }
.path-body { flex: 1; min-width: 0; }
.path-body b { display: block; font-size: 15.5px; color: var(--gold-hi); }
.path-desc { font-size: 13px; color: #cbbd9f; margin-top: 2px; }
.path-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.path-tag { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); color: var(--muted); }
.path-tag.warn { color: #ffb08a; border-color: rgba(255, 122, 46, .5); }
.path-tag.good { color: #f0cf86; border-color: rgba(240, 207, 134, .5); }

/* логово босса */
.boss-card { --pc: #e0473a; position: relative; margin-bottom: 12px; padding: 14px; }
.boss-card::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: 0 0 22px rgba(224, 71, 58, .55); animation: glowpulse 1.8s ease-in-out infinite; }
.boss-ico { width: 60px; height: 60px; font-size: 32px; }
.boss-kicker { color: #ff8a7a; letter-spacing: 1.5px; font-weight: 700; font-size: 10.5px; }
.boss-quote { font-style: italic; font-size: 12.5px; color: var(--muted); margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ───────── экран победы ───────── */
.victory-head { text-align: center; padding-top: 18px; overflow: hidden; }
.victory-head.boss { border-color: #8f2a22; }
.victory-ring { position: relative; width: 104px; height: 104px; margin: 0 auto 6px; display: grid; place-items: center; }
.victory-rays { position: absolute; inset: -30px; border-radius: 50%; opacity: .5; will-change: transform;
  background: repeating-conic-gradient(from 0deg, rgba(240, 207, 134, .35) 0deg 8deg, transparent 8deg 24deg);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%); mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  animation: rays 14s linear infinite; }
.victory-head.boss .victory-rays { background: repeating-conic-gradient(from 0deg, rgba(255, 90, 70, .4) 0deg 8deg, transparent 8deg 24deg); }
@keyframes rays { to { transform: rotate(360deg); } }
.victory-mob { position: relative; width: 84px; height: 84px; display: grid; place-items: center; font-size: 46px; border-radius: 50%;
  border: 2px solid var(--gold); background: radial-gradient(circle at 50% 40%, #3a2e22, #0b0907 75%);
  box-shadow: 0 0 22px rgba(200, 162, 90, .4); animation: popin .45s cubic-bezier(.2, 1.6, .4, 1) both; }
.victory-head.boss .victory-mob { border-color: #e0473a; box-shadow: 0 0 24px rgba(224, 71, 58, .5); }
@keyframes popin { from { transform: scale(.4); opacity: 0; } }
.victory-kicker { letter-spacing: 3px; font-weight: 800; font-size: 12px; color: var(--gold); margin-top: 4px; }
.victory-head.boss .victory-kicker { color: #ff8a7a; }
.victory-head h1 { margin: 2px 0; }
.reward-row { display: flex; gap: 8px; justify-content: center; margin: 12px 0 8px; flex-wrap: wrap; }
.reward-chip { flex: 1; min-width: 96px; max-width: 160px; display: flex; flex-direction: column; align-items: center; padding: 8px 6px;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); }
.reward-chip .rc-ico { font-size: 22px; }
.reward-chip b { font-size: 20px; font-variant-numeric: tabular-nums; }
.reward-chip small { color: var(--muted); font-size: 11.5px; }
.reward-chip.exp b { color: #c9a6ff; } .reward-chip.gold b { color: var(--gold-hi); }
.reward-chip.heal b { color: #6dff8a; } .reward-chip.mana b { color: #7fa8ff; }
.levelup { display: flex; gap: 12px; align-items: center; border-color: var(--gold);
  background: linear-gradient(110deg, rgba(200, 162, 90, .22), var(--panel) 70%); }
.levelup.tap { cursor: pointer; }
.levelup-ico { font-size: 34px; }
.levelup b { font-size: 17px; color: var(--gold-hi); }
.loot-in { animation: pathin .4s ease-out both; }
.loot-in:nth-child(3) { animation-delay: .08s; } .loot-in:nth-child(4) { animation-delay: .16s; } .loot-in:nth-child(5) { animation-delay: .24s; }
.skill-xp { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.skill-xp + .skill-xp { border-top: 1px solid rgba(58, 48, 39, .6); }
.xp-gain { color: #c9a6ff; font-weight: 700; font-size: 13px; }
.rare-card { border-color: color-mix(in srgb, var(--r-unique) 55%, var(--line)); }
button.card.quest { width: 100%; text-align: left; color: var(--text); font: inherit; }

/* окно исхода тропы */
.outcome { text-align: center; }
.outcome-ico { width: 78px; height: 78px; margin: 4px auto 6px; display: grid; place-items: center; font-size: 40px; border-radius: 50%;
  border: 2px solid var(--oc); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--oc) 25%, #120f0c), #0b0907 75%);
  box-shadow: 0 0 20px color-mix(in srgb, var(--oc) 45%, transparent); animation: popin .4s cubic-bezier(.2, 1.6, .4, 1) both; }
.outcome .btn { width: 100%; margin-top: 6px; }

/* ───────── NPC и плитки услуг ───────── */
.npc-row { display: flex; gap: 12px; align-items: center; }
.npc-ava { flex: 0 0 auto; width: 58px; height: 58px; display: grid; place-items: center; font-size: 30px; border-radius: 50%;
  border: 2px solid var(--gold); background: radial-gradient(circle at 50% 40%, #3a2e22, #0b0907 75%); box-shadow: 0 0 14px rgba(200, 162, 90, .3); }
.npc-head h1 { font-size: 20px; margin: 0; }
.npc-quote { font-style: italic; color: #cbbd9f; font-size: 13.5px; }
.big-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.big-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; min-height: 86px; text-align: left;
  border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(var(--panel-2), var(--panel));
  color: var(--text); font: inherit; cursor: pointer; }
.big-tile:active { transform: scale(.97); }
.big-tile.alert { border-color: var(--gold); }
.bt-head { display: flex; align-items: center; gap: 8px; }
.bt-ico { font-size: 24px; }
.big-tile b { color: var(--gold-hi); font-size: 14.5px; }
.big-tile small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.bt-badge { align-self: flex-start; margin-top: 2px; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line); color: var(--gold-hi); }

/* мастер навыков */
.learn-row { display: flex; gap: 12px; align-items: flex-start; }
.learn-card { cursor: pointer; }
.learn-card.ready { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); }
.learn-card.locked { opacity: .55; cursor: default; }
.learn-card > .btn { width: 100%; margin-top: 10px; }
.reset-card { display: flex; align-items: center; gap: 10px; }
.reset-card .btn { flex: 0 0 auto; }

/* крафт орбов */
.orb.tap { cursor: pointer; color: var(--text); font: inherit; }
.orb.tap:active { transform: scale(.96); }
.orb.tap small { line-height: 1.25; }
.orb-note { margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(95, 174, 91, .5);
  background: rgba(95, 174, 91, .12); color: #b8f0b8; font-size: 13.5px; }
.orb-note.bad { border-color: rgba(224, 71, 58, .5); background: rgba(224, 71, 58, .12); color: #ffb0a6; }

/* аукцион */
.auc-filters .act-tabs { margin-bottom: 6px; }
.auc-filters .act-tabs .btn.on { border-color: var(--gold); color: var(--gold-hi); }
.lot-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 6px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.lot-card:active { transform: scale(.98); }
.lot-card .item-text { flex: 1; }
.lot-card .item-text small { display: block; }
.lot-price { flex: 0 0 auto; max-width: 34%; text-align: right; font-weight: 700; color: var(--gold-hi); font-size: 13.5px; }
.lot-card.cant .lot-price { color: #ff8a7a; }
.lot-ico { width: 44px; height: 44px; display: grid; place-items: center; font-size: 26px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); flex: 0 0 auto; }
.lot-ico.big { width: 64px; height: 64px; font-size: 34px; }
.orb.tap small { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ═══════════ 🃏 Дом Ваала ═══════════ */
.vh-head { padding: 10px 14px; }
.vh-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.vh-top b { font-family: 'Cormorant SC', Georgia, serif; font-size: 18px; color: var(--gold-hi); }
.vh-curse { margin-top: 8px; padding: 8px 10px; border-radius: 8px; font-size: 13px;
  background: rgba(179, 38, 30, .14); border: 1px solid rgba(224, 71, 58, .45); }
.vh-curse b { color: #ff9a8a; }
.vh-score { padding: 12px 14px; }
.vh-big { display: flex; align-items: baseline; gap: 2px; }
.vh-score-num { font-size: 30px; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.vh-bar { height: 10px; margin: 6px 0 8px; }
.vh-pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.vh-pill { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 5px 4px; border-radius: 8px;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line); font-size: 13px; }
.vh-pill.hands b { color: #6fb7ff; } .vh-pill.discards b { color: #ff8a7a; } .vh-pill.money b { color: var(--gold-hi); }
.vh-preview { margin-top: 10px; padding: 8px; border-radius: 10px; text-align: center; background: rgba(0, 0, 0, .3); border: 1px dashed var(--line); min-height: 52px; }
.vh-preview.void { border-color: #8f2a22; }
.vh-hand-name { font-weight: 700; color: var(--text); font-size: 14px; }
.vh-cm { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.vh-cm .chips, .vh-cm .mult { min-width: 44px; padding: 2px 8px; border-radius: 6px; color: #fff; text-align: center; font-variant-numeric: tabular-nums; }
.vh-cm .chips { background: #2f6fd6; box-shadow: 0 0 10px rgba(47, 111, 214, .5); }
.vh-cm .mult { background: #d23a2a; box-shadow: 0 0 10px rgba(210, 58, 42, .5); }
.vh-cm.big { font-size: 20px; margin-top: 4px; }
.vh-cm.pulse { animation: popin .4s cubic-bezier(.2, 1.6, .4, 1); }
.vh-void { color: #ff8a7a; font-size: 12.5px; margin-top: 4px; }

.vh-row { margin-bottom: 10px; }
.vh-row-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 6px; font-size: 13px; }
.vh-strip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; }
.vh-joker, .vh-cons { position: relative; flex: 0 0 auto; width: 62px; height: 82px; padding: 4px 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 8px; border: 2px solid #5a4630; background: linear-gradient(160deg, #2b2219, #15110d); color: var(--text); font: inherit; cursor: pointer; }
.vh-joker small, .vh-cons small { font-size: 9.5px; line-height: 1.1; text-align: center; color: var(--muted); max-height: 2.3em; overflow: hidden; }
.vj-emoji { font-size: 26px; line-height: 1; }
.vj-emoji.big { font-size: 40px; }
.vh-joker.rar-c { border-color: #8a8a8a; } .vh-joker.rar-u { border-color: #3ecf6a; } .vh-joker.rar-r { border-color: #5b86ff; } .vh-joker.rar-l { border-color: #e8812e; }
.vh-joker.ed-foil { box-shadow: 0 0 10px rgba(180, 220, 255, .6); } .vh-joker.ed-holo { box-shadow: 0 0 10px rgba(255, 90, 200, .6); }
.vh-joker.ed-poly { box-shadow: 0 0 12px rgba(160, 120, 255, .7); } .vh-joker.ed-neg { filter: invert(.85) hue-rotate(180deg); }
.vj-ed { position: absolute; top: 2px; right: 3px; font-size: 11px; }
.vj-life { position: absolute; bottom: 2px; left: 3px; font-size: 9px; }
.vh-joker.empty { border-style: dashed; border-color: #3a3027; color: #3a3027; font-size: 22px; cursor: default; background: none; }
.vh-cons { border-color: #6a5a7a; background: linear-gradient(160deg, #241a2e, #120d18); }
.vh-cons.kind-c { border-color: #4c7fbf; background: linear-gradient(160deg, #15233a, #0b1220); }
.vh-cons.kind-s { border-color: #8fb7c9; }
.vh-gem { --gc: var(--gold); }

/* игральные карты */
.vh-hand { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 6px; padding-top: 16px; margin-bottom: 6px; }
.vh-card { --suit: #ccc; position: relative; aspect-ratio: 5 / 7; padding: 0; border-radius: 9px; cursor: pointer; font: inherit;
  border: 2px solid color-mix(in srgb, var(--suit) 70%, #fff); color: #2a1c10;
  background: linear-gradient(160deg, #fbf3e2, #e9dcc0); box-shadow: 0 3px 8px rgba(0, 0, 0, .5);
  transition: transform .14s ease, box-shadow .14s ease; display: block; }
.vh-card .vh-rank { position: absolute; top: 3px; left: 6px; font: 800 17px/1 Georgia, serif; color: color-mix(in srgb, var(--suit) 70%, #2a1c10); }
.vh-card .vh-rank.bottom { top: auto; left: auto; bottom: 3px; right: 6px; transform: rotate(180deg); }
.vh-card .vh-center { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; }
.vh-card.sel { transform: translateY(-14px); box-shadow: 0 0 0 2px var(--gold-hi), 0 8px 18px rgba(240, 207, 134, .45); }
.vh-card.debuff { filter: grayscale(.85) brightness(.7); }
.vh-card.stone { background: linear-gradient(160deg, #8d8578, #5d564c); border-color: #9a9286; }
.vh-card.small { width: 46px; }
.vh-card.small .vh-rank { font-size: 12px; } .vh-card.small .vh-center { font-size: 18px; }
.vh-enh { position: absolute; top: 2px; right: 4px; font-size: 12px; }
.vh-seal { position: absolute; bottom: 5px; left: 6px; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 6px currentColor; }
.vh-seal.seal-red { background: #e0473a; color: #e0473a; } .vh-seal.seal-gold { background: #f0cf86; color: #f0cf86; }
.vh-seal.seal-blue { background: #4c9bff; color: #4c9bff; } .vh-seal.seal-purple { background: #b06bff; color: #b06bff; }
.vh-poly { position: absolute; bottom: 2px; right: 4px; font-size: 11px; }
.vh-chain { position: absolute; top: 40%; left: 50%; transform: translateX(-50%); font-size: 18px; }
.vh-tip { text-align: center; margin-bottom: 8px; }
.vh-actions .btn { min-height: 48px; font-size: 15px; }
.vh-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }

/* выбор стола */
.vh-blinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.vh-blind { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 4px; border-radius: 10px;
  border: 1px solid var(--line); background: linear-gradient(var(--panel-2), var(--panel)); text-align: center; }
.vh-blind small { font-size: 11px; } .vh-blind b { font-size: 18px; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.vh-blind.now { border-color: var(--gold); box-shadow: 0 0 14px rgba(200, 162, 90, .35); }
.vh-blind.done { opacity: .45; } .vh-blind.next { opacity: .75; }
.vh-blind.boss { border-color: rgba(224, 71, 58, .6); }
.vh-pay { font-size: 12px; color: var(--gold); margin-top: 2px; }
.vh-blind-boss { font-size: 11px; color: #ff9a8a; margin-top: 2px; }
.vh-done { position: absolute; top: 4px; right: 6px; color: var(--ok); font-weight: 800; }
.vh-go { width: 100%; min-height: 52px; font-size: 16px; margin: 10px 0 8px; }
.vh-skip { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 10px 12px; margin-bottom: 10px; text-align: left; border-radius: 10px;
  border: 1px dashed #5b9bff; background: rgba(91, 155, 255, .08); color: var(--text); font: inherit; cursor: pointer; }
.vh-skip small { color: var(--muted); }
.vh-moneyline { font-size: 18px; color: var(--gold-hi); font-weight: 700; text-align: center; }
.vh-money { color: var(--gold-hi); font-weight: 800; font-size: 18px; }

/* лавка */
.vh-shelf { display: flex; flex-wrap: wrap; gap: 8px; }
.vh-shop-item, .vh-pack, .vh-shop-card { position: relative; width: 86px; min-height: 112px; padding: 8px 4px 22px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  border-radius: 10px; border: 2px solid #5a4630; background: linear-gradient(160deg, #2b2219, #15110d); color: var(--text); font: inherit; cursor: pointer; }
.vh-shop-item small, .vh-pack small { font-size: 10.5px; line-height: 1.15; text-align: center; color: #cbbd9f; }
.vh-shop-item.t-j { border-color: #8a7a5a; } .vh-shop-item.t-a { border-color: #8a6aaa; } .vh-shop-item.t-c { border-color: #4c7fbf; } .vh-shop-item.t-s { border-color: #8fb7c9; }
.vh-pack { border-color: #b08a3a; background: linear-gradient(160deg, #3a2c16, #1a130b); }
.vh-pack.voucher { border-color: #3ecf6a; }
.vh-shop-card { background: none; border: 0; padding-top: 0; }
.vh-price { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 800;
  background: #1a130b; border: 1px solid var(--gold); color: var(--gold-hi); white-space: nowrap; }
.cant { opacity: .5; }
.cant .vh-price { border-color: #8f2a22; color: #ff8a7a; }

/* наборы */
.vh-pack-opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.vh-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; border-radius: 12px; text-align: center;
  border: 1px solid #5a4630; background: linear-gradient(var(--panel-2), var(--panel)); color: var(--text); font: inherit; cursor: pointer; animation: pathin .35s ease-out both; }
.vh-opt .vh-card { width: 60px; }
.vh-opt b { color: var(--gold-hi); }
.vh-opt-desc { font-size: 13px; color: #cbbd9f; }

/* сцена розыгрыша */
.vh-stage { position: fixed; inset: 0; z-index: 14; display: grid; place-items: center; background: rgba(5, 4, 3, .72); animation: fade .2s; }
.vh-stage.out { opacity: 0; transition: opacity .25s; }
.vh-stage-box { width: min(92vw, 420px); padding: 18px 14px; border-radius: 16px; text-align: center;
  border: 1px solid var(--gold); background: linear-gradient(var(--panel-2), #0d0b09); box-shadow: 0 0 40px rgba(200, 162, 90, .25); }
.vh-stage-cards { display: flex; justify-content: center; gap: 6px; margin: 12px 0; }
.vh-stage-cards .vh-card { width: 54px; }
.vh-stage-cards .vh-card.dim { opacity: .35; }
.vh-stage-cards .vh-card.pop { animation: cardpop .3s cubic-bezier(.2, 1.6, .4, 1); transform: translateY(-8px); }
@keyframes cardpop { 50% { transform: translateY(-16px) scale(1.12); } }
.vh-stage-cards .vh-card.shatter { animation: shatter .4s forwards; }
@keyframes shatter { to { opacity: 0; transform: scale(1.3) rotate(8deg); filter: blur(2px); } }
.vh-stage-total { margin-top: 10px; font: 800 34px/1.1 'Cormorant SC', Georgia, serif; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.vh-stage-total small { font-size: 16px; color: var(--gold); }
.vh-stage-won { margin-top: 10px; font-size: 20px; font-weight: 800; color: #9fe8a0; animation: popin .4s cubic-bezier(.2, 1.6, .4, 1); }
.vh-stage-lost { margin-top: 10px; font-size: 20px; font-weight: 800; color: #ff8a7a; }

/* лобби, ставки, итоги, листы */
.vh-lobby { text-align: center; }
.vh-lobby-cards { font-size: 40px; letter-spacing: 6px; filter: drop-shadow(0 0 10px rgba(200, 162, 90, .5)); }
.vh-lobby .chips { justify-content: center; }
.vh-stake { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: var(--text); font: inherit; cursor: pointer; }
.vh-stake.locked { opacity: .45; }
.vh-stake-k { font-size: 22px; min-width: 46px; }
.vh-final { text-align: center; }
.vh-final-ico { font-size: 60px; animation: popin .5s cubic-bezier(.2, 1.6, .4, 1); }
.vh-final.won { border-color: var(--gold); } .vh-final.lost { border-color: #8f2a22; }
.vh-levels { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow-y: auto; margin-top: 8px; }
.vh-level { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; font-size: 13px; padding: 3px 0; border-bottom: 1px solid rgba(58, 48, 39, .5); }
.vh-level .vh-cm b { min-width: 32px; padding: 0 4px; font-size: 12px; }
.vh-sheet .rich { font-size: 14px; }

/* ═══════════ 🍺 Таверна ═══════════ */
.tv-drink { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(240, 207, 134, .5); background: rgba(200, 162, 90, .1); }
.tv-drink-ico { font-size: 30px; }
.tv-feature { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--text); font: inherit; cursor: pointer;
  border-color: var(--gold); background: radial-gradient(ellipse at top, rgba(200, 162, 90, .22), transparent 70%), linear-gradient(var(--panel-2), var(--panel)); }
.tv-feature b { font: 700 22px 'Cormorant SC', Georgia, serif; color: var(--gold-hi); }
.tv-feature .bt-badge { position: absolute; top: 10px; right: 10px; }

/* кости */
.tv-table { text-align: center; }
.tv-dice-row { display: flex; justify-content: center; gap: 6px; margin: 10px 0; }
.tv-die { position: relative; width: 52px; height: 52px; display: grid; place-items: center; font-size: 28px; border-radius: 12px; padding: 0;
  border: 2px solid #c9b48a; background: linear-gradient(150deg, #fbf3e2, #d9c9a5); box-shadow: 0 4px 10px rgba(0, 0, 0, .5); font-family: inherit; cursor: pointer; }
.tv-dice-row.big .tv-die { width: 58px; height: 58px; font-size: 32px; }
.tv-die.small { width: 36px; height: 36px; font-size: 19px; border-radius: 8px; cursor: default; }
.tv-die.mark { border-color: #e0473a; transform: translateY(-6px); box-shadow: 0 0 0 2px rgba(224, 71, 58, .5), 0 8px 14px rgba(0, 0, 0, .5); }
.tv-die-tag { position: absolute; top: -10px; right: -8px; font-size: 14px; }
.tv-die.roll { animation: dieroll .5s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes dieroll { 0% { transform: rotate(-200deg) scale(.5); opacity: 0; } 70% { transform: rotate(15deg) scale(1.08); } }
.tv-dice-res { text-align: center; }
.tv-dice-res.won { border-color: var(--gold); } .tv-dice-res.lost { border-color: #8f2a22; }
.tv-verdict { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.tv-dice-line { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 4px 8px; text-align: left; margin: 4px 0; }
.tv-dice-line b { grid-column: 2; font-size: 13px; }
.tv-dice-line .tv-dice-row { justify-content: flex-start; margin: 0; }
.tv-stake { margin-top: 8px; }
.chip.toggle.disabled { opacity: .45; }

/* карты «Судьбы» */
.tv-fcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px 8px; border-radius: 10px; text-align: center;
  border: 2px solid #8a8a8a; background: linear-gradient(160deg, #2b2219, #15110d); color: var(--text); font: inherit; }
.tv-fcard.rar-r { border-color: #5b86ff; } .tv-fcard.rar-u { border-color: #e8812e; box-shadow: 0 0 10px rgba(232, 129, 46, .35); }
.tv-fcard b { font-size: 13px; color: var(--gold-hi); }
.tv-fcard small { font-size: 11px; color: #cbbd9f; line-height: 1.25; }
.tv-femoji { font-size: 34px; line-height: 1.1; }
.tv-fpow { position: absolute; top: -8px; left: -6px; min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  background: #d23a2a; color: #fff; font-weight: 800; font-size: 13px; border: 2px solid #1a130b; }
.tv-fcard.small { width: 92px; padding: 6px 4px; }
.tv-fcard.small .tv-femoji { font-size: 24px; }
.tv-fcard.win { box-shadow: 0 0 0 2px var(--ok); } .tv-fcard.lose { opacity: .5; }
.tv-hand { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.tv-hand .tv-fcard { cursor: pointer; animation: pathin .35s ease-out both; }
.tv-hand .tv-fcard:active { transform: scale(.96); }
.tv-round { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0; }
.tv-vs { font-size: 20px; }
.tv-x2 { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); color: var(--gold); }
.tv-score { font: 800 22px 'Cormorant SC', Georgia, serif; color: var(--gold-hi); }
.tv-deck { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.tv-deck-cell { display: flex; flex-direction: column; gap: 6px; }
.tv-deck-cell:not(.in) .tv-fcard { opacity: .6; }
.tv-deck-ctl { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tv-deck-ctl .btn { flex: 0 0 auto; min-height: 34px; padding: 0 14px; font-size: 18px; }
.tv-drink-card { display: flex; align-items: center; gap: 10px; }
.tv-drink-card.active { border-color: var(--gold); }
.tv-drink-acts { display: flex; flex-direction: column; gap: 6px; }
.tv-drink-acts .btn { min-height: 36px; padding: 4px 12px; }

/* ═══════════ 🌀 Портал и его разделы ═══════════ */
.place-banner { position: relative; text-align: center; overflow: hidden; padding: 18px 14px 14px; }
.place-banner .pb-emoji { font-size: 46px; filter: drop-shadow(0 0 14px var(--pg, rgba(200, 162, 90, .5))); }
.place-banner h1 { margin: 4px 0 2px; }
.place-banner .pb-sub { font-style: italic; color: #cbbd9f; font-size: 13.5px; }
.place-banner .chips { justify-content: center; }
.place-banner.portal { --pg: #a46cff; background: radial-gradient(ellipse at top, rgba(164, 108, 255, .3), transparent 70%), linear-gradient(var(--panel-2), var(--panel)); }
.place-banner.arena { --pg: #e8812e; background: radial-gradient(ellipse at top, rgba(232, 129, 46, .28), transparent 70%), linear-gradient(#2e2216, var(--panel)); }
.place-banner.lake { --pg: #5cc8ff; background: radial-gradient(ellipse at bottom, rgba(92, 200, 255, .25), transparent 70%), linear-gradient(#10202e, #0b141c); }
.place-banner.lake.small { padding: 12px; }
.place-banner.km { --pg: #f0cf86; background: radial-gradient(ellipse at top, rgba(240, 207, 134, .22), transparent 70%), linear-gradient(#2b2219, var(--panel)); }
.place-banner.tower { --pg: #b8a6ff; background: radial-gradient(ellipse at top, rgba(184, 166, 255, .25), transparent 70%), linear-gradient(#17142a, var(--panel)); }
.chip.gold { border-color: var(--gold); color: var(--gold-hi); }

.dest-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.dest { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; text-align: left; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: linear-gradient(110deg, var(--panel-2), var(--panel)); color: var(--text); font: inherit; animation: pathin .3s ease-out both; }
.dest:active { transform: scale(.98); }
.dest > div { flex: 1; } .dest b { display: block; color: var(--gold-hi); font-size: 15.5px; } .dest small { color: var(--muted); font-size: 12.5px; }
.dest-ico { width: 48px; height: 48px; display: grid; place-items: center; font-size: 26px; border-radius: 50%; border: 2px solid #5a4630; background: radial-gradient(#2b2219, #0b0907); }
.dest-go { font-size: 24px; color: var(--muted); }
.dest-arena .dest-ico { border-color: #e8812e; } .dest-lake .dest-ico { border-color: #5cc8ff; } .dest-km .dest-ico { border-color: #f0cf86; }
.dest-wb .dest-ico { border-color: #e0473a; } .dest-tower .dest-ico { border-color: #b8a6ff; } .dest-town .dest-ico { border-color: #8b7e6a; }

/* арена */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin: 8px 0; }
.pod { display: flex; flex-direction: column; align-items: center; width: 30%; text-align: center; }
.pod b { font-size: 12.5px; margin: 2px 0 4px; word-break: break-word; }
.pod-medal { font-size: 26px; }
.pod-step { width: 100%; display: grid; place-items: center; font: 800 18px 'Cormorant SC', Georgia, serif; color: #1a130b; border-radius: 6px 6px 0 0; }
.pod-1 .pod-step { height: 56px; background: linear-gradient(#f0cf86, #b08a3a); }
.pod-2 .pod-step { height: 40px; background: linear-gradient(#d8d8d8, #8a8a8a); }
.pod-3 .pod-step { height: 30px; background: linear-gradient(#d99a5a, #8a5a2b); }
.arena-entry { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.arena-entry .btn { width: 100%; }
.gc-ava { width: 46px; height: 46px; display: grid; place-items: center; font-size: 26px; border-radius: 50%; border: 2px solid #5a4630; background: radial-gradient(#2b2219, #0b0907); flex: 0 0 auto; }
.gc-ava.big { width: 64px; height: 64px; font-size: 34px; }
.rank-card { text-align: center; }
.rank-big { display: flex; flex-direction: column; align-items: center; }
.rank-big b { font: 800 44px/1.05 'Cormorant SC', Georgia, serif; color: var(--gold-hi); text-shadow: 0 0 16px rgba(240, 207, 134, .4); }
.rank-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; margin-top: 6px; }
.vs-card { position: relative; border-color: rgba(224, 71, 58, .5); }
.vs-label { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 2px 12px; border-radius: 999px; font-weight: 900;
  background: #d23a2a; color: #fff; letter-spacing: 2px; font-size: 13px; }
.ghost-card { margin-bottom: 10px; }
.gc-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.gc-head b { display: block; color: var(--gold-hi); font-size: 16px; }
.gc-stats { display: flex; flex-wrap: wrap; gap: 4px; }
.cursed-card { border-color: rgba(164, 108, 255, .5); }
.cursed-card .btn { width: 100%; margin-top: 8px; }
.lb-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.lb-row > div { flex: 1; min-width: 0; } .lb-row small { display: block; }
.lb-row.me { border-color: var(--gold); background: rgba(200, 162, 90, .1); }
.lb-row.top1 { border-color: #b08a3a; }
.lb-rank { min-width: 30px; text-align: center; font-weight: 800; font-size: 18px; }
.lb-ava { font-size: 22px; }
.lb-val { color: var(--gold-hi); }
.key-card { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; color: var(--text); font: inherit; }
.key-card.tap { cursor: pointer; }
.key-card.none { opacity: .45; }
.key-card .btn { flex: 0 0 auto; }

/* озеро */
.lake-gear { display: flex; flex-direction: column; gap: 4px; }
.bait-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.bait { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; text-align: left; border-radius: 12px; cursor: pointer;
  border: 1px solid #2e5a7a; background: linear-gradient(110deg, #12263a, var(--panel)); color: var(--text); font: inherit; }
.bait.none { opacity: .4; cursor: default; }
.bait-ico { font-size: 28px; }
.bait-pct { display: flex; flex-direction: column; align-items: center; min-width: 50px; }
.bait-pct b { font-size: 20px; color: #6fd0ff; } .bait-pct small { color: var(--muted); font-size: 11px; }
.catch { display: flex; gap: 12px; align-items: center; animation: popin .4s cubic-bezier(.2, 1.6, .4, 1) both; }
.catch-ico { width: 56px; height: 56px; flex: 0 0 auto; display: grid; place-items: center; font-size: 32px; border-radius: 50%;
  border: 2px solid #5cc8ff; background: radial-gradient(#173048, #0b141c); }
.catch-ico.small { width: 40px; height: 40px; font-size: 22px; }
.catch-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.catch-treasure .catch-ico, .catch-chest .catch-ico { border-color: var(--gold); }
.fish-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.fish-row .rich { flex: 1; font-size: 13.5px; }
.fish-row .btn { flex: 0 0 auto; min-height: 36px; }

/* ключник */
.key-ring { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.key-chip { position: relative; display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 10px; text-align: center;
  border: 1px solid #6a5639; background: rgba(0, 0, 0, .3); }
.kc-ico { font-size: 24px; } .key-chip b { color: var(--gold-hi); } .key-chip small { font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.kc-pct { color: #9fe8a0 !important; }
.chest-group.locked { opacity: .55; }
.chest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.chest { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; text-align: center; cursor: pointer;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--text); font: inherit; }
.chest small { font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.chest.none { opacity: .35; cursor: default; }
.chest.ready { border-color: var(--gold); box-shadow: 0 0 10px rgba(200, 162, 90, .3); }
.chest-ico { font-size: 26px; } .chest-ico.big { font-size: 56px; display: block; }
.chest-hero { text-align: center; }

/* мировой босс */
.wb-hero { text-align: center; border-color: rgba(224, 71, 58, .6); background: radial-gradient(ellipse at top, rgba(224, 71, 58, .25), transparent 70%), linear-gradient(#2a1210, var(--panel)); }
.wb-hero.dead { filter: grayscale(.6); }
.wb-kicker { letter-spacing: 3px; font-weight: 800; font-size: 11px; color: #ff8a7a; }
.wb-ico { font-size: 64px; filter: drop-shadow(0 0 18px rgba(224, 71, 58, .6)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.wb-hero .boss-quote { margin: 4px 0 10px; }
.wb-hp { height: 26px; margin: 6px 0 4px; }
.wb-hp span { line-height: 24px !important; font-size: 12.5px !important; }

/* башня */
.tower-meter { display: flex; gap: 14px; align-items: stretch; }
.tower-col { display: flex; flex-direction: column; gap: 2px; width: 26px; padding: 4px 3px; border-radius: 6px 6px 2px 2px; background: #0b0907; border: 1px solid var(--line); }
.tf { flex: 1; min-height: 4px; border-radius: 2px; background: #2a2440; }
.tf.claim { background: #3a3260; }
.tf.done { background: #8a7acf; }
.tf.mine { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.tf.now { background: #e0473a; box-shadow: 0 0 8px #e0473a; }
.tower-meter .skill-body { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.tower-mine { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(58, 48, 39, .6); }
.tower-mine > div { flex: 1; } .tower-mine .btn { flex: 0 0 auto; min-height: 34px; }
.tower-list { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
.tower-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; border: 1px solid #3a3260; background: #15122a; }
.tower-row.free { opacity: .55; } .tower-row.mine { border-color: var(--gold); }
.tr-floor { min-width: 30px; text-align: center; font: 800 18px 'Cormorant SC', Georgia, serif; color: #b8a6ff; }
.tr-curse { font-size: 18px; }
.tower-meter .skill-body .btn, .tower-meter .skill-body .btn-row { flex: 0 0 auto; }
.tower-meter .skill-body .btn { min-height: 44px; }

/* ───────── итоги боя и ивенты (events.js) ───────── */
.ev-head { text-align: center; padding-top: 18px; overflow: hidden; border-color: color-mix(in srgb, var(--tc) 45%, var(--line));
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--tc) 16%, var(--panel)), var(--panel) 70%); }
.ev-head .victory-rays { background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--tc) 40%, transparent) 0deg 8deg, transparent 8deg 24deg); }
.ev-head .victory-mob { border-color: var(--tc); box-shadow: 0 0 24px color-mix(in srgb, var(--tc) 50%, transparent);
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--tc) 22%, #1a140f), #0b0907 75%); }
.ev-head .victory-kicker { color: var(--tc); }
.ev-head.tone-loss .victory-rays { animation-duration: 40s; opacity: .3; }
.ev-sub { font-style: italic; color: #cbbd9f; margin: 2px 0 4px; }
.reward-chip.loss b { color: #ff7b6e; }
.ev-facts { display: flex; flex-direction: column; gap: 8px; }
.ev-fact { display: flex; gap: 10px; align-items: flex-start; line-height: 1.35; }
.ev-fact-ico { flex: 0 0 26px; font-size: 18px; text-align: center; }
.ev-note { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); background: linear-gradient(110deg, rgba(200, 162, 90, .14), var(--panel) 70%); }
.ev-body { line-height: 1.45; }
.ev-block h2 { font-size: 15px; margin: 0 0 6px; }
.ev-log { padding: 4px 0; border-bottom: 1px solid rgba(58, 48, 39, .6); font-size: 14px; }
.ev-log:last-child { border-bottom: 0; }
.ev-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.ev-opts.wide { grid-template-columns: 1fr; }
.ev-opt { display: flex; gap: 10px; align-items: center; padding: 10px; text-align: left; border-radius: 12px; border: 1px solid var(--line);
  background: linear-gradient(var(--panel-2), var(--panel)); color: var(--text); font: inherit; cursor: pointer; min-width: 0; }
.ev-opt:active { transform: scale(.98); }
.ev-opt-ico { flex: 0 0 auto; font-size: 26px; }
.ev-opt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ev-opt-body b { overflow: hidden; text-overflow: ellipsis; }
.ev-opt-desc { font-size: 12.5px; color: #cbbd9f; font-style: italic; }
.ev-opt-cta { flex: 0 0 auto; color: var(--gold-hi); font-weight: 700; font-size: 13px; }
.ev-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.ev-actions .btn { width: 100%; padding: 13px; font-size: 16px; }

/* ───────── магазины (shops.js) ───────── */
.offers { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.offer { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 10px 10px 10px 8px; text-align: left; width: 100%;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--rc, var(--line)) 45%, var(--line));
  background: linear-gradient(100deg, color-mix(in srgb, var(--rc, #000) 10%, var(--panel-2)), var(--panel) 65%);
  color: var(--text); font: inherit; cursor: pointer; }
.offer:active { transform: scale(.985); }
.offer.r-normal { --rc: var(--r-normal); } .offer.r-magic { --rc: var(--r-magic); } .offer.r-rare { --rc: var(--r-rare); }
.offer.r-set { --rc: var(--r-set); } .offer.r-unique { --rc: var(--r-unique); } .offer.r-mythic { --rc: var(--r-mythic); }
.offer.ghost { justify-content: center; color: var(--muted); font-style: italic; cursor: default; border-style: dashed; background: none; }
.offer.sold { opacity: .55; }
.offer.sel { box-shadow: inset 0 0 0 2px var(--ok); }
.offer-ico { position: relative; flex: 0 0 auto; }
.offer-check { position: absolute; right: -6px; bottom: -6px; font-size: 16px; }
.offer-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.offer-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.offer-special { font-size: 12.5px; color: #e8b27a; font-style: italic; }
.offer-price { flex: 0 0 auto; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 13px;
  background: rgba(0, 0, 0, .45); border: 1px solid var(--gold); color: var(--gold-hi); white-space: nowrap; }
.offer-price.poor { border-color: #8f2a22; color: #ff8a7a; }
.offer-price.sell { border-color: var(--ok); color: #9be597; }
.offer-sold { font-size: 12px; color: #ff8a7a; }
.shop-info .chips { margin-bottom: 6px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 12px; }
.pager .btn { min-width: 56px; }
.chip-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.btn.small { padding: 6px 10px; font-size: 13px; }
.confirm-price { margin-top: 8px; font-weight: 700; color: var(--gold-hi); }

/* ───────── карточка вещи (itemview.js) ───────── */
.ico-xl { width: 96px; height: 96px; border-radius: 16px; }
.ico-xl svg { width: 60%; height: 60%; }
.iv-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 18px;
  border-color: color-mix(in srgb, var(--rc) 55%, var(--line));
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--rc) 18%, var(--panel)), var(--panel) 70%); }
.iv-head.r-normal { --rc: var(--r-normal); } .iv-head.r-magic { --rc: var(--r-magic); } .iv-head.r-rare { --rc: var(--r-rare); }
.iv-head.r-set { --rc: var(--r-set); } .iv-head.r-unique { --rc: var(--r-unique); } .iv-head.r-mythic { --rc: var(--r-mythic); }
.iv-head .ico-xl { box-shadow: 0 0 28px color-mix(in srgb, var(--rc) 45%, transparent); animation: popin .4s cubic-bezier(.2, 1.6, .4, 1) both; }
.iv-head h1 { margin: 8px 0 0; font-size: 21px; }
.iv-chips { justify-content: center; margin-top: 6px; }
.chip.bad { border-color: #8f2a22; color: #ff8a7a; }
.iv-meta { font-size: 13px; color: var(--muted); }
.iv-price { margin-top: 10px; padding: 8px 18px; border-radius: 12px; border: 1px solid var(--gold); background: rgba(0, 0, 0, .35);
  display: flex; flex-direction: column; align-items: center; }
.iv-price b { font-size: 22px; color: var(--gold-hi); }
.iv-price small { color: var(--muted); }
.iv-price.poor { border-color: #8f2a22; } .iv-price.poor b { color: #ff8a7a; }
.iv-stats h2 { font-size: 15px; }
.iv-stat { padding: 6px 8px; border-radius: 8px; line-height: 1.35; }
.iv-stat:nth-child(odd) { background: rgba(255, 255, 255, .03); }
.iv-stat.up { background: rgba(95, 211, 107, .09); }
.iv-stat.down { background: rgba(224, 71, 58, .09); }
.iv-block h2 { font-size: 15px; margin: 0 0 6px; }
.iv-block.k-special { border-color: color-mix(in srgb, var(--r-unique) 55%, var(--line)); background: linear-gradient(110deg, rgba(232, 129, 46, .12), var(--panel) 70%); }
.iv-block.k-set { border-color: color-mix(in srgb, var(--r-set) 55%, var(--line)); background: linear-gradient(110deg, rgba(62, 207, 106, .1), var(--panel) 70%); }
.iv-block.k-sockets { border-color: color-mix(in srgb, var(--r-mythic) 50%, var(--line)); }
.iv-block.k-corrupt { border-color: #8f2a22; background: linear-gradient(110deg, rgba(224, 71, 58, .12), var(--panel) 70%); }
.iv-block blockquote { margin: 0; }
.iv-foot { text-align: center; margin: 4px 0 12px; display: flex; flex-direction: column; gap: 4px; }
.iv-flavor { font-style: italic; color: #b9a988; }
.iv-empty { padding: 8px 4px; }
.ev-actions.two { flex-direction: row; } .ev-actions.two .btn { flex: 1; font-size: 14px; }
.iv-swap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: stretch; margin-bottom: 12px; }
.iv-side { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; text-align: center; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.iv-side b { font-size: 13.5px; overflow-wrap: anywhere; }
.iv-side.old { opacity: .75; }
.iv-side.new { border-color: var(--gold); box-shadow: 0 0 14px rgba(200, 162, 90, .25); }
.iv-side-label { font-size: 11px; letter-spacing: 1.5px; font-weight: 800; color: var(--muted); }
.iv-side.new .iv-side-label { color: var(--gold-hi); }
.iv-arrow { align-self: center; font-size: 22px; color: var(--gold); }
.iv-diff { display: grid; grid-template-columns: 1fr auto auto auto; gap: 6px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid rgba(58, 48, 39, .6); }
.iv-diff:last-child { border-bottom: 0; }
.iv-delta { font-weight: 700; font-size: 13px; min-width: 64px; text-align: right; }
.iv-diff.up .iv-delta { color: #6dd96a; } .iv-diff.down .iv-delta { color: #ff7b6e; }
.iv-confirm { margin-bottom: 12px; } .iv-confirm .btn { flex: 1; padding: 13px; font-size: 16px; }

/* ───────── город: Лекарь, Ежедневный вход, Лидеры, Помощь, Поддержать (townx.js) ───────── */
.heal-pools .bar { margin-top: 6px; }
.ev-opt.hot { border-color: var(--gold); box-shadow: 0 0 12px rgba(200, 162, 90, .2); }
.ev-opt.off { opacity: .6; }
.daily-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 12px 0 8px; }
.daily-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .3); font-size: 18px; }
.daily-day small { font-size: 11px; color: var(--muted); }
.daily-day.on { border-color: #b8622a; background: linear-gradient(#5a2a12, #2a140a); }
.daily-day.big { border-color: var(--gold); }
.daily-chests { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.daily-chest { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; text-align: center; border-radius: 14px;
  border: 1px solid var(--line); background: linear-gradient(var(--panel-2), var(--panel)); color: var(--text); font: inherit; cursor: pointer; }
.daily-chest.ready { border-color: var(--gold); box-shadow: 0 0 16px rgba(200, 162, 90, .3); }
.daily-chest.ready .daily-chest-ico { animation: bob 2.2s ease-in-out infinite; }
.daily-chest-ico { font-size: 40px; }
.daily-chest small { font-size: 12px; }
.daily-got { border-color: var(--gold); }
.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; align-items: end; margin: 12px 0; }
.podium-col { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; min-width: 0; }
.podium-col b { font-size: 13px; overflow-wrap: anywhere; }
.podium-col small { font-size: 11px; }
.podium-medal { font-size: 28px; }
.podium-cls { font-size: 18px; }
.podium-step { width: 100%; margin-top: 6px; border-radius: 8px 8px 0 0; background: linear-gradient(var(--panel-2), rgba(0, 0, 0, .3));
  border: 1px solid var(--line); border-bottom: 0; }
.podium-col.p1 .podium-step { height: 56px; border-color: #c8a25a; background: linear-gradient(rgba(240, 207, 134, .25), rgba(0, 0, 0, .2)); }
.podium-col.p2 .podium-step { height: 38px; border-color: #a3a3a3; }
.podium-col.p3 .podium-step { height: 26px; border-color: #b8622a; }
.podium-col.me b, .lb-row.me b { color: var(--gold-hi); }
.lb-row { display: grid; grid-template-columns: 34px 24px 1fr auto; gap: 6px; align-items: baseline; padding: 7px 4px; border-top: 1px solid rgba(58, 48, 39, .6); }
.lb-row.me { background: rgba(200, 162, 90, .1); border-radius: 8px; }
.lb-pos { color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-me { margin-top: 10px; text-align: center; font-weight: 700; color: var(--gold-hi); }
.help-body { line-height: 1.5; }
.donate-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.donate-tier { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px 12px; text-align: center;
  border-radius: 14px; border: 1px solid #6a3550; background: linear-gradient(rgba(255, 122, 176, .1), var(--panel)); color: var(--text); font: inherit; cursor: pointer; }
.donate-tier:active { transform: scale(.98); }
.donate-ico { font-size: 34px; }
.donate-tier small { font-size: 12px; }
.donate-price { margin-top: 4px; padding: 3px 12px; border-radius: 999px; background: rgba(0, 0, 0, .4); border: 1px solid var(--gold); color: var(--gold-hi); font-weight: 700; }
.iv-mini { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--rc, var(--line)) 45%, var(--line));
  background: rgba(0, 0, 0, .2); margin-top: 6px; }
.iv-mini.r-normal { --rc: var(--r-normal); } .iv-mini.r-magic { --rc: var(--r-magic); } .iv-mini.r-rare { --rc: var(--r-rare); }
.iv-mini.r-set { --rc: var(--r-set); } .iv-mini.r-unique { --rc: var(--r-unique); } .iv-mini.r-mythic { --rc: var(--r-mythic); }
.iv-mini-top { display: flex; gap: 10px; align-items: center; text-align: left; background: none; border: 0; color: var(--text); font: inherit; padding: 0 0 6px; cursor: pointer; }
.iv-mini-top div { display: flex; flex-direction: column; }
.iv-mini .iv-stat { padding: 3px 6px; font-size: 14px; }
.iv-mini-block { margin-top: 6px; padding: 6px 8px; border-radius: 8px; border-left: 3px solid var(--line); font-size: 13.5px; background: rgba(255, 255, 255, .03); }
.iv-mini-block.k-special { border-left-color: var(--r-unique); } .iv-mini-block.k-set { border-left-color: var(--r-set); }
.iv-mini-block.k-sockets { border-left-color: var(--r-mythic); } .iv-mini-block.k-corrupt { border-left-color: #e0473a; }

/* ───────── умения (skillx.js) ───────── */
.skill-xl { width: 84px; height: 84px; font-size: 42px; border-radius: 20px; }
.sk-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 18px;
  border-color: color-mix(in srgb, var(--sc) 50%, var(--line));
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--sc) 18%, var(--panel)), var(--panel) 70%); }
.sk-head h1 { margin: 8px 0 0; }
.sk-head .progress-label, .sk-head .bar { width: 100%; }
.sk-tag { color: var(--sc); font-weight: 700; font-size: 13px; letter-spacing: .5px; }
.sk-cols { display: grid; gap: 8px; margin-bottom: 12px; }
.sk-cols.two { grid-template-columns: 1fr 1fr; }
.sk-col { padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 6px; }
.sk-col.on { border-color: var(--gold); }
.sk-col.lock { opacity: .7; }
.sk-col-t { font-size: 12px; letter-spacing: 1px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.sk-col.on .sk-col-t { color: var(--gold-hi); }
.sk-pill { padding: 5px 8px; border-radius: 8px; background: rgba(0, 0, 0, .3); font-size: 14px; }
.sk-col-lock { font-size: 12px; color: #ff8a7a; }
.sk-sup { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; color: var(--text); font: inherit; cursor: pointer; }
.sk-sup div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sk-slots { display: flex; gap: 8px; margin: 10px 0 4px; }
.sk-slot { width: 38px; height: 38px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; font-size: 18px; }
.sk-slot.on { border: 2px solid var(--sc); box-shadow: 0 0 10px color-mix(in srgb, var(--sc) 40%, transparent); }
.sk-sups { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.sk-supc { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; text-align: center; border-radius: 12px;
  border: 1px solid var(--line); background: linear-gradient(var(--panel-2), var(--panel)); color: var(--text); font: inherit; cursor: pointer; }
.sk-supc.on { border-color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.sk-supc.lock { opacity: .5; }
.sk-supc-ico { font-size: 28px; }
.sk-supc small { font-size: 12px; }
.ev-opt.on { border-color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.ev-opt.lock { opacity: .5; }
.ev-card .iv-mini { margin-top: 0; }
.item-row .badge { margin-left: auto; align-self: center; flex: 0 0 auto; }

/* ───────── Восхождение и создание героя (heroes.js) ───────── */
.asc-path { display: flex; flex-direction: column; margin-bottom: 12px; }
.asc-node { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 0 0 12px; }
.asc-node.tap { cursor: pointer; }
.asc-line { position: absolute; left: 25px; top: 46px; bottom: 0; width: 2px; background: var(--line); }
.asc-line.last { display: none; }
.asc-node.s-taken .asc-line { background: var(--gold); }
.asc-dot { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; position: relative; z-index: 1;
  border: 2px solid var(--line); background: radial-gradient(circle at 50% 40%, #2a2219, #0b0907 75%); }
.asc-dot.big { width: 60px; height: 60px; font-size: 30px; border-color: var(--gold); flex: 0 0 auto; }
.asc-node.crown .asc-dot { border-style: double; border-width: 4px; width: 50px; height: 50px; }
.asc-body { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); line-height: 1.4; font-size: 14px; }
.asc-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.asc-top b { font-size: 15px; }
.asc-req { font-size: 12px; color: var(--muted); }
.asc-node.s-taken .asc-dot { border-color: var(--gold); box-shadow: 0 0 14px rgba(240, 207, 134, .45); }
.asc-node.s-taken .asc-body { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.asc-node.s-ready .asc-dot { border-color: var(--ok); animation: glowpulse 2s ease-in-out infinite; box-shadow: 0 0 12px rgba(95, 174, 91, .5); }
.asc-node.s-ready .asc-body { border-color: var(--ok); }
.asc-node.s-locked { opacity: .55; }
.cc-intro { text-align: center; padding: 24px 18px; line-height: 1.5; }
.cc-intro-ico { font-size: 56px; animation: popin .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.cc-intro h1 { margin: 6px 0 12px; letter-spacing: 2px; }
.cc-intro .rich, .cc-intro > div:not(.cc-dots):not(.cc-intro-ico) { text-align: left; }
.cc-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.cc-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.cc-dots span.on { background: var(--gold); width: 22px; border-radius: 4px; }
.cc-styles, .cc-classes { display: grid; gap: 8px; margin-bottom: 12px; }
.cc-classes { grid-template-columns: 1fr 1fr; }
.cc-style, .cc-class { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; text-align: left; border-radius: 14px;
  border: 1px solid var(--line); background: linear-gradient(var(--panel-2), var(--panel)); color: var(--text); font: inherit; cursor: pointer; }
.cc-style:active, .cc-class:active { transform: scale(.985); }
.cc-style b { font-size: 17px; color: var(--gold-hi); }
.cc-style-ico { display: flex; gap: 6px; font-size: 26px; }
.cc-class { align-items: center; text-align: center; }
.cc-class.lock { opacity: .55; }
.cc-class-ico { font-size: 40px; }
.cc-perk { color: #e8b27a; }
.cc-attrs { width: 100%; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.cc-attr { display: grid; grid-template-columns: auto 1fr 24px; gap: 6px; align-items: center; font-size: 12px; text-align: left; }
.cc-bar { height: 6px; border-radius: 3px; background: rgba(0, 0, 0, .4); overflow: hidden; }
.cc-bar i { display: block; height: 100%; border-radius: 3px; }
.cc-bar.a-str i { background: #d24a3a; } .cc-bar.a-dex i { background: #4fbf5a; } .cc-bar.a-int i { background: #4f7fe0; }
.cc-hero { text-align: center; padding-top: 18px; }
.cc-hero-ico { font-size: 64px; animation: popin .45s cubic-bezier(.2, 1.6, .4, 1) both; }
.cc-hero h1 { margin: 4px 0 6px; }
.cc-hero .cc-attrs { margin: 10px 0 4px; }
.cc-hero .cc-attr { font-size: 14px; }
.cc-hero .cc-bar { height: 8px; }
.cc-start { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-name input { font-size: 17px; }

/* ───────── разделы автоматических экранов (auto.py) ───────── */
.ev-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.ev-pill { padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; }
.ev-sec { line-height: 1.45; }
.ev-sec h2 { font-size: 15px; margin: 0 0 6px; }
.ev-sec.k-quote { border-left: 3px solid color-mix(in srgb, var(--gold) 60%, var(--line)); }
.ev-sec.folded > div:not(h2) { max-height: 150px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.ev-more { width: 100%; margin-top: 6px; }
.garden-beds .bed-ico { font-size: 32px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px;
  background: radial-gradient(circle at 50% 40%, #2c3a1f, #0e120a 75%); border: 1px solid #3c5a2a; }
.garden-beds .bed.on { border-color: #3ecf6a; box-shadow: 0 0 14px rgba(62, 207, 106, .3); }

/* ───────── Санктум (sanctum.js) ───────── */
.sn-head { border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  background: radial-gradient(120% 80% at 50% 0%, rgba(240, 207, 134, .14), var(--panel) 70%); }
.sn-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sn-ico { font-size: 26px; }
.sn-title { flex: 1; font-weight: 800; color: var(--gold-hi); font-size: 16px; }
.sn-room { font-size: 13px; color: var(--muted); }
.sn-path { display: flex; gap: 3px; align-items: center; margin-bottom: 6px; }
.sn-step { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.sn-step.done { background: var(--gold); }
.sn-step.here { background: var(--gold-hi); box-shadow: 0 0 8px var(--gold-hi); height: 12px; }
.sn-step.boss { flex: 0 0 auto; height: auto; background: none; font-size: 15px; }
.sn-floors { display: flex; gap: 6px; margin-bottom: 10px; }
.sn-floors span { flex: 1; text-align: center; font-size: 11px; padding: 2px 0; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.sn-floors span.done { border-color: var(--gold); color: var(--gold); }
.sn-floors span.here { background: rgba(240, 207, 134, .18); border-color: var(--gold-hi); color: var(--gold-hi); font-weight: 800; }
.sn-mod { margin-top: 8px; font-size: 13px; color: #e8b27a; }
.sn-doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; margin-bottom: 12px; }
.sn-door { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px 12px; text-align: center; min-height: 150px;
  border-radius: 40px 40px 12px 12px; border: 1px solid #6b5636; color: var(--text); font: inherit; cursor: pointer;
  background: linear-gradient(#2b2117, #15100b); box-shadow: inset 0 0 18px rgba(0, 0, 0, .6); }
.sn-door.fight { border-color: #7a2a20; background: linear-gradient(#2e1612, #140a08); }
.sn-door:active { transform: scale(.97); }
.sn-door-ico { font-size: 34px; }
.sn-door small { font-size: 12px; }
.sn-roomc h1 { font-size: 20px; margin: 0; }
.sn-roomc > div:last-child:not(.npc-row) { margin-top: 10px; line-height: 1.45; }
.sn-reward { border-color: var(--gold); }
.sn-skill { display: flex; gap: 10px; align-items: flex-start; }
