/* ========================================== */
/* TWD BARAHOLKA — v3.0 FORUM STYLE            */
/* Ñòðîãèé, ïëîñêèé, â òîí äèçàéíó ôîðóìà      */
/* ========================================== */

#twd-baraholka {
    font-family: 'Cuprum', sans-serif;
    color: #c5d1c0; /* Ìÿãêèé áëåäíî-çåë¸íûé, êàê íà ôîðóìå */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    letter-spacing: 0.3px;
}

#twd-baraholka * { box-sizing: border-box; }

/* ------------------------------------------ */
/* 1. ÒÎÏÁÀÐ: ÁÀËÀÍÑ + ÐÅÏÓÒÀÖÈß              */
/* ------------------------------------------ */
#twd-baraholka .bh-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    background: rgba(18, 22, 18, 0.75);
    border: 1px solid #3e4a36;
    border-radius: 0; /* Ñòðîãèå óãëû */
    flex-wrap: wrap;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.6);
}

#twd-baraholka .bh-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8b9a7f;
}
#twd-baraholka .bh-balance i.fas { color: #c49a45; font-size: 14px; }
#twd-baraholka .bh-balance strong {
    color: #d4af37;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0;
}
#twd-baraholka .bh-balance-detail {
    font-family: 'News Cycle', sans-serif;
    font-size: 10px;
    color: #6b7a66;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
}

/* Ðåïóòàöèîííûé áëîê */
#twd-baraholka .bh-rep-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 280px;
}
#twd-baraholka .bh-rep-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-family: 'News Cycle', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #8b9a7f;
}
#twd-baraholka .bh-rep-labels i.fas { color: #c49a45; margin-right: 4px; font-size: 10px; }
#twd-baraholka .bh-rep-score {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #d4af37;
    font-size: 12px;
    letter-spacing: 0;
}
#twd-baraholka .bh-rep-bar {
    height: 4px;
    background: #0a0c08;
    border: 1px solid #2e3628;
    border-radius: 0;
    overflow: hidden;
}
#twd-baraholka .bh-rep-fill {
    height: 100%;
    transition: width 0.3s ease;
}
#twd-baraholka .bh-rep-fill.gold { background: #c49a45; }
#twd-baraholka .bh-rep-fill.olive { background: #4a5a42; }
#twd-baraholka .bh-rep-fill.red { background: #8b0000; }

/* ------------------------------------------ */
/* 2. ÏËÀØÊÀ ÊÀÐÛ                            */
/* ------------------------------------------ */
#twd-baraholka .bh-kara-plaque {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(40, 10, 10, 0.6);
    border: 1px solid #6b1010;
    border-left: 3px solid #c83a3a;
    border-radius: 0;
    flex-wrap: wrap;
}
#twd-baraholka .bh-kara-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.4);
    border: 1px solid #c83a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ff5555;
}
#twd-baraholka .bh-kara-content { flex: 1; }
#twd-baraholka .bh-kara-title {
    font-family: 'Forum', serif;
    font-size: 16px;
    color: #ff5555;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2px;
}
#twd-baraholka .bh-kara-desc {
    font-family: 'News Cycle', sans-serif;
    font-size: 12px;
    color: #c89898;
    font-style: italic;
}
#twd-baraholka .bh-kara-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    background: rgba(139, 0, 0, 0.3);
    border: 1px solid #c83a3a;
    color: #ff7777;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.2s;
}
#twd-baraholka .bh-kara-btn:hover {
    background: #8b0000;
    color: #fff;
}

/* ------------------------------------------ */
/* 3. HERO (Ñåìüÿ Âàðãàñ)                    */
/* ------------------------------------------ */
#twd-baraholka .bh-hero {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 20px;
    background: rgba(18, 22, 18, 0.75);
    border: 1px solid #3e4a36;
    padding: 20px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

#twd-baraholka .bh-hero-photo {
    width: 100%;
    min-height: 260px;
    background: url('https://forumupload.ru/uploads/001b/6f/15/2/167947.jpg') center/cover no-repeat #0a0c08;
    border: 1px solid #2e3628;
    filter: sepia(0.3) contrast(1.1) brightness(0.8);
}

#twd-baraholka .bh-hero-info {
    display: flex;
    flex-direction: column;
}

