/* Original interface frost and spellbook surfaces. No battlefield spell effects. */
#wb-ui #wb-shop{isolation:isolate}
#wb-ui #wb-shop::before{
 content:"";position:absolute;pointer-events:none;opacity:0;visibility:hidden;
 transition:opacity .18s ease,visibility .18s ease;
}
/* Frozen board (owner, 2026-10-29: frosty, and nicer than the old frost film, with nothing laid over the cards). The
   stone cools under a cold wash (::before), and Winterspring's cracked lake ice (qa/prepare-freeze-art.py) reaches in
   from the frame and fades out behind the cards (::after, screened and masked). Freezing spreads the ice in from the
   frame and thawing draws it back out, both inside client.mjs's 0.7 s .wb-freezing/.wb-thawing window. */
@property --wb-frost-reach{syntax:'<percentage>';inherits:false;initial-value:38%}
#wb-ui #wb-shop::before{
 inset:0;z-index:0;background:radial-gradient(ellipse 75% 80% at 50% 50%,#0000 40%,#a9dcff2e 100%),linear-gradient(#7fc4ec2e,#0a182170);
}
#wb-ui #wb-shop::after{
 content:"";position:absolute;inset:0;z-index:1;pointer-events:none;opacity:0;visibility:hidden;mix-blend-mode:screen;
 background:url('./skin/freeze/ice-cracked.png?art=707398fa3d2a908e') 0 0/150px 150px repeat;
 -webkit-mask:radial-gradient(ellipse 72% 78% at 50% 52%,#0000 var(--wb-frost-reach),#000 100%);
 mask:radial-gradient(ellipse 72% 78% at 50% 52%,#0000 var(--wb-frost-reach),#000 100%);
}
#wb-ui #wb-shop>*,#wb-ui #wb-shop .wb-shop-actions>span{position:relative;z-index:2}
#wb-ui #wb-shop .wb-shop-actions,#wb-ui #wb-shop-toggle{z-index:5}
#wb-ui #wb-shop.wb-shop-frozen::before{visibility:visible;opacity:1}
#wb-ui #wb-shop.wb-shop-frozen::after{visibility:visible;opacity:.62}
#wb-ui #wb-shop.wb-shop-frozen{box-shadow:inset 0 0 22px #bfe6ff40,0 3px 13px #0007}
#wb-ui #wb-shop.wb-freezing::before{visibility:visible;animation:wb-shop-frost-form .6s ease-out both}
#wb-ui #wb-shop.wb-freezing::after{visibility:visible;animation:wb-shop-rime-form .65s ease-out both}
#wb-ui #wb-shop.wb-thawing::before{visibility:visible;animation:wb-shop-frost-melt .6s ease-in both}
#wb-ui #wb-shop.wb-thawing::after{visibility:visible;animation:wb-shop-rime-melt .6s ease-in both}
@keyframes wb-shop-frost-form{from{opacity:0}to{opacity:1}}
@keyframes wb-shop-frost-melt{from{opacity:1}to{opacity:0}}
@keyframes wb-shop-rime-form{from{opacity:0;--wb-frost-reach:100%}to{opacity:.62;--wb-frost-reach:38%}}
@keyframes wb-shop-rime-melt{from{opacity:.62;--wb-frost-reach:38%}to{opacity:0;--wb-frost-reach:100%}}

/* The violet frame and its vellum center are one matching nine-slice asset. */
#wb-ui .wb-enchant-modal .wb-choice-row>button[data-enchant-choice],
#wb-ui .wb-reward-modal .wb-choice-row>button.wb-reward-enchant{
 background-color:#22132f!important;
 border-image:url('./skin/war-camp-enchant-frame.png') 7% fill / 8px stretch!important;
 background-image:none!important;
 background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;
 color:#f0e4ff!important;text-shadow:0 1px 2px #000!important;
 box-shadow:inset 0 0 0 1px #bd8ef744,inset 0 0 26px #7b48a522,0 4px 8px #0007!important;
 transition:box-shadow .16s ease,filter .16s ease;
}
#wb-ui .wb-enchant-modal .wb-choice-row>button[data-enchant-choice]:not(:disabled),
#wb-ui .wb-reward-modal .wb-choice-row>button.wb-reward-enchant:not(:disabled){filter:none!important}
#wb-ui .wb-enchant-modal .wb-choice-row>button[data-enchant-choice]:is(:hover,:focus-visible),
#wb-ui .wb-reward-modal .wb-choice-row>button.wb-reward-enchant:is(:hover,:focus-visible){
 box-shadow:inset 0 0 0 1px #d2b1ff88,inset 0 0 26px #9e64d32b,0 0 0 1px #b986ec,0 0 15px #a162d647,0 4px 8px #0008!important;
 outline-color:#d1adff!important;
}
#wb-ui .wb-enchant-modal .wb-choice-row>button[data-enchant-choice]>img,
#wb-ui .wb-reward-modal .wb-choice-row>button.wb-reward-enchant .wb-card-art img{
 border-color:#bc9bd7!important;box-shadow:0 2px 3px #0009,0 0 11px #b384e430!important;
}
#wb-ui .wb-enchant-modal .wb-choice-row>button[data-enchant-choice]>strong,
#wb-ui .wb-reward-modal .wb-choice-row>button.wb-reward-enchant .wb-card-name{
 color:#f0dcff!important;text-shadow:0 1px 2px #000!important;
}
#wb-ui .wb-enchant-modal .wb-choice-row>button[data-enchant-choice]>span,
#wb-ui .wb-reward-modal .wb-choice-row>button.wb-reward-enchant .wb-reward-effect{
 color:#ece4f5!important;text-shadow:none!important;
}
#wb-ui .wb-enchant-modal .wb-choice-row>button.wb-rare-choice>small,
#wb-ui .wb-enchant-modal .wb-choice-row>button.wb-rare-choice>strong{color:#b4d5ff!important}
#wb-ui .wb-reward-modal .wb-choice-row>button.wb-reward-enchant .wb-card-top,
#wb-ui .wb-reward-modal .wb-choice-row>button.wb-reward-enchant .wb-card-top>b,
#wb-ui .wb-reward-modal .wb-choice-row>button.wb-reward-enchant .wb-card-types{
 color:#d6bce9!important;text-shadow:none!important;
}
#wb-ui .wb-reward-modal .wb-choice-row>button.wb-reward-enchant .wb-reward-destination{
 color:#cbb2e0!important;border-top-color:#9d74bc55;text-shadow:none!important;
}
#wb-ui .wb-enchant-modal .wb-choice-row>button[data-enchant-choice]:disabled,
#wb-ui .wb-reward-modal .wb-choice-row>button.wb-reward-enchant:disabled{
 opacity:.55;box-shadow:none!important;
}
@media(prefers-reduced-motion:reduce){
 #wb-ui #wb-shop::before,#wb-ui #wb-shop::after{animation:none!important;transition:none!important;transform:none!important}
 #wb-ui #wb-shop.wb-thawing::before,#wb-ui #wb-shop.wb-thawing::after{opacity:0!important}
 #wb-ui .wb-enchant-modal .wb-choice-row>button[data-enchant-choice],
 #wb-ui .wb-reward-modal .wb-choice-row>button.wb-reward-enchant{transition:none!important}
}

