/* Rendu partagé des drapeaux personnalisés (lobby, royaume, alliance). */
.speed-lobby-banner,
.alliance-live-banner,
.alliance-command-banner,
.troop-owner-flag,
[data-banner-runtime] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.banner-runtime-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: block;
  transform-origin: center;
  translate: -50% -50%;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.58));
}
.banner-runtime-mark.is-symbol {
  font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", sans-serif;
  font-size: 1.65em;
  line-height: 1;
}
.banner-runtime-mark.is-image {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.speed-lobby-banner[data-shape="rectangle"],
.alliance-live-banner[data-shape="rectangle"],
.troop-owner-flag[data-shape="rectangle"] { clip-path: inset(0 round 4%); }
.speed-lobby-banner[data-shape="shield"],
.alliance-live-banner[data-shape="shield"],
.troop-owner-flag[data-shape="shield"] { clip-path: polygon(5% 0,95% 0,100% 65%,50% 100%,0 65%); }
.speed-lobby-banner[data-shape="swallowtail"],
.alliance-live-banner[data-shape="swallowtail"],
.troop-owner-flag[data-shape="swallowtail"] { clip-path: polygon(0 0,100% 0,100% 100%,50% 82%,0 100%); }
.speed-lobby-banner[data-shape="pennant"],
.alliance-live-banner[data-shape="pennant"],
.troop-owner-flag[data-shape="pennant"] { clip-path: polygon(0 0,100% 50%,0 100%); }
.speed-lobby-banner[data-shape="vertical"],
.alliance-live-banner[data-shape="vertical"],
.troop-owner-flag[data-shape="vertical"] { clip-path: polygon(0 0,100% 0,100% 88%,50% 100%,0 88%); }
.speed-lobby-banner[data-shape="heater"],
.alliance-live-banner[data-shape="heater"],
.troop-owner-flag[data-shape="heater"] { clip-path: polygon(8% 0,92% 0,96% 48%,78% 82%,50% 100%,22% 82%,4% 48%); }
.speed-lobby-banner[data-shape="kite"],
.alliance-live-banner[data-shape="kite"],
.troop-owner-flag[data-shape="kite"] { clip-path: polygon(10% 0,90% 0,100% 34%,50% 100%,0 34%); }
.speed-lobby-banner[data-shape="round"],
.alliance-live-banner[data-shape="round"],
.troop-owner-flag[data-shape="round"] { clip-path: inset(0 round 28% 28% 42% 42%); }
.speed-lobby-banner[data-shape="circle"],
.alliance-live-banner[data-shape="circle"],
.troop-owner-flag[data-shape="circle"] { clip-path: circle(49% at 50% 50%); }
.speed-lobby-banner[data-shape="hexagon"],
.alliance-live-banner[data-shape="hexagon"],
.troop-owner-flag[data-shape="hexagon"] { clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); }
.speed-lobby-banner[data-shape="diamond"],
.alliance-live-banner[data-shape="diamond"],
.troop-owner-flag[data-shape="diamond"] { clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }
.speed-lobby-banner[data-shape="pointed"],
.alliance-live-banner[data-shape="pointed"],
.troop-owner-flag[data-shape="pointed"] { clip-path: polygon(0 0,100% 0,92% 72%,50% 100%,8% 72%); }
.speed-lobby-banner[data-shape="gonfalon"],
.alliance-live-banner[data-shape="gonfalon"],
.troop-owner-flag[data-shape="gonfalon"] { clip-path: polygon(0 0,100% 0,100% 78%,84% 100%,67% 80%,50% 100%,33% 80%,16% 100%,0 78%); }
.speed-lobby-banner[data-shape="forked"],
.alliance-live-banner[data-shape="forked"],
.troop-owner-flag[data-shape="forked"] { clip-path: polygon(0 0,100% 0,100% 100%,50% 68%,0 100%); }
.speed-lobby-banner[data-shape="notched"],
.alliance-live-banner[data-shape="notched"],
.troop-owner-flag[data-shape="notched"] { clip-path: polygon(0 0,100% 0,88% 22%,100% 44%,88% 66%,100% 88%,86% 100%,0 100%); }
.speed-lobby-banner[data-shape="chamfered"],
.alliance-live-banner[data-shape="chamfered"],
.troop-owner-flag[data-shape="chamfered"] { clip-path: polygon(14% 0,86% 0,100% 14%,100% 86%,86% 100%,14% 100%,0 86%,0 14%); }
.speed-lobby-banner[data-shape="standard"],
.alliance-live-banner[data-shape="standard"],
.troop-owner-flag[data-shape="standard"] { clip-path: polygon(0 0,100% 0,86% 50%,100% 100%,0 100%,8% 50%); }
.speed-lobby-banner[data-shape="teardrop"],
.alliance-live-banner[data-shape="teardrop"],
.troop-owner-flag[data-shape="teardrop"] { clip-path: polygon(50% 0,82% 13%,100% 43%,88% 76%,50% 100%,12% 76%,0 43%,18% 13%); }