#twd-baraholka .bh-hero-info h2 {
    margin: 0 0 12px;
    font-family: 'Forum', serif;
    font-size: 22px;
    color: #c49a45;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}
#twd-baraholka .bh-hero-info h2 i {
    color: #c49a45;
    font-size: 18px;
}

#twd-baraholka .bh-hero-info p {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #a0b09a;
}

#twd-baraholka .bh-family {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 15px;
}

#twd-baraholka .bh-family-card {
    width: 65px;
    text-align: center;
    cursor: help;
}

#twd-baraholka .bh-family-photo {
    width: 65px;
    height: 65px;
    border: 1px solid #3e4a36;
    background-size: cover;
    background-position: center;
    filter: sepia(0.4) contrast(1.1) brightness(0.8);
    transition: 0.2s;
}
#twd-baraholka .bh-family-card:hover .bh-family-photo {
    border-color: #c49a45;
    filter: sepia(0) contrast(1.1) brightness(1);
}

#twd-baraholka .bh-family-name {
    font-family: 'Caveat', cursive;
    font-size: 13px;
    color: #c49a45;
    margin-top: 4px;
}

#twd-baraholka .bh-warning {
    background: rgba(139, 0, 0, 0.1);
    border: 1px solid #5a1a1a;
    border-left: 3px solid #8b0000;
    padding: 8px 12px;
    margin-top: 12px;
    color: #d09090;
    font-size: 11px;
    font-style: italic;
    font-family: 'News Cycle', sans-serif;
}
#twd-baraholka .bh-warning i { color: #ff5555; margin-right: 6px; }

/* ------------------------------------------ */
/* 4. ÑÅÊÖÈÈ                                 */
/* ------------------------------------------ */
#twd-baraholka .bh-section {
    background: rgba(18, 22, 18, 0.75);
    border: 1px solid #3e4a36;
    padding: 20px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

/* Çàãîëîâîê ñ ::: êàê íà ôîðóìå */
#twd-baraholka .bh-section-title {
    margin: 0 0 20px;
    font-family: 'Forum', serif;
    font-size: 16px;
    color: #c49a45;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}
#twd-baraholka .bh-section-title::before,
#twd-baraholka .bh-section-title::after {
    content: ':::';
    color: #4a5a42;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 0;
}
#twd-baraholka .bh-section-title i {
    color: #c49a45;
    font-size: 14px;
    display: none; /* Óáèðàåì èêîíêè, ÷òîáû áûëî ñòðîãî êàê íà ôîðóìå */
}

/* ------------------------------------------ */
/* 5. ÒÓËÁÀÐ: ×ÈÏÛ + ÑÎÐÒÈÐÎÂÊÀ + ÐÅÆÈÌ       */
/* ------------------------------------------ */
#twd-baraholka .bh-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

#twd-baraholka .bh-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}
#twd-baraholka .bh-chip {
    background: rgba(10, 12, 8, 0.5);
    border: 1px solid #2e3628;
    color: #8b9a7f;
    padding: 4px 10px;
    cursor: pointer;
    font-family: 'News Cycle', sans-serif;
    font-size: 11px;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
#twd-baraholka .bh-chip:hover {
    color: #d4af37;
    border-color: #c49a45;
}
#twd-baraholka .bh-chip.active {
    background: #3e4a36;
    color: #d4af37;
    border-color: #c49a45;
}
#twd-baraholka .bh-chip i.fas { display: none; } /* Óáèðàåì èêîíêè */

#twd-baraholka .bh-sort {
    display: flex;
    align-items: center;
    gap: 6px;
}
#twd-baraholka .bh-sort-label {
    font-size: 10px;
    color: #6b7a66;
    text-transform: uppercase;
}
#twd-baraholka .bh-sort-btn {
    background: none;
    border: 1px solid #2e3628;
    color: #8b9a7f;
    padding: 4px 8px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    transition: 0.2s;
}
#twd-baraholka .bh-sort-btn:hover { color: #d4af37; border-color: #c49a45; }
#twd-baraholka .bh-sort-btn.active {
    background: #2e3628;
    color: #d4af37;
    border-color: #c49a45;
}

