/* Карточки игрока и персонажа — общие стили для админ-панели и ЛК.
   Построены на токенах темы (theme.css): --surface / --line / --radius. */

/* ==========================================================================
   КАРТОЧКА ИГРОКА
   Боковая панель: всё об аккаунте на одном экране, без потери контекста.
   Построена на общих токенах темы (--surface / --line / --radius).
   ========================================================================== */

/* Модальные карточки (игрок, персонаж): по центру, широкие, скроллируемые */
.pc-modal .modal-content {
    background: #0b0912;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
}

.pc-modal .modal-header {
    border-bottom: 1px solid var(--line);
    padding: 14px 20px;
}

.pc-modal .modal-body { padding: 20px; }

/* Двухколоночная раскладка секций внутри широкого модала */
.pc-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    align-items: start;
}

.pc-columns > .pc-section { min-width: 0; }
.pc-span { grid-column: 1 / -1; }

@media (max-width: 991.98px) {
    .pc-columns { grid-template-columns: 1fr; }
}

/* --- Шапка: аватар, логин, статусы --- */

.pc-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(420px 160px at 8% 0%, rgba(139, 92, 246, 0.18), transparent 70%),
        var(--surface);
}

.pc-avatar {
    width: 64px;
    height: 64px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(139, 92, 246, 0.55);
}

.pc-name {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    word-break: break-word;
}

.pc-sub {
    font-size: 12px;
    color: #9a92ae;
    font-variant-numeric: tabular-nums;
}

.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* --- Полоса показателей --- */

.pc-kpis {
    display: grid;
    /* auto-fit вместо жёстких четырёх колонок: на узкой панели плитки
       перестраиваются 2×2, и подписи не упираются друг в друга */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.pc-kpi {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-sunken);
}

.pc-kpi .k {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b6480;
}

.pc-kpi .v {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.pc-kpi.is-gold .v { color: var(--accent); }
.pc-kpi.is-violet .v { color: var(--primary); }
.pc-kpi.is-good .v { color: var(--good); }

/* --- Баннер наказания --- */

.pc-ban {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 107, 107, 0.45);
    border-left-width: 4px;
    border-radius: var(--radius-sm);
    background: rgba(255, 107, 107, 0.09);
}

.pc-ban.is-clean {
    border-color: rgba(47, 191, 98, 0.4);
    background: rgba(47, 191, 98, 0.07);
}

.pc-ban-title {
    font-weight: 700;
    color: var(--bad);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pc-ban.is-clean .pc-ban-title { color: var(--good); }

.pc-ban-meta { font-size: 12.5px; color: #b9b2c8; margin-top: 4px; }

/* --- Секции --- */

.pc-section { margin-top: 16px; }

.pc-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.pc-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent);
}

.pc-box {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    overflow: hidden;
}

.pc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-soft);
}

.pc-row:last-child { border-bottom: 0; }

.pc-row .grow { flex: 1; min-width: 0; }
.pc-row .t { color: #e9e5f2; font-size: 13.5px; }
.pc-row .s { color: #8f88a3; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.pc-row .amt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.pc-empty { padding: 16px; text-align: center; color: #6b6480; font-size: 13px; }

/* Персонаж */
.pc-char-ava {
    width: 34px; height: 34px; flex: none;
    border-radius: 8px; object-fit: cover;
    border: 1px solid var(--line);
}

.pc-online-dot {
    width: 8px; height: 8px; flex: none;
    border-radius: 50%;
    background: #4a4458;
}
.pc-online-dot.is-on { background: var(--good); box-shadow: 0 0 0 3px rgba(47, 191, 98, 0.18); }

/* Склад: сетка предметов */
.pc-items { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; }

.pc-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-sunken);
    font-size: 12.5px;
    color: #e9e5f2;
}

.pc-item img { width: 18px; height: 18px; object-fit: contain; }
.pc-item b { color: var(--accent); font-variant-numeric: tabular-nums; }