/* Emblèmes V4 : formes supplémentaires, matières et signature */
.speed-lobby-banner[data-shape="banneret"],.alliance-live-banner[data-shape="banneret"],.troop-owner-flag[data-shape="banneret"]{clip-path:inset(0 round 2%)}
.speed-lobby-banner[data-shape="burgee"],.alliance-live-banner[data-shape="burgee"],.troop-owner-flag[data-shape="burgee"]{clip-path:polygon(0 0,100% 0,74% 50%,100% 100%,0 100%)}
.speed-lobby-banner[data-shape="guidon"],.alliance-live-banner[data-shape="guidon"],.troop-owner-flag[data-shape="guidon"]{clip-path:polygon(0 0,100% 20%,72% 50%,100% 80%,0 100%)}
.speed-lobby-banner[data-shape="triple_tail"],.alliance-live-banner[data-shape="triple_tail"],.troop-owner-flag[data-shape="triple_tail"]{clip-path:polygon(0 0,100% 0,78% 25%,100% 50%,78% 75%,100% 100%,0 100%)}
.speed-lobby-banner[data-shape="oval"],.alliance-live-banner[data-shape="oval"],.troop-owner-flag[data-shape="oval"]{clip-path:ellipse(48% 50% at 50% 50%)}
.speed-lobby-banner[data-shape="octagon"],.alliance-live-banner[data-shape="octagon"],.troop-owner-flag[data-shape="octagon"]{clip-path:polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%)}
.speed-lobby-banner[data-shape="arch"],.alliance-live-banner[data-shape="arch"],.troop-owner-flag[data-shape="arch"]{clip-path:polygon(20% 0,80% 0,100% 22%,100% 100%,0 100%,0 22%)}
.speed-lobby-banner[data-shape="scalloped"],.alliance-live-banner[data-shape="scalloped"],.troop-owner-flag[data-shape="scalloped"]{clip-path:polygon(0 0,100% 0,100% 78%,88% 100%,75% 78%,63% 100%,50% 78%,37% 100%,25% 78%,12% 100%,0 78%)}
.speed-lobby-banner[data-shape="crenellated"],.alliance-live-banner[data-shape="crenellated"],.troop-owner-flag[data-shape="crenellated"]{clip-path:polygon(0 18%,12% 18%,12% 0,28% 0,28% 18%,44% 18%,44% 0,60% 0,60% 18%,76% 18%,76% 0,92% 0,92% 18%,100% 18%,100% 100%,0 100%)}
.speed-lobby-banner[data-shape="stepped"],.alliance-live-banner[data-shape="stepped"],.troop-owner-flag[data-shape="stepped"]{clip-path:polygon(0 0,100% 0,100% 72%,82% 72%,82% 84%,65% 84%,65% 94%,35% 94%,35% 84%,18% 84%,18% 72%,0 72%)}
.speed-lobby-banner[data-shape="concave"],.alliance-live-banner[data-shape="concave"],.troop-owner-flag[data-shape="concave"]{clip-path:polygon(0 0,100% 0,82% 50%,100% 100%,0 100%,18% 50%)}
.speed-lobby-banner[data-shape="convex"],.alliance-live-banner[data-shape="convex"],.troop-owner-flag[data-shape="convex"]{clip-path:polygon(12% 0,88% 0,100% 50%,88% 100%,12% 100%,0 50%)}
.speed-lobby-banner[data-shape="asymmetric"],.alliance-live-banner[data-shape="asymmetric"],.troop-owner-flag[data-shape="asymmetric"]{clip-path:polygon(0 0,100% 12%,78% 58%,100% 100%,0 88%)}
.speed-lobby-banner[data-shape="tabard"],.alliance-live-banner[data-shape="tabard"],.troop-owner-flag[data-shape="tabard"]{clip-path:polygon(0 0,35% 0,42% 15%,58% 15%,65% 0,100% 0,92% 100%,58% 88%,50% 100%,42% 88%,8% 100%)}
.banner-runtime-bg-image{position:absolute;inset:0;z-index:0;display:block;pointer-events:none;background-size:cover;background-position:center;background-repeat:no-repeat}
.banner-finish-layer{position:absolute;inset:0;z-index:1;display:block;pointer-events:none;mix-blend-mode:soft-light}
.banner-finish-layer[data-texture="linen"]{background:repeating-linear-gradient(0deg,rgba(255,255,255,.45) 0 1px,transparent 1px 4px),repeating-linear-gradient(90deg,rgba(0,0,0,.35) 0 1px,transparent 1px 5px)}
.banner-finish-layer[data-texture="grain"]{background:radial-gradient(circle at 18% 24%,#fff 0 1px,transparent 1.5px),radial-gradient(circle at 72% 62%,#000 0 1px,transparent 1.5px);background-size:9px 11px,13px 15px}
.banner-finish-layer[data-texture="metal"]{background:repeating-linear-gradient(115deg,transparent 0 8px,rgba(255,255,255,.5) 9px,transparent 11px 18px),linear-gradient(90deg,rgba(0,0,0,.4),transparent 35%,rgba(255,255,255,.35) 52%,transparent 70%,rgba(0,0,0,.35))}
.banner-finish-layer[data-texture="parchment"]{background:radial-gradient(circle at 20% 18%,rgba(255,244,190,.8),transparent 26%),radial-gradient(circle at 82% 76%,rgba(65,29,7,.75),transparent 34%),linear-gradient(135deg,rgba(255,230,160,.5),rgba(73,35,12,.25))}
.banner-finish-layer[data-texture="velvet"]{background:radial-gradient(ellipse at 45% 0,rgba(255,255,255,.55),transparent 48%),repeating-linear-gradient(92deg,transparent 0 4px,rgba(0,0,0,.22) 5px 7px)}
.banner-finish-layer[data-texture="weathered"]{background:radial-gradient(ellipse at 15% 20%,rgba(0,0,0,.7) 0 3%,transparent 4%),radial-gradient(ellipse at 75% 66%,rgba(255,255,255,.45) 0 2%,transparent 3%),radial-gradient(ellipse at 48% 42%,rgba(0,0,0,.5) 0 4%,transparent 5%);background-size:39px 31px,43px 37px,61px 47px}
.banner-runtime-tag{position:absolute!important;z-index:5!important;left:50%!important;right:auto!important;padding:.32em .62em!important;border-radius:.48em!important;background:color-mix(in srgb,var(--banner-tag-bg,#06111f) 82%,transparent)!important;color:var(--banner-tag-color,#fff)!important;font-weight:950!important;line-height:1.1!important;letter-spacing:.09em!important;translate:-50% 0!important;transform:scale(var(--banner-tag-scale,1))!important;transform-origin:center!important;white-space:nowrap!important;backdrop-filter:blur(4px)}
.banner-runtime-tag[data-position="bottom"]{bottom:7%!important;top:auto!important}.banner-runtime-tag[data-position="top"]{top:7%!important;bottom:auto!important}
/* Découpes génériques pour les aperçus marqués data-banner-runtime. */
[data-banner-runtime][data-shape="rectangle"]{clip-path:inset(0 round 4%)}
[data-banner-runtime][data-shape="shield"]{clip-path:polygon(5% 0,95% 0,100% 65%,50% 100%,0 65%)}
[data-banner-runtime][data-shape="swallowtail"]{clip-path:polygon(0 0,100% 0,100% 100%,50% 82%,0 100%)}
[data-banner-runtime][data-shape="pennant"]{clip-path:polygon(0 0,100% 50%,0 100%)}
[data-banner-runtime][data-shape="vertical"]{clip-path:polygon(0 0,100% 0,100% 88%,50% 100%,0 88%)}
[data-banner-runtime][data-shape="heater"]{clip-path:polygon(8% 0,92% 0,96% 48%,78% 82%,50% 100%,22% 82%,4% 48%)}
[data-banner-runtime][data-shape="kite"]{clip-path:polygon(10% 0,90% 0,100% 34%,50% 100%,0 34%)}
[data-banner-runtime][data-shape="round"]{clip-path:inset(0 round 28% 28% 42% 42%)}
[data-banner-runtime][data-shape="circle"]{clip-path:circle(49% at 50% 50%)}
[data-banner-runtime][data-shape="hexagon"]{clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%)}
[data-banner-runtime][data-shape="diamond"]{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
[data-banner-runtime][data-shape="pointed"]{clip-path:polygon(0 0,100% 0,92% 72%,50% 100%,8% 72%)}
[data-banner-runtime][data-shape="gonfalon"]{clip-path:polygon(0 0,100% 0,100% 78%,84% 100%,67% 80%,50% 100%,33% 80%,16% 100%,0 78%)}
[data-banner-runtime][data-shape="forked"]{clip-path:polygon(0 0,100% 0,100% 100%,50% 68%,0 100%)}
[data-banner-runtime][data-shape="notched"]{clip-path:polygon(0 0,100% 0,88% 22%,100% 44%,88% 66%,100% 88%,86% 100%,0 100%)}
[data-banner-runtime][data-shape="chamfered"]{clip-path:polygon(14% 0,86% 0,100% 14%,100% 86%,86% 100%,14% 100%,0 86%,0 14%)}
[data-banner-runtime][data-shape="standard"]{clip-path:polygon(0 0,100% 0,86% 50%,100% 100%,0 100%,8% 50%)}
[data-banner-runtime][data-shape="teardrop"]{clip-path:polygon(50% 0,82% 13%,100% 43%,88% 76%,50% 100%,12% 76%,0 43%,18% 13%)}
[data-banner-runtime][data-shape="banneret"]{clip-path:inset(0 round 2%)}
[data-banner-runtime][data-shape="burgee"]{clip-path:polygon(0 0,100% 0,74% 50%,100% 100%,0 100%)}
[data-banner-runtime][data-shape="guidon"]{clip-path:polygon(0 0,100% 20%,72% 50%,100% 80%,0 100%)}
[data-banner-runtime][data-shape="triple_tail"]{clip-path:polygon(0 0,100% 0,78% 25%,100% 50%,78% 75%,100% 100%,0 100%)}
[data-banner-runtime][data-shape="oval"]{clip-path:ellipse(48% 50% at 50% 50%)}
[data-banner-runtime][data-shape="octagon"]{clip-path:polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%)}
[data-banner-runtime][data-shape="arch"]{clip-path:polygon(20% 0,80% 0,100% 22%,100% 100%,0 100%,0 22%)}
[data-banner-runtime][data-shape="scalloped"]{clip-path:polygon(0 0,100% 0,100% 78%,88% 100%,75% 78%,63% 100%,50% 78%,37% 100%,25% 78%,12% 100%,0 78%)}
[data-banner-runtime][data-shape="crenellated"]{clip-path:polygon(0 18%,12% 18%,12% 0,28% 0,28% 18%,44% 18%,44% 0,60% 0,60% 18%,76% 18%,76% 0,92% 0,92% 18%,100% 18%,100% 100%,0 100%)}
[data-banner-runtime][data-shape="stepped"]{clip-path:polygon(0 0,100% 0,100% 72%,82% 72%,82% 84%,65% 84%,65% 94%,35% 94%,35% 84%,18% 84%,18% 72%,0 72%)}
[data-banner-runtime][data-shape="concave"]{clip-path:polygon(0 0,100% 0,82% 50%,100% 100%,0 100%,18% 50%)}
[data-banner-runtime][data-shape="convex"]{clip-path:polygon(12% 0,88% 0,100% 50%,88% 100%,12% 100%,0 50%)}
[data-banner-runtime][data-shape="asymmetric"]{clip-path:polygon(0 0,100% 12%,78% 58%,100% 100%,0 88%)}
[data-banner-runtime][data-shape="tabard"]{clip-path:polygon(0 0,35% 0,42% 15%,58% 15%,65% 0,100% 0,92% 100%,58% 88%,50% 100%,42% 88%,8% 100%)}