#twd-baraholka .bh-mode-tabs {
    display: flex;
    gap: 4px;
}
#twd-baraholka .bh-mode-tab {
    background: rgba(10, 12, 8, 0.5);
    border: 1px solid #2e3628;
    color: #8b9a7f;
    padding: 5px 12px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.2s;
}
#twd-baraholka .bh-mode-tab:hover { color: #d4af37; border-color: #c49a45; }
#twd-baraholka .bh-mode-tab.active {
    background: #2e3628;
    color: #d4af37;
    border-color: #c49a45;
}
#twd-baraholka .bh-mode-tab i.fas { display: none; }

/* ------------------------------------------ */
/* 6. ÑÅÒÊÀ È ÏÐÎÊÐÓÒÊÀ                      */
/* ------------------------------------------ */
#twd-baraholka .bh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

#twd-baraholka .bh-scroll-wrapper {
    max-height: 650px;
    overflow-y: auto;
    padding-right: 8px;
    scroll-behavior: smooth;
}
#twd-baraholka .bh-scroll-wrapper::-webkit-scrollbar { width: 4px; }
#twd-baraholka .bh-scroll-wrapper::-webkit-scrollbar-track { background: #0a0c08; }
#twd-baraholka .bh-scroll-wrapper::-webkit-scrollbar-thumb { background: #3e4a36; }
#twd-baraholka .bh-scroll-wrapper::-webkit-scrollbar-thumb:hover { background: #c49a45; }

#twd-baraholka .bh-empty-note {
    color: #6b7a66;
    font-family: 'News Cycle', sans-serif;
    font-size: 12px;
    text-align: center;
    padding: 30px;
    font-style: italic;
    grid-column: 1 / -1;
}

/* ------------------------------------------ */
/* 7. ÊÀÐÒÎ×ÊÀ ÒÎÂÀÐÀ                        */
/* ------------------------------------------ */
#twd-baraholka .bh-card {
    background: rgba(10, 12, 8, 0.5);
    border: 1px solid #2e3628;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    position: relative;
    transition: 0.2s;
    min-height: 320px;
}
#twd-baraholka .bh-card:hover {
    border-color: #c49a45;
    background: rgba(20, 25, 20, 0.7);
}

/* Ïëàøêè ðåäêîñòè */
#twd-baraholka .bh-card-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    letter-spacing: 1px;
    padding: 3px 0;
    text-transform: uppercase;
    text-align: center;
    z-index: 2;
}
#twd-baraholka .bh-card-badge i.fas { display: none; }
#twd-baraholka .bh-card-badge.rarity-common { background: rgba(149, 165, 166, 0.3); color: #c5d1c0; border-bottom: 1px solid #95a5a6; }
#twd-baraholka .bh-card-badge.rarity-rare { background: rgba(212, 175, 55, 0.2); color: #d4af37; border-bottom: 1px solid #d4af37; }
#twd-baraholka .bh-card-badge.rarity-legendary { background: rgba(168, 85, 247, 0.2); color: #c27bff; border-bottom: 1px solid #a855f7; }
#twd-baraholka .bh-card-badge.sale { background: rgba(76, 175, 80, 0.2); color: #81c784; border-bottom: 1px solid #4CAF50; }
#twd-baraholka .bh-card-badge.trade { background: rgba(52, 152, 219, 0.2); color: #64b5f6; border-bottom: 1px solid #3498db; }

#twd-baraholka .bh-card-qty {
    position: absolute;
    top: 25px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: #d4af37;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    padding: 1px 5px;
    border: 1px solid #3e4a36;
    z-index: 2;
}

#twd-baraholka .bh-card-img {
    width: 100%;
    height: 100px;
    background: #0a0c08;
    border: 1px solid #1f241b;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin-top: 20px; /* Îòñòóï ïîä ïëàøêó ðåäêîñòè */
}
#twd-baraholka .bh-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.8));
}

#twd-baraholka .bh-card-name {
    font-family: 'Forum', serif;
    font-size: 14px;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #c5d1c0;
    margin-top: 4px;
}

#twd-baraholka .bh-card-desc {
    font-family: 'News Cycle', sans-serif;
    font-size: 11px;
    color: #7a8a75;
    line-height: 1.4;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: 46px;
}

