/* v0.7.15 UI asset registration: static illustrations only. All text, progress and game state remain live. */
:root{
 --reg-primary:url('../assets/ui/registered/button_primary_laurel.png');
 --reg-secondary:url('../assets/ui/registered/button_secondary_teal.png');
 --reg-tab:url('../assets/ui/registered/tab_selected_gold.png');
 --reg-heading:url('../assets/ui/registered/heading_teal_arrow.png');
 --reg-parchment:url('../assets/ui/registered/mission_parchment.png');
 --reg-victory:url('../assets/ui/registered/victory_red_ribbon.png');
 --reg-lock:url('../assets/ui/registered/lock.png');
 --reg-check:url('../assets/ui/registered/check.png');
 --reg-notification:url('../assets/ui/registered/notification_blank.png');
}
/* Arrows remain native, labeled keyboard-accessible buttons. */
#stageSelect .carousel-arrow{height:clamp(44px,11vh,88px);background-color:transparent;background-size:contain;background-repeat:no-repeat;background-position:center;border:0;box-shadow:none;font-size:0;min-width:0}
#stagePrev{background-image:url('../assets/ui/registered/arrow_left.png')!important}
#stageNext{background-image:url('../assets/ui/registered/arrow_right.png')!important}
#stageSelect .stage-card:disabled .stage-status::before{content:'';display:inline-block;width:1.2em;height:1.2em;vertical-align:middle;margin-right:4px;background:var(--reg-lock) center/contain no-repeat}
/* Only actual existing actions use these illustrated skins. */
#partyConfirm,#battle #start,#scout #drawTen,#modal .battle-result .br-actions button.primary{background:var(--reg-primary) center/100% 100% no-repeat;border:0;color:#fff7d7;text-shadow:0 1px 2px #49280c,0 -1px 1px #49280c;box-shadow:none;padding-inline:clamp(14px,3vw,30px)}
#partyReset,#scout #drawOne,#modal .battle-result .br-actions button.secondary,#missionDialog .mission-row button.secondary{background:var(--reg-secondary) center/100% 100% no-repeat;border:0;color:#fff7da;text-shadow:0 1px 2px #133331;box-shadow:none}
#missionDialog .mission-row button.primary{background:var(--reg-primary) center/100% 100% no-repeat;color:#fff7d7;text-shadow:0 1px 2px #49280c;border:0}
#heroDetails .detail-sections button,#missionDialog .mission-tabs button,#bookDialog .book-mode button{background:var(--reg-secondary) center/100% 100% no-repeat;color:#fff6d9;text-shadow:0 1px 2px #173a38;border:0}
#heroDetails .detail-sections button[aria-pressed=true],#missionDialog .mission-tabs button[aria-pressed=true],#bookDialog .book-mode button[aria-pressed=true]{background:var(--reg-tab) center/100% 100% no-repeat;color:#38230b;text-shadow:none}
#stageSelect .stage-head h1,#scout .scout-head h1{background:var(--reg-heading) center/100% 100% no-repeat;color:#fff4d3;text-shadow:0 1px 2px #112e38;padding-inline:clamp(20px,3vw,38px)}
/* Nine-slice artwork prevents the decorative corners stretching across wide rows. */
#missionDialog .mission-row{background:none;border:clamp(8px,1.5vw,16px) solid transparent;border-image:var(--reg-parchment) 52 65 52 65 fill stretch;border-radius:0;box-shadow:none;padding:3px 6px}
#missionDialog .mission-row button[data-claimed=true]::before{content:'';display:inline-block;width:1.1em;height:1.1em;vertical-align:middle;margin-right:3px;background:var(--reg-check) center/contain no-repeat}
#home.camp-mode #missionCount:not(:empty){background:var(--reg-notification) center/contain no-repeat;border:0;box-shadow:none;color:white;min-width:24px;height:24px;display:grid;place-items:center;font-size:11px;padding:3px;text-shadow:0 1px 2px #470000}
#home.camp-mode #missionCount:empty{display:none}
#modal .br-win .br-title{background:var(--reg-victory) center/contain no-repeat;color:#fff3ce;text-shadow:0 1px 2px #731b16;padding:12px 48px 24px;min-height:clamp(65px,12vh,100px);font-size:clamp(17px,2.4vw,28px)}
@media(orientation:landscape) and (max-height:600px){#modal .br-win .br-title{min-height:48px;padding:6px 35px 14px;font-size:17px}#home.camp-mode #missionCount:not(:empty){min-width:20px;height:20px;font-size:10px}}

/* Final integration: decorative icons never act as separate reward buttons. */
.wallet:has(.wallet-token){display:flex!important;flex-wrap:nowrap!important;gap:4px!important;align-items:center;justify-content:flex-start;min-width:0}
.wallet-token{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:3px;padding:5px 12px;min-height:31px;min-width:0;color:#fff4ce;background:url('../assets/ui/registered/currency_frame.png') center/100% 100% no-repeat;white-space:nowrap;font-weight:850;text-shadow:0 1px 2px #142426;font-size:clamp(10px,1.2vw,15px);font-variant-numeric:tabular-nums}
.wallet-token .ui-icon{width:18px!important;height:18px!important;flex:none}.wallet-token .wallet-label{font-size:9px;color:#ffedbd}.wallet-value{line-height:1.15}
#stageSelect #stageRewardHint::before,#missionDialog #missionSummary::before,#modal .br-win .br-crest::before{content:'';display:inline-block;width:1.5em;height:1.5em;margin-right:.35em;vertical-align:middle;background-position:center;background-size:contain;background-repeat:no-repeat}
#stageSelect #stageRewardHint::before{background-image:url('../assets/ui/registered/chest.png')}
#missionDialog #missionSummary::before{background-image:url('../assets/ui/registered/gift.png')}
#modal .br-win .br-crest::before{background-image:url('../assets/ui/registered/crown.png')}
#heroDetails #shardBuy,#scout #resultDone{background:var(--reg-primary) center/100% 100% no-repeat;border:0;color:#fff7d7;text-shadow:0 1px 2px #49280c;box-shadow:none;padding-inline:20px}
#missionDialog .mission-header h2,#heroDetails .detail-header h2,#bookDialog .book-header h2,#wachaDialog .wacha-head h2{background:var(--reg-heading) left center/100% 100% no-repeat;border:0;color:#fff4d3;text-shadow:0 1px 2px #112e38;padding:6px 26px;display:inline-block}
#stageSelect .world-tab[aria-pressed=true]{background:var(--reg-tab) center/100% 100% no-repeat;color:#392309;border:0;text-shadow:none}
@media(orientation:landscape) and (max-height:600px){.wallet-token{font-size:10px;min-height:25px;padding:4px 8px}.wallet-token .ui-icon{width:15px!important;height:15px!important}.wallet-token .wallet-label{font-size:8px}}
@media(max-width:700px){#home.camp-mode .wallet-token .wallet-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#home.camp-mode .wallet-token{padding:3px 7px}.wallet-token .ui-icon{width:14px!important;height:14px!important}#home.camp-mode .welcome{padding-inline:2px}.wallet-token{gap:2px}}
