/* ═══════════════════════════════════════════════════════════════════════
   KOZMETİKLER · Avatar süsleri
   Drawn in a box 1.36 × the avatar (member list 32px, voice tile ~56–96px,
   profile card 80px). Everything is sized in % of that box, with pixel
   minimums so hairlines survive the 32px member list. The avatar's bottom-
   right quarter belongs to the status dot: ornaments stay out of it.
   ═══════════════════════════════════════════════════════════════════════ */

/* Manifest · Amatör: the generated shell has a real alpha opening for the user's avatar. */
.cosmDeco[data-cosm="avatar-manifest-helmet"] [data-part="helmet"] {
  background: url("../../../assets/cosmetics/manifest-helmet.webp") center / contain no-repeat;
  filter: drop-shadow(0 2px 2px #0009);
}
.cosmDeco[data-cosm="avatar-manifest-helmet"] [data-part="reflection"] {
  inset: 4% 12% 64%;
  overflow: hidden;
  border-radius: 70% 70% 12% 12%;
}
.cosmDeco[data-cosm="avatar-manifest-helmet"] [data-part="reflection"]::before {
  content: '';
  inset: 0;
  background: linear-gradient(110deg, transparent 32%, #efffff75 48%, transparent 64%);
  opacity: 0;
}
/* Hide the photograph outside the shell; keep the decoration and status dot unclipped. */
.hasCosmDeco:has(> .cosmDeco[data-cosm="avatar-manifest-helmet"]) > :is(.cosmProfileAvatar,
  .onlineUserAvatar, .participantAvatar, .selfAvatar, .cosmArtAvatar) {
  clip-path: inset(15% 2% 9% round 38%);
}
@media (prefers-reduced-motion: no-preference) {
  .cosmDeco[data-cosm="avatar-manifest-helmet"] [data-part="reflection"]::before {
    animation: cosmManifestHelmetSheen 8s ease-in-out infinite both;
  }
}
@keyframes cosmManifestHelmetSheen {
  0%, 60%, 100% { opacity: 0; transform: translateX(-110%); }
  73% { opacity: 0.55; }
  88% { opacity: 0; transform: translateX(110%); }
}
@media (forced-colors: active) {
  .hasCosmDeco:has(> .cosmDeco[data-cosm="avatar-manifest-helmet"]) > :is(.cosmProfileAvatar,
    .onlineUserAvatar, .participantAvatar, .selfAvatar, .cosmArtAvatar) { clip-path: none; }
}

/* Askıda Para: an open copper/sage ring; the lower-right status quadrant stays clear. */
.cosmDeco[data-cosm="avatar-giving-circle"] [data-part="ring"] {
  --w: 4%;
  background: conic-gradient(#edbe8a, #b9d8b0 95deg, transparent 96deg 170deg,
    #b9d8b0 171deg 290deg, #edbe8a);
}

.cosmDeco[data-cosm="avatar-giving-circle"] [data-part="art"] {
  inset: -3% auto auto 5%;
  width: 34%;
  height: 34%;
  background: url("../../../assets/cosmetics/donation-seal.svg") center / contain no-repeat;
}

/* Son Düello: the brass badge stays above the face and clear of the status corner. */
.cosmDeco[data-cosm="avatar-sheriff-star"] [data-part="ring"] {
  --w: 3.5%;
  background: conic-gradient(#edc585, #946136 95deg, transparent 96deg 170deg,
    #946136 171deg 260deg, #fff0c3);
}

.cosmDeco[data-cosm="avatar-sheriff-star"] [data-part="art"] {
  inset: -5% auto auto 35%;
  width: 30%;
  height: 30%;
  background: url("../../../assets/cosmetics/duel-star.svg") center / contain no-repeat;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.5));
}

/* Legendary signature sets. Vector art keeps the face and the status quadrant clear. */
.cosmDeco[data-cosm="avatar-duat-crown"] [data-part="art"] {
  background: url("../../../assets/cosmetics/duat-avatar.svg") center / contain no-repeat;
}

.cosmDeco[data-cosm="avatar-duat-crown"] [data-part="jewel"] {
  inset: 10% auto auto 47.5%;
  width: 5%;
  height: 6%;
  background: #c4eaf8;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.cosmDeco[data-cosm="avatar-powder-braids"] [data-part="art"] {
  background: url("../../../assets/cosmetics/powder-avatar.svg") center / contain no-repeat;
}

.cosmDeco[data-cosm="avatar-powder-braids"] [data-part="pin"] {
  inset: 12% auto auto 56%;
  width: 7%;
  height: 7%;
  background: linear-gradient(45deg, transparent 38%, #c3f1ff 39% 58%, transparent 59%),
    linear-gradient(-45deg, transparent 38%, #c3f1ff 39% 58%, transparent 59%);
  transform: rotate(-14deg);
}

.cosmDeco[data-cosm="avatar-sparta-oath"] [data-part="art"] {
  background: url("../../../assets/cosmetics/sparta-avatar.svg") center / contain no-repeat;
}

.cosmDeco[data-cosm="avatar-sparta-oath"] [data-part="scar"] {
  inset: 15% auto auto 26%;
  width: 8%;
  height: 15%;
  background: #d04d4d;
  clip-path: polygon(45% 0, 100% 10%, 55% 65%, 5% 100%, 20% 50%);
  transform: rotate(20deg);
}

/* Will of Fire · Kyuubi Çakrası: a chakra cloak round the avatar, the leaf headband on top and three
   chakra tails at the lower left. The face and the status quadrant stay clear. */
.cosmDeco:is([data-cosm="avatar-konoha-chakra"], [data-cosm="avatar-konoha-rogue"]) [data-part="aura"] {
  inset: 1%;
  border-radius: 50%;
  background: radial-gradient(closest-side, transparent 70%, rgb(255 138 42 / 0.5) 79%,
    rgb(255 90 20 / 0.18) 90%, transparent);
  -webkit-mask: conic-gradient(#000 0 80deg, transparent 100deg 175deg, #000 195deg);
  mask: conic-gradient(#000 0 80deg, transparent 100deg 175deg, #000 195deg);
  opacity: 0.55;
}

.cosmDeco:is([data-cosm="avatar-konoha-chakra"], [data-cosm="avatar-konoha-rogue"]) [data-part="flames"] {
  background: url("../../../assets/cosmetics/konoha-flames.svg") center / contain no-repeat;
}

/* Chakra light circles the cloak: the flame artwork masks a turning wedge, so the light only lands
   on the flames; the ring and the headband are drawn over it. */
.cosmDeco:is([data-cosm="avatar-konoha-chakra"], [data-cosm="avatar-konoha-rogue"]) [data-part="shine"] {
  overflow: hidden;
  -webkit-mask: url("../../../assets/cosmetics/konoha-flames.svg") center / contain no-repeat;
  mask: url("../../../assets/cosmetics/konoha-flames.svg") center / contain no-repeat;
  mix-blend-mode: plus-lighter;
  opacity: 0.8;
}

.cosmDeco:is([data-cosm="avatar-konoha-chakra"], [data-cosm="avatar-konoha-rogue"]) [data-part="shine"]::before {
  content: "";
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 200deg, transparent 0 290deg, rgb(255 200 90 / 0.3) 320deg,
    rgb(255 244 200 / 0.95) 345deg, #fff 352deg, transparent 358deg);
}

.cosmDeco:is([data-cosm="avatar-konoha-chakra"], [data-cosm="avatar-konoha-rogue"]) [data-part="art"] {
  background: url("../../../assets/cosmetics/konoha-avatar.svg") center / contain no-repeat;
}

/* Kaçak ninja: the same cloak with a deserter's slash across the headband's leaf. */
.cosmDeco[data-cosm="avatar-konoha-rogue"] [data-part="scratch"] {
  background: url("../../../assets/cosmetics/konoha-scratch.svg") center / contain no-repeat;
}

/* A glint crosses the headband plate; off the plate at rest. */
.cosmDeco:is([data-cosm="avatar-konoha-chakra"], [data-cosm="avatar-konoha-rogue"]) [data-part="gleam"] {
  inset: 2.9% auto auto 35%;
  width: 30%;
  height: 13.8%;
  overflow: hidden;
  border-radius: 10% / 22%;
}

.cosmDeco:is([data-cosm="avatar-konoha-chakra"], [data-cosm="avatar-konoha-rogue"]) [data-part="gleam"]::before {
  content: "";
  inset: -30% auto -30% 0;
  width: 34%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.85) 50%, transparent);
  transform: translateX(-130%) skewX(-18deg);
}

/* Mitik · Uyanan Ejder: the coil leaves the face and the status quadrant clear; the head rests at
   the upper right. Only the glow over its eye moves. */
.cosmDeco[data-cosm="avatar-dragon-coil"] [data-part="art"] {
  background: url("../../../assets/cosmetics/dragon-avatar.svg") center / contain no-repeat;
}

/* A molten light travels along the coil: the dragon's own artwork masks a turning wedge, so the
   light only ever lands on scales, spikes and coins. */
.cosmDeco[data-cosm="avatar-dragon-coil"] [data-part="shine"] {
  overflow: hidden;
  -webkit-mask: url("../../../assets/cosmetics/dragon-avatar.svg") center / contain no-repeat;
  mask: url("../../../assets/cosmetics/dragon-avatar.svg") center / contain no-repeat;
  mix-blend-mode: plus-lighter;
  opacity: 0.75;
}

.cosmDeco[data-cosm="avatar-dragon-coil"] [data-part="shine"]::before {
  content: "";
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 300deg, transparent 0 300deg, rgb(255 190 110 / 0.25) 326deg,
    rgb(255 236 180 / 0.9) 346deg, rgb(255 250 230) 352deg, transparent 358deg);
}

/* Embers drift from the nostrils; at rest there are none. */
.cosmDeco[data-cosm="avatar-dragon-coil"] [data-part="breath"] {
  inset: 30% auto auto 88%;
  width: 14%;
  height: 16%;
}

.cosmDeco[data-cosm="avatar-dragon-coil"] [data-part="breath"]::before {
  content: "";
  inset: 0;
  background: radial-gradient(circle at 30% 80%, #ffd27a 0 7%, transparent 13%),
    radial-gradient(circle at 62% 55%, #ff9a3c 0 6%, transparent 12%),
    radial-gradient(circle at 44% 24%, #ffe7a3 0 5%, transparent 10%);
  opacity: 0;
}

.cosmDeco[data-cosm="avatar-dragon-coil"] [data-part="eye"] {
  inset: 31.5% auto auto 85.7%;
  width: 8%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff2b0, #ffb52e 45%, transparent);
  mix-blend-mode: screen;
  opacity: 0.35;
}

/* Mitik · Yedi Numara: a matte kit-red ring printed like a match shirt: black print blocks, seven
   bone ticks, a satin-gold arc and the octagonal badge with the gold seven at the upper right.
   The face and the status quadrant stay clear. */
.cosmDeco[data-cosm="avatar-cr7-dribble"] [data-part="art"] {
  background: url("../../../assets/cosmetics/cr7-avatar.svg") center / contain no-repeat;
  filter: drop-shadow(0 2px 2px #0a020480);
}

/* A narrow satin light travels the red band only. */
.cosmDeco[data-cosm="avatar-cr7-dribble"] [data-part="sheen"] {
  border-radius: 50%;
  overflow: hidden;
  -webkit-mask: radial-gradient(closest-side, transparent 77%, #000 78% 89.5%, transparent 90.5%);
  mask: radial-gradient(closest-side, transparent 77%, #000 78% 89.5%, transparent 90.5%);
  mix-blend-mode: plus-lighter;
  opacity: 0.55;
}

.cosmDeco[data-cosm="avatar-cr7-dribble"] [data-part="sheen"]::before {
  content: "";
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 316deg, rgb(255 222 212 / 0.18) 338deg,
    rgb(255 246 236 / 0.85) 352deg, transparent 358deg);
}

/* Light crosses the gold seven on the badge; off the badge at rest. */
.cosmDeco[data-cosm="avatar-cr7-dribble"] [data-part="foil"] {
  inset: 10.3% auto auto 70.4%;
  width: 19.4%;
  height: 19.4%;
  overflow: hidden;
  clip-path: polygon(25% 0, 75% 0, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0 75%, 0 25%);
}

.cosmDeco[data-cosm="avatar-cr7-dribble"] [data-part="foil"]::before {
  content: "";
  inset: -20% auto -20% 0;
  width: 42%;
  background: linear-gradient(100deg, transparent, rgb(255 246 222 / 0.7) 50%, transparent);
  transform: translateX(-150%) skewX(-16deg);
}

@media (prefers-reduced-motion: no-preference) {
  .cosmDeco[data-cosm="avatar-cr7-dribble"] [data-part="sheen"]::before {
    animation: cosmSpin 7.5s linear infinite;
  }

  .cosmDeco[data-cosm="avatar-cr7-dribble"] [data-part="foil"]::before {
    animation: cosmCr7Foil 5.5s var(--cosm-ease-sweep) infinite;
  }
}

@keyframes cosmCr7Foil {
  0%, 55% { transform: translateX(-150%) skewX(-16deg); }
  85%, 100% { transform: translateX(360%) skewX(-16deg); }
}

/* The signature silhouettes stay fixed; only their small inlaid details move.
   Each loop starts in the original pose, so the shared motion gate and
   reduced-motion fallback preserve the same artwork at rest. */
@media (prefers-reduced-motion: no-preference) {
  .cosmDeco[data-cosm="avatar-duat-crown"] [data-part="jewel"] {
    animation: cosmDuatJewel 4.8s var(--cosm-ease-breathe) infinite;
  }

  .cosmDeco[data-cosm="avatar-powder-braids"] [data-part="pin"] {
    animation: cosmPowderPin 3.6s var(--cosm-ease-breathe) infinite;
  }

  .cosmDeco[data-cosm="avatar-sparta-oath"] [data-part="scar"] {
    animation: cosmSpartaScar 5.2s var(--cosm-ease-breathe) infinite;
  }

  .cosmDeco[data-cosm="avatar-dragon-coil"] [data-part="eye"] {
    animation: cosmDragonEye 5.6s var(--cosm-ease-breathe) infinite;
  }

  .cosmDeco[data-cosm="avatar-dragon-coil"] [data-part="shine"]::before {
    animation: cosmSpin 6.5s linear infinite;
  }

  .cosmDeco[data-cosm="avatar-dragon-coil"] [data-part="breath"]::before {
    animation: cosmDragonBreathEmbers 5.6s ease-out infinite;
  }

  .cosmDeco:is([data-cosm="avatar-konoha-chakra"], [data-cosm="avatar-konoha-rogue"]) [data-part="aura"] {
    animation: cosmKonohaAura 3.4s var(--cosm-ease-breathe) infinite;
  }

  .cosmDeco:is([data-cosm="avatar-konoha-chakra"], [data-cosm="avatar-konoha-rogue"]) [data-part="flames"] {
    animation: cosmKonohaFlicker 1.7s var(--cosm-ease-breathe) infinite;
  }

  .cosmDeco:is([data-cosm="avatar-konoha-chakra"], [data-cosm="avatar-konoha-rogue"]) [data-part="shine"]::before {
    animation: cosmSpin 4.8s linear infinite;
  }

  .cosmDeco:is([data-cosm="avatar-konoha-chakra"], [data-cosm="avatar-konoha-rogue"]) [data-part="gleam"]::before {
    animation: cosmKonohaGlint 5.2s var(--cosm-ease-sweep) infinite;
  }
}

/* The cloak breathes chakra while its flames lick outwards. */
@keyframes cosmKonohaAura {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.05); opacity: 0.95; }
}

@keyframes cosmKonohaFlicker {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  30% { transform: scale(1.03) rotate(-1deg); opacity: 0.88; }
  55% { transform: scale(0.99) rotate(0.6deg); opacity: 1; }
  80% { transform: scale(1.035) rotate(0.4deg); opacity: 0.86; }
}

@keyframes cosmKonohaGlint {
  0%, 55% { transform: translateX(-130%) skewX(-18deg); }
  85%, 100% { transform: translateX(330%) skewX(-18deg); }
}

/* Timed with the eye: the embers rise as the eye flares. */
@keyframes cosmDragonBreathEmbers {
  0%, 58% { transform: translate(0, 0) scale(0.6); opacity: 0; }
  66% { opacity: 1; }
  92%, 100% { transform: translate(18%, -70%) scale(1.15); opacity: 0; }
}

@keyframes cosmDragonEye {
  0%, 52%, 100% { transform: scale(1); opacity: 0.35; }
  64% { transform: scale(1.7); opacity: 1; }
  74% { transform: scale(1.15); opacity: 0.6; }
  82% { transform: scale(1.45); opacity: 0.95; }
}

@keyframes cosmDuatJewel {
  0%, 100% { transform: scale(1); opacity: 1; }
  35% { transform: scale(0.78); opacity: 0.52; }
  55% { transform: scale(1.4); opacity: 1; }
  68% { transform: scale(1); opacity: 0.8; }
  78% { transform: scale(1.16); opacity: 1; }
}

@keyframes cosmPowderPin {
  0%, 35%, 76%, 100% { transform: rotate(-14deg) scale(1); opacity: 1; }
  45% { transform: rotate(-5deg) scale(1.26); opacity: 1; }
  53% { transform: rotate(-20deg) scale(0.86); opacity: 0.56; }
  62% { transform: rotate(-7deg) scale(1.3); opacity: 1; }
}

@keyframes cosmSpartaScar {
  0%, 55%, 100% { transform: rotate(20deg) scale(1); opacity: 1; }
  13% { transform: rotate(20deg) scale(0.96); opacity: 0.55; }
  22% { transform: rotate(20deg) scale(1.12); opacity: 1; }
  31% { transform: rotate(20deg) scale(0.98); opacity: 0.7; }
  39% { transform: rotate(20deg) scale(1.06); opacity: 1; }
}

/* ─── Primitive: band ───
   A ring from --in to --in + --w (never thinner than --min), measured in the
   closest-side scale where the avatar edge is --cosm-edge. */
.cosmDeco :is([data-part="ring"], [data-part="ticks"], [data-part="scan"], [data-part="sweep"],
  [data-part="arc"], [data-part="lit"], [data-part="cover"], [data-part="scale"], [data-part="board"],
  [data-part="frets"], [data-part="strings"], [data-part="shimmer"], [data-part="pockets"]) {
  --in: var(--cosm-edge);
  --w: 4%;
  --min: var(--cosm-line);
  --out: calc(var(--in) + max(var(--w), var(--min)));
  --band: radial-gradient(closest-side, transparent calc(var(--in) - 0.5%), #000 var(--in) var(--out), transparent calc(var(--out) + 0.5%));
  border-radius: 50%;
  -webkit-mask: var(--band);
  mask: var(--band);
}

/* ─── Primitive: satellite ───
   A small body placed on a circle: --a is the angle clockwise from the top,
   --r the distance from the centre (closest-side scale), --s its size. The
   body stays upright; rotating the layer moves it along the circle. */
.cosmDeco :is([data-part="lamp"], [data-part="moon"], [data-part="star"], [data-part="glint"],
  [data-part="spark"], [data-part="medallion"], [data-part="orbit"], [data-part="coals"],
  [data-part="smokering"], [data-part="pick"], [data-part="inlay"], [data-part="marker"],
  [data-part="ball"]) {
  --a: 0deg;
  --r: 80%;
  --s: 8%;
  --smin: 3px;
  rotate: var(--a);
}

.cosmDeco :is([data-part="lamp"], [data-part="moon"], [data-part="star"], [data-part="glint"],
  [data-part="spark"], [data-part="medallion"], [data-part="orbit"], [data-part="coals"],
  [data-part="smokering"], [data-part="pick"], [data-part="inlay"], [data-part="marker"],
  [data-part="ball"])::before {
  content: "";
  left: 50%;
  top: calc(50% - var(--r) / 2);
  width: max(var(--s), var(--smin));
  aspect-ratio: 1;
  translate: -50% -50%;
  rotate: calc(var(--a) * -1);
}

/* Shared shapes. */
.cosmDeco :is([data-part="star"], [data-part="glint"])::before {
  background: radial-gradient(closest-side, #fff 0 22%, rgb(255 255 255 / 0.85) 38%, transparent 72%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

/* ─── Yalın · Grafit Kadran (yaygın) ───
   A brushed graphite ring, twelve faint hour ticks and four ivory marks. */
.cosmDeco[data-cosm="avatar-graphite-dial"] [data-part="ring"] {
  --w: 3.2%;
  background: conic-gradient(from 210deg, #6c7079, #cdd1d8 14%, #4d5058 32%, #a0a5af 52%, #45484f 70%, #bcc1c9 86%, #6c7079);
}

.cosmDeco[data-cosm="avatar-graphite-dial"] [data-part="ticks"] {
  --in: 80%;
  --w: 6%;
  --min: 2px;
  background:
    repeating-conic-gradient(from -1.7deg, #efe8d8 0 3.4deg, transparent 3.4deg 90deg),
    repeating-conic-gradient(from -0.6deg, rgb(201 206 214 / 0.42) 0 1.2deg, transparent 1.2deg 30deg);
}

/* ─── Kızıl · Kayıt Işığı (yaygın) ───
   A dark ring with one red recording lamp set into it at the top right. */
.cosmDeco[data-cosm="avatar-rec-light"] [data-part="ring"] {
  --w: 4.2%;
  background: conic-gradient(from 20deg, #7d818b, #45484f 30%, #6a6e77 60%, #3e4047 80%, #7d818b);
}

.cosmDeco[data-cosm="avatar-rec-light"] [data-part="lamp"] {
  --a: 45deg;
  --r: 76%;
  --s: 13%;
  --smin: 5px;
}

.cosmDeco[data-cosm="avatar-rec-light"] [data-part="lamp"]::before {
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #ffe1e1 0 10%, #ff5252 28%, #d61f1f 62%, #7f1111);
  box-shadow: 0 0 0 max(1.4px, 1.2%) #18191c, 0 0 6px rgb(255 64 64 / var(--cosm-glow-soft));
}

/* ─── Sinyal · Sinyal Yayı (seçkin) ───
   A teal edge and three arcs broadcasting from the top right, one after another. */
.cosmDeco[data-cosm="avatar-signal-arcs"] [data-part="ring"] {
  --w: 2.8%;
  background: conic-gradient(from 30deg, #2dd4bf, #a7f3e4 25%, #14b8a6 50%, #5eead4 75%, #2dd4bf);
}

.cosmDeco[data-cosm="avatar-signal-arcs"] [data-part="arc"] {
  --w: 3%;
  --min: 1.3px;
  --o: 1;
  background: linear-gradient(45deg, #5eead4, #d8fff6);
  opacity: var(--o);
  -webkit-mask: var(--band), conic-gradient(from 12deg, #000 0 66deg, transparent 66deg);
  -webkit-mask-composite: source-in;
  mask: var(--band), conic-gradient(from 12deg, #000 0 66deg, transparent 66deg);
  mask-composite: intersect;
}

.cosmDeco[data-cosm="avatar-signal-arcs"] .cosmL2 { --in: 81%; --o: 0.95; }
.cosmDeco[data-cosm="avatar-signal-arcs"] .cosmL3 { --in: 88%; --o: 0.62; }
.cosmDeco[data-cosm="avatar-signal-arcs"] .cosmL4 { --in: 95%; --o: 0.34; }

@media (prefers-reduced-motion: no-preference) {
  .cosmDeco[data-cosm="avatar-signal-arcs"] [data-part="arc"] {
    animation: cosmSignalArc 2.8s var(--cosm-ease-breathe) infinite both;
  }

  .cosmDeco[data-cosm="avatar-signal-arcs"] .cosmL3 { animation-delay: 0.28s; }
  .cosmDeco[data-cosm="avatar-signal-arcs"] .cosmL4 { animation-delay: 0.56s; }
}

@keyframes cosmSignalArc {
  0%, 100% { opacity: var(--o); }
  30% { opacity: 1; }
  65% { opacity: calc(var(--o) * 0.35); }
}

/* ─── Gece · Hilal (seçkin) ───
   A moonlit hairline, a crescent at the top left and three stars that blink in turn. */
.cosmDeco[data-cosm="avatar-crescent"] [data-part="ring"] {
  --w: 2.6%;
  background: conic-gradient(from 300deg, #eef2ff, #a5b4fc 30%, #6b7bd4 55%, #c7d2fe 80%, #eef2ff);
}

.cosmDeco[data-cosm="avatar-crescent"] [data-part="moon"] {
  --a: -42deg;
  --r: 82%;
  --s: 21%;
  --smin: 8px;
}

.cosmDeco[data-cosm="avatar-crescent"] [data-part="moon"]::before {
  border-radius: 50%;
  background: radial-gradient(44% 44% at 70% 34%, transparent 97%, #eef1ff 100%);
  filter: drop-shadow(0 0 2px rgb(199 210 254 / var(--cosm-glow-strong)));
}

.cosmDeco[data-cosm="avatar-crescent"] [data-part="star"] { --smin: 3px; }
.cosmDeco[data-cosm="avatar-crescent"] .cosmL3 { --a: 22deg; --r: 90%; --s: 8%; }
.cosmDeco[data-cosm="avatar-crescent"] .cosmL4 { --a: 48deg; --r: 97%; --s: 5.5%; }
.cosmDeco[data-cosm="avatar-crescent"] .cosmL5 { --a: 72deg; --r: 88%; --s: 6.5%; }

@media (prefers-reduced-motion: no-preference) {
  .cosmDeco[data-cosm="avatar-crescent"] [data-part="star"]::before {
    animation: cosmTwinkle 4.2s var(--cosm-ease-breathe) infinite both;
  }

  .cosmDeco[data-cosm="avatar-crescent"] .cosmL4::before { animation-delay: 1.4s; }
  .cosmDeco[data-cosm="avatar-crescent"] .cosmL5::before { animation-delay: 2.8s; }
}

@keyframes cosmTwinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  45% { opacity: 0.3; transform: scale(0.65); }
}

/* ─── Gece · Kırağı (nadir) ───
   An icy ring with faceted ice shards growing from two sides; two glints catch the light. */
.cosmDeco[data-cosm="avatar-hoarfrost"] [data-part="ring"] {
  --w: 4.6%;
  background: conic-gradient(from 30deg, #f0faff, #9fd8f2 20%, #e8f7ff 40%, #b6e3f7 62%, #f0faff 80%, #8ccfee);
}

.cosmDeco[data-cosm="avatar-hoarfrost"] [data-part="art"] {
  filter: drop-shadow(0 0 2px rgb(186 230 253 / var(--cosm-glow-soft)));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='42' fill='none' stroke='%23d6f1ff' stroke-opacity='.3' stroke-width='.6' stroke-dasharray='1.2 3'/%3E%3Cpath d='M29.0 81.1 L24.7 83.4 L22.6 90.6 Z' fill='%23f2fbff'/%3E%3Cpath d='M29.0 81.1 L28.5 86.0 L22.6 90.6 Z' fill='%239fd3ee'/%3E%3Cpath d='M21.7 74.6 L18.0 75.3 L15.3 80.2 Z' fill='%23f2fbff'/%3E%3Cpath d='M21.7 74.6 L20.5 78.2 L15.3 80.2 Z' fill='%239fd3ee'/%3E%3Cpath d='M16.6 67.0 L13.9 66.7 L11.2 69.7 Z' fill='%23f2fbff'/%3E%3Cpath d='M16.6 67.0 L15.2 69.4 L11.2 69.7 Z' fill='%239fd3ee'/%3E%3Cpath d='M37.2 85.2 L35.3 86.6 L35.5 89.9 Z' fill='%23f2fbff'/%3E%3Cpath d='M37.2 85.2 L37.7 87.5 L35.5 89.9 Z' fill='%239fd3ee'/%3E%3Cpath d='M73.1 20.4 L76.9 18.8 L78.9 13.0 Z' fill='%23f2fbff'/%3E%3Cpath d='M73.1 20.4 L73.7 16.4 L78.9 13.0 Z' fill='%239fd3ee'/%3E%3Cpath d='M80.3 28.0 L82.9 27.9 L84.8 24.7 Z' fill='%23f2fbff'/%3E%3Cpath d='M80.3 28.0 L81.1 25.5 L84.8 24.7 Z' fill='%239fd3ee'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.cosmDeco[data-cosm="avatar-hoarfrost"] [data-part="glint"]::before {
  opacity: 0;
}

.cosmDeco[data-cosm="avatar-hoarfrost"] .cosmL3 { --a: 232deg; --r: 91%; --s: 12%; --smin: 5px; }
.cosmDeco[data-cosm="avatar-hoarfrost"] .cosmL4 { --a: 56deg; --r: 94%; --s: 9%; --smin: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .cosmDeco[data-cosm="avatar-hoarfrost"] [data-part="glint"]::before {
    animation: cosmGlint 4.4s ease-in-out infinite both;
  }

  .cosmDeco[data-cosm="avatar-hoarfrost"] .cosmL4::before { animation-delay: 2.2s; }
}

@keyframes cosmGlint {
  0%, 55%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  70% { opacity: 1; transform: scale(1) rotate(22deg); }
  85% { opacity: 0.2; transform: scale(0.7) rotate(36deg); }
}

/* ─── Siber · Nişangâh (nadir) ───
   Four neon corner brackets lock onto the avatar; a dashed scan ring turns slowly. */
.cosmDeco[data-cosm="avatar-hud-brackets"] [data-part="ring"] {
  --w: 1.8%;
  background: #22e1ff;
  opacity: 0.7;
}

.cosmDeco[data-cosm="avatar-hud-brackets"] [data-part="scan"] {
  --in: 81.5%;
  --w: 3%;
  --min: 1.3px;
  background:
    conic-gradient(from -8deg, #ff6ae0 0 16deg, transparent 16deg),
    repeating-conic-gradient(from 10deg, rgb(255 79 216 / 0.55) 0 10deg, transparent 10deg 22.5deg);
}

.cosmDeco[data-cosm="avatar-hud-brackets"] [data-part="brackets"] {
  --b: max(2.4%, 1.4px);
  --l: 19%;
  --c: #22e1ff;
  inset: 5%;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--b) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--b) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--b) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--b) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--b) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--b) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--b) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--b) var(--l) no-repeat;
  filter: drop-shadow(0 0 2px rgb(34 225 255 / var(--cosm-glow-strong)));
}

@media (prefers-reduced-motion: no-preference) {
  .cosmDeco[data-cosm="avatar-hud-brackets"] [data-part="scan"] {
    animation: cosmSpin var(--cosm-dur-drift) linear infinite;
  }
}

@keyframes cosmSpin {
  to { transform: rotate(360deg); }
}

@keyframes cosmSpinReverse {
  to { transform: rotate(-360deg); }
}

/* ─── Kızıl · Kızıl Kor (nadir) ───
   A segmented ember ring with a warm under-glow that breathes; sparks lift off the top. */
.cosmDeco[data-cosm="avatar-crimson-ember"] [data-part="halo"] {
  background: radial-gradient(closest-side, transparent 64%, rgb(239 68 68 / 0.32) 76%, rgb(239 68 68 / 0.1) 88%, transparent 96%);
  opacity: 0.8;
}

.cosmDeco[data-cosm="avatar-crimson-ember"] [data-part="ring"] {
  --in: 74%;
  --w: 6%;
  background: conic-gradient(from 90deg, #ff6a3d, #b3122e 22%, #ff8a4c 44%, #8f0d25 64%, #ff4d3d 82%, #ff6a3d);
  -webkit-mask: var(--band), repeating-conic-gradient(from 3deg, #000 0 25deg, transparent 25deg 30deg);
  -webkit-mask-composite: source-in;
  mask: var(--band), repeating-conic-gradient(from 3deg, #000 0 25deg, transparent 25deg 30deg);
  mask-composite: intersect;
}

.cosmDeco[data-cosm="avatar-crimson-ember"] [data-part="spark"]::before {
  border-radius: 50%;
  background: radial-gradient(closest-side, #ffe7c2, #ff7a3d 55%, transparent 74%);
  opacity: 0.9;
}

.cosmDeco[data-cosm="avatar-crimson-ember"] .cosmL3 { --a: -9deg; --r: 88%; --s: 6.5%; }
.cosmDeco[data-cosm="avatar-crimson-ember"] .cosmL4 { --a: 13deg; --r: 86%; --s: 5%; }

@media (prefers-reduced-motion: no-preference) {
  .cosmDeco[data-cosm="avatar-crimson-ember"] [data-part="halo"] {
    animation: cosmBreathe var(--cosm-dur-pulse) var(--cosm-ease-breathe) infinite;
  }

  .cosmDeco[data-cosm="avatar-crimson-ember"] [data-part="spark"]::before {
    animation: cosmSparkRise 3.2s ease-out infinite both;
  }

  .cosmDeco[data-cosm="avatar-crimson-ember"] .cosmL4::before { animation-delay: 1.5s; }
}

@keyframes cosmBreathe {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes cosmSparkRise {
  0% { opacity: 0; transform: translate(0, 40%) scale(0.7); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(60%, -280%) scale(0.3); }
}

/* ─── Astral · İkiz Yörünge (epik) ───
   Two tracks, two moons circling in opposite directions; the larger one pulls a
   fading light trail behind it. */
.cosmDeco[data-cosm="avatar-twin-orbit"] [data-part="halo"] {
  background: radial-gradient(closest-side, transparent 72.5%, rgb(167 139 250 / 0.55) 74.5%, rgb(167 139 250 / 0.14) 79%, transparent 83%);
}

.cosmDeco[data-cosm="avatar-twin-orbit"] [data-part="track"] {
  background:
    radial-gradient(closest-side, transparent 85.8%, rgb(196 181 253 / 0.5) 86.4% max(87.4%, calc(86.4% + 0.8px)), transparent max(88%, calc(87% + 1.2px))),
    radial-gradient(closest-side, transparent 95.4%, rgb(125 211 252 / 0.32) 96% max(96.9%, calc(96% + 0.8px)), transparent max(97.5%, calc(96.6% + 1.2px)));
}

.cosmDeco[data-cosm="avatar-twin-orbit"] .cosmL3 { --a: 38deg; --r: 86.9%; --s: 10%; --smin: 4.5px; }
.cosmDeco[data-cosm="avatar-twin-orbit"] .cosmL4 { --a: 212deg; --r: 96.4%; --s: 6.5%; --smin: 3.5px; }

.cosmDeco[data-cosm="avatar-twin-orbit"] .cosmL3::before {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #f5f3ff, #a78bfa 55%, #5b21b6);
  box-shadow: 0 0 0 1px rgb(237 233 254 / 0.3), 0 0 6px rgb(167 139 250 / var(--cosm-glow-strong));
}

/* The trail follows the larger moon counter-clockwise along its track. */
.cosmDeco[data-cosm="avatar-twin-orbit"] .cosmL3::after {
  content: "";
  inset: 0;
  border-radius: 50%;
  rotate: 0deg;
  background: conic-gradient(from -80deg, transparent, rgb(196 181 253 / 0.9) 76deg, transparent 80deg);
  -webkit-mask: radial-gradient(closest-side, transparent 84.8%, #000 85.6% max(88.2%, calc(85.6% + 1.4px)), transparent max(89%, calc(86.4% + 1.4px)));
  mask: radial-gradient(closest-side, transparent 84.8%, #000 85.6% max(88.2%, calc(85.6% + 1.4px)), transparent max(89%, calc(86.4% + 1.4px)));
}

.cosmDeco[data-cosm="avatar-twin-orbit"] .cosmL4::before {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #f0f9ff, #7dd3fc 55%, #0369a1);
  box-shadow: 0 0 5px rgb(125 211 252 / var(--cosm-glow-soft));
}

@media (prefers-reduced-motion: no-preference) {
  .cosmDeco[data-cosm="avatar-twin-orbit"] .cosmL3 {
    animation: cosmSpin 12s linear infinite;
  }

  .cosmDeco[data-cosm="avatar-twin-orbit"] .cosmL4 {
    animation: cosmSpinReverse 19s linear infinite;
  }
}

/* ─── Miras · Selçuklu Yıldızı (epik) ───
   A double gold ring with eight-pointed stars and a star medallion at the top.
   A soft light travels around the gold. */
.cosmDeco[data-cosm="avatar-seljuk-star"] :is([data-part="ring"], [data-part="sweep"]) {
  --double: radial-gradient(closest-side, transparent 73.2%, #000 73.8% max(76.6%, calc(73.8% + 1.4px)), transparent max(77.2%, calc(74.4% + 1.4px)) 80.6%, #000 81.2% max(82.6%, calc(81.2% + 1px)), transparent max(83.2%, calc(81.8% + 1px)));
  -webkit-mask: var(--double);
  mask: var(--double);
}

.cosmDeco[data-cosm="avatar-seljuk-star"] [data-part="ring"] {
  background: conic-gradient(from 0deg, #8a6a2c, #f5dc9a 18%, #b8913f 42%, #fbe7b0 64%, #9c7630 84%, #8a6a2c);
}

.cosmDeco[data-cosm="avatar-seljuk-star"] [data-part="sweep"] {
  background: conic-gradient(from 0deg, transparent 0 290deg, rgb(255 250 232 / 0.95) 348deg, transparent 360deg);
}

.cosmDeco[data-cosm="avatar-seljuk-star"] :is([data-part="star"], [data-part="medallion"])::before {
  clip-path: polygon(50% 0, 64.65% 14.64%, 85.36% 14.64%, 85.36% 35.35%, 100% 50%, 85.36% 64.65%, 85.36% 85.36%, 64.65% 85.36%, 50% 100%, 35.35% 85.36%, 14.64% 85.36%, 14.64% 64.65%, 0 50%, 14.64% 35.35%, 14.64% 14.64%, 35.35% 14.64%);
}

.cosmDeco[data-cosm="avatar-seljuk-star"] [data-part="star"] { --r: 79%; --s: 8.5%; --smin: 4px; }
.cosmDeco[data-cosm="avatar-seljuk-star"] .cosmL3 { --a: 90deg; }
.cosmDeco[data-cosm="avatar-seljuk-star"] .cosmL4 { --a: 180deg; }
.cosmDeco[data-cosm="avatar-seljuk-star"] .cosmL5 { --a: 270deg; }

.cosmDeco[data-cosm="avatar-seljuk-star"] [data-part="star"]::before {
  background: linear-gradient(135deg, #fff1c7, #d9b36a 50%, #9c7630);
}

.cosmDeco[data-cosm="avatar-seljuk-star"] [data-part="medallion"] {
  --a: 0deg;
  --r: 78.5%;
  --s: 18%;
  --smin: 7px;
  filter: drop-shadow(0 0 1px rgb(0 0 0 / 0.7)) drop-shadow(0 0 3px rgb(217 179 106 / var(--cosm-glow-soft)));
}

.cosmDeco[data-cosm="avatar-seljuk-star"] [data-part="medallion"]::before {
  background:
    radial-gradient(circle, #5eead4 0 16%, #0f766e 26%, transparent 30%),
    radial-gradient(circle, transparent 0 36%, rgb(122 90 36 / 0.9) 38% 42%, transparent 44%),
    linear-gradient(135deg, #fff1c7, #d9b36a 45%, #8a6a2c);
}

@media (prefers-reduced-motion: no-preference) {
  .cosmDeco[data-cosm="avatar-seljuk-star"] [data-part="sweep"] {
    animation: cosmSpin 9s linear infinite;
  }
}

/* ─── Sinyal · Seviye Göstergesi (efsanevi) ───
   A studio level meter wraps the avatar: 25 LED segments light up to a level
   that moves like a voice, a fine scale sits outside, and a REC lamp glows
   in the gap at the bottom.
   The meter spans 250° clockwise from 235°, leaving the status corner free. */
.cosmDeco[data-cosm="avatar-vu-meter"] :is([data-part="lit"], [data-part="cover"]) {
  --in: 76.5%;
  --w: 10.5%;
  --min: 3px;
  --meter:
    var(--band),
    repeating-conic-gradient(from 235deg, #000 0 7deg, transparent 7deg 10deg),
    conic-gradient(from 235deg, #000 0 250deg, transparent 250deg);
  -webkit-mask: var(--meter);
  -webkit-mask-composite: source-in, source-in;
  mask: var(--meter);
  mask-composite: intersect, intersect;
}

.cosmDeco[data-cosm="avatar-vu-meter"] [data-part="lit"] {
  background: conic-gradient(from 235deg, #34d399 0deg, #a3e635 100deg, #facc15 165deg, #fb923c 205deg, #ef4444 232deg, #ef4444 250deg, transparent 250deg);
}

/* Unlit segments. The cover turns in 10° steps, so its edge always falls on a segment gap.
   It is 130° long: enough to reach the meter's end for levels from 120° to 230°. */
.cosmDeco[data-cosm="avatar-vu-meter"] [data-part="cover"]::before {
  content: "";
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 235deg, transparent 0 120deg, #25282e 120deg 250deg, transparent 250deg);
  transform: rotate(40deg);
}

.cosmDeco[data-cosm="avatar-vu-meter"] [data-part="scale"] {
  --in: 91%;
  --w: 3.6%;
  --min: 1.4px;
  background: repeating-conic-gradient(from 235deg, rgb(226 232 240 / 0.5) 0 1.1deg, transparent 1.1deg 12.5deg);
  -webkit-mask: var(--band), conic-gradient(from 235deg, #000 0 251deg, transparent 251deg);
  -webkit-mask-composite: source-in;
  mask: var(--band), conic-gradient(from 235deg, #000 0 251deg, transparent 251deg);
  mask-composite: intersect;
}

.cosmDeco[data-cosm="avatar-vu-meter"] [data-part="lamp"] {
  --a: 180deg;
  --r: 82%;
  --s: 9%;
  --smin: 4px;
}

.cosmDeco[data-cosm="avatar-vu-meter"] [data-part="lamp"]::before {
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fecaca, #ef4444 55%, #991b1b);
  box-shadow: 0 0 0 1px rgb(254 202 202 / 0.3), 0 0 5px rgb(239 68 68 / var(--cosm-glow-strong));
}

@media (prefers-reduced-motion: no-preference) {
  .cosmDeco[data-cosm="avatar-vu-meter"] [data-part="cover"]::before {
    animation: cosmVuLevel 3.6s steps(1, end) infinite;
  }

  .cosmDeco[data-cosm="avatar-vu-meter"] [data-part="lamp"]::before {
    animation: cosmLampBreathe var(--cosm-dur-pulse) var(--cosm-ease-breathe) infinite;
  }
}

@keyframes cosmVuLevel {
  0% { transform: rotate(40deg); }
  10% { transform: rotate(70deg); }
  20% { transform: rotate(50deg); }
  30% { transform: rotate(90deg); }
  40% { transform: rotate(60deg); }
  50% { transform: rotate(100deg); }
  60% { transform: rotate(80deg); }
  70% { transform: rotate(30deg); }
  80% { transform: rotate(70deg); }
  90% { transform: rotate(20deg); }
  100% { transform: rotate(40deg); }
}

@keyframes cosmLampBreathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ─── Duman · Közler (seçkin) ───
   Three charcoal briquettes rest on the crown of a charred ring, the way coals sit on a hookah
   bowl: ash-dusted tops, faces that glow towards their lower edges, soft glowing cracks. The
   cluster sits a little left of centre, clear of the status corner. Their heat warms the ring
   beneath them and swells and settles on an uneven rhythm; the coals themselves never fade. */
.cosmDeco[data-cosm="avatar-ember-coals"] [data-part="ring"] {
  --w: 4.2%;
  /* Charcoal that warms to ember under the coals. */
  background: conic-gradient(from -130deg, #4a3830, #b8501f 26%, #e36a2a 34%, #b8501f 42%, #4a3830 58%, #2f2724 72%, #463a33 86%, #2b2421 95%, #4a3830);
}

.cosmDeco[data-cosm="avatar-ember-coals"] [data-part="coals"] { --a: -8deg; --r: 84%; --s: 37%; --smin: 14px; }

/* The coals are drawn once (an SVG); only their heat, behind them, breathes. */
.cosmDeco[data-cosm="avatar-ember-coals"] [data-part="coals"]::before {
  aspect-ratio: 64 / 36;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 36'%3E%3Cdefs%3E%3ClinearGradient id='fr' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23241c19'/%3E%3Cstop offset='.45' stop-color='%234a2416'/%3E%3Cstop offset='.85' stop-color='%23d4561c'/%3E%3Cstop offset='1' stop-color='%23ffa04a'/%3E%3C/linearGradient%3E%3ClinearGradient id='tp' x1='0' y1='0' x2='1' y2='.6'%3E%3Cstop offset='0' stop-color='%239c958f'/%3E%3Cstop offset='.6' stop-color='%236a625d'/%3E%3Cstop offset='1' stop-color='%234a4340'/%3E%3C/linearGradient%3E%3Cfilter id='k' x='-30%25' y='-60%25' width='160%25' height='220%25'%3E%3CfeGaussianBlur stdDeviation='.45'/%3E%3C/filter%3E%3C/defs%3E%3Cpolygon points='5,17 21,13.5 23.5,24 7.5,28.5' fill='url(%23fr)'/%3E%3Cpolygon points='5,17 21,13.5 20,11 4.6,14.4' fill='url(%23tp)'/%3E%3Cpath d='M9 20.5l3.5 2.4 3-1.3 3.5 2.8' fill='none' stroke='%23ffc27a' stroke-width='.9' stroke-linecap='round' stroke-opacity='.8' filter='url(%23k)'/%3E%3Cpolygon points='43,15.5 58.5,19.5 56,29 41.5,25.5' fill='url(%23fr)'/%3E%3Cpolygon points='43,15.5 58.5,19.5 59,17 44,12.8' fill='url(%23tp)'/%3E%3Cpath d='M45 20l3 1.6 4.5-.4' fill='none' stroke='%23ffc27a' stroke-width='.9' stroke-linecap='round' stroke-opacity='.8' filter='url(%23k)'/%3E%3Cpolygon points='20.5,11.5 42.5,10.8 43.2,25.6 21.2,26.8' fill='url(%23fr)'/%3E%3Cpolygon points='20.5,11.5 42.5,10.8 41.6,7.4 21.6,8' fill='url(%23tp)'/%3E%3Cpath d='M24 17.5l5 2.8 4.2-2 5.6 3.6M30.5 20.4l-.8 4' fill='none' stroke='%23ffc27a' stroke-width='.9' stroke-linecap='round' stroke-opacity='.8' filter='url(%23k)'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0.5px 0.5px rgb(0 0 0 / 0.7));
}

.cosmDeco[data-cosm="avatar-ember-coals"] [data-part="coals"]::after {
  content: "";
  left: 50%;
  top: calc(50% - var(--r) / 2);
  z-index: -1;
  width: calc(max(var(--s), var(--smin)) * 1.3);
  aspect-ratio: 64 / 40;
  translate: -50% -47%;
  rotate: calc(var(--a) * -1);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Cdefs%3E%3Cfilter id='b' x='-50%25' y='-50%25' width='200%25' height='200%25'%3E%3CfeGaussianBlur stdDeviation='2.6'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23b)' fill='%23ff7a2c'%3E%3Cellipse cx='14' cy='24' rx='8' ry='3.6' opacity='.75'/%3E%3Cellipse cx='32' cy='23' rx='11' ry='4.4'/%3E%3Cellipse cx='50' cy='24' rx='7.5' ry='3.2' opacity='.65'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.8;
}

@media (prefers-reduced-motion: no-preference) {
  .cosmDeco[data-cosm="avatar-ember-coals"] [data-part="coals"]::after {
    animation: cosmEmberBreathe 6.4s var(--cosm-ease-breathe) infinite;
  }
}

/* An uneven breath: each rise and fall is a little different. */
@keyframes cosmEmberBreathe {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  22% { opacity: 0.5; transform: scale(0.94); }
  38% { opacity: 0.74; transform: scale(0.98); }
  61% { opacity: 0.42; transform: scale(0.93); }
  80% { opacity: 0.9; transform: scale(1.02); }
}

/* ─── Duman · Duman Halkası (efsanevi) ───
   Smoke clings to an aged brass ring and flows slowly around it: it rises from a coal's heat at
   the lower left, wraps over the top and thins away before the status corner. Now and then a
   tilted smoke ring leaves the rim at the upper right and drifts up and away from the head,
   slowing, widening and dissolving (never hovering over it like a halo). The clinging smoke is two soft textures, drawn once, turning at unrelated speeds
   inside a fixed band, so the flow never visibly repeats. */
.cosmDeco[data-cosm="avatar-smoke-ring"] [data-part="heat"] {
  background: radial-gradient(24% 15% at 31% 81%, rgb(255 140 60 / 0.26), transparent 100%);
}

.cosmDeco[data-cosm="avatar-smoke-ring"] [data-part="ring"] {
  --w: 2.6%;
  /* Aged brass, warmest where the heat reaches it at the lower left. */
  background: conic-gradient(from 180deg, #6d5231, #f2c888 12%, #c08a4c 22%, #6e5434 40%, #d9bf8c 62%, #7b5f38 80%, #5a4429 92%, #6d5231);
}

/* The smoke band: from the heat at the lower left, up the left side and over the top, thinning
   to nothing past the top right. */
.cosmDeco[data-cosm="avatar-smoke-ring"] [data-part="wrap"] {
  --band: radial-gradient(closest-side, transparent 66%, #000 76% 85%, transparent 97%);
  --arc: conic-gradient(from 195deg, transparent, #000 45deg 170deg, rgb(0 0 0 / 0.45) 200deg, transparent 235deg);
  border-radius: 50%;
  -webkit-mask: var(--band), var(--arc);
  -webkit-mask-composite: source-in;
  mask: var(--band), var(--arc);
  mask-composite: intersect;
}

.cosmDeco[data-cosm="avatar-smoke-ring"] [data-part="wrap"]::before {
  content: "";
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cfilter id='f' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeGaussianBlur in='SourceGraphic' stdDeviation='2.6' result='b'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.028' numOctaves='2' seed='5' result='t'/%3E%3CfeDisplacementMap in='b' in2='t' scale='18' xChannelSelector='R' yChannelSelector='G'/%3E%3CfeGaussianBlur stdDeviation='1'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23f)' fill='none' stroke='%23e9eef1' stroke-linecap='round'%3E%3Cpath d='M100.0 15.0A85 85 0 0 1 183.7 85.2' stroke-width='10' stroke-opacity='.42'/%3E%3Cpath d='M188.6 115.6A90 90 0 0 1 130.8 184.6' stroke-width='6' stroke-opacity='.5'/%3E%3Cpath d='M107.3 183.7A84 84 0 0 1 16.3 107.3' stroke-width='12' stroke-opacity='.36'/%3E%3Cpath d='M17.5 138.5A91 91 0 0 1 61.5 17.5' stroke-width='5' stroke-opacity='.55'/%3E%3Cpath d='M25.5 57.0A86 86 0 0 1 97.0 14.1' stroke-width='9' stroke-opacity='.36'/%3E%3Cpath d='M147.0 18.6A94 94 0 0 1 181.4 147.0' stroke-width='4' stroke-opacity='.4'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: 0.85;
}

/* A second, fainter layer at another angle gives the smoke depth. */
.cosmDeco[data-cosm="avatar-smoke-ring"] .cosmL4::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cfilter id='f' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeGaussianBlur in='SourceGraphic' stdDeviation='2.6' result='b'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.028' numOctaves='2' seed='11' result='t'/%3E%3CfeDisplacementMap in='b' in2='t' scale='18' xChannelSelector='R' yChannelSelector='G'/%3E%3CfeGaussianBlur stdDeviation='1'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23f)' fill='none' stroke='%23e9eef1' stroke-linecap='round'%3E%3Cpath d='M100.0 15.0A85 85 0 0 1 183.7 85.2' stroke-width='10' stroke-opacity='.42'/%3E%3Cpath d='M188.6 115.6A90 90 0 0 1 130.8 184.6' stroke-width='6' stroke-opacity='.5'/%3E%3Cpath d='M107.3 183.7A84 84 0 0 1 16.3 107.3' stroke-width='12' stroke-opacity='.36'/%3E%3Cpath d='M17.5 138.5A91 91 0 0 1 61.5 17.5' stroke-width='5' stroke-opacity='.55'/%3E%3Cpath d='M25.5 57.0A86 86 0 0 1 97.0 14.1' stroke-width='9' stroke-opacity='.36'/%3E%3Cpath d='M147.0 18.6A94 94 0 0 1 181.4 147.0' stroke-width='4' stroke-opacity='.4'/%3E%3C/g%3E%3C/svg%3E");
  rotate: 150deg;
  opacity: 0.45;
}

.cosmDeco[data-cosm="avatar-smoke-ring"] [data-part="smokering"] { --a: 48deg; --r: 98%; --s: 38%; --smin: 14px; }

/* A ring of smoke seen slightly from below: a faint far edge, a fuller near lip and a thin tail. */
.cosmDeco[data-cosm="avatar-smoke-ring"] [data-part="smokering"]::before {
  aspect-ratio: 120 / 84;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 84'%3E%3Cdefs%3E%3Cfilter id='f' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur in='SourceGraphic' stdDeviation='1.5' result='b'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.045' numOctaves='2' seed='9' result='t'/%3E%3CfeDisplacementMap in='b' in2='t' scale='9' xChannelSelector='R' yChannelSelector='G'/%3E%3CfeGaussianBlur stdDeviation='0.7'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23f)' fill='none' stroke='%23eef2f4' stroke-linecap='round' transform='rotate(-20 60 38)'%3E%3Cpath d='M17 36 C20 18 100 18 103 36' stroke-width='5' stroke-opacity='.3'/%3E%3Cpath d='M17 36 C20 56 100 56 103 36' stroke-width='11' stroke-opacity='.55'/%3E%3Cpath d='M30 44 C42 52 78 52 90 44' stroke-width='3' stroke-opacity='.55'/%3E%3Cpath d='M58 52 C52 60 64 64 54 74' stroke-width='6' stroke-opacity='.12'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.8;
}

@media (prefers-reduced-motion: no-preference) {
  .cosmDeco[data-cosm="avatar-smoke-ring"] [data-part="wrap"]::before {
    animation: cosmSmokeFlow 44s linear infinite;
  }

  .cosmDeco[data-cosm="avatar-smoke-ring"] .cosmL4::before {
    animation-duration: 63s;
  }

  .cosmDeco[data-cosm="avatar-smoke-ring"] [data-part="smokering"]::before {
    animation: cosmSmokeRingRise 12.5s linear infinite;
  }
}

/* Smoke flows clockwise: up from the heat and over the top. */
@keyframes cosmSmokeFlow {
  to { transform: rotate(360deg); }
}

/* From the resting pose (a ring just formed): it rises ever more slowly while it widens, tilts and
   thins until it is gone. After a pause the next ring puffs out of the rim, quickly, and settles
   into the resting pose. */
@keyframes cosmSmokeRingRise {
  0% { opacity: 0.8; transform: none; animation-timing-function: cubic-bezier(0.3, 0.5, 0.5, 1); }
  52% { opacity: 0.34; transform: translate(34%, -62%) rotate(-8deg) scale(1.38, 1.3); animation-timing-function: cubic-bezier(0.4, 0.2, 0.7, 0.8); }
  66% { opacity: 0; transform: translate(46%, -80%) rotate(-11deg) scale(1.5, 1.42); }
  67%, 84% { opacity: 0; transform: translate(-12%, 14%) scale(0.4); animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1); }
  100% { opacity: 0.8; transform: none; }
}

/* ─── Duman · Nargile (epik) ───
   A hookah stands at the avatar's left: green glass, gold beads under a tray, a clay bowl with
   two coals. Its hose leaves the lower bead, wraps the avatar over the top as the ring and hangs
   at the right with a gold mouthpiece, clear of the status corner. Every 8s someone draws on it:
   the coals flare, bubbles rise in the glass while it clouds, the smoke runs along the hose, and
   the hose end sways and settles. The hookah stands over the hose, so the hose passes behind it. */
.cosmDeco[data-cosm="avatar-hookah-hose"] [data-part="hose"] {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M13.82 63.17A38.5 38.5 0 1 1 88.48 51.34' stroke='%23140a05' stroke-opacity='.55' stroke-width='4.4'/%3E%3Cpath d='M13.82 63.17A38.5 38.5 0 1 1 88.48 51.34' stroke='%235a321d' stroke-width='3.4'/%3E%3Cpath d='M13.82 63.17A38.5 38.5 0 1 1 88.48 51.34' stroke='%232a150a' stroke-opacity='.55' stroke-width='3.4' stroke-dasharray='.55 1.25' stroke-linecap='butt'/%3E%3Cpath d='M11.94 39.8A39.4 39.4 0 0 1 84.12 30.3' stroke='%23b07a50' stroke-opacity='.55' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* The smoke travels inside the hose: a short soft arc (drawn once, on the hose's circle) turns
   about the centre from the hookah (250°) over the top to the mouthpiece (92°), fading in and out
   at the ends. The layer contains its paint: the turning square's corners would otherwise
   reach outside the decoration and make the page repaint on every frame. */
.cosmDeco[data-cosm="avatar-hookah-hose"] [data-part="draw"] {
  contain: paint;
}

.cosmDeco[data-cosm="avatar-hookah-hose"] [data-part="draw"]::before {
  content: "";
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cfilter id='b' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='.55'/%3E%3C/filter%3E%3C/defs%3E%3Cg fill='none' stroke='%23eef2f4' stroke-linecap='round' filter='url(%23b)'%3E%3Cpath d='M24.24 21.39A38.5 38.5 0 0 1 31.93 16.01' stroke-opacity='0.14' stroke-width='2'/%3E%3Cpath d='M30.75 16.66A38.5 38.5 0 0 1 37.47 13.60' stroke-opacity='0.3' stroke-width='2.4'/%3E%3Cpath d='M36.20 14.06A38.5 38.5 0 0 1 41.34 12.49' stroke-opacity='0.5' stroke-width='2.6'/%3E%3Cpath d='M40.04 12.81A38.5 38.5 0 0 1 43.98 11.97' stroke-opacity='0.7' stroke-width='2.6'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform: rotate(-104deg);
  opacity: 0;
}

/* The hose end turns about the point where it leaves the ring. */
.cosmDeco[data-cosm="avatar-hookah-hose"] [data-part="tip"] {
  transform-origin: 88.48% 51.34%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23ffe08a'/%3E%3Cstop offset='.45' stop-color='%23f2b52c'/%3E%3Cstop offset='1' stop-color='%23b8770f'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M88.48 51.34C88.45 55 93.8 56.4 93.8 61.2' stroke='%23140a05' stroke-opacity='.55' stroke-width='4.4'/%3E%3Cpath d='M88.48 48.66A38.5 38.5 0 0 1 88.48 51.34C88.45 55 93.8 56.4 93.8 61.2' stroke='%235a321d' stroke-width='3.4'/%3E%3Cpath d='M88.48 48.66A38.5 38.5 0 0 1 88.48 51.34C88.45 55 93.8 56.4 93.8 61.2' stroke='%232a150a' stroke-opacity='.55' stroke-width='3.4' stroke-dasharray='.55 1.25' stroke-linecap='butt'/%3E%3C/g%3E%3Cg stroke='%23140a05' stroke-opacity='.5' stroke-width='.35'%3E%3Crect x='91.9' y='60.4' width='3.8' height='1.9' rx='.5' fill='%235a321d'/%3E%3Cpath d='M92.3 62.3H95.3L95.9 66.4Q96.1 68.6 94.7 70.1L94.4 73.1H93.2L92.9 70.1Q91.5 68.6 91.7 66.4Z' fill='url(%23g)'/%3E%3Crect x='93.15' y='73' width='1.3' height='1.8' rx='.45' fill='%235a321d'/%3E%3C/g%3E%3Cpath d='M91.9 67.2H95.7' stroke='%23a86a10' stroke-width='.6'/%3E%3Cpath d='M92.9 63.2L92.6 66.6' stroke='%23fff6d0' stroke-opacity='.7' stroke-width='.45' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.cosmDeco[data-cosm="avatar-hookah-hose"] [data-part="hookah"] {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3ClinearGradient id='au' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23ffe28e'/%3E%3Cstop offset='.4' stop-color='%23f6bb2e'/%3E%3Cstop offset='1' stop-color='%23c07c10'/%3E%3C/linearGradient%3E%3ClinearGradient id='gl' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%2346b84c'/%3E%3Cstop offset='.5' stop-color='%232f9e3b'/%3E%3Cstop offset='1' stop-color='%23207a2b'/%3E%3C/linearGradient%3E%3ClinearGradient id='cl' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%239a928c'/%3E%3Cstop offset='.35' stop-color='%233a2a24'/%3E%3Cstop offset='.8' stop-color='%23b8481a'/%3E%3Cstop offset='1' stop-color='%23ff9a3c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg stroke='%23140a05' stroke-opacity='.45' stroke-width='.35'%3E%3Cpath d='M4.3 73.2H9.7V77.2C13.3 79 14 84.5 13.9 89.8C13.8 93.6 12.8 96.4 10.6 97.2H3.4C1.2 96.4.2 93.6.1 89.8C0 84.5.7 79 4.3 77.2Z' fill='url(%23gl)'/%3E%3Cpath d='M5.2 67.2H8.8L10.3 73.4H3.7Z' fill='%236b3a1f'/%3E%3Cellipse cx='7' cy='64.2' rx='3' ry='3.2' fill='url(%23au)'/%3E%3Cellipse cx='7' cy='57.3' rx='3.2' ry='3.4' fill='url(%23au)'/%3E%3Cellipse cx='7' cy='49.8' rx='3.9' ry='4.3' fill='url(%23au)'/%3E%3Cellipse cx='7' cy='44' rx='1.8' ry='1.6' fill='url(%23au)'/%3E%3Cellipse cx='7' cy='38.8' rx='2.6' ry='3.6' fill='url(%23au)'/%3E%3Cellipse cx='7' cy='33.7' rx='1.7' ry='1.8' fill='%23e6961a'/%3E%3Crect x='5.6' y='26' width='2.8' height='4.4' fill='url(%23au)'/%3E%3Cpath d='M.4 30.2H13.6L12.6 31.9H1.4Z' fill='%235a2e16'/%3E%3Cpath d='M3.6 20.8H10.4L9 26.2H5Z' fill='%236b3a1f'/%3E%3Crect x='3' y='19.3' width='8' height='1.7' rx='.6' fill='%234a2412'/%3E%3Crect x='3.5' y='16.6' width='3.3' height='2.9' rx='.7' fill='url(%23cl)'/%3E%3Crect x='7.2' y='17' width='3.3' height='2.5' rx='.7' fill='url(%23cl)'/%3E%3C/g%3E%3Cpath d='M7.8 77.6C11.8 79.6 13.3 84.8 13.3 90C13.2 93.8 12.3 96.2 10.6 97.2H8.3C10.2 93.6 10.6 85.6 7.8 77.6Z' fill='%231d6e27' fill-opacity='.75'/%3E%3Cpath d='M7 77.4V93' stroke='%2317561f' stroke-width='.8' stroke-linecap='round'/%3E%3Cpath d='M2.3 82.6C1.5 85.8 1.5 89.8 2.2 92.8' fill='none' stroke='%23eafff0' stroke-opacity='.4' stroke-width='.7' stroke-linecap='round'/%3E%3Crect x='2.6' y='96.8' width='8.8' height='1.2' rx='.5' fill='%2317561f'/%3E%3Cpath d='M9.2 64.7L13.9 63.3' stroke='%235a321d' stroke-width='2.4'/%3E%3Cpath d='M10.4 64.35L11.2 64.1' stroke='%23f6bb2e' stroke-width='2.5'/%3E%3Cg fill='none' stroke='%23b27410' stroke-width='.45'%3E%3Cpath d='M3.4 48.5Q7 49.4 10.6 48.5'/%3E%3Cpath d='M3.2 50.4Q7 51.3 10.8 50.4'/%3E%3C/g%3E%3Cpath d='M.4 30.2H13.6' stroke='%238a5230' stroke-width='.6' stroke-linecap='round'/%3E%3Cpath d='M5 35.8Q4.8 38.8 5.4 41.6M4 47.2Q3.8 49.8 4.4 52.2M4.8 55Q4.6 57.3 5.1 59.4' fill='none' stroke='%23fff6d0' stroke-opacity='.65' stroke-width='.45' stroke-linecap='round'/%3E%3Cpath d='M4.7 18.3L5.9 18.9M8.2 18.6L9.3 18.2' stroke='%23ffc27a' stroke-opacity='.8' stroke-width='.35' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 0.5px 0.5px rgb(0 0 0 / 0.6));
}

/* Smoke clouding the glass; clear at rest. */
.cosmDeco[data-cosm="avatar-hookah-hose"] [data-part="hookah"]::after {
  content: "";
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cfilter id='b' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='.7'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M4.6 78.4C1.9 80.4 1.2 85 1.3 89.8C1.4 93.2 2.2 95.6 3.8 96.2H10.2C11.8 95.6 12.6 93.2 12.7 89.8C12.8 85 12.1 80.4 9.4 78.4Z' fill='%23eef3f1' fill-opacity='.8' filter='url(%23b)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: 0;
}

/* Bubbles rise from the stem's foot, two groups at different heights moving as one; hidden at
   rest. */
.cosmDeco[data-cosm="avatar-hookah-hose"] [data-part="bubbles"]::before,
.cosmDeco[data-cosm="avatar-hookah-hose"] [data-part="bubbles"]::after {
  content: "";
  inset: 0;
  background:
    radial-gradient(0.75% 0.75% at 6.3% 91.6%, rgb(230 255 234 / 0.3) 0 45%, rgb(240 255 242 / 0.95) 62% 82%, transparent 100%),
    radial-gradient(0.55% 0.55% at 7.8% 88.4%, rgb(230 255 234 / 0.3) 0 45%, rgb(240 255 242 / 0.95) 62% 82%, transparent 100%);
}

.cosmDeco[data-cosm="avatar-hookah-hose"] [data-part="bubbles"] {
  opacity: 0;
}

.cosmDeco[data-cosm="avatar-hookah-hose"] [data-part="bubbles"]::after {
  background:
    radial-gradient(0.6% 0.6% at 7.6% 94.4%, rgb(230 255 234 / 0.3) 0 45%, rgb(240 255 242 / 0.95) 62% 82%, transparent 100%),
    radial-gradient(0.7% 0.7% at 6.2% 90.2%, rgb(230 255 234 / 0.3) 0 45%, rgb(240 255 242 / 0.95) 62% 82%, transparent 100%);
}

/* The coals' steady heat, and a hotter glow and core that flare when someone draws. */
.cosmDeco[data-cosm="avatar-hookah-hose"] [data-part="ember"]::before,
.cosmDeco[data-cosm="avatar-hookah-hose"] [data-part="ember"]::after {
  content: "";
  left: 7%;
  top: 18.4%;
  translate: -50% -50%;
}

.cosmDeco[data-cosm="avatar-hookah-hose"] [data-part="ember"]::before {
  width: 17%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(255 150 60 / 0.6), rgb(255 110 40 / 0.2) 55%, transparent);
  opacity: 0.45;
}

.cosmDeco[data-cosm="avatar-hookah-hose"] [data-part="ember"]::after {
  width: 8%;
  height: 3%;
  border-radius: 40%;
  background: radial-gradient(closest-side, #ffd9a0, rgb(255 138 44 / 0.85) 55%, transparent);
  box-shadow: 0 0 max(4px, 4%) max(2px, 2.5%) rgb(255 130 50 / 0.35);
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .cosmDeco[data-cosm="avatar-hookah-hose"] [data-part="draw"]::before {
    animation: cosmHookahDraw 8s linear infinite;
  }

  .cosmDeco[data-cosm="avatar-hookah-hose"] [data-part="tip"] {
    animation: cosmHookahSway 8s var(--cosm-ease-breathe) infinite;
  }

  .cosmDeco[data-cosm="avatar-hookah-hose"] [data-part="hookah"]::after {
    animation: cosmHookahHaze 8s var(--cosm-ease-breathe) infinite;
  }

  .cosmDeco[data-cosm="avatar-hookah-hose"] [data-part="bubbles"] {
    animation: cosmHookahBubbles 8s ease-out infinite;
  }

  .cosmDeco[data-cosm="avatar-hookah-hose"] [data-part="ember"]::after {
    animation: cosmHookahFlare 8s var(--cosm-ease-breathe) infinite;
  }
}

/* The smoke waits in the hookah, then runs along the hose to the mouthpiece and is gone. The turn
   is linear, so the fades land where the hose begins and ends. */
@keyframes cosmHookahDraw {
  0%, 20% { opacity: 0; transform: rotate(-104deg); }
  25% { opacity: 1; transform: rotate(-67.55deg); }
  44% { opacity: 1; transform: rotate(70.9deg); }
  48%, 100% { opacity: 0; transform: rotate(100deg); }
}

/* The hose end hangs almost still, gets a tug as the smoke arrives, then swings and settles. */
@keyframes cosmHookahSway {
  0%, 100% { transform: rotate(0deg); }
  22% { transform: rotate(1.5deg); }
  42% { transform: rotate(-1deg); }
  54% { transform: rotate(6deg); }
  64% { transform: rotate(-4.5deg); }
  74% { transform: rotate(2.5deg); }
  84% { transform: rotate(-1deg); }
}

@keyframes cosmHookahHaze {
  0%, 20% { opacity: 0; }
  44% { opacity: 0.5; }
  72%, 100% { opacity: 0; }
}

@keyframes cosmHookahBubbles {
  0%, 16% { opacity: 0; transform: translateY(0); }
  19% { opacity: 1; }
  33% { opacity: 0.9; transform: translateY(-6%); }
  36% { opacity: 0; transform: translateY(-7%); }
  37%, 100% { opacity: 0; transform: translateY(0); }
}

@keyframes cosmHookahFlare {
  0%, 14%, 100% { opacity: 0; }
  32% { opacity: 0.95; }
  48% { opacity: 0.6; }
  66% { opacity: 0; }
}

/* ─── Sahne · Pena (yaygın) ───
   A thin chrome ring with a tortoiseshell celluloid pick tucked under it at the top right, tip
   towards the avatar, the way a pick is wedged under the strings. */
.cosmDeco[data-cosm="avatar-guitar-pick"] [data-part="ring"] {
  --w: 2.4%;
  background: conic-gradient(from 30deg, #d7dce2, #7d858f 25%, #f1f3f6 50%, #8a929c 75%, #d7dce2);
}

.cosmDeco[data-cosm="avatar-guitar-pick"] [data-part="pick"] { --a: 38deg; --r: 86%; --s: 27%; --smin: 11px; }

/* The pick turns with its layer, so its tip always points at the avatar. */
.cosmDeco[data-cosm="avatar-guitar-pick"] [data-part="pick"]::before {
  rotate: 0deg;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3CclipPath id='c'%3E%3Cpath d='M50 96C38 85 8 52 6 31C4 12 24 4 50 4C76 4 96 12 94 31C92 52 62 85 50 96Z'/%3E%3C/clipPath%3E%3ClinearGradient id='g' x1='0' y1='0' x2='.35' y2='1'%3E%3Cstop offset='0' stop-color='%23f6b860'/%3E%3Cstop offset='.55' stop-color='%23cf6a22'/%3E%3Cstop offset='1' stop-color='%237c300d'/%3E%3C/linearGradient%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.045' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .07 0 0 0 0 .02 3.4 0 0 0 -1.35'/%3E%3C/filter%3E%3C/defs%3E%3Cg clip-path='url(%23c)'%3E%3Crect width='100' height='100' fill='url(%23g)'/%3E%3Crect width='100' height='100' filter='url(%23m)'/%3E%3Cpath d='M50 96C38 85 8 52 6 31C4 12 24 4 50 4C76 4 96 12 94 31C92 52 62 85 50 96Z' fill='none' stroke='%232e1204' stroke-opacity='.55' stroke-width='5'/%3E%3Cellipse cx='38' cy='24' rx='24' ry='8' fill='%23fff' opacity='.3' transform='rotate(-18 38 24)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.55));
}

/* ─── Sahne · Sahne Işığı (nadir) ───
   A follow spot from the upper left and a pink back light from the upper right: two soft beams
   seen through haze land on the avatar and rim-light its ring, bright where the spot hits and
   falling off into shadow. Over the face the light is only a faint wash, so a photo keeps its
   colours. The beams drift slowly on their own rhythms, the way operators hold a spot. */
.cosmDeco[data-cosm="avatar-stage-spot"] [data-part="ring"] {
  --w: 2.8%;
  /* Rim light: warm white where the spot hits, pink where the back light catches, dark between. */
  background: conic-gradient(from 0deg, #f9a8d4 0deg, #7c4a6a 40deg, #2c2a33 90deg, #26252c 180deg, #5c4a3a 240deg, #fde7c4 300deg, #fff6e6 318deg, #fbbf6a 340deg, #f9a8d4 360deg);
}

/* The light has a little room around the decoration and fades out softly at its edge. In this
   larger box the avatar's edge sits at 49.7% (closest-side). */
.cosmDeco[data-cosm="avatar-stage-spot"] [data-part="beam"] {
  inset: -24%;
  --face: radial-gradient(closest-side, rgb(0 0 0 / 0.16) 49%, #000 51%);
  --room: radial-gradient(closest-side, #000 62%, transparent 100%);
  -webkit-mask: var(--face), var(--room);
  -webkit-mask-composite: source-in;
  mask: var(--face), var(--room);
  mask-composite: intersect;
}

/* The beam: a soft cone, drawn once as a mask so each light takes its own colour. It hangs from
   its lamp (the top of the cone) and turns about it. */
.cosmDeco[data-cosm="avatar-stage-spot"] [data-part="beam"]::before {
  content: "";
  left: var(--x);
  top: var(--y);
  width: var(--bw);
  height: 80%;
  translate: -50% 0;
  transform-origin: 50% 0;
  rotate: var(--turn);
  background: rgb(var(--c) / var(--o));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 200'%3E%3Cdefs%3E%3ClinearGradient id='l' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.3' stop-color='%23fff' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='s' x='-40%25' y='-10%25' width='180%25' height='120%25'%3E%3CfeGaussianBlur stdDeviation='4.5'/%3E%3C/filter%3E%3Cfilter id='h' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.018 .05' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.6 0 0 0 -.25'/%3E%3CfeComposite in2='SourceGraphic' operator='in'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23s)'%3E%3Cpolygon points='45,0 55,0 92,200 8,200' fill='url(%23l)' opacity='.7'/%3E%3Cpolygon points='47.5,0 52.5,0 68,200 32,200' fill='url(%23l)'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 200'%3E%3Cdefs%3E%3ClinearGradient id='l' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.3' stop-color='%23fff' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='s' x='-40%25' y='-10%25' width='180%25' height='120%25'%3E%3CfeGaussianBlur stdDeviation='4.5'/%3E%3C/filter%3E%3Cfilter id='h' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.018 .05' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.6 0 0 0 -.25'/%3E%3CfeComposite in2='SourceGraphic' operator='in'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23s)'%3E%3Cpolygon points='45,0 55,0 92,200 8,200' fill='url(%23l)' opacity='.7'/%3E%3Cpolygon points='47.5,0 52.5,0 68,200 32,200' fill='url(%23l)'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mix-blend-mode: plus-lighter;
}

.cosmDeco[data-cosm="avatar-stage-spot"] .cosmL2 { --x: 17%; --y: 13%; --bw: 64%; --turn: -42deg; --c: 255 228 186; --o: 0.62; }
.cosmDeco[data-cosm="avatar-stage-spot"] .cosmL3 { --x: 84%; --y: 16%; --bw: 46%; --turn: 40deg; --c: 244 114 182; --o: 0.42; }

@media (prefers-reduced-motion: no-preference) {
  .cosmDeco[data-cosm="avatar-stage-spot"] [data-part="beam"]::before {
    animation: cosmSpotDrift 7.4s var(--cosm-ease-breathe) infinite;
  }

  .cosmDeco[data-cosm="avatar-stage-spot"] .cosmL3::before {
    animation-duration: 9.3s;
    animation-direction: reverse;
  }
}

/* An operator's hold: small, uneven corrections rather than a metronome sway. */
@keyframes cosmSpotDrift {
  0%, 100% { transform: none; }
  30% { transform: rotate(5deg); }
  48% { transform: rotate(3.5deg); }
  76% { transform: rotate(-3deg); }
}

/* ─── Sahne · Klavye (epik) ───
   A rosewood fretboard wraps the avatar like a guitar neck: nickel frets, four strings, pearl
   inlays, and a glint that runs along the strings. It spans 250° from 235°, leaving the status
   corner free. */
.cosmDeco[data-cosm="avatar-fretboard"] :is([data-part="board"], [data-part="frets"], [data-part="strings"], [data-part="shimmer"]) {
  --in: 76%;
  --w: 14%;
  --min: 4px;
  --neck: var(--band), conic-gradient(from 235deg, #000 0 250deg, transparent 250deg);
  -webkit-mask: var(--neck);
  -webkit-mask-composite: source-in;
  mask: var(--neck);
  mask-composite: intersect;
}

.cosmDeco[data-cosm="avatar-fretboard"] [data-part="board"] {
  background: conic-gradient(from 235deg, #3a2217, #5b3726 30%, #43281b 60%, #5e3a28 90%, #3a2217);
}

.cosmDeco[data-cosm="avatar-fretboard"] [data-part="frets"] {
  background: repeating-conic-gradient(from 235deg, rgb(214 219 226 / 0.85) 0 0.9deg, transparent 0.9deg 17deg);
}

.cosmDeco[data-cosm="avatar-fretboard"] [data-part="strings"] {
  background: radial-gradient(closest-side,
    transparent 78.6%, rgb(232 234 238 / 0.8) 79% 79.7%, transparent 80.1% 82.4%,
    rgb(232 234 238 / 0.8) 82.8% 83.5%, transparent 83.9% 86.2%,
    rgb(232 234 238 / 0.85) 86.6% 87.4%, transparent 87.8%);
}

/* The glint is a child, so it can turn while its parent's mask keeps it on the neck. */
.cosmDeco[data-cosm="avatar-fretboard"] [data-part="shimmer"]::before {
  content: "";
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 318deg, rgb(255 244 222 / 0.75) 352deg, transparent 360deg);
  transform: rotate(250deg);
}

.cosmDeco[data-cosm="avatar-fretboard"] [data-part="inlay"] { --r: 83.2%; --s: 4.6%; --smin: 2.5px; }
.cosmDeco[data-cosm="avatar-fretboard"] .cosmL5 { --a: -82deg; }
.cosmDeco[data-cosm="avatar-fretboard"] .cosmL6 { --a: -48deg; }
.cosmDeco[data-cosm="avatar-fretboard"] .cosmL7 { --a: -14deg; }

.cosmDeco[data-cosm="avatar-fretboard"] [data-part="inlay"]::before {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff, #d6e8f2 50%, #8fa9bd);
}

@media (prefers-reduced-motion: no-preference) {
  .cosmDeco[data-cosm="avatar-fretboard"] [data-part="shimmer"]::before {
    animation: cosmNeckGlint 4.8s var(--cosm-ease-sweep) infinite;
  }
}

@keyframes cosmNeckGlint {
  0% { transform: rotate(250deg); }
  70%, 100% { transform: rotate(520deg); }
}

/* ─── Rulet · Yeşil Sıfır (epik, başarım) ───
   A wheel's pocket ring seen from above: 37 pockets, red and black in turn with brass frets, the
   green zero at the top under a small gold diamond. The ivory ball rests in the zero; now and
   then it runs a few slow laps against the wheel and settles back into the zero. A soft light
   travels around the brass. */
.cosmDeco[data-cosm="avatar-green-zero"] :is([data-part="ring"], [data-part="sweep"]) {
  --double: radial-gradient(closest-side, transparent 73.6%, #000 74.2% max(75.6%, calc(74.2% + 1px)),
    transparent max(76.2%, calc(74.8% + 1px)) 88.4%, #000 89% max(91.4%, calc(89% + 1.3px)),
    transparent max(92%, calc(89.6% + 1.3px)));
  -webkit-mask: var(--double);
  mask: var(--double);
}

.cosmDeco[data-cosm="avatar-green-zero"] [data-part="ring"] {
  background: conic-gradient(from 20deg, #8a6a2c, #f1d99a 16%, #a8843f 38%, #f5e2ae 62%, #8f6d2e 84%, #8a6a2c);
}

.cosmDeco[data-cosm="avatar-green-zero"] [data-part="pockets"] {
  --in: 75.8%;
  --w: 13%;
  --min: 2.4px;
  /* One pocket is 360° / 37. The zero is centred at the top; 36 red and black pockets follow. */
  --pocket: 9.7297deg;
  background:
    radial-gradient(closest-side, rgb(0 0 0 / 0.42) 76%, transparent 80.5% 84.5%, rgb(0 0 0 / 0.34) 88.5%),
    repeating-conic-gradient(from calc(var(--pocket) / 2), rgb(214 180 104 / 0.85) 0 0.8deg, transparent 0.8deg var(--pocket)),
    conic-gradient(from calc(var(--pocket) / -2), #14a562 0 var(--pocket), transparent var(--pocket)),
    repeating-conic-gradient(from calc(var(--pocket) / 2), #b5172a 0 var(--pocket), #16171b var(--pocket) calc(var(--pocket) * 2));
}

.cosmDeco[data-cosm="avatar-green-zero"] [data-part="sweep"] {
  background: conic-gradient(from 0deg, transparent 0 296deg, rgb(255 244 214 / 0.95) 350deg, transparent 360deg);
}

.cosmDeco[data-cosm="avatar-green-zero"] [data-part="marker"] {
  --r: 97.5%;
  --s: 7%;
  --smin: 3.5px;
}

.cosmDeco[data-cosm="avatar-green-zero"] [data-part="marker"]::before {
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: linear-gradient(135deg, #fff4cf, #e2bd6b 50%, #9a7430);
  filter: drop-shadow(0 0 3px rgb(241 217 154 / var(--cosm-glow-soft)));
}

.cosmDeco[data-cosm="avatar-green-zero"] [data-part="ball"] {
  --r: 80.2%;
  --s: 7.4%;
  --smin: 3.5px;
}

.cosmDeco[data-cosm="avatar-green-zero"] [data-part="ball"]::before {
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #ffffff 0 18%, #f4ecdc 42%, #c9bda6 88%);
  box-shadow: 0 0 0 max(0.6px, 0.5%) rgb(0 0 0 / 0.45), 0 0 5px rgb(255 247 230 / var(--cosm-glow-soft));
}

@media (prefers-reduced-motion: no-preference) {
  .cosmDeco[data-cosm="avatar-green-zero"] [data-part="sweep"] {
    animation: cosmSpin 11s linear infinite;
  }

  .cosmDeco[data-cosm="avatar-green-zero"] [data-part="ball"] {
    animation: cosmZeroBall 16s linear infinite;
  }
}

/* The ball waits in the zero, runs three laps against the wheel while slowing down, and drops
   back into the zero (−1080° is the zero again). */
@keyframes cosmZeroBall {
  0%, 30% { transform: rotate(0deg); animation-timing-function: cubic-bezier(0.12, 0.62, 0.22, 1); }
  78%, 100% { transform: rotate(-1080deg); }
}


/* Blackjack and Mines · the photo and lower-right status corner stay clear. */
.cosmDeco[data-cosm="avatar-ace-ring"] [data-part="ring"] {
  --w: 3%;
  background: conic-gradient(#e5c579, #7d6234 30%, #f4ead5 65%, #e5c579);
}
.cosmDeco[data-cosm="avatar-diamond-ring"] [data-part="ring"] {
  --w: 3%;
  background: conic-gradient(#6ee7b7, #24745c 35%, #b6f7dd 70%, #6ee7b7);
}
.cosmDeco[data-cosm="avatar-diamond-ring"] [data-part="ticks"] {
  --in: 81%;
  --w: 5%;
  background: repeating-conic-gradient(from -2deg, #52b68d 0 4deg, transparent 4deg 30deg);
}
.cosmDeco[data-cosm="avatar-ace-ring"] [data-part="art"] {
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%20transform%3D%22translate(21%204)%20rotate(-15%209%2013)%20scale(.32)%22%3E%3Crect%20x%3D%223%22%20y%3D%222%22%20width%3D%2254%22%20height%3D%2276%22%20rx%3D%225%22%20fill%3D%22%23f4ead5%22%20stroke%3D%22%23c9a75c%22%20stroke-width%3D%222%22%2F%3E%3Ctext%20x%3D%229%22%20y%3D%2218%22%20font-family%3D%22serif%22%20font-size%3D%2213%22%20fill%3D%22%23202025%22%3EA%3C%2Ftext%3E%3Cpath%20d%3D%22M30%2023C25%2032%2016%2036%2016%2044C16%2052%2025%2053%2028%2048L25%2059H35L32%2048C35%2053%2044%2052%2044%2044C44%2036%2035%2032%2030%2023Z%22%20fill%3D%22%23202025%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
}
.cosmDeco[data-cosm="avatar-diamond-ring"] [data-part="art"] {
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%20transform%3D%22translate(40%201)%20scale(.2)%22%3E%3Cpath%20d%3D%22M50%207L86%2035L50%2093L14%2035Z%22%20fill%3D%22%2334d399%22%20stroke%3D%22%23b6f7dd%22%20stroke-width%3D%223%22%2F%3E%3Cpath%20d%3D%22M14%2035H86M50%207L35%2035L50%2093L65%2035Z%22%20fill%3D%22none%22%20stroke%3D%22%23b6f7dd%22%20stroke-width%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
}
.cosmDeco:is([data-cosm="avatar-ace-ring"], [data-cosm="avatar-diamond-ring"]) [data-part="sweep"] {
  --w: 3%;
  background: conic-gradient(transparent 0 320deg, #fff4d8 352deg, transparent 360deg);
}
@media (prefers-reduced-motion: no-preference) {
  .cosmDeco:is([data-cosm="avatar-ace-ring"], [data-cosm="avatar-diamond-ring"]) [data-part="sweep"] {
    animation: cosmSpin 16s linear infinite;
  }
}


/* Football and Aviator · crafted medals outside the photo and status corner. */
.cosmDeco[data-cosm="avatar-golden-ball"] [data-part="ring"] {
  --w: 3.5%;
  background: conic-gradient(from 25deg, #b18e49, #fff0b5 18%, #957236 40%, #e4c681 70%, #b18e49);
}

.cosmDeco[data-cosm="avatar-golden-ball"] [data-part="art"] {
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Cg%20transform%3D%27translate(17%203)%20scale(.87)%27%3E%3Cdefs%3E%3CradialGradient%20id%3D%27b%27%20cx%3D%27.3%27%20cy%3D%27.25%27%3E%3Cstop%20stop-color%3D%27%23fff5cc%27%2F%3E%3Cstop%20offset%3D%27.48%27%20stop-color%3D%27%23e2bc63%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%238b6129%27%2F%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%2711%27%20fill%3D%27url(%23b)%27%20stroke%3D%27%23f9df9c%27%20stroke-width%3D%27.65%27%2F%3E%3Cg%20stroke%3D%27%23946b32%27%20stroke-width%3D%27.65%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%206L17%209.5L15%2015H9L7%209.5Z%27%20fill%3D%27%23aa7a31%27%2F%3E%3Cpath%20d%3D%27M12%206L12%201M17%209.5L22%207M15%2015L18%2021M9%2015L6%2021M7%209.5L2%207%27%20fill%3D%27none%27%2F%3E%3Cpath%20d%3D%27M2%207L5%203L12%201L19%203L22%207L23%2014L18%2021L12%2023L6%2021L1%2014Z%27%20fill%3D%27none%27%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%27M5%207A8%208%200%200%201%2011%204%27%20fill%3D%27none%27%20stroke%3D%27%23fff7df%27%20stroke-width%3D%271.1%27%20stroke-linecap%3D%27round%27%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%27%23d0b774%27%20stroke%3D%27%23a48746%27%20stroke-width%3D%27.5%27%3E%3Cpath%20d%3D%27M11%2061Q7%2072%2024%2085%27%20fill%3D%27none%27%20stroke%3D%27%23dbc48b%27%20stroke-width%3D%271.2%27%2F%3E%3Cpath%20d%3D%27M11%2066Q4%2061%207%2070Q9%2073%2012%2072M13%2073Q7%2070%209%2077Q11%2080%2016%2079M18%2080Q13%2079%2016%2084Q19%2087%2024%2086M12%2067Q16%2061%2016%2069Q15%2073%2012%2072M15%2075Q20%2069%2020%2077Q19%2080%2016%2079%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
}

.cosmDeco[data-cosm="avatar-golden-ball"] [data-part="sweep"] {
  --w: 3.5%;
  background: conic-gradient(transparent 0 312deg, #fff9df 350deg, transparent 360deg);
  opacity: 0.65;
}

.cosmDeco[data-cosm="avatar-golden-ball"] [data-part="glint"] {
  --a: -37deg;
  --r: 89%;
  --s: 5%;
  --smin: 2px;
  opacity: 0.6;
}

.cosmDeco[data-cosm="avatar-propeller"] [data-part="ring"] {
  --w: 3%;
  background: conic-gradient(from 210deg, #63839b, #e5f2f8 22%, #435b72 44%, #afc9d9 70%, #63839b);
}

.cosmDeco[data-cosm="avatar-propeller"] [data-part="ticks"] {
  --in: 80%;
  --w: 4%;
  --min: 1.5px;
  background: repeating-conic-gradient(from -1deg, #8ba9ba 0 2deg, transparent 2deg 30deg);
}

.cosmDeco[data-cosm="avatar-propeller"] [data-part="rotor"] {
  inset: 0 auto auto 13%;
  width: 28%;
  aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2036%2036%27%3E%3Cdefs%3E%3ClinearGradient%20id%3D%27m%27%20x2%3D%27.7%27%20y2%3D%271%27%3E%3Cstop%20stop-color%3D%27%23f7fbff%27%2F%3E%3Cstop%20offset%3D%27.45%27%20stop-color%3D%27%2390a4ba%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%2334475b%27%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cg%20fill%3D%27url(%23m)%27%20stroke%3D%27%23d9e9f2%27%20stroke-width%3D%27.65%27%3E%3Cpath%20id%3D%27blade%27%20d%3D%27M17%2016C13%209%2015%201%2020%201C25%201%2022%2012%2019%2017Z%27%2F%3E%3Cuse%20href%3D%27%23blade%27%20transform%3D%27rotate(120%2018%2018)%27%2F%3E%3Cuse%20href%3D%27%23blade%27%20transform%3D%27rotate(240%2018%2018)%27%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%2718%27%20cy%3D%2718%27%20r%3D%274.2%27%20fill%3D%27%2325364a%27%20stroke%3D%27%23d5e6ed%27%20stroke-width%3D%271%27%2F%3E%3Ccircle%20cx%3D%2718%27%20cy%3D%2718%27%20r%3D%272.3%27%20fill%3D%27%23e6b773%27%2F%3E%3Cpath%20d%3D%27M17%2016.8L19%2019.2%27%20stroke%3D%27%23fff1cb%27%20stroke-width%3D%27.8%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.45));
}

.cosmDeco[data-cosm="avatar-propeller"] [data-part="sweep"] {
  --w: 3%;
  background: conic-gradient(transparent 0 318deg, #e6f7ff 350deg, transparent 360deg);
  opacity: 0.6;
}

@media (prefers-reduced-motion: no-preference) {
  .cosmDeco[data-cosm="avatar-golden-ball"] [data-part="sweep"] {
    animation: cosmSpin 18s linear infinite;
  }

  .cosmDeco[data-cosm="avatar-propeller"] [data-part="rotor"] {
    animation: cosmSpin 12s linear infinite;
  }

  .cosmDeco[data-cosm="avatar-propeller"] [data-part="sweep"] {
    animation: cosmSpin 22s linear infinite reverse;
  }
}


/* Slot, Şeker, Penaltı, Uno, Kingo and Kart Savaşı · emblems in the top-left, clear of the photo and status corner. */
.cosmDeco[data-cosm="avatar-cherry-ring"] [data-part="ring"] {
  --w: 3.2%;
  background: conic-gradient(from 20deg, #f5c451, #7b3fa8 28%, #ffe9a8 55%, #9c4dcc 80%, #f5c451);
}

.cosmDeco[data-cosm="avatar-lollipop-ring"] [data-part="ring"] {
  --w: 3.2%;
  background: repeating-conic-gradient(from 8deg, #ff86c0 0 9deg, #fff3f9 9deg 18deg);
}

.cosmDeco[data-cosm="avatar-keeper-gloves"] [data-part="ring"] {
  --w: 3.2%;
  background: conic-gradient(from 200deg, #7cc6f2, #1e3a5c 28%, #f2f7fb 52%, #2c5a85 78%, #7cc6f2);
}

.cosmDeco[data-cosm="avatar-color-wheel"] [data-part="ring"] {
  --w: 3.2%;
  background: conic-gradient(#ff5a4f 0 88deg, #141418 88deg 92deg, #ffd23f 92deg 178deg, #141418 178deg 182deg, #3ccf6e 182deg 268deg, #141418 268deg 272deg, #3d8bff 272deg 358deg, #141418 358deg);
}

.cosmDeco[data-cosm="avatar-crown-ring"] [data-part="ring"] {
  --w: 3.2%;
  background: conic-gradient(from 30deg, #e8c46a, #5b2f8c 28%, #f7e3a6 54%, #7a46b0 80%, #e8c46a);
}

.cosmDeco[data-cosm="avatar-war-shield"] [data-part="ring"] {
  --w: 3.2%;
  background: conic-gradient(from 210deg, #c3ccd8, #4d5866 28%, #e8edf3 52%, #5b6675 78%, #c3ccd8);
}

.cosmDeco[data-cosm="avatar-war-shield"] [data-part="ticks"] {
  --in: 80%;
  --w: 4%;
  --min: 1.5px;
  background: repeating-conic-gradient(from -1.5deg, #aab5c2 0 3deg, transparent 3deg 45deg);
}

.cosmDeco[data-cosm="avatar-cherry-ring"] [data-part="art"] {
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Cg%20transform%3D%27translate(13%203)%27%3E%3Cdefs%3E%3CradialGradient%20id%3D%27c%27%20cx%3D%27.35%27%20cy%3D%27.3%27%3E%3Cstop%20stop-color%3D%27%23ff9a9a%27%2F%3E%3Cstop%20offset%3D%27.55%27%20stop-color%3D%27%23e0283d%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%238e0f22%27%2F%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%27M8%2011Q11%204%2019%201M15.5%2013Q16%206%2019%201%27%20fill%3D%27none%27%20stroke%3D%27%235cc96a%27%20stroke-width%3D%271.5%27%20stroke-linecap%3D%27round%27%2F%3E%3Cpath%20d%3D%27M19%201Q25%20-.5%2027%204Q22%205.5%2019%201Z%27%20fill%3D%27%234caf50%27%20stroke%3D%27%23b9f2c0%27%20stroke-width%3D%27.4%27%2F%3E%3Ccircle%20cx%3D%277.5%27%20cy%3D%2715%27%20r%3D%275.2%27%20fill%3D%27url(%23c)%27%20stroke%3D%27%23ffd1d6%27%20stroke-width%3D%27.5%27%2F%3E%3Ccircle%20cx%3D%2716%27%20cy%3D%2717%27%20r%3D%275.2%27%20fill%3D%27url(%23c)%27%20stroke%3D%27%23ffd1d6%27%20stroke-width%3D%27.5%27%2F%3E%3Ccircle%20cx%3D%275.8%27%20cy%3D%2713.2%27%20r%3D%271.3%27%20fill%3D%27%23ffe3e6%27%2F%3E%3Ccircle%20cx%3D%2714.3%27%20cy%3D%2715.2%27%20r%3D%271.3%27%20fill%3D%27%23ffe3e6%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.45));
}

.cosmDeco[data-cosm="avatar-lollipop-ring"] [data-part="art"] {
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Cpath%20d%3D%27M15%2023L8%2033%27%20stroke%3D%27%23f6ead9%27%20stroke-width%3D%272.2%27%20stroke-linecap%3D%27round%27%2F%3E%3Cg%20transform%3D%27translate(12%204)%27%3E%3Ccircle%20cx%3D%2710%27%20cy%3D%2710%27%20r%3D%279.2%27%20fill%3D%27%23ffe0ef%27%20stroke%3D%27%23ff86c0%27%20stroke-width%3D%271.1%27%2F%3E%3Cpath%20d%3D%27M10%2010m-5.6%200a5.6%205.6%200%201%201%2011.2%200a4.2%204.2%200%201%201%20-8.4%200a2.8%202.8%200%201%201%205.6%200a1.4%201.4%200%201%201%20-2.8%200%27%20fill%3D%27none%27%20stroke%3D%27%23ff4f9f%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%2F%3E%3Ccircle%20cx%3D%276.6%27%20cy%3D%276.4%27%20r%3D%271.6%27%20fill%3D%27%23fff%27%20opacity%3D%27.85%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.45));
}

.cosmDeco[data-cosm="avatar-keeper-gloves"] [data-part="art"] {
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Cg%20transform%3D%27translate(11%202)%20rotate(-18%2012%2014)%27%3E%3Cdefs%3E%3ClinearGradient%20id%3D%27g%27%20x2%3D%270%27%20y2%3D%271%27%3E%3Cstop%20stop-color%3D%27%23ffc98a%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%23f0741a%27%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%27M5%2025V14Q3%2012%203%209V6Q3%204.5%204.5%204.5Q6%204.5%206%206V10H7V3Q7%201.5%208.5%201.5Q10%201.5%2010%203V10H11V2Q11%20.5%2012.5%20.5Q14%20.5%2014%202V10H15V3.5Q15%202%2016.5%202Q18%202%2018%203.5V12L20%209.5Q21.2%208.2%2022.4%209.2Q23.4%2010.2%2022.5%2011.5L18.5%2018V25Z%27%20fill%3D%27url(%23g)%27%20stroke%3D%27%23ffe6c8%27%20stroke-width%3D%27.7%27%20stroke-linejoin%3D%27round%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%2723.5%27%20width%3D%2715.5%27%20height%3D%275%27%20rx%3D%271.2%27%20fill%3D%27%231d3550%27%20stroke%3D%27%239fd3f5%27%20stroke-width%3D%27.6%27%2F%3E%3Cpath%20d%3D%27M7%2015.5H16%27%20stroke%3D%27%23b9560f%27%20stroke-width%3D%27.8%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.45));
}

.cosmDeco[data-cosm="avatar-color-wheel"] [data-part="art"] {
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Cg%20transform%3D%27translate(16%203)%20rotate(-14%209%2013)%27%3E%3Crect%20x%3D%270%27%20y%3D%270%27%20width%3D%2718%27%20height%3D%2726%27%20rx%3D%272.6%27%20fill%3D%27%23141418%27%20stroke%3D%27%23f4f4f4%27%20stroke-width%3D%271.1%27%2F%3E%3Cg%20transform%3D%27translate(9%2013)%20rotate(-30)%27%3E%3Cellipse%20rx%3D%276%27%20ry%3D%279%27%20fill%3D%27%23fff%27%2F%3E%3Cpath%20d%3D%27M0%200V-8.4A5.4%208.4%200%200%201%205.4%200Z%27%20fill%3D%27%23ff5a4f%27%2F%3E%3Cpath%20d%3D%27M0%200H5.4A5.4%208.4%200%200%201%200%208.4Z%27%20fill%3D%27%233d8bff%27%2F%3E%3Cpath%20d%3D%27M0%200V8.4A5.4%208.4%200%200%201%20-5.4%200Z%27%20fill%3D%27%23ffd23f%27%2F%3E%3Cpath%20d%3D%27M0%200H-5.4A5.4%208.4%200%200%201%200%20-8.4Z%27%20fill%3D%27%233ccf6e%27%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.45));
}

.cosmDeco[data-cosm="avatar-crown-ring"] [data-part="art"] {
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Cdefs%3E%3ClinearGradient%20id%3D%27k%27%20x2%3D%270%27%20y2%3D%271%27%3E%3Cstop%20stop-color%3D%27%23fff0b8%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%23c99a3a%27%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cg%20transform%3D%27translate(12%205)%20rotate(-24%2012%2010)%27%3E%3Cpath%20d%3D%27M2%2016L0%205L6.5%2010L12%202L17.5%2010L24%205L22%2016Z%27%20fill%3D%27url(%23k)%27%20stroke%3D%27%23fff1c2%27%20stroke-width%3D%27.8%27%20stroke-linejoin%3D%27round%27%2F%3E%3Crect%20x%3D%272%27%20y%3D%2716%27%20width%3D%2720%27%20height%3D%274%27%20rx%3D%271%27%20fill%3D%27%23d4a845%27%20stroke%3D%27%23fff1c2%27%20stroke-width%3D%27.6%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%272%27%20r%3D%271.6%27%20fill%3D%27%23fff1c2%27%2F%3E%3Ccircle%20cx%3D%270%27%20cy%3D%275%27%20r%3D%271.3%27%20fill%3D%27%23fff1c2%27%2F%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%275%27%20r%3D%271.3%27%20fill%3D%27%23fff1c2%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2718%27%20r%3D%271.3%27%20fill%3D%27%23d23a55%27%2F%3E%3Ccircle%20cx%3D%276.5%27%20cy%3D%2718%27%20r%3D%271%27%20fill%3D%27%237a46b0%27%2F%3E%3Ccircle%20cx%3D%2717.5%27%20cy%3D%2718%27%20r%3D%271%27%20fill%3D%27%237a46b0%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.45));
}

.cosmDeco[data-cosm="avatar-war-shield"] [data-part="art"] {
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Cg%20transform%3D%27translate(12%201)%20rotate(-16%2012%2014)%27%3E%3Cdefs%3E%3ClinearGradient%20id%3D%27s%27%20x2%3D%27.6%27%20y2%3D%271%27%3E%3Cstop%20stop-color%3D%27%23a9b5c4%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%233b4552%27%2F%3E%3C%2FlinearGradient%3E%3CclipPath%20id%3D%27p%27%3E%3Cpath%20d%3D%27M12%203L20%206V13Q20%2021%2012%2026Q4%2021%204%2013V6Z%27%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3Cpath%20d%3D%27M0%200L20.5%2023.5M24%200L3.5%2023.5%27%20stroke%3D%27%23e6ecf2%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%2F%3E%3Cpath%20d%3D%27M16.4%2023.4L21.4%2019M7.6%2023.4L2.6%2019%27%20stroke%3D%27%23c08a4a%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%2F%3E%3Ccircle%20cx%3D%2722%27%20cy%3D%2725.4%27%20r%3D%271.3%27%20fill%3D%27%23c08a4a%27%2F%3E%3Ccircle%20cx%3D%272%27%20cy%3D%2725.4%27%20r%3D%271.3%27%20fill%3D%27%23c08a4a%27%2F%3E%3Cpath%20d%3D%27M12%203L20%206V13Q20%2021%2012%2026Q4%2021%204%2013V6Z%27%20fill%3D%27url(%23s)%27%2F%3E%3Cpath%20d%3D%27M10.4%203V27H13.6V3Z%27%20fill%3D%27%23d6454f%27%20clip-path%3D%27url(%23p)%27%2F%3E%3Cpath%20d%3D%27M12%203L20%206V13Q20%2021%2012%2026Q4%2021%204%2013V6Z%27%20fill%3D%27none%27%20stroke%3D%27%23eef2f6%27%20stroke-width%3D%27.9%27%20stroke-linejoin%3D%27round%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.45));
}

.cosmDeco[data-cosm="avatar-cherry-ring"] [data-part="sweep"] {
  --w: 3.2%;
  background: conic-gradient(transparent 0 318deg, #fff1c4 352deg, transparent 360deg);
  opacity: 0.6;
}

.cosmDeco[data-cosm="avatar-lollipop-ring"] [data-part="sweep"] {
  --w: 3.2%;
  background: conic-gradient(transparent 0 318deg, #ffffff 352deg, transparent 360deg);
  opacity: 0.6;
}

.cosmDeco[data-cosm="avatar-keeper-gloves"] [data-part="sweep"] {
  --w: 3.2%;
  background: conic-gradient(transparent 0 318deg, #e8f6ff 352deg, transparent 360deg);
  opacity: 0.6;
}

.cosmDeco[data-cosm="avatar-color-wheel"] [data-part="sweep"] {
  --w: 3.2%;
  background: conic-gradient(transparent 0 318deg, #ffffff 352deg, transparent 360deg);
  opacity: 0.6;
}

.cosmDeco[data-cosm="avatar-crown-ring"] [data-part="sweep"] {
  --w: 3.2%;
  background: conic-gradient(transparent 0 318deg, #fff1c9 352deg, transparent 360deg);
  opacity: 0.6;
}

.cosmDeco[data-cosm="avatar-war-shield"] [data-part="sweep"] {
  --w: 3.2%;
  background: conic-gradient(transparent 0 318deg, #f2f6fa 352deg, transparent 360deg);
  opacity: 0.6;
}

@media (prefers-reduced-motion: no-preference) {
  .cosmDeco:is([data-cosm="avatar-cherry-ring"], [data-cosm="avatar-lollipop-ring"], [data-cosm="avatar-keeper-gloves"], [data-cosm="avatar-color-wheel"], [data-cosm="avatar-crown-ring"], [data-cosm="avatar-war-shield"]) [data-part="sweep"] {
    animation: cosmSpin 16s linear infinite;
  }
}

/* Selected sets: static art stays outside the photo and the status corner. */
.cosmDeco[data-cosm="avatar-velvet-paws"] [data-part="ring"] {
  --w: 3%;
  --min: 1px;
  background: #b8a9d8;
}

.cosmDeco[data-cosm="avatar-velvet-paws"] [data-part="art"] {
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%3E%3Cg%20transform%3D'translate(50%2050)%20scale(.875)%20translate(-50%20-50)'%3E%3Cpath%20d%3D'M22%2018L23%205L36%2012Z%20M64%2012L77%205L78%2018Z'%20fill%3D'%23292332'%20stroke%3D'%23b8a9d8'%20stroke-width%3D'1.6'%20stroke-linejoin%3D'round'%20stroke-linecap%3D'round'%2F%3E%3Cpath%20d%3D'M26%2013L26%208L32%2012Z%20M68%2012L74%208L74%2013Z'%20fill%3D'%23dbadca'%20stroke%3D'none'%20stroke-width%3D'0'%20stroke-linejoin%3D'round'%20stroke-linecap%3D'round'%2F%3E%3Cpath%20d%3D'M13%2068L16%2068'%20fill%3D'none'%20stroke%3D'%23dbadca'%20stroke-width%3D'2'%20stroke-linejoin%3D'round'%20stroke-linecap%3D'round'%2F%3E%3Cpath%20d%3D'M14%2072L17%2072'%20fill%3D'none'%20stroke%3D'%23dbadca'%20stroke-width%3D'2'%20stroke-linejoin%3D'round'%20stroke-linecap%3D'round'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
}

.cosmDeco[data-cosm="avatar-reel-edge"] [data-part="ring"] {
  --w: 3%;
  --min: 1px;
  background: #46403a;
}

.cosmDeco[data-cosm="avatar-reel-edge"] [data-part="art"] {
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%3E%3Cg%20transform%3D'translate(50%2050)%20scale(.875)%20translate(-50%20-50)'%3E%3Crect%20x%3D'15'%20y%3D'17'%20width%3D'6'%20height%3D'6'%20rx%3D'1'%20fill%3D'%231b1a19'%20stroke%3D'%23c9b991'%20stroke-width%3D'0.5'%2F%3E%3Crect%20x%3D'24'%20y%3D'10'%20width%3D'6'%20height%3D'6'%20rx%3D'1'%20fill%3D'%231b1a19'%20stroke%3D'%23c9b991'%20stroke-width%3D'0.5'%2F%3E%3Ccircle%20cx%3D'18'%20cy%3D'20'%20r%3D'1.2'%20fill%3D'%23c9b991'%20stroke%3D'none'%20stroke-width%3D'1'%2F%3E%3Ccircle%20cx%3D'27'%20cy%3D'13'%20r%3D'1.2'%20fill%3D'%23c9b991'%20stroke%3D'none'%20stroke-width%3D'1'%2F%3E%3Cpath%20d%3D'M16%2075L20%2080'%20fill%3D'none'%20stroke%3D'%23b56845'%20stroke-width%3D'2.5'%20stroke-linejoin%3D'round'%20stroke-linecap%3D'round'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
}

.cosmDeco[data-cosm="avatar-depth-collar"] [data-part="ring"] {
  --w: 3%;
  --min: 1px;
  background: #36545a;
}

.cosmDeco[data-cosm="avatar-depth-collar"] [data-part="art"] {
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%3E%3Cg%20transform%3D'translate(50%2050)%20scale(.875)%20translate(-50%20-50)'%3E%3Cpath%20d%3D'M27%2086Q18%2084%2013%2073M27%2089Q15%2085%2010%2074M26%2092Q13%2087%208%2075'%20fill%3D'none'%20stroke%3D'%2382c1b9'%20stroke-width%3D'0.65'%20stroke-linejoin%3D'round'%20stroke-linecap%3D'round'%2F%3E%3Crect%20x%3D'7'%20y%3D'46'%20width%3D'3'%20height%3D'7'%20rx%3D'0'%20fill%3D'%2336545a'%20stroke%3D'none'%20stroke-width%3D'1'%2F%3E%3Crect%20x%3D'46'%20y%3D'6'%20width%3D'7'%20height%3D'3'%20rx%3D'0'%20fill%3D'%2336545a'%20stroke%3D'none'%20stroke-width%3D'1'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
}

.cosmDeco[data-cosm="avatar-pocket-mode"] [data-part="ring"] {
  --w: 3%;
  --min: 1px;
  background: #576575;
}

.cosmDeco[data-cosm="avatar-pocket-mode"] [data-part="art"] {
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%3E%3Cg%20transform%3D'translate(50%2050)%20scale(.875)%20translate(-50%20-50)'%3E%3Cpath%20d%3D'M17%2019V13H23V8H31M69%208H77V13H83V19'%20fill%3D'none'%20stroke%3D'%23576575'%20stroke-width%3D'1.8'%20stroke-linejoin%3D'round'%20stroke-linecap%3D'round'%2F%3E%3Crect%20x%3D'7'%20y%3D'45'%20width%3D'3'%20height%3D'4'%20rx%3D'0'%20fill%3D'%23a5ba98'%20stroke%3D'none'%20stroke-width%3D'1'%2F%3E%3Cpath%20d%3D'M40%2093H56'%20fill%3D'none'%20stroke%3D'%23576575'%20stroke-width%3D'1.5'%20stroke-linejoin%3D'round'%20stroke-linecap%3D'round'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
}
/* Printstream · a bevelled ceramic shell; all light is clipped outside the avatar. */
.cosmDeco[data-cosm="avatar-printstream-shell"] [data-part="shell"] {
  background: url("../../../assets/cosmetics/printstream-shell.svg") center / contain no-repeat;
  filter: drop-shadow(0 2px 2px #080b1480);
}
.cosmDeco[data-cosm="avatar-printstream-shell"] [data-part="pearl"] {
  border-radius: 50%;
  overflow: hidden;
  -webkit-mask: radial-gradient(closest-side, transparent 76%, #000 78% 89%, transparent 91%);
  mask: radial-gradient(closest-side, transparent 76%, #000 78% 89%, transparent 91%);
  opacity: var(--ps-sheen);
}
.cosmDeco[data-cosm="avatar-printstream-shell"] [data-part="pearl"]::before {
  content: "";
  inset: -20%;
  background: var(--ps-pearl);
}
.cosmDeco[data-cosm="avatar-printstream-shell"] [data-part="print"] {
  border-radius: 50%;
  background: conic-gradient(from 5deg, #10151d 0 2deg, transparent 2deg 7deg, #10151d 7deg 9deg,
    transparent 9deg 150deg, #10151d 150deg 153deg, transparent 153deg 162deg, #10151d 162deg 164deg, transparent 164deg);
  -webkit-mask: radial-gradient(closest-side, transparent 82%, #000 83% 88%, transparent 89%);
  mask: radial-gradient(closest-side, transparent 82%, #000 83% 88%, transparent 89%);
}
.cosmDeco[data-cosm="avatar-printstream-shell"] [data-part="glint"] {
  border-radius: 50%;
  background: radial-gradient(ellipse at var(--ps-x) var(--ps-y), #fff 0%, #e0faff99 18%, transparent 47%);
  -webkit-mask: radial-gradient(closest-side, transparent 77%, #000 79% 92%, transparent 94%);
  mask: radial-gradient(closest-side, transparent 77%, #000 79% 92%, transparent 94%);
}
@media (prefers-reduced-motion: no-preference) {
  .cosmDeco[data-cosm="avatar-printstream-shell"] [data-part="pearl"]::before {
    animation: cosmPrintstreamFlow 6s ease-in-out infinite both;
  }
  .cosmDeco[data-cosm="avatar-printstream-shell"] [data-part="glint"] {
    animation: cosmPrintstreamRingLight 6s ease-in-out infinite both;
  }
}
@keyframes cosmPrintstreamRingLight {
  0%, 100% { opacity: 0.55; transform: rotate(-12deg); }
  50% { opacity: 1; transform: rotate(18deg); }
}

/* Gece Ayini: lace and ribbon stay outside the face; the status arc is open. */
.cosmDeco[data-cosm="avatar-gothic-lace"] [data-part="art"] {
  background: url("../../../assets/cosmetics/gothic-avatar.svg") center / contain no-repeat;
  filter: drop-shadow(0 1px 2px #08050cb3);
}
.cosmDeco[data-cosm="avatar-gothic-lace"] [data-part="glint"] {
  border-radius: 50%;
  background: conic-gradient(from 210deg, transparent 35%, #edceff 48%, transparent 56%);
  -webkit-mask: radial-gradient(closest-side, transparent 77%, #000 79% 88%, transparent 90%);
  mask: radial-gradient(closest-side, transparent 77%, #000 79% 88%, transparent 90%);
  clip-path: polygon(0 0, 100% 0, 100% 50%, 50% 50%, 50% 100%, 0 100%);
  opacity: 0.5;
}
@media (prefers-reduced-motion: no-preference) {
  .cosmDeco[data-cosm="avatar-gothic-lace"] [data-part="glint"] {
    animation: cosmGothicLaceLight 7s ease-in-out infinite both;
  }
}
@keyframes cosmGothicLaceLight {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

/* Taş ve Vitray: Gothic stone tracery and jewel glass. */
.cosmDeco[data-cosm="avatar-cathedral-tracery"] [data-part="art"] {
  background: url("../../../assets/cosmetics/cathedral-avatar.svg") center / contain no-repeat;
  filter: drop-shadow(0 1px 2px #080d16aa);
}

/* Big Bass Bonanza: achievement collection. */
.cosmDeco[data-cosm="avatar-bass-hook"] [data-part="ring"] { --w: 3.5%; background: conic-gradient(#f3d18a, #74e3d5 95deg, transparent 96deg 170deg, #74e3d5 171deg, #f3d18a); }
.cosmDeco[data-cosm="avatar-bass-hook"] [data-part="art"] { inset: -8% auto auto 32%; width: 36%; height: 36%; background: url("../../../assets/cosmetics/bass-seal.svg") center / contain no-repeat; }

/* Tombstone: achievement collection. */
.cosmDeco[data-cosm="avatar-outlaw-skull"] [data-part="ring"] { --w: 3.5%; background: conic-gradient(#dec9a4, #f5ad79 95deg, transparent 96deg 170deg, #f5ad79 171deg, #dec9a4); }
.cosmDeco[data-cosm="avatar-outlaw-skull"] [data-part="art"] { inset: -8% auto auto 32%; width: 36%; height: 36%; background: url("../../../assets/cosmetics/tombstone-seal.svg") center / contain no-repeat; }

/* Şeytanla Anlaşma: achievement collection. */
.cosmDeco[data-cosm="avatar-horned-seal"] [data-part="ring"] { --w: 3.5%; background: conic-gradient(from 30deg, #e8b47e, #6e302b 32%, transparent 33% 44%, #b66b48 45%, #e8b47e 75%, #491e24); }
.cosmDeco[data-cosm="avatar-horned-seal"] [data-part="art"] { inset: -12% auto auto 27%; width: 46%; height: 46%; background: url("../../../assets/cosmetics/devil-seal.webp") center / contain no-repeat; }