#twd-baraholka .bh-card-seller {
    font-size: 11px;
    font-family: 'News Cycle', sans-serif;
    color: #8b9a7f;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
    border-top: 1px solid #1f241b;
    border-bottom: 1px solid #1f241b;
}
#twd-baraholka .bh-card-seller i.fas { color: #c49a45; margin-right: 4px; font-size: 10px; }
#twd-baraholka .bh-card-seller strong { color: #c5d1c0; font-weight: normal; }

#twd-baraholka .bh-card-price {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: bold;
}
#twd-baraholka .bh-card-price i.fas { display: none; } /* Óáèðàåì èêîíêó, ÷òîáû áûëî ñòðîãî */
#twd-baraholka .bh-card-price::before { content: '[ '; color: #6b7a66; }
#twd-baraholka .bh-card-price::after { content: ' ]'; color: #6b7a66; }
#twd-baraholka .bh-card-price.trade-price { color: #64b5f6; }

#twd-baraholka .bh-card-btn {
    width: 100%;
    padding: 6px;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 1px solid;
    background: none;
    transition: 0.2s;
    margin-top: 4px;
}
#twd-baraholka .bh-card-btn.buy { border-color: #4CAF50; color: #81c784; }
#twd-baraholka .bh-card-btn.buy:hover { background: #4CAF50; color: #000; }
#twd-baraholka .bh-card-btn.trade { border-color: #3498db; color: #64b5f6; }
#twd-baraholka .bh-card-btn.trade:hover { background: #3498db; color: #000; }
#twd-baraholka .bh-card-btn.sell { border-color: #c49a45; color: #d4af37; }
#twd-baraholka .bh-card-btn.sell:hover { background: #c49a45; color: #000; }
#twd-baraholka .bh-card-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* Ïóñòàÿ êàðòî÷êà */
#twd-baraholka .bh-card.empty {
    border: 1px dashed #2e3628;
    background: none;
    justify-content: center;
    align-items: center;
    min-height: 320px;
}
#twd-baraholka .bh-card.empty:hover { border-color: #4a5a42; }
#twd-baraholka .bh-card-empty-icon { font-size: 32px; color: #2e3628; margin-bottom: 10px; }
#twd-baraholka .bh-card-empty-text {
    font-size: 10px;
    color: #4a5a42;
    font-family: 'News Cycle', sans-serif;
    text-transform: uppercase;
    text-align: center;
}

/* ------------------------------------------ */
/* 8. ÊÓÁÈÊÈ                                 */
/* ------------------------------------------ */
#twd-baraholka .bh-dice-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    background: url('https://forumupload.ru/uploads/001b/6f/15/2/734338.jpg') center/cover no-repeat #0a0c08;
    border: 1px solid #2e3628;
    padding: 20px;
    position: relative;
}
#twd-baraholka .bh-dice-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 8, 0.85);
    z-index: 0;
}
#twd-baraholka .bh-dice-card > * { position: relative; z-index: 1; }

#twd-baraholka .bh-dice-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 12, 8, 0.8);
    border: 1px solid #2e3628;
    padding: 15px;
    text-align: center;
}
#twd-baraholka .bh-dice-left img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #3e4a36;
    filter: sepia(0.5) contrast(1.1);
}
#twd-baraholka .bh-dice-title {
    font-family: 'Forum', serif;
    color: #c49a45;
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 10px;
}
#twd-baraholka .bh-dice-subtitle {
    font-family: 'News Cycle', sans-serif;
    color: #7a8a75;
    font-size: 11px;
    font-style: italic;
    margin-top: 2px;
}

#twd-baraholka .bh-dice-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

#twd-baraholka .bh-dice-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
#twd-baraholka .bh-dice-row label {
    font-family: 'News Cycle', sans-serif;
    color: #8b9a7f;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#twd-baraholka .bh-dice-bet-btn {
    background: rgba(10, 12, 8, 0.5);
    border: 1px solid #2e3628;
    color: #8b9a7f;
    padding: 5px 14px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    transition: 0.2s;
}
#twd-baraholka .bh-dice-bet-btn:hover:not(:disabled) { color: #d4af37; border-color: #c49a45; }
#twd-baraholka .bh-dice-bet-btn.active {
    background: #c49a45;
    color: #0a0c08;
    border-color: #c49a45;
}

