/* Faction emblems without the icon's own silver frame (owner, 2026-10-23: "all icons in-game are properly sized up so
   there's no room for those silver square borders"; 2026-10-31: never the square frame inside a circle). Every framed
   emblem is a 64px Warcraft icon whose square silver frame is part of the picture: 4px on every side (6.25%).
   faction-emblems.mjs marks each such image data-emblem-framed by its actual size, so new and replaced emblems need no
   list. The frame is clipped away and the inner art is scaled back up by 64/56 to fill the same slot, so every slot keeps
   its size, ring and layout. Borderless 56px emblems are not marked and stay untouched.
   The clip follows the slot's shape. Square and rounded-square slots use the default inset. A slot that is round
   because the image itself has a 50% radius sets --wb-emblem-clip to the round inset below (the image's own radius alone
   would leave flat edges after the zoom), and a slot that clips the image to a smaller circle sets the matching circle
   divided by 64/56. Slots whose parent already clips the image to a circle need nothing. */
:root img[data-emblem-framed]{
 --wb-emblem-zoom:1.1429;scale:var(--wb-emblem-scale,var(--wb-emblem-zoom));clip-path:var(--wb-emblem-clip,inset(6.25%));
}
/* Round slots whose image carries its own 50% radius. */
:is(.wb-fm-crest,.wb-library-deck-roster,.wb-scourge-army,.wb-scourge-road,.wb-scourge-node,.wb-skin-crest,
 .wb-results-card,.wb-welcome-crest,.wb-tutorial-crest,.wb-treat-shop-crest,.wb-campaign-checkpoint,.wb-account-trigger,
 .wb-ach-frame-preview,.wb-level-crest) img{--wb-emblem-clip:inset(6.25% round 50%)}
/* Crests drawn under the gold crest ring, which shows the art inside a 41% circle. The card crest's own rule outranks
   this file, so card-frames.css divides its circle by --wb-emblem-zoom itself. */
:is(.wb-card-crest,.fx-crest) img{--wb-emblem-clip:circle(35.875% at 50% 50%)}
/* The lobby and banner picker crests already zoom every emblem by 1.18 inside a clipped circle, past the frame. */
.wb-faction-crest>img{--wb-emblem-scale:1;--wb-emblem-clip:none}
/* Campaign unlock icons keep their gold hairline like their neighbours: the emblem is shown whole, not zoomed and
   trimmed (which cut Andorhal's border away; owner, 2026-10-30). */
.wb-campaign-unlock-faction>img{--wb-emblem-scale:1;--wb-emblem-clip:none}
