/* Shared by the live cards and the design preview. */
body :is(.rd-card.rd-arena-card,.card-study) .rarity{
 position:absolute!important;z-index:8;top:64%!important;left:9%!important;width:82%;max-width:none!important;height:5.5%;box-sizing:border-box;
 display:flex;align-items:center;justify-content:center;gap:.5em;padding:0 5%!important;
 font:800 3.5cqw/1 Arial,sans-serif!important;letter-spacing:.16em!important;text-transform:uppercase;white-space:nowrap;
 color:#f8e8ce!important;background:linear-gradient(#876344,#493324)!important;border:1px solid #b88c60;
 box-shadow:0 3px 7px #000b,inset 0 0 0 2px #241c17!important;text-shadow:0 1px 2px #000;overflow:hidden;
}
body :is(.rd-card.rd-arena-card,.card-study) .rarity.uncommon{background:linear-gradient(110deg,#43505a,#c4cdd2 47%,#68747b)!important;color:#111b22!important;border-color:#e1e7eb;text-shadow:0 1px #ffffff66;clip-path:polygon(0 0,100% 0,96% 50%,100% 100%,0 100%,4% 50%)}
body :is(.rd-card.rd-arena-card,.card-study) .rarity.rare{background:linear-gradient(110deg,#8c6124,#f4d789 48%,#a37529)!important;color:#2c1b08!important;border:2px solid #f6de9b;text-shadow:0 1px #fff5;clip-path:polygon(0 0,100% 0,95% 50%,100% 100%,0 100%,5% 50%)}
body :is(.rd-card.rd-arena-card,.card-study) .rarity.rare::before{content:'◆';font-size:1.15em}
body :is(.rd-card.rd-arena-card,.card-study) .rarity.epic{background:linear-gradient(100deg,#641713,#ce362b,#741b16)!important;border:2px solid #e3b964;box-shadow:0 0 15px #ef4d3480,inset 0 0 0 2px #50140f!important;clip-path:polygon(0 0,100% 0,96% 50%,100% 100%,0 100%,4% 50%)}
body :is(.rd-card.rd-arena-card,.card-study) .rarity.epic::before{content:'✦';color:#ffe2a2;font-size:1.6em}
body :is(.rd-card.rd-arena-card,.card-study) .rarity.legend{top:63.5%!important;height:6.5%;left:6%!important;width:88%;background:linear-gradient(100deg,#100e0a,#4d3712 48%,#100e0a)!important;border:3px double #ffe1a0;color:#ffe2a0!important;box-shadow:0 0 18px #ffd47799,inset 0 0 12px #d59b3f55!important;letter-spacing:.2em!important}
body :is(.rd-card.rd-arena-card,.card-study) .rarity.legend::before{content:'♛';font-size:1.9em;color:#ffe6a3;text-shadow:0 0 8px #ffcd6a}
body :is(.rd-card.rd-arena-card,.card-study) :is(.rarity.epic,.rarity.legend)::after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 30%,#ffe5ae88 49%,transparent 68%);transform:translateX(-130%);animation:rarity-banner-shine 4s ease-in-out infinite;pointer-events:none}
@keyframes rarity-banner-shine{0%,35%{transform:translateX(-130%)}80%,100%{transform:translateX(130%)}}
@media(prefers-reduced-motion:reduce){body :is(.rd-card.rd-arena-card,.card-study) .rarity::after{animation:none!important;display:none}}
/* Gold and fire belong exclusively to Legendary. */
body .rd-card.rd-arena-card:not(.rd-type-legend) .tfig .rd-sumo-silhouette,
body .card-study:not(.legend) .silhouette{filter:grayscale(1) brightness(.8)!important}
body .rd-card.rd-arena-card:not(.rd-type-legend) .rd-arena-frame,
body .card-study:not(.legend)>img:first-child{filter:grayscale(1) brightness(.85)!important}
body .rd-card.rd-arena-card.rd-type-epic,body .card-study.epic{box-shadow:0 10px 28px #0009!important}
body :is(.rd-card.rd-arena-card,.card-study) .rarity.rare{background:linear-gradient(110deg,#3c454a,#b1c3cb,#465b64)!important;color:#111c22!important;border-color:#c7d7df}
body :is(.rd-card.rd-arena-card,.card-study) .rarity.epic{background:linear-gradient(100deg,#451310,#99342c,#451310)!important;border-color:#c98278;box-shadow:0 3px 7px #000b,inset 0 0 0 2px #32100c!important}
body :is(.rd-card.rd-arena-card,.card-study) .rarity.epic::before{color:#f2d8d2}
body :is(.rd-card.rd-arena-card,.card-study) .rarity.epic::after{display:none}
body .card-study.epic .shine{display:none}