#twd-baraholka .bh-dice-roll-btn {
    background: none;
    border: 1px solid #c49a45;
    color: #c49a45;
    padding: 8px 20px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.2s;
    align-self: flex-start;
}
#twd-baraholka .bh-dice-roll-btn:hover:not(:disabled) {
    background: #c49a45;
    color: #0a0c08;
}
#twd-baraholka .bh-dice-roll-btn:disabled { opacity: 0.3; cursor: not-allowed; }

#twd-baraholka .bh-dice-result {
    background: rgba(0,0,0,0.5);
    border: 1px solid #2e3628;
    padding: 12px 16px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #a0b09a;
    min-height: 85px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
}
#twd-baraholka .bh-dice-result .bh-dice-line {
    display: flex;
    justify-content: space-between;
}
#twd-baraholka .bh-dice-result .bh-dice-line strong { color: #d4af37; font-size: 13px; }
#twd-baraholka .bh-dice-result.won { border-color: #4CAF50; color: #81c784; }
#twd-baraholka .bh-dice-result.lost { border-color: #8b0000; color: #d09090; }
#twd-baraholka .bh-dice-result.tie { border-color: #c49a45; color: #d4af37; }

#twd-baraholka .bh-dice-result .bh-dice-outcome {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px dashed #2e3628;
    margin-top: 4px;
}
#twd-baraholka .bh-dice-result .bh-dice-outcome .bh-dice-payout { color: #d4af37; }
#twd-baraholka .bh-dice-result.lost .bh-dice-outcome .bh-dice-payout { color: #ff7a7a; }

#twd-baraholka .bh-dice-mods {
    font-size: 10px;
    color: #6b7a66;
    font-style: italic;
    text-align: right;
}

#twd-baraholka .bh-dice-refuse {
    color: #d09090;
    font-family: 'News Cycle', sans-serif;
    font-size: 12px;
    font-style: italic;
    padding: 10px 14px;
    background: rgba(40, 10, 10, 0.4);
    border: 1px solid #5a1a1a;
    border-left: 3px solid #8b0000;
    line-height: 1.5;
}

#twd-baraholka .bh-dice-limit-badge {
    font-family: 'News Cycle', sans-serif;
    font-size: 11px;
    color: #8b9a7f;
    text-transform: uppercase;
    align-self: flex-start;
    padding: 3px 8px;
    border: 1px dashed #2e3628;
}
#twd-baraholka .bh-dice-limit-badge.zero { color: #ff7a7a; border-color: #8b0000; }

#twd-baraholka .bh-dice-roll-anim { animation: bhDiceShake 0.4s ease-in-out; }
@keyframes bhDiceShake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* ------------------------------------------ */
/* 9. ÊÎÐÇÈÍÀ                                */
/* ------------------------------------------ */
#twd-baraholka .bh-cart {
    background: rgba(18, 22, 18, 0.75);
    border: 1px solid #3e4a36;
    padding: 20px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

#twd-baraholka .bh-cart-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 15px;
    max-height: 250px;
    overflow-y: auto;
}

#twd-baraholka .bh-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.4);
    border-left: 2px solid #c49a45;
    padding: 8px 12px;
    font-size: 12px;
    color: #c5d1c0;
}
#twd-baraholka .bh-cart-item .bh-cart-item-icon { color: #c49a45; font-size: 12px; }
#twd-baraholka .bh-cart-item .bh-cart-item-text { flex: 1; font-family: 'News Cycle', sans-serif; }
#twd-baraholka .bh-cart-item .bh-cart-item-price { font-family: 'Courier New', monospace; color: #d4af37; font-weight: bold; }
#twd-baraholka .bh-cart-item .bh-cart-item-price.negative { color: #ff7a7a; }
#twd-baraholka .bh-cart-item .bh-cart-item-remove {
    background: none; border: none; color: #8b0000; cursor: pointer; font-size: 14px;
}
#twd-baraholka .bh-cart-item .bh-cart-item-remove:hover { color: #ff3333; }

#twd-baraholka .bh-cart-empty {
    color: #6b7a66; text-align: center; font-style: italic; font-family: 'News Cycle', sans-serif; padding: 20px;
}

