/* suited — avatar tier motion.
   The 24 SVGs in this folder are static assets. Rarity motion lives here, on the
   element that wraps the disc, so: one place to tune it, one place to honour
   prefers-reduced-motion, and no animation duplicated across six files.

   Markup:
     <span class="av" data-tier="rare"><img src="avatars/av-quads.svg" alt="quads"></span>
   data-tier is absent for default/common/uncommon — they do not move. */

.av {
  position: relative;
  display: inline-flex;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.av > img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* rare — a static brass hairline (the tell that survives with motion off),
   plus one light wipe that crosses the disc and rests */
.av[data-tier="rare"] { overflow: hidden; }
.av[data-tier="rare"]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid rgba(201, 169, 97, 1);
  box-shadow: 0 0 10px 1px rgba(201, 169, 97, .5);
  pointer-events: none;
  z-index: 2;
}
.av[data-tier="rare"]::after {
  content: "";
  position: absolute;
  top: -16%;
  left: 0;
  width: 60%;
  height: 132%;
  transform: skewX(-16deg) translateX(-240%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .78), transparent);
  animation: av-wipe 3s linear infinite;
  pointer-events: none;
  z-index: 3;
}
@keyframes av-wipe {
  0%        { transform: skewX(-16deg) translateX(-260%); }
  62%, 100% { transform: skewX(-16deg) translateX(360%); }
}

/* on a brass ground the hairline needs to go the other way */
.av[data-tier="rare"].av-light::before { border-color: rgba(27, 32, 28, .5); }

/* mythic — a rotating brass sweep behind the disc, and a breathing glow */
.av[data-tier="mythic"] {
  box-shadow: 0 10px 22px rgba(0, 0, 0, .34);
  animation: av-glow 2.6s ease-in-out infinite;
}
.av[data-tier="mythic"]::before {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #c9a961, #f2dca6, #8fc3a6, #7a8a5e, #8c6b2f, #c9a961);
  animation: av-spin 5s linear infinite;
}
/* Lift the disc above the spinning aura. `> img` is the design's original; `> span`
   covers this app's mount, whose inner disc is a positioned <span>, not an <img>. */
.av[data-tier="mythic"] > img,
.av[data-tier="mythic"] > span { position: relative; }
@keyframes av-spin { to { transform: rotate(360deg); } }
@keyframes av-glow {
  0%, 100% { box-shadow: 0 0 6px 1px rgba(201, 169, 97, .26); }
  50%      { box-shadow: 0 0 26px 6px rgba(201, 169, 97, .56); }
}

/* NOTE: the avatar rarity motion deliberately does NOT honour
   prefers-reduced-motion. Windows maps its "Animation effects: Off" (and battery
   saver) to reduced-motion, which silently killed the flair for people who never
   meant to opt out of a small cosmetic. The discs are tiny (30–72px) and the
   motion is gentle — a slow spin, a breathing glow, a periodic wipe — not the
   full-screen movement the setting is meant to curb. If a per-user opt-out is
   ever wanted, gate it on an app setting rather than the OS media query. */
