/* БРАТВА — полный мафиозный дизайн для protivost.top */
html:has(body.ui-theme-bratva){min-height:100%;background:#050505 url('/themes/bratva/img/bg_desk.jpg') center top/cover fixed no-repeat!important}
body.ui-theme-bratva{max-width:550px!important;min-height:100vh;margin:0 auto!important;color:#ddd2b9!important;background:linear-gradient(rgba(14,12,9,.94),rgba(8,8,7,.97)),url('/themes/bratva/img/texture.jpg') center/420px auto repeat!important;border-left:1px solid #4b3a23;border-right:1px solid #4b3a23;box-shadow:0 0 45px #000!important;font-family:Arial,Tahoma,sans-serif!important;text-shadow:0 1px 1px #000}
body.ui-theme-bratva a,body.ui-theme-bratva a:visited{color:#d8b565!important;text-decoration:none!important}body.ui-theme-bratva a:hover{color:#ffe5a1!important}
body.ui-theme-bratva .content{background:linear-gradient(rgba(27,23,18,.94),rgba(17,15,12,.96)),url('/themes/bratva/img/texture.jpg') center/420px auto repeat!important;color:#e5dcc8!important}
body.ui-theme-bratva .block{padding:8px 9px!important;background:linear-gradient(#30291f,#201c17)!important;color:#e4dac2!important;border-top:1px solid #4d3e29!important;border-bottom:1px solid #12100d!important;box-shadow:inset 0 1px rgba(255,255,255,.025)!important}
body.ui-theme-bratva .block.center.s125,body.ui-theme-bratva .color3{color:#f0cb79!important;background:linear-gradient(#433522,#251e15)!important;font-weight:700}
body.ui-theme-bratva .line{height:2px!important;border:0!important;background:linear-gradient(90deg,#19140e,#806033,#19140e)!important}
body.ui-theme-bratva .line2{height:6px!important;background:url('/themes/bratva/ui/balka-bot.png') center/100% 6px repeat-x!important;opacity:.78}
body.ui-theme-bratva .dotted{border:0!important;border-top:1px dotted #5b4930!important;background:#17140f!important}
body.ui-theme-bratva .prison-head,body.ui-theme-bratva .header{background:linear-gradient(180deg,rgba(53,42,27,.98),rgba(17,14,11,.99)),url('/themes/bratva/img/texture.jpg') center/420px auto repeat!important;border-top:1px solid #84663a!important;border-bottom:2px solid #5b4428!important;box-shadow:0 3px 12px #000!important}
body.ui-theme-bratva .prison-brand-main{color:#f1cd7c!important;text-shadow:0 1px #000,0 0 10px rgba(191,145,66,.22)!important}
body.ui-theme-bratva .prison-brand-sub{color:#918574!important}
body.ui-theme-bratva .prison-stat{background:#16130f!important;border:1px solid #53432c!important}
body.ui-theme-bratva .prison-stat-top{color:#cbbc96!important}
body.ui-theme-bratva .prison-mini-bar{background:#090807!important;border:1px solid #33291d!important}
body.ui-theme-bratva .prison-head-btn{background:linear-gradient(#433522,#221b13)!important;border:1px solid #765b33!important;color:#e8cf95!important;border-radius:2px!important}
body.ui-theme-bratva .menu{margin:0!important;padding:0!important;background:#15120e!important}
body.ui-theme-bratva .menu li{list-style:none!important;margin:0!important;padding:0!important;border-bottom:1px solid #332a1e!important}
body.ui-theme-bratva .menu li a{position:relative;display:block!important;padding:10px 28px 10px 10px!important;background:linear-gradient(#2d281f,#211d17)!important;color:#ddd2b9!important;border-left:3px solid transparent!important}
body.ui-theme-bratva .menu li a:after{content:'›';position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:18px;color:#9c7944}
body.ui-theme-bratva .menu li a:hover{background:linear-gradient(#3c3224,#292117)!important;border-left-color:#b18443!important;color:#f1d28c!important}
body.ui-theme-bratva .btn,body.ui-theme-bratva button,body.ui-theme-bratva input[type=submit]{padding:7px 14px!important;min-height:32px;border:1px solid #806137!important;border-bottom-color:#3d2b17!important;border-radius:2px!important;background:linear-gradient(#98733a,#624820)!important;color:#fff0c5!important;font-weight:700!important;box-shadow:inset 0 1px rgba(255,255,255,.12),0 1px 3px #000!important;text-shadow:0 1px #000!important}
body.ui-theme-bratva .btn:hover,body.ui-theme-bratva button:hover{background:linear-gradient(#ad8544,#735326)!important}
body.ui-theme-bratva input[type=text],body.ui-theme-bratva input[type=password],body.ui-theme-bratva input[type=email],body.ui-theme-bratva input[type=number],body.ui-theme-bratva textarea,body.ui-theme-bratva select{box-sizing:border-box;max-width:100%;padding:8px!important;color:#efe4ca!important;background:#12110e!important;border:1px solid #5b482d!important;border-radius:2px!important;outline:0!important}
body.ui-theme-bratva input:focus,body.ui-theme-bratva textarea:focus,body.ui-theme-bratva select:focus{border-color:#b08343!important;box-shadow:0 0 0 1px rgba(176,131,67,.25)!important}
body.ui-theme-bratva .alert{margin:4px 5px!important;padding:8px 9px!important;background:linear-gradient(#49371f,#2b2116)!important;color:#f1dfb8!important;border:1px solid #7e5f32!important;border-left:3px solid #c29146!important}
body.ui-theme-bratva .alert_bottom{display:none!important}
body.ui-theme-bratva .game-footer-shell{background:linear-gradient(rgba(31,25,17,.98),rgba(11,10,8,.99)),url('/themes/bratva/img/texture.jpg') center/420px auto repeat!important;border-top:2px solid #624a2c!important;color:#cabd9e!important}
body.ui-theme-bratva .gf-resource,body.ui-theme-bratva .gf-feature,body.ui-theme-bratva .gf-links a{background:linear-gradient(#30291f,#1c1914)!important;border:1px solid #4c3c26!important;color:#d8c79f!important}
body.ui-theme-bratva .gf-meta{color:#817765!important}
body.ui-theme-bratva .green{color:#a8c77d!important}body.ui-theme-bratva .red{color:#dc8877!important}body.ui-theme-bratva .blue{color:#8eb2c9!important}body.ui-theme-bratva .white{color:#f2ead7!important}body.ui-theme-bratva .color2{color:#aaa08c!important}
body.ui-theme-bratva [class*=card],body.ui-theme-bratva [class*=-panel],body.ui-theme-bratva [class*=-box]{border-color:#55432b!important}
body.ui-theme-bratva .ap-card,body.ui-theme-bratva .ap-hero,body.ui-theme-bratva .ap-invoice,body.ui-theme-bratva .ap-hitem,body.ui-theme-bratva .dep-card,body.ui-theme-bratva .dep-sec{background:linear-gradient(#30291f,#1f1b16)!important;border-color:#5b472c!important}
body.ui-theme-bratva .ap-section{background:#211b14!important;border-left-color:#b08343!important;color:#f0ce86!important}
body.ui-theme-bratva img[src$='/images/icons/arena.jpg'],body.ui-theme-bratva img[src$='/images/icons/swords.png']{content:url('/themes/bratva/icons/razborki.png')}
body.ui-theme-bratva img[src$='/images/icons/boss.png']{content:url('/themes/bratva/icons/boss.png')}
body.ui-theme-bratva img[src$='/images/icons/clan.png'],body.ui-theme-bratva img[src$='/images/icons/clan.jpg']{content:url('/themes/bratva/icons/clan.png')}
body.ui-theme-bratva img[src$='/images/icons/settings.png']{content:url('/themes/bratva/icons/settings.png')}
body.ui-theme-bratva img[src$='/images/icons/dialog.png']{content:url('/themes/bratva/icons/chat.png')}
body.ui-theme-bratva img[src$='/images/icons/dailyQuest.png'],body.ui-theme-bratva img[src$='/images/icons/note.png']{content:url('/themes/bratva/icons/quest.png')}
.bratva-theme-picker{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:8px;background:#15120e}
.bratva-theme-picker .theme-option{display:block;padding:8px;text-align:center;background:linear-gradient(#2e291f,#1e1a15);border:1px solid #493a25;color:#ddd0b2!important}
.bratva-theme-picker .theme-option b,.bratva-theme-picker .theme-option small,.bratva-theme-picker .theme-option em{display:block}
.bratva-theme-picker .theme-option b{font-size:14px;color:#edca7d}
.bratva-theme-picker .theme-option small{min-height:28px;margin-top:3px;color:#968b77;font-size:9px}
.bratva-theme-picker .theme-option em{margin-top:7px;padding:5px;border:1px solid #604a2d;background:#17140f;color:#c4a76d;font-size:9px;font-style:normal}
.bratva-theme-picker .theme-active{border-color:#b68a47!important;box-shadow:inset 0 0 0 1px rgba(225,175,89,.18),0 0 9px rgba(0,0,0,.5)}
.bratva-theme-picker .theme-active em{background:linear-gradient(#876633,#523d1e);color:#fff0c2}
.bratva-theme-picker .theme-preview{display:block;height:72px;margin-bottom:7px;border:1px solid #54442e}
.bratva-theme-picker .theme-preview-law{background:linear-gradient(rgba(0,0,0,.32),rgba(0,0,0,.45)),url('/images/mainindex.jpg') center/cover}
.bratva-theme-picker .theme-preview-bratva{background:linear-gradient(rgba(0,0,0,.28),rgba(0,0,0,.42)),url('/themes/bratva/img/bg_desk.jpg') center 35%/cover}
body.ui-theme-bratva.guest-theme{background:linear-gradient(rgba(7,6,5,.88),rgba(8,7,5,.96)),url('/themes/bratva/img/bg_mob.jpg') center top/cover fixed no-repeat!important}
.bratva-login-head{padding:0!important}
.bratva-login-brand{text-align:center;padding:10px 8px 5px;background:radial-gradient(circle at 50% 10%,rgba(146,100,42,.18),transparent 58%)}
.bratva-login-brand img{display:block;margin:0 auto;max-width:74%;height:auto}
.bratva-login-name{margin-top:-20px;color:#efcb76;font-size:19px;font-weight:900;letter-spacing:3px}
.bratva-login-sub{margin:3px 0 7px;color:#9d8b6c;font-size:10px;text-transform:uppercase;letter-spacing:1px}
.bratva-login-intro{display:flex;flex-direction:column;align-items:center;gap:4px}
.bratva-login-intro b{font-size:15px;color:#edca7d}.bratva-login-intro span{font-size:10px;color:#a99e88}
.bratva-register-btn{display:inline-block;min-width:170px;padding:9px 13px;border:1px solid #806137;background:linear-gradient(#8f6b35,#5c431f);color:#fff1c7;font-weight:800;box-shadow:inset 0 1px rgba(255,255,255,.1),0 2px 5px #000}
.bratva-login-form{padding:12px 18px!important}.bratva-login-form .control-label{display:block;margin-bottom:4px;color:#d8bd80;font-weight:700}.bratva-login-form .form-control{width:100%!important}.bratva-login-btn{width:100%;margin-top:5px}
@media(max-width:650px){html:has(body.ui-theme-bratva){background:#090807!important}body.ui-theme-bratva{max-width:100%!important;border:0!important;box-shadow:none!important}.bratva-theme-picker{grid-template-columns:1fr 1fr}.bratva-theme-picker .theme-preview{height:56px}}
@media(max-width:360px){.bratva-theme-picker{grid-template-columns:1fr}.bratva-theme-picker .theme-preview{height:65px}}


/* === БРАТВА: боковые фото, смена каждые 15 минут === */
@media (min-width:760px){
  html:has(body.ui-theme-bratva){background:#050505!important}

  body.ui-theme-bratva::before,
  body.ui-theme-bratva::after{
    content:"";
    position:fixed;
    top:0;
    bottom:0;
    z-index:-1;
    width:max(0px,calc((100vw - 550px)/2));
    background-color:#060606;
    background-repeat:no-repeat;
    background-position:center;
    background-size:cover;
    filter:saturate(.78) contrast(1.08) brightness(.68);
    pointer-events:none;
  }

  body.ui-theme-bratva::before{
    left:0;
    background-image:
      linear-gradient(to right,rgba(0,0,0,.08),rgba(0,0,0,.62)),
      var(--bratva-side-left);
    border-right:1px solid #4d3922;
    box-shadow:inset -20px 0 32px rgba(0,0,0,.78);
  }

  body.ui-theme-bratva::after{
    right:0;
    background-image:
      linear-gradient(to left,rgba(0,0,0,.08),rgba(0,0,0,.62)),
      var(--bratva-side-right);
    border-left:1px solid #4d3922;
    box-shadow:inset 20px 0 32px rgba(0,0,0,.78);
  }
}

@media (max-width:759px){
  body.ui-theme-bratva::before,
  body.ui-theme-bratva::after{display:none!important}
}


/* =================================================================
   БРАТВА UI 2.0 — ХАРАКТЕРНЫЙ ТЕКСТ + ПАГИНАЦИЯ ИЗ СТИЛЯ MAFIA
   Без внешних шрифтов: быстро работает на ПК и телефоне.
   ================================================================= */

/* Основной текст — контрастнее и не сливается с фоном */
body.ui-theme-bratva,
body.ui-theme-bratva input,
body.ui-theme-bratva textarea,
body.ui-theme-bratva select,
body.ui-theme-bratva button {
    font-family: "Trebuchet MS", Arial, Tahoma, sans-serif !important;
}

body.ui-theme-bratva {
    font-size: 14px !important;
    line-height: 1.42 !important;
    color: #f0e8d7 !important;
    text-shadow: 0 1px 0 #000, 0 0 2px rgba(0,0,0,.88) !important;
}

/* Обычный текст светлый, вторичный не слишком тусклый */
body.ui-theme-bratva .content,
body.ui-theme-bratva .block {
    color: #eee5d2 !important;
}
body.ui-theme-bratva .small,
body.ui-theme-bratva .color2,
body.ui-theme-bratva .gf-meta {
    color: #bcb19a !important;
    text-shadow: 0 1px 0 #000 !important;
}

/* Заголовки получают собственный характер */
body.ui-theme-bratva .block.center.s125,
body.ui-theme-bratva .color3,
body.ui-theme-bratva h1,
body.ui-theme-bratva h2,
body.ui-theme-bratva h3,
body.ui-theme-bratva .prison-brand-main,
body.ui-theme-bratva .ap-section,
body.ui-theme-bratva .dep-title {
    font-family: Georgia, "Times New Roman", serif !important;
    color: #ffd987 !important;
    font-weight: 700 !important;
    letter-spacing: .35px !important;
    text-shadow:
        0 1px 0 #000,
        0 2px 2px rgba(0,0,0,.9),
        0 0 8px rgba(194,142,61,.22) !important;
}

/* Выделяем важные значения, но не превращаем всю страницу в жирный текст */
body.ui-theme-bratva b,
body.ui-theme-bratva strong {
    color: #fff0c2;
    font-weight: 700;
    text-shadow: 0 1px 0 #000, 0 0 5px rgba(0,0,0,.55);
}
body.ui-theme-bratva .green {color:#c4e69c !important}
body.ui-theme-bratva .red   {color:#ff9b86 !important}
body.ui-theme-bratva .blue  {color:#9ccbe8 !important}
body.ui-theme-bratva .white {color:#fff7e7 !important}

/* Ссылки — заметные, как интерактивные элементы */
body.ui-theme-bratva a,
body.ui-theme-bratva a:visited {
    color: #e7c16c !important;
    font-weight: 600;
    text-shadow: 0 1px 0 #000 !important;
}
body.ui-theme-bratva a:hover {
    color: #fff1b6 !important;
}

/* Строки меню теперь визуально отделены от текста контента */
body.ui-theme-bratva .menu li a {
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .15px;
    color: #f0e4c9 !important;
    text-shadow: 0 1px 1px #000 !important;
}
body.ui-theme-bratva .menu li a:hover {
    color: #ffe2a0 !important;
}

/* Иконки — чуть контрастнее, с аккуратной глубиной */
body.ui-theme-bratva .menu img,
body.ui-theme-bratva .block img[width="16"],
body.ui-theme-bratva .content img[width="16"] {
    filter: contrast(1.12) saturate(.92) drop-shadow(0 1px 1px rgba(0,0,0,.85));
    vertical-align: middle;
}

/* Карточки и строки: лёгкая внутренняя подсветка, чтобы текст не терялся */
body.ui-theme-bratva .block,
body.ui-theme-bratva [class*="card"],
body.ui-theme-bratva [class*="-panel"],
body.ui-theme-bratva [class*="-box"] {
    box-shadow:
        inset 0 1px rgba(255,255,255,.025),
        inset 0 0 22px rgba(0,0,0,.12) !important;
}

/* ---------------------------------------------------------------
   ПАГИНАЦИЯ
   Механика перенесена с mafia yiiPager и адаптирована под Братву.
   Работает на существующем <ul class="pagination">.
   --------------------------------------------------------------- */
body.ui-theme-bratva ul.pagination {
    box-sizing: border-box;
    margin: 7px 0 !important;
    padding: 7px 5px !important;
    text-align: center !important;
    font-size: 0 !important;
    background: linear-gradient(180deg,#201b14,#15120e) !important;
    border-top: 1px solid #4d3d28;
    border-bottom: 1px solid #0b0907;
}

body.ui-theme-bratva ul.pagination li {
    display: inline-block !important;
    list-style: none !important;
    margin: 2px 3px !important;
    padding: 0 !important;
    background: transparent !important;
    vertical-align: middle;
}

body.ui-theme-bratva ul.pagination li a,
body.ui-theme-bratva ul.pagination li.disabled {
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 31px;
    height: 31px;
    padding: 0 8px !important;
    margin: 0 !important;
    border: 1px solid #6f5632 !important;
    border-bottom-color: #3a2a18 !important;
    border-radius: 4px !important;
    background: linear-gradient(180deg,#433621,#261e15) !important;
    color: #f2dfb1 !important;
    font-family: "Trebuchet MS", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-shadow: 0 1px 0 #000 !important;
    box-shadow: inset 0 1px rgba(255,255,255,.06), 0 1px 2px rgba(0,0,0,.55);
    transition: transform .1s ease, border-color .1s ease, background .1s ease;
}

body.ui-theme-bratva ul.pagination li a:hover {
    transform: scale(1.10);
    border-color: #d2a257 !important;
    color: #fff4c9 !important;
    background: linear-gradient(180deg,#614b2a,#342515) !important;
}

body.ui-theme-bratva ul.pagination li.active a,
body.ui-theme-bratva ul.pagination li.disabled {
    border-color: #d0a254 !important;
    color: #171009 !important;
    background: linear-gradient(180deg,#f0cd79,#a97832) !important;
    text-shadow: 0 1px rgba(255,255,255,.2) !important;
    box-shadow:
        inset 0 1px rgba(255,255,255,.32),
        0 0 8px rgba(192,139,59,.25) !important;
}

/* Ручная пагинация на старых страницах, где стоят обычные ссылки */
body.ui-theme-bratva .block.center > a[href*="page="],
body.ui-theme-bratva .block.center > b {
    display: inline-block;
    min-width: 22px;
    margin: 2px;
    padding: 4px 6px;
    border: 1px solid #5f492c;
    border-radius: 3px;
    background: #211b14;
    text-align: center;
}
body.ui-theme-bratva .block.center > b {
    border-color: #d0a254;
    color: #1b1208 !important;
    background: linear-gradient(#e6c16e,#a77731);
    text-shadow: none !important;
}

/* Поля выглядят как часть интерфейса, а не как серые браузерные элементы */
body.ui-theme-bratva input[type=text],
body.ui-theme-bratva input[type=password],
body.ui-theme-bratva input[type=email],
body.ui-theme-bratva input[type=number],
body.ui-theme-bratva textarea,
body.ui-theme-bratva select {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff4dc !important;
    background: linear-gradient(#17140f,#0f0d0a) !important;
    border-color: #665033 !important;
    box-shadow: inset 0 1px 4px rgba(0,0,0,.85) !important;
}

/* Кнопки — текст читается с первого взгляда */
body.ui-theme-bratva .btn,
body.ui-theme-bratva button,
body.ui-theme-bratva input[type=submit] {
    font-family: "Trebuchet MS", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: .2px;
}

/* Телефон: чуть крупнее основной текст, пагинация не вылезает за экран */
@media(max-width:650px){
    body.ui-theme-bratva {
        font-size: 14px !important;
        line-height: 1.45 !important;
    }
    body.ui-theme-bratva ul.pagination {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    body.ui-theme-bratva ul.pagination li a,
    body.ui-theme-bratva ul.pagination li.disabled {
        min-width: 30px;
        height: 30px;
        padding: 0 7px !important;
    }
}


/* =====================================================================
   БРАТВА UI 3.0 — ЧИСТЫЙ КОНТРАСТ
   Цель: ничего не сливается, но текст и золото не «кричат» в глаза.
   ===================================================================== */

/* Спокойная типографика */
body.ui-theme-bratva,
body.ui-theme-bratva input,
body.ui-theme-bratva textarea,
body.ui-theme-bratva select,
body.ui-theme-bratva button {
    font-family: "Segoe UI", Verdana, Tahoma, Arial, sans-serif !important;
}

body.ui-theme-bratva {
    color: #d8d5ce !important;
    font-size: 14px !important;
    line-height: 1.46 !important;
    text-shadow: 0 1px 0 rgba(0,0,0,.9) !important;
}

/* Не красим всё золотом: золото только для акцентов */
body.ui-theme-bratva .content,
body.ui-theme-bratva .block {
    color: #d8d5ce !important;
}
body.ui-theme-bratva b,
body.ui-theme-bratva strong {
    color: #f1eee7;
    font-weight: 700;
    text-shadow: 0 1px #000 !important;
}
body.ui-theme-bratva a,
body.ui-theme-bratva a:visited {
    color: #d6b36d !important;
    font-weight: 600 !important;
}
body.ui-theme-bratva a:hover {
    color: #f5dba5 !important;
}

/* Общий фон внутри игры — холоднее и темнее, карточки отделяются */
body.ui-theme-bratva {
    background:
        linear-gradient(rgba(11,12,13,.965), rgba(8,9,10,.98)),
        url('/themes/bratva/img/texture.jpg') center/420px auto repeat !important;
}
body.ui-theme-bratva .content {
    background: #101214 !important;
}
body.ui-theme-bratva .block {
    background: #191c1f !important;
    border-top: 1px solid #2c3034 !important;
    border-bottom: 1px solid #090a0b !important;
    box-shadow: none !important;
}

/* Заголовки — серебристые, золото остаётся только небольшой подсветкой */
body.ui-theme-bratva .block.center.s125,
body.ui-theme-bratva .bratva-page-title,
body.ui-theme-bratva h1,
body.ui-theme-bratva h2,
body.ui-theme-bratva h3 {
    font-family: Georgia, "Times New Roman", serif !important;
    color: #ece8df !important;
    font-weight: 700 !important;
    letter-spacing: .2px !important;
    text-shadow: 0 1px 0 #000, 0 0 7px rgba(192,145,66,.12) !important;
    background: linear-gradient(#26292c,#17191b) !important;
}
body.ui-theme-bratva .bratva-page-title img {
    margin-right: 4px;
    vertical-align: -4px;
    filter: brightness(1.2) contrast(1.1) drop-shadow(0 1px 1px #000);
}

/* Вторичный текст читаемый, но не яркий */
body.ui-theme-bratva .small,
body.ui-theme-bratva .color2,
body.ui-theme-bratva .gf-meta {
    color: #a8a49c !important;
}

/* Цвета ресурсов */
body.ui-theme-bratva .green { color:#a9d178 !important; }
body.ui-theme-bratva .red   { color:#e98372 !important; }
body.ui-theme-bratva .blue  { color:#8dbbd8 !important; }
body.ui-theme-bratva .white { color:#e8e5de !important; }
body.ui-theme-bratva .color3 { color:#fff !important; }

/* Меню — отдельные тёмные полосы, без тотального коричневого */
body.ui-theme-bratva .menu {
    background:#0e1011 !important;
}
body.ui-theme-bratva .menu li {
    border-bottom:1px solid #25282b !important;
}
body.ui-theme-bratva .menu li a {
    color:#dad7d0 !important;
    background:linear-gradient(#1b1e20,#141617) !important;
    border-left:3px solid transparent !important;
    font-weight:600 !important;
}
body.ui-theme-bratva .menu li a:hover {
    color:#f2eee5 !important;
    background:linear-gradient(#252729,#191b1d) !important;
    border-left-color:#aa7d3b !important;
}

/* Кнопки — не золотые плашки, а тёмные мафиозные с золотой рамкой */
body.ui-theme-bratva .btn,
body.ui-theme-bratva button,
body.ui-theme-bratva input[type=submit] {
    background: linear-gradient(#313338,#1d1f22) !important;
    color: #e9e2d3 !important;
    border: 1px solid #745b36 !important;
    border-left-color:#9b7540 !important;
    border-right-color:#9b7540 !important;
    border-radius: 3px !important;
    box-shadow:
        inset 0 1px rgba(255,255,255,.05),
        0 1px 2px rgba(0,0,0,.65) !important;
    text-shadow:0 1px #000 !important;
}
body.ui-theme-bratva .btn:hover,
body.ui-theme-bratva button:hover {
    background: linear-gradient(#3b3e42,#24272a) !important;
    border-color:#c0924e !important;
    color:#fff2d5 !important;
}

/* Формы */
body.ui-theme-bratva input[type=text],
body.ui-theme-bratva input[type=password],
body.ui-theme-bratva input[type=email],
body.ui-theme-bratva input[type=number],
body.ui-theme-bratva textarea,
body.ui-theme-bratva select {
    color:#e8e4dc !important;
    background:#101214 !important;
    border:1px solid #45494d !important;
    box-shadow:inset 0 1px 3px rgba(0,0,0,.8) !important;
}
body.ui-theme-bratva input:focus,
body.ui-theme-bratva textarea:focus,
body.ui-theme-bratva select:focus {
    border-color:#a77b3e !important;
    box-shadow:0 0 0 1px rgba(167,123,62,.18), inset 0 1px 3px rgba(0,0,0,.8) !important;
}

/* ------------------------------------------------------------------
   ПОДВАЛ — карточки боссов теперь реально отделены друг от друга
   ------------------------------------------------------------------ */
body.ui-theme-bratva #basement-page {
    background:#0d0f10 !important;
}

body.ui-theme-bratva #basement-page .h-navig {
    padding: 4px 5px !important;
    background:#0b0d0e !important;
    border-top:1px solid #25282b;
    border-bottom:1px solid #25282b;
}
body.ui-theme-bratva #basement-page .h-navig-item {
    padding:3px !important;
}
body.ui-theme-bratva #basement-page .h-navig a,
body.ui-theme-bratva #basement-page .h-navig .active {
    display:block !important;
    padding:8px 4px !important;
    background:#17191b !important;
    border:1px solid #303337 !important;
    color:#bbb7ae !important;
    font-weight:600 !important;
    text-align:center;
}
body.ui-theme-bratva #basement-page .h-navig .active {
    background:linear-gradient(#44351f,#2a2117) !important;
    border-color:#8b6837 !important;
    color:#f1d99f !important;
}
body.ui-theme-bratva #basement-page .h-navig a:hover {
    background:#202326 !important;
    color:#e7e1d6 !important;
}

/* Босс: отдельная карточка, а не непрерывная коричневая лента */
body.ui-theme-bratva .bratva-boss-card {
    position:relative;
    margin:7px 7px 9px !important;
    overflow:hidden;
    background:#17191b !important;
    border:1px solid #33373a !important;
    border-left:3px solid #65372f !important;
    border-radius:3px;
    box-shadow:0 3px 8px rgba(0,0,0,.34) !important;
}
body.ui-theme-bratva .bratva-boss-card:nth-of-type(even) {
    background:#191a1c !important;
    border-left-color:#73582f !important;
}
body.ui-theme-bratva .bratva-boss-card:hover {
    border-color:#4b4f53 !important;
    border-left-color:#a3743d !important;
}

body.ui-theme-bratva .bratva-boss-card .block {
    background:transparent !important;
    border:0 !important;
}
body.ui-theme-bratva .bratva-boss-main {
    min-height:58px;
    padding:9px 10px !important;
}

/* Аватар босса */
body.ui-theme-bratva .bratva-boss-avatar {
    width:58px !important;
    height:58px !important;
    margin-right:10px !important;
    border:1px solid #705042 !important;
    border-radius:3px;
    box-shadow:0 2px 6px rgba(0,0,0,.7);
    object-fit:cover;
}

/* Имя босса — золото только здесь */
body.ui-theme-bratva .bratva-boss-name {
    color:#e2c17a !important;
    font-family:Georgia,"Times New Roman",serif !important;
    font-size:15px !important;
    font-weight:700 !important;
    text-shadow:0 1px #000 !important;
}

/* Статы разнесены визуально и не выглядят одной кашей */
body.ui-theme-bratva .bratva-boss-stats {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:3px 6px;
    margin-top:5px;
    color:#c4c0b8 !important;
}
body.ui-theme-bratva .bratva-boss-stats img,
body.ui-theme-bratva .bratva-key-row img {
    width:18px !important;
    height:18px !important;
    object-fit:contain;
    filter:drop-shadow(0 1px 1px #000);
}

/* Ключи — отдельная тёмная полоса, а не ещё один золотой заголовок */
body.ui-theme-bratva .bratva-key-row {
    margin:0 10px 7px !important;
    padding:6px 8px !important;
    background:#111315 !important;
    border:1px solid #2d3033 !important;
    border-radius:2px;
    color:#bab6ad !important;
    text-align:center;
}
body.ui-theme-bratva .bratva-key-row b.green {color:#acd47e !important}
body.ui-theme-bratva .bratva-key-row b.red {color:#e37e6c !important}

/* Разделитель внутри карточки */
body.ui-theme-bratva .bratva-boss-card .dotted {
    margin:0 10px !important;
    border-top:1px solid #2c2f32 !important;
}

/* Кнопка боя */
body.ui-theme-bratva .bratva-boss-card .btn_start,
body.ui-theme-bratva .bratva-boss-card .btn_end {
    display:inline !important;
    background:none !important;
}
body.ui-theme-bratva .bratva-boss-card .btn {
    min-width:165px;
    padding:7px 13px !important;
    background:
        linear-gradient(rgba(47,49,52,.93),rgba(25,27,29,.96)),
        url('/themes/bratva/ui/button.png') center/100% 100% no-repeat !important;
    border-color:#765534 !important;
}
body.ui-theme-bratva .bratva-boss-card .btn:hover {
    border-color:#b48747 !important;
}

/* Alert/прибыль — нейтральный фон, чтобы не сливался с остальной страницей */
body.ui-theme-bratva .alert {
    background:linear-gradient(#252a2e,#171a1c) !important;
    border:1px solid #454b50 !important;
    border-left:3px solid #9a713a !important;
    color:#d9d5cc !important;
}
body.ui-theme-bratva .alert b,
body.ui-theme-bratva .alert strong {
    color:#f0d89d !important;
}

/* ------------------------------------------------------------------
   ГЛОБАЛЬНАЯ ЗАМЕНА МЕЛКИХ ИКОНОК НА ОРИГИНАЛЫ ИЗ MAFIA
   ------------------------------------------------------------------ */
body.ui-theme-bratva img[src$="/images/icons/health.png"] {
    content:url('/themes/bratva/icons/game/health.png');
}
body.ui-theme-bratva img[src$="/images/icons/damage.png"] {
    content:url('/themes/bratva/icons/game/damage.png');
}
body.ui-theme-bratva img[src$="/images/icons/armor.png"] {
    content:url('/themes/bratva/icons/game/armor.png');
}
body.ui-theme-bratva img[src$="/images/icons/level.png"] {
    content:url('/themes/bratva/icons/game/level.png');
}
body.ui-theme-bratva img[src$="/images/icons/experience.png"] {
    content:url('/themes/bratva/icons/game/experience.png');
}
body.ui-theme-bratva img[src$="/images/icons/silver.png"] {
    content:url('/themes/bratva/icons/game/money.png');
}
body.ui-theme-bratva img[src$="/images/icons/key.png"] {
    content:url('/themes/bratva/icons/game/key.png');
}
body.ui-theme-bratva img[src$="/images/icons/boss.png"] {
    content:url('/themes/bratva/icons/game/boss-small.png');
}

/* Размеры иконок в строках */
body.ui-theme-bratva img[src*="/themes/bratva/icons/game/"] {
    vertical-align:middle;
}

/* Пагинация — спокойнее UI2: активная видна, остальные не кричат */
body.ui-theme-bratva ul.pagination {
    background:#0f1112 !important;
    border-color:#292c2f !important;
}
body.ui-theme-bratva ul.pagination li a,
body.ui-theme-bratva ul.pagination li.disabled {
    background:#1b1e20 !important;
    color:#c9c4b9 !important;
    border-color:#3a3d40 !important;
    font-weight:600 !important;
}
body.ui-theme-bratva ul.pagination li a:hover {
    transform:none !important;
    background:#26292c !important;
    border-color:#8a683a !important;
    color:#eee7d9 !important;
}
body.ui-theme-bratva ul.pagination li.active a,
body.ui-theme-bratva ul.pagination li.disabled {
    color:#f2ddb1 !important;
    background:linear-gradient(#473720,#2d2418) !important;
    border-color:#8a683a !important;
    text-shadow:0 1px #000 !important;
    box-shadow:none !important;
}

@media(max-width:650px){
    body.ui-theme-bratva .bratva-boss-card {
        margin:5px 4px 7px !important;
    }
    body.ui-theme-bratva .bratva-boss-avatar {
        width:54px !important;
        height:54px !important;
    }
}


/* =====================================================================
   BRATVA UI 4.0 — БЕЗ ПОДЛОЖКИ ПОД ОБЫЧНЫМ ТЕКСТОМ
   Исправляет "плашки" за именами/цифрами и делает бой легче для глаз.
   ===================================================================== */

/* ВАЖНО: color3 часто используется прямо на span с именем.
   Раньше глобальное правило рисовало под ним коричневый прямоугольник. */
body.ui-theme-bratva .color3:not(.block):not(.alert):not(.ap-section):not(.dep-title) {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit !important;
    color: #e5c77f !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-shadow: 0 1px 0 #000 !important;
}

/* Обычные имена игроков/ботов — без рамок и плашек */
body.ui-theme-bratva .block a .color3,
body.ui-theme-bratva .block span.color3,
body.ui-theme-bratva .content span.color3 {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* Жирный текст тоже не должен становиться отдельной визуальной карточкой */
body.ui-theme-bratva b,
body.ui-theme-bratva strong {
    background: transparent !important;
    box-shadow: none !important;
}

/* Карточки боя: один общий фон строки вместо "фон внутри фона" */
body.ui-theme-bratva .content .block {
    background: #171a1d !important;
}
body.ui-theme-bratva .content .block + .block {
    border-top-color: #262a2e !important;
}

/* Но настоящие заголовки страницы оставляем отдельными */
body.ui-theme-bratva .block.center.s125,
body.ui-theme-bratva .bratva-page-title {
    background: linear-gradient(180deg,#222629,#171a1c) !important;
    border-top: 1px solid #32363a !important;
    border-bottom: 1px solid #0b0d0e !important;
    color: #eee9df !important;
}

/* Имена в бою — читаемые, но без ощущения выделенного маркером текста */
body.ui-theme-bratva .bratva-boss-name,
body.ui-theme-bratva [class*="battle"] .color3:not(.block),
body.ui-theme-bratva [class*="fight"] .color3:not(.block) {
    background: transparent !important;
    color: #e0c27d !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    text-shadow: 0 1px 0 #000 !important;
}

/* Кнопки боя проще: никакой тяжёлой золотой плашки */
body.ui-theme-bratva .btn,
body.ui-theme-bratva button,
body.ui-theme-bratva input[type="submit"] {
    background: #24282c !important;
    background-image: none !important;
    border: 1px solid #555b60 !important;
    border-left-color: #84683d !important;
    color: #e8e5de !important;
    border-radius: 3px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.55) !important;
    text-shadow: 0 1px 0 #000 !important;
}
body.ui-theme-bratva .btn:hover,
body.ui-theme-bratva button:hover,
body.ui-theme-bratva input[type="submit"]:hover {
    background: #2d3236 !important;
    border-color: #987342 !important;
    color: #fff1d0 !important;
}

/* Убираем старую декоративную картинку с кнопки Подвала/боя */
body.ui-theme-bratva .bratva-boss-card .btn {
    background: #24282c !important;
    background-image: none !important;
}

/* Характеристики и боевой лог — чистый текст без лишних подложек */
body.ui-theme-bratva .bratva-boss-stats,
body.ui-theme-bratva .bratva-key-row,
body.ui-theme-bratva .small {
    text-shadow: 0 1px 0 #000 !important;
}
body.ui-theme-bratva .bratva-key-row {
    background: #111416 !important;
}

/* На телефоне чуть больше воздуха между строками боя */
@media (max-width:650px) {
    body.ui-theme-bratva .content .block {
        line-height: 1.5 !important;
    }
    body.ui-theme-bratva .btn,
    body.ui-theme-bratva button,
    body.ui-theme-bratva input[type="submit"] {
        min-height: 34px !important;
        padding: 7px 14px !important;
    }
}
