/* Bulgarian parchment for Campaigns, Manage Army, formation planning, and unit training. */
body.game-bulgarian-empire:is(.game-campaigns-view,.game-army-view) .game-layout{
  background:linear-gradient(180deg,#07130fb3 0%,#07130fdd 64%,#07130ff1 100%),var(--empire-portrait) center top/cover fixed;
}
body.game-bulgarian-empire :is(.campaigns-panel,.army-panel){position:relative}
body.game-bulgarian-empire :is(.campaigns-panel,.army-panel)::before,
body.game-bulgarian-empire :is(.campaigns-panel,.army-panel)::after{
  content:'';position:absolute;top:6px;bottom:0;width:25px;pointer-events:none;opacity:.85;
  background:url('/assets/bulgarian-embroidery-edge.svg') center top/25px 75px repeat-y;
  filter:drop-shadow(0 2px 2px #190f08);
}
body.game-bulgarian-empire :is(.campaigns-panel,.army-panel)::before{left:-35px}
body.game-bulgarian-empire :is(.campaigns-panel,.army-panel)::after{right:-35px}
body.game-bulgarian-empire :is(.campaigns-panel,.army-panel:not(.army-detail))>.small-label{color:#f1c58e}
body.game-bulgarian-empire :is(.campaigns-panel,.army-panel:not(.army-detail))>h1{
  max-width:760px;margin:11px auto 0;padding:20px 25px 30px;
  border:2px solid #754b31;border-radius:13px 5px 12px 6px;
  background-image:url('/assets/bulgarian-embroidery-line.svg'),url('/assets/empire-parchment.webp');
  background-position:center bottom 6px,center;background-size:96px 17px,cover;background-repeat:repeat-x,no-repeat;
  background-color:#ead1a8;color:#382719;text-shadow:none;
  box-shadow:inset 0 0 0 2px #fff0d694,0 16px 30px #020804a6;
}
body.game-bulgarian-empire .army-panel:not(.army-detail)>.army-intro,
body.game-bulgarian-empire .formation-panel>p{
  max-width:760px;margin:0 auto 17px;padding:12px 22px;
  border:1px solid #845b3b;border-top:0;border-radius:0 0 8px 3px;
  background:#e8cda1 url('/assets/empire-parchment.webp') center/cover;
  color:#583d29;box-shadow:0 10px 18px #0208048c;
}
body.game-bulgarian-empire .army-panel:not(.army-detail)>.army-intro{margin-bottom:10px}

/* Campaign orders retain their category colors against paper. */
body.game-bulgarian-empire .campaigns-main-window{
  border:2px solid #785034;border-radius:10px 3px 9px 4px;
  background:#ead1a8 url('/assets/empire-parchment.webp') center/cover;color:#3e2b1c;
  box-shadow:inset 0 0 0 2px #fff0d485,0 18px 36px #020804a6;
}
body.game-bulgarian-empire .campaigns-main-window>.campaign-composer{border-color:#9d704e}
body.game-bulgarian-empire .campaigns-window-header{border-color:#a5785280}
body.game-bulgarian-empire .campaigns-window-header h2,
body.game-bulgarian-empire .campaign-kind-list legend{color:#4b2f20}
body.game-bulgarian-empire .campaigns-window-header :is(span,p),
body.game-bulgarian-empire :is(.campaigns-empty,.campaign-submit p){color:#694934}
body.game-bulgarian-empire .campaign-movement{
  --campaign-ink:#5e6261;border-top:1px solid #9f76548c;border-right:1px solid #9f76548c;
  border-bottom:1px solid #9f76548c;background:#f2dcb6 url('/assets/empire-parchment.webp') center/cover;
  box-shadow:0 4px 9px #603b2352;
}
body.game-bulgarian-empire .campaign-movement.campaign-red{--campaign-ink:#9b342d}
body.game-bulgarian-empire .campaign-movement.campaign-green{--campaign-ink:#28683e}
body.game-bulgarian-empire .campaign-movement.campaign-yellow{--campaign-ink:#8a5a10}
body.game-bulgarian-empire .campaign-movement :is(.campaign-movement-kind strong,.campaign-movement-kind small,.campaign-route,.campaign-arrival time){color:var(--campaign-ink)}
body.game-bulgarian-empire .campaign-movement .campaign-arrival>span{color:#6e4e36}
body.game-bulgarian-empire .campaign-movement .campaign-route span:nth-child(2){color:#79553a}
body.game-bulgarian-empire .campaign-arrival button,
body.game-bulgarian-empire .campaign-composer .campaigns-window-header button,
body.game-bulgarian-empire .campaign-unit button,
body.game-bulgarian-empire .campaign-formation-choice button{
  border:1px solid #875237;border-radius:5px 2px 5px 2px;
  background:#a4623f;color:#fff0d4;box-shadow:inset 0 0 0 1px #efd1a672;
}
body.game-bulgarian-empire :is(.campaign-arrival button,.campaign-unit button,.campaign-formation-choice button):hover:not(:disabled){background:#814329}
body.game-bulgarian-empire .campaign-destination{border-color:#a87a5580}
body.game-bulgarian-empire .campaign-destination label{color:#563925}
body.game-bulgarian-empire .campaign-destination :is(input,select),
body.game-bulgarian-empire .campaign-unit input,
body.game-bulgarian-empire .campaign-formation-choice select{
  border:1px solid #8e6242;background:#f7e1ba;color:#3e2819;
}
body.game-bulgarian-empire .campaign-unit-list{border-top:1px solid #a87a5552;border-bottom:1px solid #a87a5552}
body.game-bulgarian-empire .campaign-unit,
body.game-bulgarian-empire .campaign-kind,
body.game-bulgarian-empire .campaign-formation-choice{
  border:1px solid #9a704c;border-radius:6px 2px 6px 2px;
  background:#f2d9ae url('/assets/empire-parchment.webp') center/cover;color:#493221;
  box-shadow:inset 0 0 0 1px #fff3d675;
}
body.game-bulgarian-empire .campaign-unit img{border-color:#8e6242}
body.game-bulgarian-empire .campaign-unit strong,
body.game-bulgarian-empire .campaign-kind strong,
body.game-bulgarian-empire .campaign-formation-choice strong{color:#49301e}
body.game-bulgarian-empire .campaign-unit small,
body.game-bulgarian-empire .campaign-kind small,
body.game-bulgarian-empire .campaign-formation-choice small{color:#674a35}
body.game-bulgarian-empire .campaign-kind:has(input:checked){border-color:#9e4330;background:#d7b183 url('/assets/empire-parchment.webp') center/cover;box-shadow:0 0 0 2px #9e43308c}

/* The entire army roster follows the parchment building information box. */
body.game-bulgarian-empire .army-choice,
body.game-bulgarian-empire :is(.stable-roster,.army-level-panel,.army-upgrade-panel,.army-units-placeholder,.blacksmith-intro){
  border:2px solid #785034;border-radius:10px 3px 9px 4px;
  background:#ead1a8 url('/assets/empire-parchment.webp') center/cover;color:#3f2b1d;
  box-shadow:inset 0 0 0 2px #fff0d485,0 12px 24px #020804a1;
}
body.game-bulgarian-empire .army-choice:hover,
body.game-bulgarian-empire .army-choice:focus-visible{border-color:#a74732;outline:2px solid #f0d39d;outline-offset:2px}
body.game-bulgarian-empire .army-choice-content{
  background-image:url('/assets/bulgarian-embroidery-line.svg');
  background-position:center bottom 5px;background-size:96px 17px;background-repeat:repeat-x;padding-bottom:34px;
}
body.game-bulgarian-empire .army-choice-content>span{color:#934332}
body.game-bulgarian-empire .army-choice-content h2,
body.game-bulgarian-empire .stable-roster h2,
body.game-bulgarian-empire .army-section-heading h2{color:#3e281a}
body.game-bulgarian-empire .army-choice-content p,
body.game-bulgarian-empire .stable-roster>p,
body.game-bulgarian-empire .army-level-panel>p,
body.game-bulgarian-empire .army-units-placeholder p{color:#654833}
body.game-bulgarian-empire .army-choice-content>div{border-color:#9d704e80}
body.game-bulgarian-empire .army-choice-content :is(strong,em),
body.game-bulgarian-empire .army-choice-content .army-train-link,
body.game-bulgarian-empire .stable-roster-heading>strong{color:#8d402d}
body.game-bulgarian-empire .army-formation-symbol{border-color:#9d704e;background:#e0bd8d url('/assets/empire-parchment.webp') center/cover;color:#8e4430;text-shadow:none}
body.game-bulgarian-empire .army-back{color:#f2c68d}
body.game-bulgarian-empire .stable-roster{padding-bottom:34px}
body.game-bulgarian-empire .stable-queue,
body.game-bulgarian-empire .stable-unit,
body.game-bulgarian-empire .blacksmith-unit{
  border:2px solid #875b3d;border-radius:9px 3px 9px 3px;
  background:#e9cea2 url('/assets/empire-parchment.webp') center/cover;color:#422c1c;
  box-shadow:inset 0 0 0 2px #fff0d694,0 9px 17px #53321b7a;
  overflow:hidden;
}
body.game-bulgarian-empire .stable-unit-visual{border-color:#956849}
body.game-bulgarian-empire .stable-unit-content{
  background-image:url('/assets/bulgarian-embroidery-line.svg'),url('/assets/empire-parchment.webp');
  background-position:center bottom 5px,center;background-size:96px 17px,cover;background-repeat:repeat-x,no-repeat;
  background-color:#ead0a7;padding-bottom:33px;
}
body.game-bulgarian-empire .stable-unit.is-locked{border-color:#8d7a65;background:#e1ccb0}
body.game-bulgarian-empire .stable-unit-heading h3,
body.game-bulgarian-empire .blacksmith-unit h3,
body.game-bulgarian-empire .stable-queue h3{color:#412b1d}
body.game-bulgarian-empire .stable-unit-cost-heading,
body.game-bulgarian-empire .stable-train-form label{color:#815039}
body.game-bulgarian-empire .stable-unit-heading>strong,
body.game-bulgarian-empire .stable-queue-item :is(strong,time){color:#713e29}
body.game-bulgarian-empire .stable-lock-badge{border-color:#8e6242;background:#e3c595;color:#4a2c1a}
body.game-bulgarian-empire .stable-lock-badge img{background:#dac297;border-color:#8e6242}
body.game-bulgarian-empire .stable-unit :is(input,.stable-max-button),
body.game-bulgarian-empire .formation-save input[type=text]{border-color:#8e6242;background:#f6dfb4;color:#442c1d}
body.game-bulgarian-empire .stable-unit .stable-max-button{background:#ddb982;color:#4b2e1d}
body.game-bulgarian-empire .stable-queue-item{border-color:#a478527e}
body.game-bulgarian-empire .stable-queue>p{color:#654832}
body.game-bulgarian-empire .stable-queue-item span,
body.game-bulgarian-empire .blacksmith-unit p{color:#654a35}
body.game-bulgarian-empire .stable-queue-item button{border-color:#8e4f38;background:#a25c3d;color:#fff1d8}
body.game-bulgarian-empire .blacksmith-intro{padding:17px 22px}
body.game-bulgarian-empire .blacksmith-intro :is(h2,p){color:#4c301e}
body.game-bulgarian-empire .blacksmith-unit>img{border-color:#865b3f}
body.game-bulgarian-empire .blacksmith-track{
  border:1px solid #986a48;border-radius:5px 2px 5px 2px;
  background:#f2dab2 url('/assets/empire-parchment.webp') center/cover;color:#442e20;
}
body.game-bulgarian-empire .blacksmith-track-title,
body.game-bulgarian-empire .blacksmith-cost,
body.game-bulgarian-empire :is(.blacksmith-research-time,.blacksmith-research-status){color:#533824}
body.game-bulgarian-empire .blacksmith-cost.insufficient{color:#a3342b}
body.game-bulgarian-empire .army-section-heading span,
body.game-bulgarian-empire .army-build-time span{color:#7c5338}
body.game-bulgarian-empire .army-build-time{border-color:#a4785280}
body.game-bulgarian-empire .army-build-time strong{color:#54311e}
body.game-bulgarian-empire .army-upgrade-status{background:#eed4aa;color:#513622}

/* Formation library, planning board, and unit picker. */
body.game-bulgarian-empire :is(.formation-library,.formation-workspace){
  border:2px solid #785034;border-radius:10px 3px 9px 4px;
  background:#e9cea3 url('/assets/empire-parchment.webp') center/cover;color:#412b1c;
  box-shadow:inset 0 0 0 2px #fff0d485,0 12px 24px #020804a1;
}
body.game-bulgarian-empire .formation-tab,
body.game-bulgarian-empire .formation-palette-unit,
body.game-bulgarian-empire .formation-saved{
  border:1px solid #895c3f;border-radius:6px 2px 6px 2px;
  background:#e4c392 url('/assets/empire-parchment.webp') center/cover;color:#4a3020;
}
body.game-bulgarian-empire :is(.formation-tab.active,.formation-palette-unit.active,.formation-saved.selected){border-color:#a3422e;background:#d4a775 url('/assets/empire-parchment.webp') center/cover;box-shadow:0 0 0 2px #a3422e80}
body.game-bulgarian-empire .formation-library h2,
body.game-bulgarian-empire .formation-palette h2,
body.game-bulgarian-empire .formation-saved button,
body.game-bulgarian-empire .formation-saved strong{color:#462b1b}
body.game-bulgarian-empire .formation-saved span,
body.game-bulgarian-empire .formation-library :is(p,small),
body.game-bulgarian-empire .formation-default-choice,
body.game-bulgarian-empire .formation-save>label:first-child{color:#654832}
body.game-bulgarian-empire .formation-library-head button,
body.game-bulgarian-empire .formation-palette>div:first-child button{border-color:#875237;background:#a4623f;color:#fff0d4}
body.game-bulgarian-empire .formation-opponent{background:#8d5334;color:#fff0d6}
body.game-bulgarian-empire .formation-wall{border-color:#94714e;background:#d0a775;color:#4d2d1c}
body.game-bulgarian-empire .formation-line-label{color:#5a3925}
body.game-bulgarian-empire .formation-slot{border-color:#a37b56;background:#f5deb7}
body.game-bulgarian-empire .formation-slot.occupied{background:#e7c495}
body.game-bulgarian-empire .formation-palette-unit span{color:#452b1c}
body.game-bulgarian-empire .formation-save{border-color:#a4785280}
@media(max-width:700px){
  body.game-bulgarian-empire :is(.campaigns-panel,.army-panel)::before{left:-10px}
  body.game-bulgarian-empire :is(.campaigns-panel,.army-panel)::after{right:-10px}
  body.game-bulgarian-empire :is(.campaigns-panel,.army-panel:not(.army-detail))>h1{padding:17px 14px 29px}
  body.game-bulgarian-empire .stable-roster{padding:14px 14px 30px}
  body.game-bulgarian-empire .stable-unit-content{padding-bottom:32px}
}