#twd-baraholka .bh-cart-footer {
    display: flex; justify-content: space-between; align-items: center; gap: 15px;
    padding-top: 15px; border-top: 1px solid #2e3628; flex-wrap: wrap;
}

#twd-baraholka .bh-cart-total {
    font-family: 'Courier New', monospace; font-size: 14px; font-weight: bold; color: #d4af37;
}
#twd-baraholka .bh-cart-sessions {
    font-family: 'News Cycle', sans-serif; font-size: 11px; color: #81c784;
    padding: 4px 10px; border: 1px solid #4CAF50;
}
#twd-baraholka .bh-cart-sessions.no-sessions { color: #ff7a7a; border-color: #8b0000; }

#twd-baraholka .bh-cart-actions { display: flex; gap: 8px; }

#twd-baraholka .bh-btn-apply {
    background: none; border: 1px solid #4CAF50; color: #81c784;
    padding: 8px 16px; cursor: pointer; font-family: 'Oswald', sans-serif;
    font-size: 11px; text-transform: uppercase; transition: 0.2s;
}
#twd-baraholka .bh-btn-apply:hover:not(:disabled) { background: #4CAF50; color: #0a0c08; }
#twd-baraholka .bh-btn-apply:disabled { opacity: 0.3; cursor: not-allowed; }

#twd-baraholka .bh-btn-clear {
    background: none; border: 1px solid #5a1a1a; color: #d09090;
    padding: 8px 16px; cursor: pointer; font-family: 'Oswald', sans-serif;
    font-size: 11px; text-transform: uppercase; transition: 0.2s;
}
#twd-baraholka .bh-btn-clear:hover { background: #8b0000; color: #fff; border-color: #8b0000; }

/* ------------------------------------------ */
/* 10. ÌÎÄÀËÊÈ (ÐÅÇÓËÜÒÀÒ È ÆÅÐÒÂÀ)          */
/* ------------------------------------------ */
#bh-result-modal, #bh-sacrifice-modal {
    display: none; position: fixed; inset: 0; background: rgba(8, 10, 6, 0.9);
    backdrop-filter: blur(4px); z-index: 100001; align-items: center; justify-content: center; padding: 20px;
}
#bh-result-modal.active, #bh-sacrifice-modal.active { display: flex; }

#bh-result-modal .bh-modal-card, #bh-sacrifice-modal .sacrifice-card {
    background: #141610; border: 2px solid #3e4a36; padding: 25px; max-width: 500px; width: 100%;
    max-height: 85vh; overflow-y: auto; color: #c5d1c0; font-family: 'Cuprum', sans-serif;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9); position: relative;
}
#bh-sacrifice-modal .sacrifice-card { border-color: #6b1010; }

.bh-modal-title, .sacrifice-title {
    font-family: 'Forum', serif; font-size: 18px; color: #c49a45; text-transform: uppercase;
    text-align: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #2e3628;
}
#bh-sacrifice-modal .sacrifice-title { color: #ff5555; border-color: #6b1010; }

.bh-modal-list { list-style: none; padding: 0; margin: 0 0 20px; }
.bh-modal-list li {
    padding: 8px 12px; margin-bottom: 4px; background: rgba(0,0,0,0.4);
    border-left: 2px solid #4CAF50; font-size: 12px; font-family: 'News Cycle', sans-serif;
}
.bh-modal-list li.error { border-left-color: #ff5555; color: #d09090; }
.bh-modal-list li i.fas { display: none; } /* Óáðàëè èêîíêè äëÿ ñòðîãîñòè */

.bh-modal-close, .sacrifice-money-btn {
    display: block; width: 100%; padding: 10px; background: none;
    border: 1px solid #c49a45; color: #d4af37; font-family: 'Oswald', sans-serif;
    font-size: 12px; text-transform: uppercase; cursor: pointer; transition: 0.2s;
}
.bh-modal-close:hover, .sacrifice-money-btn:hover:not(:disabled) { background: #c49a45; color: #0a0c08; }

#bh-sacrifice-modal .sacrifice-close {
    position: absolute; top: 10px; right: 14px; background: none; border: none;
    color: #8b0000; font-size: 18px; cursor: pointer;
}
#bh-sacrifice-modal .sacrifice-close:hover { color: #ff3333; }

#bh-sacrifice-modal .sacrifice-subtitle {
    font-size: 11px; color: #8b9a7f; font-style: italic; text-align: center; margin-bottom: 15px;
}
#bh-sacrifice-modal .sacrifice-options { display: flex; flex-direction: column; gap: 12px; }
#bh-sacrifice-modal .sacrifice-option { background: rgba(0,0,0,0.4); border: 1px solid #2e3628; padding: 12px; }
#bh-sacrifice-modal .sacrifice-option-title {
    font-family: 'Oswald', sans-serif; font-size: 12px; color: #d4af37; text-transform: uppercase; margin-bottom: 8px;
}
#bh-sacrifice-modal .sacrifice-option-desc { font-size: 10px; color: #8b9a7f; margin-bottom: 10px; font-style: italic; }

