/* Production art components. Captions and state always remain live DOM.
   Slice coordinates and source alpha are recorded in asset_manifest/strategy/slices.json. */
:root {
 --sg-button-art:url('assets/ui/strategy/amber-action-slice.png');
 --sg-selected-art:url('assets/ui/strategy/jade-selection-slice.png');
 --sg-crest-art:url('assets/ui/strategy/dragon-crest.png');
}
/* Nine-slice: corner engravings retain their aspect ratio at every button width. */
:is(.sg-art-action,.sg-primary,#world-play,#manual-battle,.policy-commands .policy-order,
 .action-grid .primary,.battle-command-primary,.battle-body>button) {
 border:1px solid transparent!important;
 border-image:var(--sg-button-art) 65 140 fill / 16px 35px / 0 stretch!important;
 background:none!important;box-shadow:inset 0 1px 1px #ffe0a477,0 2px 9px #0008,0 0 16px #bc80251c!important;
 color:#fff1d0!important;text-shadow:0 1px 2px #291600;
 padding:12px 36px;min-height:52px;font:22px/1.35 KaiTi,STKaiti,serif;
}
:is(.sg-art-action,.sg-primary,#world-play,#manual-battle,.policy-order):hover:not(:disabled){filter:brightness(1.14)}
:is(button[aria-pressed=true],button[aria-selected=true],.tabs button.active,.list-button.selected,button.cm-selected){
 position:relative;border-color:transparent!important;
 background:linear-gradient(100deg,#437c688c,#28534799 65%,#36665788)!important;
 box-shadow:inset 0 0 14px #9ce3bd33,inset 0 0 2px 1px #d0ffe699,0 0 7px #80d7b459!important;
 color:#edf4d8!important;
}
:is(button[aria-pressed=true],button[aria-selected=true],.tabs button.active,.list-button.selected,button.cm-selected)::after{
 content:"";position:absolute;inset:0;pointer-events:none;
 border:1px solid transparent;border-image:var(--sg-selected-art) 32 / 8px / 0 stretch;
 opacity:.58;filter:drop-shadow(0 0 2px #b1ffe6b3) drop-shadow(0 0 5px #6dd7b36b);
}
/* Light belongs to the selected control; it never covers its live caption. */
:is(button[aria-pressed=true],button[aria-selected=true],.tabs button.active,.list-button.selected,button.cm-selected)::before{
 content:"";position:absolute;inset:0;pointer-events:none;
 background:linear-gradient(90deg,transparent,#ddffdf99 15%,#9ee1c455 65%,transparent) top/100% 1px no-repeat,
 radial-gradient(ellipse at 0 50%,#b0f4d63d,transparent 60%);
}
button{transition:background .18s,box-shadow .18s,filter .18s,border-color .18s}
button:disabled::before,button:disabled::after{filter:none}
button:disabled{box-shadow:none!important}
.sg-art-tab{font:23px KaiTi,STKaiti,serif;padding:10px 26px;min-height:54px;display:flex;align-items:center;justify-content:center;gap:14px}
.sg-tab-icon{font-family:serif;font-size:27px;line-height:1;color:#e4cda1}
.sg-roster-art img,.sg-city-art{display:block;width:100%;height:100%;object-fit:cover}
.sg-city-art{border:1px solid #b9a57766}
.strategy-portrait{object-fit:cover!important;object-position:center top;image-rendering:auto!important}
.cg-face,.policy-hero-art,.sg-city-art{image-rendering:auto!important}
.topbar{position:relative;isolation:isolate;padding-left:92px!important;border:0;border-bottom:1px solid #b39a66aa!important;background:linear-gradient(90deg,#091b22df,#0c222b50 60%,#091b22b8)!important;box-shadow:0 1px 0 #e8c88533,0 5px 20px #0004}
.topbar::before{content:"";position:absolute;z-index:-1;left:-6px;top:0;width:94px;height:94px;background:var(--sg-crest-art) left top/contain no-repeat;opacity:.85}
.brand-seal{display:none!important}.brand strong{font-size:34px;letter-spacing:4px}.brand small{display:none}
:is(.classic-management .cm-top,.cg-toolbar,.manual-battle-dialog>h2,#new-game>header){position:relative;padding-left:74px!important;min-height:58px}
:is(.classic-management .cm-top,.cg-toolbar,.manual-battle-dialog>h2,#new-game>header)::before{content:"";position:absolute;left:5px;top:5px;width:58px;height:58px;background:var(--sg-crest-art) center/contain no-repeat;opacity:.6;pointer-events:none}
.classic-management .cm-header{background:linear-gradient(90deg,#102a32c9,#102a3222),var(--sg-art) right center/cover}
.cm-face{width:110px;height:142px}.cm-header{grid-template-columns:110px minmax(0,1fr)}
.cg-face{object-fit:cover;object-position:top}
.original-end-button{background:#0d252dd9!important;border:1px solid #bda475!important;box-shadow:inset 0 0 0 3px #0b1c2299!important;color:#e8d6af!important;min-height:52px;padding:12px 26px!important;font:21px KaiTi,serif!important}
@media(max-width:760px){
 .topbar{padding-left:46px!important}.topbar::before{width:48px;height:48px}.brand strong{font-size:22px;letter-spacing:1px}
 :is(.sg-art-action,.sg-primary,#world-play,#manual-battle,.policy-commands .policy-order,.action-grid .primary,.battle-command-primary,.battle-body>button){border-image-width:12px 26px!important;font-size:17px;min-height:44px;padding:9px 24px}
 .sg-art-tab{font-size:18px;gap:8px;padding:8px 12px;min-height:44px}
 .cm-face{width:64px;height:84px}.cm-header{grid-template-columns:64px minmax(0,1fr)}
}

.sg-tab-icon{display:inline-block;width:27px;height:27px;background-position:center;background-size:contain;background-repeat:no-repeat}
.icon-city{background-image:url('assets/ui/strategy/icon-city.svg')}.icon-search{background-image:url('assets/ui/strategy/icon-search.svg')}.icon-officer{background-image:url('assets/ui/strategy/icon-officer.svg')}
.cm-detail>button,.cm-actions>button:first-child,.cm-footer .sg-art-action{border:1px solid transparent!important;border-image:var(--sg-button-art) 65 140 fill / 12px 26px / 0 stretch!important;background:none!important;color:#fff0c6;padding:10px 28px;min-height:42px}
