/* Bulgarian parchment treatment for the game's dialogs and information panels. */
body.game-bulgarian-empire .building-modal,
body.game-bulgarian-empire .stable-info-dialog,
body.game-bulgarian-empire .unit-info-dialog,
body.game-bulgarian-empire .storage-alert,
body.game-bulgarian-empire .map-selection{
  border:2px solid #784c31;border-radius:13px 5px 12px 6px;
  background-image:url('/assets/bulgarian-embroidery-line.svg'),url('/assets/bulgarian-embroidery-line.svg'),url('/assets/empire-parchment.webp');
  background-position:center 6px,center calc(100% - 6px),center;
  background-size:96px 17px,96px 17px,cover;
  background-repeat:repeat-x,repeat-x,no-repeat;
  background-color:#ead1a8;color:#3c291b;
  box-shadow:inset 0 0 0 2px #fff0d58a,0 24px 65px #020804c9;
  scrollbar-color:#a16d44 #eed5aa;
}
body.game-bulgarian-empire .building-modal{padding-top:36px;padding-bottom:37px}
body.game-bulgarian-empire .stable-info-dialog,
body.game-bulgarian-empire .unit-info-dialog{padding-top:29px;padding-bottom:29px}
body.game-bulgarian-empire .storage-alert{padding:32px 27px 35px}
body.game-bulgarian-empire .map-selection{padding:23px 19px 26px}