/* A single press previews the choice; accepting it requires a double-click. */
#wb-ui .wb-choice-row>button:is([data-enchant-choice],[data-reward-choice]).wb-choice-selected{
 box-shadow:inset 0 0 0 2px #f4d06bbb,0 0 0 1px #f4d06b,0 0 12px #f4d06b44!important;
 filter:brightness(1.06)!important;
}

/* New round: the Gold coin shimmers (a light sweep masked to the coin, a small pop and glow) as the Gold refills
   (owner, 2026-10-13; client.mjs shimmerGold, with the owner's coin-pour cue). */
#wb-resources .wb-resource.wb-gold .wb-coin{position:relative;display:block;flex:none;line-height:0}
#wb-resources .wb-coin-shine{position:absolute;inset:0;pointer-events:none;opacity:0;
 -webkit-mask:url('./skin/dialogue-ui/coin-gold.png?art=936238638d1e2487') center/contain no-repeat;mask:url('./skin/dialogue-ui/coin-gold.png?art=936238638d1e2487') center/contain no-repeat;
 background:linear-gradient(115deg,transparent 30%,#fff8dc 48%,#ffe58a 52%,transparent 70%) 160% 0/320% 100% no-repeat;mix-blend-mode:screen}
#wb-resources .wb-gold.is-refill .wb-coin-shine{animation:wb-coin-shine 1.1s ease-out 2}
#wb-resources .wb-gold.is-refill .wb-coin img{animation:wb-coin-pop 1.1s ease-out}
#wb-resources .wb-gold.is-refill #wb-gold{animation:wb-gold-refill 1.1s ease-out}
@keyframes wb-coin-shine{0%{opacity:0;background-position:160% 0}15%{opacity:1}85%{opacity:1}100%{opacity:0;background-position:-60% 0}}
@keyframes wb-coin-pop{0%{transform:scale(1);filter:none}30%{transform:scale(1.22);filter:brightness(1.45) drop-shadow(0 0 6px #ffd76acc)}100%{transform:scale(1);filter:none}}
@keyframes wb-gold-refill{0%{text-shadow:none}30%{text-shadow:0 0 8px #ffd76a,0 0 2px #fff6}100%{text-shadow:none}}
@media(prefers-reduced-motion:reduce){#wb-resources .wb-gold.is-refill :is(.wb-coin-shine,.wb-coin img,#wb-gold){animation:none}}
/* Reroll answers the press at once (client.mjs pressFeedback): the offered cards dim while the server deals the new
   ones, then the cards flip over to the new ones at full strength. One opacity on the row, no per-card work. */
#wb-ui #wb-shop-cards.wb-rerolling{opacity:.55}
/* Rerolled cards flip over (recruit-flip.mjs; owner, 2026-11-06). While a card turns, the board card hides only its own
   painting (it keeps its place, hit area and drop shadow) and holds a small 3D card: the old face and then the new face
   in front, the owner's card back behind, and a thin 4 px gilt rim along the frame's own outline, rounded corners
   included, so it reads as one solid card, not a sheet. Every face is masked to that outline, so nothing paints past it. */
#wb-ui#wb-ui#wb-ui#wb-ui #wb-shop button.wb-card.wb-recruit-flipping{background:none!important;z-index:2}
#wb-ui#wb-ui#wb-ui#wb-ui #wb-shop button.wb-card.wb-recruit-flipping::before,#wb-ui#wb-ui#wb-ui#wb-ui #wb-shop button.wb-card.wb-recruit-flipping::after,#wb-ui#wb-ui#wb-ui#wb-ui #wb-shop button.wb-card.wb-recruit-flipping>:not(.wb-recruit-flip){visibility:hidden!important}
#wb-ui#wb-ui#wb-ui#wb-ui [data-card='shop']>.wb-recruit-flip{position:absolute!important;inset:0!important;display:block!important;margin:0!important;padding:0!important;z-index:20;visibility:visible!important;pointer-events:none!important;perspective:700px;perspective-origin:50% 50%}
#wb-ui .wb-recruit-flip :is(*,*::before,*::after){pointer-events:none!important;animation:none!important;transition:none!important}
#wb-ui .wb-recruit-flip .wb-recruit-flip-card{position:absolute;inset:0;display:block;z-index:1;transform-style:preserve-3d}
/* Landing dust (qa/prepare-recruit-flip-dust.py): sixteen frames on a canvas 30% larger than the card on every side,
   behind the turning card, hidden until the new face lands. */
#wb-ui .wb-recruit-flip .wb-recruit-flip-dust{position:absolute;left:-30%;top:-30%;width:160%;height:160%;display:block;z-index:0;overflow:hidden}
#wb-ui .wb-recruit-flip .wb-recruit-flip-dust-strip{position:absolute;left:0;top:0;width:100%;height:1600%;display:block;opacity:0;background:url('./skin/card-fx/recruit-flip-dust.png?art=0056365459e85acf') center/100% 100% no-repeat;will-change:transform,opacity}
#wb-ui .wb-recruit-flip .wb-recruit-flip-face{position:absolute;inset:0;display:block;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-mask:var(--wb-card-frame-art) center/100% 100% no-repeat;mask:var(--wb-card-frame-art) center/100% 100% no-repeat}
#wb-ui#wb-ui#wb-ui#wb-ui .wb-recruit-flip-face>.wb-recruit-flip-copy{position:absolute!important;inset:0!important;margin:0!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;flex:none!important;transform:none!important;filter:none!important;opacity:1!important;box-sizing:border-box!important}
/* The owner's painted card back (qa/prepare-recruit-card-back.py) is the real rear face, 4 px behind the front. */
/* The back art fills the frame's opaque outline (5 px in, 10 px corners at 178x241); the art's own iron fills the
   outline's slightly rounder corners. */
#wb-ui .wb-recruit-flip :is(.wb-recruit-flip-back,.wb-recruit-flip-facedown){background:url('./skin/card-fx/recruit-card-back.png?art=7b44fc17537d3ebf') 50% 55.56%/94.38% 96.27% no-repeat,#322b34}
#wb-ui .wb-recruit-flip .wb-recruit-flip-back{transform:translateZ(-4px) rotateY(180deg)}
#wb-ui .wb-recruit-flip .wb-recruit-flip-shade{position:absolute;inset:0;display:block;z-index:3;background:#0b0704;opacity:0}
#wb-ui .wb-recruit-flip .wb-recruit-flip-glare{position:absolute;inset:0;display:block;z-index:4;background:linear-gradient(105deg,#fff0 30%,#fff5dc0a 45%,#fffaf014 50%,#fff5dc0a 55%,#fff0 70%);transform:translateX(-110%)}
/* The rim: gilt walls along the outline (recruitRimSegments), darker where they meet each face, brightest midway. */
#wb-ui .wb-recruit-flip .wb-recruit-flip-wall{position:absolute;left:0;top:0;display:block;height:4px;transform-origin:0 0;background:linear-gradient(180deg,#4a3214,#b8893a 30%,#f2d690 50%,#b8893a 70%,#4a3214)}