/* Быстрые действия */
.pc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pc-location { margin-top: 8px; font-size: 13px; color: #cfc9dd; cursor: help; }
.pc-location i { color: #f87171; margin-right: 2px; }
.pc-location .l { color: #8f88a3; }
.pc-location b { color: #fff; }
.pc-location .s { color: #8f88a3; font-size: 11.5px; }

/* Скелетон карточки */
.pc-skeleton { display: flex; flex-direction: column; gap: 12px; }
.pc-skeleton .skel { height: 18px; }
.pc-skeleton .skel.tall { height: 74px; }

/* Чипы недавно открытых игроков */
.pc-recent-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-sunken);
    color: #cfc9dd;
    font-size: 12.5px;
    cursor: pointer;
    transition: border-color 0.18s, color 0.18s;
}
.pc-recent-chip:hover { border-color: var(--primary); color: #fff; }

@media (max-width: 575.98px) {
    .pc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pc-head { flex-direction: column; text-align: center; }
}


/* --- Карточка персонажа --- */

.pc-char-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(420px 160px at 92% 0%, rgba(251, 191, 36, 0.12), transparent 70%),
        var(--surface);
}

.pc-char-head .pc-avatar { border-color: rgba(251, 191, 36, 0.5); }

/* Кликабельная строка персонажа в карточке игрока */
.pc-row.is-link { cursor: pointer; transition: background 0.15s; }
.pc-row.is-link:hover { background: rgba(139, 92, 246, 0.09); }
.pc-row.is-link:hover .t { color: #fff; }

/* Экипировка: компактная сетка */
.pc-equip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px;
    padding: 12px;
}

.pc-equip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-sunken);
    font-size: 12px;
    color: #e9e5f2;
    min-width: 0;
}

.pc-equip-item img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.pc-equip-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Кошелёк персонажа */
.pc-wallet {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

/* --- Кукла снаряжения (как окно «Осн.» в игре) --- */

.eq-doll {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 16px 12px;
    border-radius: var(--radius-sm);
    background:
        radial-gradient(300px 220px at 50% 40%, rgba(139, 92, 246, 0.10), transparent 70%),
        rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.eq-doll svg.eq-figure {
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    height: 82%;
    opacity: 0.08;
    pointer-events: none;
}

/* Ряд из трёх колонок: как в клиенте x≈369 / 422 / 476 */
.eq-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    gap: 8px;
    z-index: 1;
}

.eq-row.eq-soul {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.eq-gap { width: 46px; height: 46px; }

/* Два кольца одно под другим в правой колонке, как Equip_10/11 */
.eq-rings { display: flex; flex-direction: column; gap: 6px; }

.eq-slot {
    position: relative;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(10, 8, 16, 0.75);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
}

.eq-slot.small { width: 32px; height: 32px; margin-bottom: 0; }

.eq-slot.filled {
    border-color: rgba(251, 191, 36, 0.55);
    box-shadow: inset 0 0 12px rgba(251, 191, 36, 0.10), 0 0 8px rgba(251, 191, 36, 0.12);
    cursor: help;
}

.eq-slot img { width: 84%; height: 84%; object-fit: contain; }

.eq-slot .ph-ico { color: #3d3750; font-size: 15px; }

.eq-slot .eq-tag {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    letter-spacing: 0.04em;
    color: #6b6480;
    white-space: nowrap;
}

.eq-slot { margin-bottom: 14px; } /* место под подпись */

.eq-extra { padding: 0 14px 12px; }

/* --- Сетка рюкзака/склада (как в игре) --- */

.bag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 6px;
    padding: 12px;
}

.bag-slot {
    position: relative;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 7px;
    border: 1px solid var(--line);
    background: rgba(10, 8, 16, 0.7);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.55);
}

.bag-slot.filled {
    border-color: rgba(139, 92, 246, 0.45);
    cursor: help;
}

.bag-slot img { width: 82%; height: 82%; object-fit: contain; }

.bag-slot .cnt {
    position: absolute;
    right: 2px;
    bottom: 1px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px #000, 0 0 4px #000;
    font-variant-numeric: tabular-nums;
}

.bag-more {
    padding: 0 14px 10px;
    font-size: 11.5px;
    color: #6b6480;
}

/* Подвал секции: монеты как в игре */
.bag-money {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 10px 14px;
    border-top: 1px solid var(--line-soft);
    font-size: 12.5px;
    color: #cfc9dd;
    font-variant-numeric: tabular-nums;
}

.bag-money .coin {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.coin-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: none;
    box-shadow: inset -1px -2px 3px rgba(0,0,0,0.5), 0 0 3px rgba(255,255,255,0.15);
}

.coin-gold { background: radial-gradient(circle at 35% 30%, #ffe9a3, #d99a1c 70%); }
.coin-silver { background: radial-gradient(circle at 35% 30%, #f2f2f6, #9aa0ad 70%); }
.coin-copper { background: radial-gradient(circle at 35% 30%, #f2b088, #a45a2a 70%); }
.coin-diamond { background: radial-gradient(circle at 35% 30%, #d9f4ff, #3aa0d8 70%); }
.coin-leaf { background: radial-gradient(circle at 35% 30%, #b9f6c8, #2fa35a 70%); }

/* Пять показателей в ряд (карточка игрока с «Листьями Эйры») */
.pc-kpis.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 767.98px) { .pc-kpis.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- Кошелёк персонажа: строки с четырьмя ярусами монет --- */
.pc-money .money-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-soft);
}
.money-row .grow { flex: 1; min-width: 0; }
.money-row .t { color: #e9e5f2; font-size: 13.5px; }
.money-row .s { color: #8f88a3; font-size: 11.5px; }

.money-tiers {
    display: grid;
    grid-template-columns: repeat(4, minmax(52px, auto));
    gap: 10px;
    align-items: center;
}
.money-cell {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #e9e5f2;
}
.money-cell.dim { opacity: 0.32; font-weight: 400; }

/* Монетки должны быть видны везде, где используются (в т.ч. внутри .amt) */
.coin-dot { display: inline-block; vertical-align: middle; }
.coin { display: inline-flex; align-items: center; gap: 5px; }

/* Ссылки-карточки в списке онлайна: имя -> персонаж, ID -> аккаунт */
a.pc-link { text-decoration: none; transition: color 0.15s; }
a.pc-link:hover { color: var(--accent) !important; }
a.pc-link:hover i { color: var(--accent) !important; }


/* --- Тултип предмета «как в игре» --- */
#pc-tooltip {
    position: fixed;
    z-index: 2000;
    width: 290px;
    padding: 12px 14px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 8px;
    background: rgba(9, 7, 14, 0.97);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    color: #e9e5f2;
    font-size: 12.5px;
    line-height: 1.45;
    pointer-events: none;
}
.pct-name { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.pct-enh { color: var(--accent); font-weight: 700; }
.pct-sub { color: #8f88a3; font-size: 11px; margin-bottom: 6px; }
.pct-req { color: #b9b2c8; margin-bottom: 4px; }
.pct-stats div { display: flex; justify-content: space-between; gap: 12px; }
.pct-stats b { color: #fff; font-variant-numeric: tabular-nums; }
.pct-addons { margin-top: 6px; color: #7dd3a0; }
.pct-sockets { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.pct-socket { display: flex; align-items: center; gap: 6px; color: #6b6480; }
.pct-socket i { font-size: 10px; }
.pct-socket.filled { color: #c084fc; }
.pct-socket.filled.inactive { color: #6b6480; text-decoration: line-through; }
.pct-meta { margin-top: 6px; color: #8f88a3; font-size: 11px; }
.pct-desc { margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(255,255,255,0.1); color: #cfc9dd; font-style: italic; }
.pct-owner { margin-top: 6px; color: #6b6480; font-size: 11px; }

/* Предметы с тултипом — курсор-подсказка */
[data-tip-id] { cursor: help; }

/* --- Прогресс до следующего уровня --- */
.pc-level { margin-top: 12px; }
.pc-level-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: #e9e5f2; margin-bottom: 6px; }
.pc-level-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); overflow: hidden; }
.pc-level-bar > div { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); box-shadow: 0 0 10px rgba(139,92,246,0.5); transition: width 0.4s; }

/* Тултип: порядок и цвета как в клиенте */
.pct-eval { color: #ffd700; font-size: 12px; }
.pct-affix { margin-top: 6px; }
.pct-affix-title { font-weight: 600; margin-bottom: 2px; }
.pct-identify { margin-top: 4px; color: #9dff9d; }
.pct-quench { margin-top: 4px; color: #ff7502; }
.pct-socket { align-items: flex-start; }
.pct-socket.filled.gem { color: #00ff00; }
.pct-socket.filled.rune { color: #a66eff; }
.pct-socket span b { display: block; }
.pct-socket-lines { color: #cfc9dd; font-size: 11.5px; }
.pct-chain { margin-top: 6px; color: #00d2ff; }

/* ---- Подробно (админка): вкладки расшифровки ---- */
.pcd { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.pcd-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.pcd-tab { border: 0; background: transparent; color: var(--muted, #9aa0b4); font-size: 12.5px; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.pcd-tab:hover { color: #fff; background: rgba(255,255,255,.05); }
.pcd-tab.active { color: #fff; background: rgba(124,92,255,.22); }
.pcd-tab .cnt { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px; border-radius: 9px; background: rgba(255,255,255,.1); font-size: 11px; }
.pcd-pane { padding: 12px 14px; max-height: 560px; overflow: auto; }
.pcd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .pcd-cols { grid-template-columns: 1fr; } }
.pcd-sub { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #9aa0b4); margin: 10px 0 6px; }
.pcd-sub:first-child { margin-top: 0; }
.pcd-rows { display: flex; flex-direction: column; }
.pcd-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed rgba(255,255,255,.06); font-size: 13px; }
.pcd-row:last-child { border-bottom: 0; }
.pcd-l { color: #cfd3e3; }
.pcd-h { font-size: 11px; color: var(--muted, #9aa0b4); }
.pcd-v { text-align: right; font-variant-numeric: tabular-nums; white-space: pre-wrap; max-width: 60%; }
.pcd-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(255,255,255,.2); }
.pcd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin-bottom: 10px; }
.pcd-current { padding: 10px 12px; border-radius: 10px; background: rgba(255,203,74,.08); border: 1px solid rgba(255,203,74,.25); margin-bottom: 8px; }
.pcd-group { margin-bottom: 10px; }
.pcd-group-t { font-weight: 600; font-size: 12.5px; color: #e6e1ff; margin: 8px 0 4px; }
.pcd-group-t .s { color: var(--muted, #9aa0b4); font-weight: 400; }
.pcd-item { display: flex; gap: 8px; align-items: baseline; padding: 4px 8px; border-radius: 6px; font-size: 12.5px; }
.pcd-item:nth-child(even) { background: rgba(255,255,255,.025); }
.pcd-item.is-current { background: rgba(255,203,74,.12); }
.pcd-item .n { flex: 0 0 auto; }
.pcd-item .s { flex: 1 1 auto; color: var(--muted, #9aa0b4); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcd-item .id { flex: 0 0 auto; color: var(--muted, #9aa0b4); font-size: 11px; }
.pcd-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 10px; }
.pcd-skill { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; padding: 3px 6px; border-radius: 6px; background: rgba(255,255,255,.03); }
.pcd-skill .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcd-skill .lv { color: #ffd76a; font-variant-numeric: tabular-nums; }
.pcd-skill .lv .s { color: var(--muted, #9aa0b4); }
.pcd-crafts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.pcd-craft { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); opacity: .6; }
.pcd-craft.is-open { opacity: 1; border-color: rgba(124,92,255,.4); }
.pcd-craft .n { font-weight: 600; font-size: 13px; }
.pcd-craft .v { color: #ffd76a; }
.pcd-craft .s { font-size: 11px; color: var(--muted, #9aa0b4); }
.pcd-bars { display: flex; flex-direction: column; gap: 3px; }
.pcd-bars-t { font-size: 11.5px; color: var(--muted, #9aa0b4); margin-top: 6px; }
.pcd-bar { display: grid; grid-template-columns: 110px 1fr 70px; align-items: center; gap: 8px; font-size: 12px; }
.pcd-bar .b { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.pcd-bar .b i { display: block; height: 100%; background: linear-gradient(90deg, #7c5cff, #b48cff); }
.pcd-bar .v { text-align: right; color: var(--muted, #9aa0b4); font-variant-numeric: tabular-nums; }
.pc-history { max-height: 360px; overflow-y: auto; }
.pc-history-row .s { white-space: normal; }
.pc-snap-row .t { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pc-snap-row .badge { font-size: 10px; }
.pc-mail .pcd { margin-top: 8px; }
.pc-mail-row { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.pc-mail-row:last-child { border-bottom: 0; }
.pc-mail-head { display: flex; align-items: center; gap: 6px; }
.pc-mail-title { color: #e9e5f2; font-weight: 600; font-size: 13.5px; }
.pc-mail-dot { width: 8px; height: 8px; border-radius: 50%; background: #3c3750; flex: 0 0 auto; }
.pc-mail-row.is-unread .pc-mail-dot { background: #a78bfa; box-shadow: 0 0 6px rgba(167, 139, 250, .8); }
.pc-mail-row .s { color: #8f88a3; font-size: 11.5px; }
.pc-mail-text { color: #cfc9dd; font-size: 12.5px; margin-top: 4px; white-space: pre-wrap; }
.pcd-pets { display: flex; flex-direction: column; gap: 10px; }
.pcd-pet { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.pcd-pet-head { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.pcd-pet-head .s { color: var(--muted, #9aa0b4); font-size: 12px; }
.pcd-pet-meta, .pcd-pet-skills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.pcd-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.07); font-size: 11.5px; }
.pcd-tag.gold { background: rgba(255,203,74,.15); color: #ffd76a; }
.pcd-tag.warn { background: rgba(255,120,80,.15); color: #ff9f7a; }
.pcd-pet-combat { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.pcd-tag.good { color: #4ade80; border-color: rgba(74, 222, 128, .35); }
.pcd-tag.bad { color: #f87171; border-color: rgba(248, 113, 113, .35); }
.pcd-pet-talents { margin-top: 6px; font-size: 12.5px; color: #e9e5f2; }
.pcd-pet-elements { margin-top: 6px; font-size: 12px; color: #cfc9dd; display: flex; flex-direction: column; gap: 2px; }
.pcd-pet-elements .s { color: #8f88a3; }
@media (max-width: 900px) { .pcd-pet-combat { grid-template-columns: 1fr; } }
.pc-empty { color: var(--muted, #9aa0b4); font-size: 12.5px; padding: 6px 0; }
.pcd .s { font-size: 11.5px; color: var(--muted, #9aa0b4); }
.pcd .mb-2 { margin-bottom: 8px; }

/* ---- Тултип предмета: строки как в игре ---- */
#pc-tooltip { width: auto; min-width: 260px; max-width: 360px; padding: 12px 14px; font-size: 13px; line-height: 1.45;
  background: linear-gradient(180deg, rgba(20,17,30,.98), rgba(12,10,18,.98)); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 40px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.03); }
.pct-line { white-space: pre-wrap; }
.pct-k-name { font-size: 15.5px; font-weight: 700; margin-bottom: 2px; letter-spacing: .01em; }
.pct-k-eval { font-weight: 600; }
.pct-k-pos { color: #cfc9dd; margin-bottom: 2px; }
.pct-k-req { margin-bottom: 4px; }
.pct-k-stat { font-size: 13.5px; }
.pct-k-affix, .pct-k-quench, .pct-k-suite, .pct-k-chain { margin-top: 6px; font-weight: 600; }
.pct-k-affix-line, .pct-k-rune-line, .pct-k-gem-line, .pct-k-chain-line { font-size: 12.5px; }
.pct-k-refine { margin-top: 6px; }
.pct-k-identify { margin-top: 2px; }
.pct-k-suite-item { font-size: 12.5px; }
.pct-k-suite-bonus { font-size: 12.5px; }
.pct-k-rune, .pct-k-gem { margin-top: 4px; }
.pct-k-meta { margin-top: 6px; }
.pct-k-owner { margin-top: 4px; font-style: italic; }
.pct-k-flag, .pct-k-bound { font-size: 12.5px; }
.pct-k-bound { margin-top: 4px; }
.pct-k-desc { margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(255,255,255,.12); font-style: italic; font-size: 12.5px; }

/* Опасные действия карточки — отдельной группой справа */
.pc-actions-danger { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: auto; order: 9; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.12); }

.pc-kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