body.game-bulgarian-empire :is(.building-modal,.stable-info-dialog,.unit-info-dialog,.storage-alert,.map-selection) :is(h2,h3,h4,strong){color:#432b1b}
body.game-bulgarian-empire :is(.building-modal,.stable-info-dialog,.unit-info-dialog,.storage-alert) .small-label{color:#934332}
body.game-bulgarian-empire :is(.building-modal,.stable-info-dialog,.unit-info-dialog,.storage-alert) :is(p,label,small){color:#5f4530}
body.game-bulgarian-empire :is(.building-modal,.stable-info-dialog,.unit-info-dialog,.storage-alert) :is(.modal-close,.stable-info-close,.unit-info-close,.building-guide-button){
  border:1px solid #855238;border-radius:5px 2px 5px 2px;background:#f0d5a8;color:#623a25;
  box-shadow:inset 0 0 0 1px #fff1d49c,0 3px 8px #5a381b73;
}
body.game-bulgarian-empire :is(.building-modal,.stable-info-dialog,.unit-info-dialog,.storage-alert) :is(.modal-close,.stable-info-close,.unit-info-close,.building-guide-button):hover,
body.game-bulgarian-empire :is(.building-modal,.stable-info-dialog,.unit-info-dialog,.storage-alert) :is(.modal-close,.stable-info-close,.unit-info-close,.building-guide-button):focus-visible{
  background:#fff0d0;color:#8c3729;outline:2px solid #a84931;outline-offset:2px;
}
body.game-bulgarian-empire .building-modal .modal-close{right:13px;top:14px;width:32px;height:32px;font-size:25px;cursor:pointer}
body.game-bulgarian-empire .building-quick-modal .building-guide-button{top:14px;right:55px}
body.game-bulgarian-empire :is(.building-modal,.storage-alert) .primary{
  border:1px solid #8c492f;background:#a85e3b;color:#fff2dc;
  box-shadow:inset 0 0 0 1px #efd2a669;
}
body.game-bulgarian-empire :is(.building-modal,.storage-alert) .primary:hover:not(:disabled),
body.game-bulgarian-empire :is(.building-modal,.storage-alert) .primary:focus-visible{background:#834127;outline:2px solid #bd7650}
body.game-bulgarian-empire .building-modal .secondary{border-color:#89563b;background:#edcf9c;color:#523320}
body.game-bulgarian-empire .building-modal .secondary:hover{background:#f9dfb1}

/* Small building pop-ups and their upgrade requirements. */
body.game-bulgarian-empire .building-modal .modal-description,
body.game-bulgarian-empire .building-quick-time,
body.game-bulgarian-empire .building-quick-trade p{color:#583e2b}
body.game-bulgarian-empire .building-quick-image{border:2px solid #8d6141;border-radius:6px 2px 6px 2px}
body.game-bulgarian-empire .building-quick-benefits>div,
body.game-bulgarian-empire :is(.building-quick-cost,.upgrade-cost,.resource-upgrade-details section,.resource-upgrade-status,.special-choice,.special-choice-selected,.special-noble,.special-noble-stats span){
  border:1px solid #a47751;border-radius:5px 2px 5px 2px;
  background:#f1d8ad url('/assets/empire-parchment.webp') center/cover;color:#493322;
  box-shadow:inset 0 0 0 1px #fff0d17a;
}
body.game-bulgarian-empire :is(.building-quick-benefits span,.resource-current span,.resource-build-time span,.modal-time span,.resource-selected-heading>span){color:#815339}
body.game-bulgarian-empire :is(.building-quick-benefits strong,.building-quick-cost strong,.upgrade-cost strong,.building-quick-time strong,.resource-current strong,.resource-build-time strong,.resource-selected-income,.modal-time strong){color:#53321f}
body.game-bulgarian-empire :is(.building-quick-cost.insufficient,.upgrade-cost.insufficient){border-color:#b6473b;color:#9a342e}
body.game-bulgarian-empire :is(.building-quick-cost.insufficient,.upgrade-cost.insufficient) strong{color:#9a342e}
body.game-bulgarian-empire :is(.resource-current,.resource-selected-heading,.resource-build-time,.modal-time,.modal-levels,.building-quick-trade){border-color:#9b6d497d}
body.game-bulgarian-empire .resource-level{border-color:#966b49;background:#e6c596;color:#4d3020}
body.game-bulgarian-empire .resource-level:hover,
body.game-bulgarian-empire .resource-level:focus-visible{border-color:#a84732;outline:2px solid #a84732}
body.game-bulgarian-empire .resource-level.complete{background:#a9bb8f;color:#213b29;border-color:#5a7650}
body.game-bulgarian-empire .resource-level.building{border-color:#a86b27;box-shadow:0 0 0 2px #d5a65a75}
body.game-bulgarian-empire .resource-level.selected{background:#a45b3b;color:#fff4dc;border-color:#f8d9ad;box-shadow:0 0 0 2px #a45b3b}
body.game-bulgarian-empire .resource-upgrade-details h4{color:#54321f}
body.game-bulgarian-empire :is(.resource-upgrade-details p,.resource-starting-level,.modal-effect p,.draft-note){color:#654a34}
body.game-bulgarian-empire .draft-note{border-color:#a55237}
body.game-bulgarian-empire .resource-upgrade-status{border-left:3px solid #a55237}
body.game-bulgarian-empire .resource-upgrade-status time{color:#8a4429}
body.game-bulgarian-empire .building-quick-trade :is(select,input){
  border:1px solid #936444;background:#f7dfb3;color:#3c281a;
}
body.game-bulgarian-empire .building-modal :is(input:not([type=radio]),select){
  border:1px solid #936444;background:#f7dfb3;color:#3c281a;
}
body.game-bulgarian-empire .building-modal input::placeholder{color:#86654b}
body.game-bulgarian-empire .building-modal :is(input,select):focus-visible{outline:2px solid #a64a32}
body.game-bulgarian-empire .building-modal :is(.stable-max-button,.special-queue-item button){
  border:1px solid #8b5638;background:#e0ba83;color:#4a2b1a;
}
body.game-bulgarian-empire .building-modal :is(.stable-max-button,.special-queue-item button):hover:not(:disabled){
  background:#f4d49f;
}
body.game-bulgarian-empire .special-choice{cursor:pointer}
body.game-bulgarian-empire .special-choice:has(input:checked){border-color:#a64a32;box-shadow:0 0 0 2px #a64a32}
body.game-bulgarian-empire .special-choice input[type=radio]{accent-color:#a64a32;box-shadow:0 0 0 3px #f4deb4}

/* Building guides and unit details keep their dense tables readable. */
body.game-bulgarian-empire :is(.stable-info-dialog>p,.unit-info-top p,.unit-info-footnote,.stable-info-dialog .stable-info-footnote){color:#5f4531}
body.game-bulgarian-empire .stable-info-current{
  border:1px solid #a47751;background:#f1d8ad url('/assets/empire-parchment.webp') center/cover;color:#67452e;
}
body.game-bulgarian-empire .stable-info-current strong{color:#482d1e}
body.game-bulgarian-empire :is(.stable-info-table-wrap,.unit-info-table-wrap){border-color:#926746;scrollbar-color:#a16d44 #eed5aa}
body.game-bulgarian-empire :is(.stable-info-table,.unit-info-table){color:#3e2b1d}
body.game-bulgarian-empire .stable-info-table thead th,
body.game-bulgarian-empire .unit-info-table thead,
body.game-bulgarian-empire .unit-info-table .unit-stat-section :is(th,td){
  background:#724b32;color:#fff0d3;
}
body.game-bulgarian-empire .stable-info-table tbody tr:nth-child(odd),
body.game-bulgarian-empire .unit-info-table tbody tr:nth-child(odd){background:#f3dfbb}
body.game-bulgarian-empire .stable-info-table tbody tr:nth-child(even),
body.game-bulgarian-empire .unit-info-table tbody tr:nth-child(even){background:#e6c89e}
body.game-bulgarian-empire .stable-info-table tbody tr.current{background:#d3ab75}
body.game-bulgarian-empire .stable-info-table tbody tr.building{background:#b8c394}
body.game-bulgarian-empire .stable-info-table tbody th,
body.game-bulgarian-empire .unit-info-table tbody td:nth-child(2){color:#633924}
body.game-bulgarian-empire .unit-info-table .unit-stat-section td:nth-child(2){color:#fff0d3}
body.game-bulgarian-empire :is(.stable-info-table,.unit-info-table) :is(th,td){border-color:#9c745782}
body.game-bulgarian-empire .unit-info-table tbody td:nth-child(3){color:#614b38}
body.game-bulgarian-empire .unit-info-table tbody td:nth-child(2):not([data-note=""])::after{color:#70523b}
body.game-bulgarian-empire .unit-info-top>img{border-color:#8a5e3d}

/* World Map selections, storage reminders, and short system notices. */
body.game-bulgarian-empire .map-selection strong{color:#432b1b}
body.game-bulgarian-empire .map-selection span{color:#684a34}
body.game-bulgarian-empire .map-selection-close{color:#633921}
body.game-bulgarian-empire .map-start-campaign{border-color:#8d4b32;color:#7a3827}
body.game-bulgarian-empire .map-start-campaign:hover,
body.game-bulgarian-empire .map-start-campaign:focus-visible{color:#a54831;border-color:#a54831}
body.game-bulgarian-empire .storage-alert li{border-color:#98704e80}
body.game-bulgarian-empire .storage-alert li small{color:#6b503a}
body.game-bulgarian-empire .game-notice .message{
  border:2px solid #8d593b;border-radius:7px 2px 7px 2px;
  background:#edcf9f url('/assets/empire-parchment.webp') center/cover;color:#472e1e;
  box-shadow:0 8px 20px #020804a6;
}
body.game-bulgarian-empire .game-notice .message.error{border-color:#a13c32;color:#7d251e}
body.game-bulgarian-empire .map-menu-items,
body.game-bulgarian-empire .site-tip{
  border:2px solid #89583a;border-radius:9px 3px 9px 3px;
  background-image:url('/assets/bulgarian-embroidery-line.svg'),url('/assets/empire-parchment.webp');
  background-position:center bottom 4px,center;background-size:96px 17px,cover;background-repeat:repeat-x,no-repeat;
  background-color:#ecd3a7;color:#3e291b;
  box-shadow:inset 0 0 0 1px #fff0d38c,0 10px 24px #020804aa;
  backdrop-filter:none;
}
body.game-bulgarian-empire .map-menu-items{padding:7px 7px 24px}
body.game-bulgarian-empire .map-menu-items button{color:#422d1e}
body.game-bulgarian-empire .map-menu-items button:hover,
body.game-bulgarian-empire .map-menu-items button:focus-visible{background:#cb9e6d8c;color:#7b3225;outline:1px solid #a34f35}
body.game-bulgarian-empire .map-menu-items .map-menu-logout{border-color:#9e775683;color:#984537}
body.game-bulgarian-empire .map-menu-coordinate{border-color:#9e775683;color:#6e4028}
body.game-bulgarian-empire .site-tip{padding-bottom:25px}
body.game-bulgarian-empire .site-tip strong{color:#432b1b}
body.game-bulgarian-empire .site-tip :is(span,small,em){color:#664832}
body.game-bulgarian-empire .site-tip em{border-color:#9d735583}
body.game-bulgarian-empire .map-scout-progress{
  border:1px solid #89583a;border-radius:6px 2px 6px 2px;padding:8px 10px;
  background:#edd5ac url('/assets/empire-parchment.webp') center/cover;color:#4b3020;text-shadow:none;
}
body.game-bulgarian-empire .map-scout-progress time{color:#8e472e}

/* The army building information box sits beside its existing building art. */
body.game-bulgarian-empire .army-detail-hero{border:2px solid #785034;border-radius:12px 4px 12px 4px;box-shadow:0 16px 30px #020804b6}
body.game-bulgarian-empire .army-detail-title{
  background-image:url('/assets/bulgarian-embroidery-line.svg'),url('/assets/empire-parchment.webp');
  background-position:center bottom 7px,center;background-size:96px 17px,cover;background-repeat:repeat-x,no-repeat;
  background-color:#ead1a8;color:#3f2a1a;
}
body.game-bulgarian-empire .army-detail-title :is(h1,p,.army-hero-summary,.stable-level-label,.army-hero-population){color:#493120}
body.game-bulgarian-empire .army-detail-title strong{border-color:#916444;color:#593923}
body.game-bulgarian-empire .army-detail-hero :is(.stable-info-button,.army-next-button,.army-previous-button){
  border-color:#865238;background:#f0d7a9;color:#673a23;
}
body.game-bulgarian-empire .army-detail-hero :is(.stable-info-button,.army-next-button,.army-previous-button):hover,
body.game-bulgarian-empire .army-detail-hero :is(.stable-info-button,.army-next-button,.army-previous-button):focus-visible{
  background:#fff0ce;outline:2px solid #a84830;outline-offset:2px;
}
@media(max-width:700px){
  body.game-bulgarian-empire .building-modal{padding:30px 17px 36px}
  body.game-bulgarian-empire :is(.stable-info-dialog,.unit-info-dialog){padding:27px 13px 30px}
  body.game-bulgarian-empire .storage-alert{padding:29px 18px 34px}
  body.game-bulgarian-empire .army-detail-title{padding-bottom:35px}
}
