/* Size the board to its recruits, with the same compact controls at every tier. */
#wb-ui #wb-shop{--wb-recruit-card-width:clamp(112px,calc((var(--wc-dock-width) - 58px - (var(--wb-recruit-count,3) - 1)*12px)/var(--wb-recruit-count,3)),144px);width:min(var(--wc-dock-width),calc(var(--wb-recruit-count,3)*156px + 46px));padding:9px 13px 8px;isolation:isolate}
/* The recruitment board, Garrison and preparation panel share the dialogs' silver frame and dark stone tile.
   The thinner 9px frame border hands its 4px back to the padding, so the contents stay put. */
#wb-ui :is(#wb-shop,#wb-barracks,#wb-resources){border:9px solid transparent!important;border-radius:0!important;border-image:var(--wb-kit-frame) 115 / 58px / 6px stretch!important;
 background:linear-gradient(#ffffff06,#00000030),var(--wb-kit-stone) 0 0/256px 256px repeat,#1b1713!important;background-clip:border-box!important;
 box-shadow:0 10px 30px #000a}
#wb-ui#wb-ui #wb-shop{padding:13px 17px 12px}
body:not(.wb-mobile-layout) #wb-ui #wb-barracks{padding:11px!important}
body:not(.wb-mobile-layout) #wb-ui #wb-resources{padding:14px 15px!important}
#wb-ui #wb-ready-status:empty{display:none!important}
#wb-ui#wb-ui #wb-shop.wb-shop-collapsed{padding:10px 14px}
#wb-ui #wb-shop .wb-shop-heading{display:flex;justify-content:flex-start;gap:10px;margin:0 0 6px;padding:0 34px 0 0;min-height:25px;position:relative}
#wb-ui #wb-shop .wb-shop-heading h2{font-size:16px;margin:0;line-height:23px}
#wb-ui #wb-shop #wb-shop-status{font:10px Arial,sans-serif;color:#bfe8fb;line-height:12px;max-width:none;white-space:nowrap;flex-shrink:0}
#wb-ui #wb-shop-toggle{position:absolute;right:0;top:0;border-width:4px!important;border-image-width:4px!important;width:26px;height:25px;min-height:25px!important;padding:0!important;font:20px Arial,sans-serif!important;line-height:20px}
#wb-ui #wb-shop #wb-shop-cards{gap:12px;justify-content:flex-start;padding:5px 3px 6px}
#wb-ui #wb-shop button.wb-card,#wb-ui #wb-shop .wb-empty-card{width:var(--wb-recruit-card-width)!important;flex:0 0 var(--wb-recruit-card-width)!important;height:236px!important;min-height:236px!important}
#wb-ui #wb-shop .wb-card-art{width:52px!important;height:52px!important;margin:1px 0 5px!important}
#wb-ui #wb-shop .wb-card-art img{width:48px!important;height:48px!important}
#wb-ui #wb-shop .wb-card-name{font-size:14px!important;min-height:42px!important;line-height:1.15!important}
#wb-ui #wb-shop .wb-card-faction{font-size:11px!important;margin-bottom:3px!important}
#wb-ui #wb-shop .wb-card-top{height:20px;min-height:20px}
#wb-ui #wb-shop .wb-card-attributes{margin:3px 0 4px}
#wb-ui #wb-shop .wb-shop-actions{display:flex;justify-content:center;align-items:center;gap:10px;margin:5px 0 0}
#wb-ui #wb-shop .wb-shop-actions>span{display:block}
#wb-ui #wb-shop .wb-shop-actions button{min-width:132px;min-height:38px!important;display:flex;align-items:center;justify-content:center;gap:14px;padding:6px 12px!important;font:15px WarbandFriz,Georgia,serif!important;line-height:20px}
#wb-ui #wb-shop .wb-refresh-cost{display:inline-flex;align-items:center;gap:3px;color:#ffd85c;font:14px Arial,sans-serif}
#wb-ui #wb-shop .wb-refresh-cost img{width:18px;height:18px}
#wb-ui #wb-shop .wb-shop-actions>span:focus-visible{outline:2px solid #b4d7ed;outline-offset:2px}
#wb-ui #wb-shop .wb-triple-lesson{max-width:640px;margin:7px auto 0;font-size:10px;line-height:14px}
#wb-ui #wb-shop.wb-shop-collapsed{width:310px;max-width:var(--wc-dock-width)!important;padding:6px 10px}
#wb-ui #wb-shop.wb-shop-collapsed .wb-shop-actions{display:none}
#wb-ui #wb-shop.wb-shop-collapsed .wb-shop-heading{margin:0}
@media(max-height:760px){#wb-ui #wb-shop button.wb-card,#wb-ui #wb-shop .wb-empty-card{height:212px!important;min-height:212px!important}#wb-ui #wb-shop .wb-card-art{width:44px!important;height:44px!important;margin-bottom:3px!important}#wb-ui #wb-shop .wb-card-art img{width:40px!important;height:40px!important}#wb-ui #wb-shop .wb-card-name{font-size:13px!important;min-height:38px!important}#wb-ui #wb-shop .wb-shop-actions button{min-height:36px!important}}
@media(max-width:1100px){#wb-ui #wb-shop .wb-shop-heading h2{font-size:14px}#wb-ui #wb-shop .wb-shop-actions button{min-width:120px;gap:8px}#wb-ui #wb-shop .wb-triple-lesson{font-size:9px}}
/* Covers (owner, 2026-10-23): every second board a consumable covers the rightmost troop card. A second frame edge
   shows behind the item; buying the item reveals that troop in the same slot with one short turn of the card. */
#wb-ui#wb-ui#wb-ui #wb-shop .wb-card[data-card-frame] .wb-recruit-cover-label{color:#ffd85c!important}
@keyframes wb-recruit-reveal{0%{transform:perspective(700px) rotateY(88deg);filter:brightness(2) drop-shadow(0 0 10px #ffd85c)}65%{transform:perspective(700px) rotateY(-6deg);filter:brightness(1.25) drop-shadow(0 0 7px #ffd85c)}100%{transform:none;filter:drop-shadow(0 3px 3px #000a)}}
#wb-ui#wb-ui#wb-ui #wb-shop button.wb-card[data-card-frame].wb-recruit-revealing{animation:wb-recruit-reveal .6s ease-out both!important}
@media(prefers-reduced-motion:reduce){#wb-ui#wb-ui#wb-ui #wb-shop button.wb-card[data-card-frame].wb-recruit-revealing{animation:none!important}}