#bh-sacrifice-modal .sacrifice-item-list { display: flex; flex-direction: column; gap: 4px; max-height: 200px; overflow-y: auto; }
#bh-sacrifice-modal .sacrifice-item {
    display: flex; align-items: center; gap: 10px; padding: 6px; background: rgba(255,255,255,0.02);
    border: 1px solid #2e3628; cursor: pointer; transition: 0.2s;
}
#bh-sacrifice-modal .sacrifice-item:hover { border-color: #c49a45; background: rgba(196,154,69,0.1); }
#bh-sacrifice-modal .sacrifice-item img { width: 36px; height: 36px; object-fit: contain; border: 1px solid #2e3628; }
#bh-sacrifice-modal .sacrifice-item-info { flex: 1; }
#bh-sacrifice-modal .sacrifice-item-name { font-family: 'Forum', serif; font-size: 12px; color: #c5d1c0; text-transform: uppercase; }
#bh-sacrifice-modal .sacrifice-item-sub { font-size: 10px; color: #6b7a66; }
#twd-baraholka .sacrifice-item-icon, #bh-sacrifice-modal .sacrifice-item-icon { display: none; } /* Óáðàëè îãîíü */

/* ------------------------------------------ */
/* 11. ÒÓËÒÈÏ ÑÅÌÜÈ                          */
/* ------------------------------------------ */
#bh-family-tooltip {
    position: fixed; display: none; z-index: 100002; width: 320px;
    background: #141610; border: 1px solid #c49a45; padding: 15px;
    color: #c5d1c0; font-family: 'News Cycle', sans-serif; font-size: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9); pointer-events: none; opacity: 0; transition: 0.2s;
}
#bh-family-tooltip.visible { display: block; opacity: 1; }

#bh-family-tooltip .ft-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
    padding-bottom: 6px; border-bottom: 1px solid #2e3628;
}
#bh-family-tooltip .ft-icon { display: none; } /* Áåç èêîíêè */
#bh-family-tooltip .ft-name { font-family: 'Forum', serif; font-size: 14px; color: #c49a45; text-transform: uppercase; letter-spacing: 1px; }
#bh-family-tooltip .ft-subject { font-size: 10px; margin-bottom: 8px; text-transform: uppercase; color: #6b7a66; }
#bh-family-tooltip .ft-value { color: #d4af37; }
#bh-family-tooltip .ft-divider { display: none; }
#bh-family-tooltip .ft-desc { color: #a0b09a; font-style: italic; line-height: 1.5; }

/* ------------------------------------------ */
/* 12. ÀÄÀÏÒÈÂ                              */
/* ------------------------------------------ */
@media (max-width: 900px) {
    #twd-baraholka .bh-hero, #twd-baraholka .bh-dice-card { grid-template-columns: 1fr; }
    #twd-baraholka .bh-toolbar { flex-direction: column; }
    #twd-baraholka .bh-kara-plaque { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
    #twd-baraholka .bh-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    #twd-baraholka .bh-card { min-height: 280px; padding: 8px; }
    #twd-baraholka .bh-card-img { height: 80px; }
    #twd-baraholka .bh-card-name { font-size: 12px; }
    #twd-baraholka .bh-card-desc { font-size: 10px; -webkit-line-clamp: 2; min-height: 30px; }
    #twd-baraholka .bh-cart-footer { flex-direction: column; align-items: stretch; }
}