/* ═══════════════════════════════════════════════════════════════════════
   KOZMETİKLER · Profil efektleri
   Played once when a profile card opens (and on "replay" in the market),
   then they rest. Every layer's base style is its resting look, which is
   also the reduced-motion look and the market poster. Keyframes end on
   that resting look and use `both` fill, so nothing flashes before a
   staggered layer starts. Resting art keeps to the banner and the bottom
   margin: the name, status and buttons stay clear.
   The host card provides --cosm-avatar-x / --cosm-avatar-y (avatar centre).
   ═══════════════════════════════════════════════════════════════════════ */

/* Manifestival: a single finite entrance; every layer is clipped to the banner, even on replay. */
.cosmProfileCard:has(> .cosmEffect[data-cosm="effect-manifest-manifestival"]) > .cosmProfileAvatarSlot {
  z-index: 6;
}
.cosmEffect[data-cosm="effect-manifest-manifestival"] {
  bottom: auto;
  height: var(--cosm-banner-height, 84px);
  border-radius: var(--cosm-card-radius, 14px) var(--cosm-card-radius, 14px) 0 0;
}
.cosmEffect[data-cosm="effect-manifest-manifestival"] [data-part="stage"] {
  inset: 0;
  background: url("../../../assets/cosmetics/manifest-stage.webp") center / cover no-repeat;
}
/* The beams box matches the 3:1 stage art as `cover` lays it out, so each beam starts at its
   painted lamp. Lamps left of the stage centre open wide to the left, the others wide to the
   right; --cosm-manifest-sweep swings them in and --cosm-manifest-spread narrows them onto
   the beams baked into the art. */
@property --cosm-manifest-sweep {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@property --cosm-manifest-spread {
  syntax: '<angle>';
  inherits: false;
  initial-value: 7deg;
}
.cosmEffect[data-cosm="effect-manifest-manifestival"] [data-part="beams"] {
  --cosm-manifest-sweep: 0deg;
  --cosm-manifest-spread: 7deg;
  inset: 50% 0 auto;
  aspect-ratio: 3;
  translate: 0 -50%;
  background:
    conic-gradient(from calc(167deg + var(--cosm-manifest-sweep) - var(--cosm-manifest-spread)) at 9.2% 10.9%,
      transparent, #3d8bffb0 var(--cosm-manifest-spread), transparent calc(var(--cosm-manifest-spread) * 2)),
    conic-gradient(from calc(162deg + var(--cosm-manifest-sweep) * 0.8 - var(--cosm-manifest-spread)) at 20.5% 10.9%,
      transparent, #3dff6ab0 var(--cosm-manifest-spread), transparent calc(var(--cosm-manifest-spread) * 2)),
    conic-gradient(from calc(166deg + var(--cosm-manifest-sweep) * 0.6 - var(--cosm-manifest-spread)) at 31.3% 10.9%,
      transparent, #a64dffb0 var(--cosm-manifest-spread), transparent calc(var(--cosm-manifest-spread) * 2)),
    conic-gradient(from calc(177deg + var(--cosm-manifest-sweep) * 0.4 - var(--cosm-manifest-spread)) at 44.5% 10.9%,
      transparent, #ff3b3bb0 var(--cosm-manifest-spread), transparent calc(var(--cosm-manifest-spread) * 2)),
    conic-gradient(from calc(191deg - var(--cosm-manifest-sweep) * 0.6 - var(--cosm-manifest-spread)) at 54.9% 10.9%,
      transparent, #ffc93db0 var(--cosm-manifest-spread), transparent calc(var(--cosm-manifest-spread) * 2)),
    conic-gradient(from calc(206deg - var(--cosm-manifest-sweep) - var(--cosm-manifest-spread)) at 66.7% 10.9%,
      transparent, #ff4dc4b0 var(--cosm-manifest-spread), transparent calc(var(--cosm-manifest-spread) * 2));
  -webkit-mask-image: linear-gradient(#000 20%, transparent 85%);
  mask-image: linear-gradient(#000 20%, transparent 85%);
  mix-blend-mode: screen;
  opacity: 0.4;
}
.cosmEffect[data-cosm="effect-manifest-manifestival"] [data-part="dust"] {
  inset: 0;
  background: radial-gradient(circle at 28% 60%, #f8e8ff 0 0.6px, transparent 1.1px),
    radial-gradient(circle at 48% 32%, #d8f8ff 0 0.7px, transparent 1.2px),
    radial-gradient(circle at 65% 70%, #ffe4be 0 0.6px, transparent 1.1px);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-manifest-manifestival"] [data-part="stage"] {
    animation: cosmManifestStage 2.6s var(--cosm-ease-settle) both;
  }
  .cosmEffect[data-cosm="effect-manifest-manifestival"] [data-part="beams"] {
    animation: cosmManifestBeams 2.6s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  .cosmEffect[data-cosm="effect-manifest-manifestival"] [data-part="dust"] {
    animation: cosmManifestDust 3.2s ease-out both;
  }
}
/* The stage stays dimmed while the beams swing in, so the painted beams light up only once
   the moving ones have landed on them. */
@keyframes cosmManifestStage {
  from { opacity: 0; transform: scale(1.035); filter: brightness(0.4); }
  45% { opacity: 1; transform: none; filter: brightness(0.45); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes cosmManifestBeams {
  from { opacity: 0; --cosm-manifest-sweep: 42deg; --cosm-manifest-spread: 16deg; }
  12% { opacity: 1; }
  65% { opacity: 1; --cosm-manifest-sweep: 0deg; --cosm-manifest-spread: 7deg; }
  to { opacity: 0.4; --cosm-manifest-sweep: 0deg; --cosm-manifest-spread: 7deg; }
}
@keyframes cosmManifestDust {
  from { opacity: 0; transform: translateY(8px); }
  30% { opacity: 0.8; }
  to { opacity: 0; transform: translateY(-8px); }
}

.cosmEffect .cosmL {
  inset: auto;
}

/* Legendary signature scenes. Three bounded layers, one entrance, no live timers. */
.cosmEffect[data-cosm="effect-duat-judgement"] [data-part="sun"] {
  inset: 6px 45px auto auto;
  width: 62px;
  height: 62px;
  border: 1px solid #efd591;
  border-radius: 50%;
  background: radial-gradient(circle, #d3a95933 52%, transparent 53% 62%, #e4bc672e 63% 65%, transparent 66%);
  box-shadow: 0 0 18px #b6803826;
  opacity: 0.4;
}
.cosmEffect[data-cosm="effect-duat-judgement"] [data-part="scales"] {
  inset: 7px 8px auto auto;
  width: 145px;
  height: 76px;
  background: url("../../../assets/cosmetics/duat-scales.svg") center / contain no-repeat;
  transform-origin: 50% 30%;
  opacity: 0.62;
}
.cosmEffect[data-cosm="effect-duat-judgement"] [data-part="dust"] {
  inset: 12px 16px auto auto;
  width: 126px;
  height: 63px;
  background: radial-gradient(circle at 10% 40%, #ffe0a0 0 1px, transparent 2px),
    radial-gradient(circle at 84% 16%, #ffe0a0 0 1px, transparent 2px),
    radial-gradient(circle at 28% 82%, #ffe0a0 0 1px, transparent 2px),
    radial-gradient(circle at 91% 78%, #ffe0a0 0 1px, transparent 2px),
    radial-gradient(circle at 63% 64%, #ffe0a0 0 1px, transparent 2px);
  opacity: 0;
}

.cosmEffect[data-cosm="effect-powder-graffiti"] [data-part="paint"] {
  inset: 12px 12px auto auto;
  width: 137px;
  height: 63px;
  background: linear-gradient(160deg, #2abde26b, #225b893d);
  clip-path: polygon(8% 15%, 30% 20%, 26% 0, 49% 14%, 67% 3%, 66% 22%, 99% 15%, 86% 44%, 100% 65%, 74% 69%, 69% 100%, 52% 77%, 23% 94%, 29% 71%, 0 78%, 13% 46%, 0 34%);
  transform: rotate(-7deg);
  opacity: 0.62;
}
.cosmEffect[data-cosm="effect-powder-graffiti"] [data-part="monkey"] {
  inset: 12px 32px auto auto;
  width: 86px;
  height: 66px;
  background: url("../../../assets/cosmetics/powder-seal.svg") center / contain no-repeat;
  transform: rotate(-9deg);
  opacity: 0.66;
}
.cosmEffect[data-cosm="effect-powder-graffiti"] [data-part="spark"] {
  inset: 12px 13px auto auto;
  width: 130px;
  height: 60px;
  background: linear-gradient(30deg, transparent 45%, #f7badf 46% 54%, transparent 55%) right top / 16px 12px no-repeat,
    linear-gradient(-35deg, transparent 45%, #85e6fa 46% 54%, transparent 55%) left center / 15px 12px no-repeat,
    linear-gradient(60deg, transparent 45%, #f7badf 46% 54%, transparent 55%) right bottom / 12px 16px no-repeat;
  opacity: 0;
}

.cosmEffect[data-cosm="effect-sparta-reckoning"] [data-part="frost"] {
  inset: 5px 13px auto auto;
  width: 142px;
  height: 77px;
  background: #a3e1ef;
  clip-path: polygon(49% 47%, 24% 7%, 45% 43%, 10% 30%, 43% 48%, 0 66%, 45% 52%, 27% 96%, 49% 55%, 74% 98%, 54% 53%, 100% 76%, 58% 50%, 94% 19%, 54% 45%, 68% 0);
  opacity: 0.23;
}
.cosmEffect[data-cosm="effect-sparta-reckoning"] [data-part="blades"] {
  inset: 3px 8px auto auto;
  width: 146px;
  height: 80px;
  background: url("../../../assets/cosmetics/sparta-blades.svg") center / contain no-repeat;
  opacity: 0.62;
}
.cosmEffect[data-cosm="effect-sparta-reckoning"] [data-part="embers"] {
  inset: 12px 18px auto auto;
  width: 125px;
  height: 63px;
  background: radial-gradient(ellipse at 20% 65%, #ffb280 0 1px, transparent 2px),
    radial-gradient(ellipse at 45% 90%, #ffd2a3 0 1px, transparent 2px),
    radial-gradient(ellipse at 75% 45%, #ffb280 0 1px, transparent 2px),
    radial-gradient(ellipse at 89% 78%, #ff917b 0 1px, transparent 2px);
  opacity: 0;
}

/* Mitik · Ejder Nefesi: the eye opens at the banner's right, then breathes fire to the left. The
   flame stays above the avatar line; at rest only the open eye and a faint scorch remain. */
.cosmEffect[data-cosm="effect-dragon-breath"] [data-part="flame"] {
  inset: 14px 104px auto auto;
  width: 136px;
  height: 41px;
  background: url("../../../assets/cosmetics/dragon-flame.svg") center / contain no-repeat;
  transform-origin: 100% 50%;
  opacity: 0.16;
}
.cosmEffect[data-cosm="effect-dragon-breath"] [data-part="eye"] {
  inset: 6px 8px auto auto;
  width: 112px;
  height: 56px;
  background: url("../../../assets/cosmetics/dragon-eye.svg") center / contain no-repeat;
  opacity: 0.62;
}
.cosmEffect[data-cosm="effect-dragon-breath"] [data-part="embers"] {
  inset: 6px 60px auto auto;
  width: 180px;
  height: 62px;
  background: radial-gradient(circle at 12% 70%, #ffd27a 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 30% 40%, #ff9a4c 0 1px, transparent 2px),
    radial-gradient(circle at 46% 82%, #ffe7a3 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 63% 30%, #ff7a45 0 1px, transparent 2px),
    radial-gradient(circle at 80% 68%, #ffd27a 0 1px, transparent 2px),
    radial-gradient(circle at 92% 22%, #ffb52e 0 1.2px, transparent 2.2px);
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-dragon-breath"] [data-part="eye"] {
    animation: cosmDragonEyeOpen 2.4s var(--cosm-ease-settle) both;
  }
  .cosmEffect[data-cosm="effect-dragon-breath"] [data-part="flame"] {
    animation: cosmDragonBreath 2s 0.85s var(--cosm-ease-settle) both;
  }
  .cosmEffect[data-cosm="effect-dragon-breath"] [data-part="embers"] {
    animation: cosmDragonEmbers 2.3s 1.1s ease-out both;
  }
}
@keyframes cosmDragonEyeOpen {
  0% { opacity: 0; transform: scaleY(0.08); }
  28% { opacity: 1; transform: scaleY(0.08); }
  48% { transform: scaleY(1.06); }
  58% { opacity: 1; transform: none; }
  100% { opacity: 0.62; transform: none; }
}
@keyframes cosmDragonBreath {
  0% { opacity: 0; transform: scaleX(0.05) scaleY(0.6); }
  22% { opacity: 1; transform: scaleX(1.05) scaleY(1.1); }
  45% { opacity: 0.85; transform: scaleX(0.97) scaleY(0.95); }
  100% { opacity: 0.16; transform: none; }
}
@keyframes cosmDragonEmbers {
  0% { opacity: 0; transform: translateY(10px); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-22px); }
}

@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-duat-judgement"] [data-part="sun"] {
    animation: cosmDuatSun 2.6s var(--cosm-ease-settle) both;
  }
  .cosmEffect[data-cosm="effect-duat-judgement"] [data-part="scales"] {
    animation: cosmDuatBalance 2.8s 0.15s var(--cosm-ease-settle) both;
  }
  .cosmEffect[data-cosm="effect-duat-judgement"] [data-part="dust"] {
    animation: cosmDuatDust 2.2s 0.5s ease-out both;
  }
  .cosmEffect[data-cosm="effect-powder-graffiti"] [data-part="paint"] {
    animation: cosmPowderPaint 1.4s var(--cosm-ease-settle) both;
  }
  .cosmEffect[data-cosm="effect-powder-graffiti"] [data-part="monkey"] {
    animation: cosmPowderStamp 1.8s 0.18s var(--cosm-ease-settle) both;
  }
  .cosmEffect[data-cosm="effect-powder-graffiti"] [data-part="spark"] {
    animation: cosmPowderSparks 0.9s 0.3s ease-out both;
  }
  .cosmEffect[data-cosm="effect-sparta-reckoning"] [data-part="frost"] {
    animation: cosmSpartaFrost 2.2s var(--cosm-ease-settle) both;
  }
  .cosmEffect[data-cosm="effect-sparta-reckoning"] [data-part="blades"] {
    animation: cosmSpartaBlades 2.5s 0.12s var(--cosm-ease-settle) both;
  }
  .cosmEffect[data-cosm="effect-sparta-reckoning"] [data-part="embers"] {
    animation: cosmSpartaEmbers 2.3s 0.4s ease-out both;
  }
}
@keyframes cosmDuatSun {
  0% { opacity: 0; transform: translateY(16px) scale(0.8); }
  35% { opacity: 0.85; }
  100% { opacity: 0.4; transform: none; }
}
@keyframes cosmDuatBalance {
  0% { opacity: 0; transform: rotate(-12deg) translateY(5px); }
  40% { opacity: 1; transform: rotate(5deg); }
  70% { transform: rotate(-2deg); }
  100% { opacity: 0.62; transform: none; }
}
@keyframes cosmDuatDust {
  0% { opacity: 0; transform: translateY(-8px); }
  30% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(16px); }
}
@keyframes cosmPowderPaint {
  0% { opacity: 0; transform: rotate(-15deg) scaleX(0.25); }
  25% { opacity: 1; }
  100% { opacity: 0.62; transform: rotate(-7deg); }
}
@keyframes cosmPowderStamp {
  0% { opacity: 0; transform: rotate(12deg) scale(1.6); }
  22% { opacity: 1; transform: rotate(-13deg) scale(0.94); }
  38% { transform: rotate(-9deg) scale(1); }
  100% { opacity: 0.66; transform: rotate(-9deg); }
}
@keyframes cosmPowderSparks {
  0% { opacity: 0; transform: scale(0.55); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.15); }
}
@keyframes cosmSpartaFrost {
  0% { opacity: 0; transform: scale(0.4); }
  20% { opacity: 0.85; transform: scale(1); }
  100% { opacity: 0.23; transform: none; }
}
@keyframes cosmSpartaBlades {
  0% { opacity: 0; transform: translateY(-12px) rotate(-9deg); }
  24% { opacity: 1; transform: translateY(2px) rotate(1deg); }
  45% { transform: none; }
  100% { opacity: 0.62; transform: none; }
}
@keyframes cosmSpartaEmbers {
  0% { opacity: 0; transform: translateY(10px); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-20px); }
}

/* Mitik · Moskova Finali: flashes pop in the stands, rain sweeps the banner, the number seven (the
   owner's cut-out photo, leaning on the corner flag) slides in over a red floor light, the gold
   keyline seven settles behind him and one light scan passes. At rest the glow, the seven and the
   player stay at the banner's right; the avatar and the name stay clear. */
.cosmEffect[data-cosm="effect-cr7-final"] [data-part="glow"] {
  inset: 26px 0 auto auto;
  width: 170px;
  height: 58px;
  background: radial-gradient(closest-side, rgb(180 18 44 / 0.5), rgb(120 10 30 / 0.18) 60%, transparent);
  opacity: 0.8;
}
.cosmEffect[data-cosm="effect-cr7-final"] [data-part="seven"] {
  inset: 14px 60px auto auto;
  width: 46px;
  height: 62px;
  background: url("../../../assets/cosmetics/cr7-seven.svg") center / contain no-repeat;
  opacity: 0.6;
}
/* The photo is cut at the calves, so it stands on the banner's lower edge and fades into it. */
.cosmEffect[data-cosm="effect-cr7-final"] [data-part="player"] {
  inset: 12px 22px auto auto;
  width: 47px;
  height: 72px;
  background: url("../../../assets/cosmetics/cr7-photo.svg") center bottom / contain no-repeat;
  filter: drop-shadow(0 0 4px rgb(200 30 55 / 0.4)) drop-shadow(0 2px 3px rgb(0 0 0 / 0.6));
  -webkit-mask: linear-gradient(#000 76%, transparent);
  mask: linear-gradient(#000 76%, transparent);
  opacity: 0.94;
}
.cosmEffect[data-cosm="effect-cr7-final"] :is([data-part="rain"], [data-part="flash"], [data-part="scan"]) {
  inset: 0 0 auto auto;
  width: 220px;
  height: var(--cosm-banner-height, 84px);
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 30%);
  mask: linear-gradient(90deg, transparent, #000 30%);
}
.cosmEffect[data-cosm="effect-cr7-final"] [data-part="rain"]::before {
  content: "";
  inset: -180px 0 0;
  background: url("../../../assets/cosmetics/cr7-rain.svg") 0 0 / 40px 60px repeat;
  opacity: 0;
}
.cosmEffect[data-cosm="effect-cr7-final"] [data-part="flash"] {
  background:
    radial-gradient(circle at 22% 20%, #fff 0 1px, rgb(255 255 255 / 0.45) 2.2px, transparent 7px),
    radial-gradient(circle at 48% 58%, #fff 0 1px, rgb(255 255 255 / 0.4) 2px, transparent 6px),
    radial-gradient(circle at 70% 14%, #fff 0 1px, rgb(255 255 255 / 0.45) 2.2px, transparent 7px),
    radial-gradient(circle at 93% 44%, #fff 0 1px, rgb(255 255 255 / 0.4) 2px, transparent 6px);
  opacity: 0;
}
.cosmEffect[data-cosm="effect-cr7-final"] [data-part="scan"]::before {
  content: "";
  inset: -10% auto -10% 0;
  width: 26%;
  background: linear-gradient(100deg, transparent, rgb(255 240 228 / 0.18) 40%, rgb(255 252 246 / 0.42) 50%, transparent 60%);
  transform: translateX(-130%) skewX(-12deg);
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-cr7-final"] [data-part="flash"] {
    animation: cosmCr7Flashes 1.7s ease-out both;
  }
  .cosmEffect[data-cosm="effect-cr7-final"] [data-part="rain"]::before {
    animation: cosmCr7Rain 2.6s linear both;
  }
  .cosmEffect[data-cosm="effect-cr7-final"] [data-part="glow"] {
    animation: cosmCr7Glow 1.6s 0.3s var(--cosm-ease-settle) both;
  }
  .cosmEffect[data-cosm="effect-cr7-final"] [data-part="player"] {
    animation: cosmCr7Entrance 1.7s 0.45s var(--cosm-ease-settle) both;
  }
  .cosmEffect[data-cosm="effect-cr7-final"] [data-part="seven"] {
    animation: cosmCr7Numeral 1.6s 0.95s var(--cosm-ease-settle) both;
  }
  .cosmEffect[data-cosm="effect-cr7-final"] [data-part="scan"]::before {
    animation: cosmCr7Scan 1.3s 1.5s var(--cosm-ease-sweep) both;
  }
}
@keyframes cosmCr7Flashes {
  0% { opacity: 0; transform: scale(0.9); }
  8% { opacity: 1; transform: none; }
  16% { opacity: 0.1; }
  30% { opacity: 0.9; transform: translateX(-6px); }
  40% { opacity: 0; }
  58% { opacity: 0.8; transform: translateX(4px) scale(1.05); }
  100% { opacity: 0; transform: none; }
}
@keyframes cosmCr7Rain {
  0% { opacity: 0; transform: translateY(0); }
  12% { opacity: 0.5; }
  70% { opacity: 0.45; }
  100% { opacity: 0; transform: translateY(180px); }
}
@keyframes cosmCr7Glow {
  0% { opacity: 0; transform: scaleX(0.4); }
  45% { opacity: 1; transform: scaleX(1.05); }
  100% { opacity: 0.8; transform: none; }
}
@keyframes cosmCr7Entrance {
  0% { opacity: 0; transform: translateX(60px); }
  50% { opacity: 1; transform: translateX(-2px); }
  70% { transform: none; }
  100% { opacity: 0.94; transform: none; }
}
@keyframes cosmCr7Numeral {
  0% { opacity: 0; transform: scale(1.25); }
  40% { opacity: 0.95; transform: scale(0.98); }
  60% { transform: none; }
  100% { opacity: 0.6; transform: none; }
}
@keyframes cosmCr7Scan {
  0% { opacity: 0; transform: translateX(-130%) skewX(-12deg); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateX(420%) skewX(-12deg); }
}

/* Will of Fire · Rasengan: an eight-trigram seal turns into place at the banner's right, a chakra
   sphere gathers inside it while the swirl spins down, and leaves scatter once. At rest the faint
   seal and a calm sphere remain; the avatar and the name stay clear. */
.cosmEffect[data-cosm="effect-konoha-rasengan"] [data-part="seal"] {
  inset: 2px 22px auto auto;
  width: 80px;
  height: 80px;
  background: url("../../../assets/cosmetics/konoha-seal.svg") center / contain no-repeat;
  opacity: 0.3;
}
.cosmEffect[data-cosm="effect-konoha-rasengan"] [data-part="orb"] {
  inset: 21px 41px auto auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff 0 14%, #d9f6ff 26%, #84d6ff 48%, #2f86f0 76%,
    rgb(27 85 201 / 0.7) 92%, transparent);
  box-shadow: 0 0 18px rgb(110 200 255 / 0.45);
  opacity: 0.5;
}
.cosmEffect[data-cosm="effect-konoha-rasengan"] [data-part="swirl"] {
  inset: 10px 30px auto auto;
  width: 64px;
  height: 64px;
  background: url("../../../assets/cosmetics/konoha-rasengan.svg") center / contain no-repeat;
  opacity: 0.5;
}
.cosmEffect[data-cosm="effect-konoha-rasengan"] [data-part="leaves"] {
  inset: 0 4px auto auto;
  width: 170px;
  height: 84px;
  background: url("../../../assets/cosmetics/konoha-leaves.svg") center / contain no-repeat;
  transform-origin: 66% 50%;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-konoha-rasengan"] [data-part="seal"] {
    animation: cosmKonohaSeal 2.6s var(--cosm-ease-settle) both;
  }
  .cosmEffect[data-cosm="effect-konoha-rasengan"] [data-part="orb"] {
    animation: cosmKonohaOrb 2.4s 0.35s var(--cosm-ease-settle) both;
  }
  .cosmEffect[data-cosm="effect-konoha-rasengan"] [data-part="swirl"] {
    animation: cosmKonohaSwirl 2.8s 0.3s cubic-bezier(0.15, 0.6, 0.25, 1) both;
  }
  .cosmEffect[data-cosm="effect-konoha-rasengan"] [data-part="leaves"] {
    animation: cosmKonohaLeaves 2.4s 0.7s ease-out both;
  }
}
@keyframes cosmKonohaSeal {
  0% { opacity: 0; transform: rotate(-120deg) scale(0.55); }
  35% { opacity: 0.75; transform: rotate(-8deg) scale(1.04); }
  55% { transform: none; }
  100% { opacity: 0.3; transform: none; }
}
@keyframes cosmKonohaOrb {
  0% { opacity: 0; transform: scale(0.1); }
  30% { opacity: 1; transform: scale(1.22); }
  45% { transform: scale(0.94); }
  60% { opacity: 0.95; transform: scale(1.06); }
  100% { opacity: 0.5; transform: none; }
}
/* Four full turns, slowing down: the last frame matches the unrotated resting look. */
@keyframes cosmKonohaSwirl {
  0% { opacity: 0; transform: rotate(0deg) scale(0.3); }
  25% { opacity: 1; transform: rotate(360deg) scale(1.15); }
  100% { opacity: 0.5; transform: rotate(1440deg) scale(1); }
}
@keyframes cosmKonohaLeaves {
  0% { opacity: 0; transform: translateX(-6px) scale(0.5) rotate(-25deg); }
  25% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translate(-18px, 8px) rotate(12deg) scale(1.08); }
}

/* ─── Yalın · Işık Geçişi (seçkin) ─── */
.cosmEffect[data-cosm="effect-soft-sweep"] [data-part="sheen"] {
  inset: 0 0 auto;
  height: var(--cosm-banner-height, 84px);
  background: linear-gradient(115deg, transparent 52%, rgb(255 255 255 / 0.09) 68%, transparent 84%);
}

.cosmEffect[data-cosm="effect-soft-sweep"] [data-part="sweep"] {
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 46%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.14) 38%, rgb(255 255 255 / 0.3) 50%, rgb(255 255 255 / 0.14) 62%, transparent);
  opacity: 0;
  transform: translateX(-110%) skewX(-12deg);
}

@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-soft-sweep"] [data-part="sweep"] {
    animation: cosmSoftSweep 1.5s var(--cosm-ease-sweep) 0.15s both;
  }
}

@keyframes cosmSoftSweep {
  0% { opacity: 1; transform: translateX(-110%) skewX(-12deg); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateX(260%) skewX(-12deg); }
}

/* ─── Astral · Yıldız Tozu (seçkin) ─── */
.cosmEffect[data-cosm="effect-light-dust"] [data-part="particle"] {
  width: clamp(2px, 1.3%, 5px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, #faf5ff, rgb(196 181 253 / 0.85) 60%, transparent);
  opacity: 0.4;
}

.cosmEffect[data-cosm="effect-light-dust"] [data-part="particle"]:nth-child(4n) {
  width: clamp(5px, 2.6%, 9px);
  border-radius: 0;
  background: radial-gradient(closest-side, #fff 0 22%, rgb(221 214 254 / 0.9) 40%, transparent 72%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

.cosmEffect[data-cosm="effect-light-dust"] .cosmL1 { left: 6%; top: 16%; }
.cosmEffect[data-cosm="effect-light-dust"] .cosmL2 { left: 14%; top: 26%; }
.cosmEffect[data-cosm="effect-light-dust"] .cosmL3 { left: 42%; top: 11%; }
.cosmEffect[data-cosm="effect-light-dust"] .cosmL4 { left: 33%; top: 20%; }
.cosmEffect[data-cosm="effect-light-dust"] .cosmL5 { left: 40%; top: 6%; }
.cosmEffect[data-cosm="effect-light-dust"] .cosmL6 { left: 50%; top: 24%; }
.cosmEffect[data-cosm="effect-light-dust"] .cosmL7 { left: 57%; top: 13%; }
.cosmEffect[data-cosm="effect-light-dust"] .cosmL8 { left: 66%; top: 22%; }
.cosmEffect[data-cosm="effect-light-dust"] .cosmL9 { left: 74%; top: 9%; }
.cosmEffect[data-cosm="effect-light-dust"] .cosmL10 { left: 82%; top: 25%; }
.cosmEffect[data-cosm="effect-light-dust"] .cosmL11 { left: 89%; top: 14%; }
.cosmEffect[data-cosm="effect-light-dust"] .cosmL12 { left: 94%; top: 28%; }

@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-light-dust"] [data-part="particle"] {
    animation: cosmDust 3.2s var(--cosm-ease-settle) both;
  }

  .cosmEffect[data-cosm="effect-light-dust"] [data-part="particle"]:nth-child(3n) { animation-delay: 0.35s; animation-duration: 2.8s; }
  .cosmEffect[data-cosm="effect-light-dust"] [data-part="particle"]:nth-child(3n + 1) { animation-delay: 0.7s; }
  .cosmEffect[data-cosm="effect-light-dust"] [data-part="particle"]:nth-child(4n) { animation-duration: 3.6s; }
}

@keyframes cosmDust {
  0% { opacity: 0; transform: translateY(-40px); }
  25% { opacity: 1; }
  100% { opacity: 0.4; transform: translateY(0); }
}

/* ─── Sinyal · Osiloskop (nadir) ─── */
.cosmEffect[data-cosm="effect-oscilloscope"] [data-part="grid"] {
  inset: 0 0 auto;
  height: var(--cosm-banner-height, 84px);
  background:
    repeating-linear-gradient(0deg, rgb(94 234 212 / 0.12) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(90deg, rgb(94 234 212 / 0.12) 0 1px, transparent 1px 14px);
  opacity: 0;
}

.cosmEffect[data-cosm="effect-oscilloscope"] [data-part="wave"] {
  left: 0;
  right: 0;
  top: 9%;
  height: 22%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 H40 L48 26 L56 34 L64 30 H92 L98 12 L106 50 L114 6 L122 54 L130 18 L138 40 L146 30 H176 L184 22 L192 38 L200 30 H300' fill='none' stroke='%2367e8f9' stroke-width='2' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 0 3px rgb(103 232 249 / var(--cosm-glow-soft)));
  opacity: 0.3;
}

/* The sweep head: a glowing vertical line that draws the wave. */
.cosmEffect[data-cosm="effect-oscilloscope"] [data-part="beam"] {
  left: 0;
  right: 0;
  top: 7%;
  height: 26%;
  opacity: 0;
}

.cosmEffect[data-cosm="effect-oscilloscope"] [data-part="beam"]::before {
  content: "";
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, #ccfbf1 30% 70%, transparent);
  box-shadow: 0 0 8px rgb(103 232 249 / var(--cosm-glow-strong));
}

@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-oscilloscope"] [data-part="grid"] {
    animation: cosmScopeGrid 2.6s ease-out both;
  }

  .cosmEffect[data-cosm="effect-oscilloscope"] [data-part="wave"] {
    animation: cosmTrace 2.6s ease-out both;
  }

  .cosmEffect[data-cosm="effect-oscilloscope"] [data-part="beam"] {
    animation: cosmBeam 1.4s linear both;
  }
}

@keyframes cosmScopeGrid {
  0% { opacity: 0; }
  20% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes cosmTrace {
  0% { opacity: 1; clip-path: inset(0 100% 0 0); }
  54% { opacity: 1; clip-path: inset(0 0 0 0); }
  100% { opacity: 0.3; clip-path: inset(0 0 0 0); }
}

@keyframes cosmBeam {
  0% { opacity: 1; transform: translateX(0); }
  92% { opacity: 1; }
  100% { opacity: 0; transform: translateX(100%); }
}

/* ─── Gece · Yıldız Kayması (nadir) ─── */
.cosmEffect[data-cosm="effect-shooting-star"] [data-part="streak"] {
  top: 12%;
  right: 4%;
  width: 118px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #fff, rgb(199 210 254 / 0.6) 22%, transparent);
  box-shadow: -1px 0 6px rgb(224 231 255 / var(--cosm-glow-strong));
  rotate: -20deg;
  opacity: 0;
}

.cosmEffect[data-cosm="effect-shooting-star"] [data-part="star"] {
  width: var(--s, 6px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, #fff 0 22%, rgb(224 231 255 / 0.9) 40%, transparent 72%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  opacity: 0.6;
}

.cosmEffect[data-cosm="effect-shooting-star"] .cosmL2 { left: 48%; top: 10%; --s: 7px; }
.cosmEffect[data-cosm="effect-shooting-star"] .cosmL3 { left: 62%; top: 26%; --s: 5px; }
.cosmEffect[data-cosm="effect-shooting-star"] .cosmL4 { left: 76%; top: 8%; --s: 9px; }
.cosmEffect[data-cosm="effect-shooting-star"] .cosmL5 { left: 88%; top: 22%; --s: 5px; }
.cosmEffect[data-cosm="effect-shooting-star"] .cosmL6 { left: 38%; top: 24%; --s: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-shooting-star"] [data-part="streak"] {
    animation: cosmShootingStar 1.2s cubic-bezier(0.4, 0, 0.9, 0.6) 0.1s both;
  }

  .cosmEffect[data-cosm="effect-shooting-star"] [data-part="star"] {
    animation: cosmStarAppear 1.6s var(--cosm-ease-settle) 0.9s both;
  }

  .cosmEffect[data-cosm="effect-shooting-star"] .cosmL3 { animation-delay: 1.05s; }
  .cosmEffect[data-cosm="effect-shooting-star"] .cosmL4 { animation-delay: 1.2s; }
  .cosmEffect[data-cosm="effect-shooting-star"] .cosmL5 { animation-delay: 1.35s; }
  .cosmEffect[data-cosm="effect-shooting-star"] .cosmL6 { animation-delay: 1.5s; }
}

@keyframes cosmShootingStar {
  0% { opacity: 0; transform: translateX(0) scaleX(0.4); }
  15% { opacity: 1; transform: translateX(-30px) scaleX(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-250px) scaleX(0.7); }
}

@keyframes cosmStarAppear {
  0% { opacity: 0; transform: scale(0.3); }
  45% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0.6; transform: scale(1); }
}

/* ─── Kızıl · Kayıt Başladı (epik) ─── */
.cosmEffect[data-cosm="effect-rec-start"] [data-part="vignette"] {
  inset: 0;
  box-shadow: inset 0 0 42px rgb(239 68 68 / 0.45);
  opacity: 0;
}

.cosmEffect[data-cosm="effect-rec-start"] [data-part="ring"] {
  left: var(--cosm-avatar-x, 50%);
  top: var(--cosm-avatar-y, 40%);
  width: var(--cosm-avatar-size, 80px);
  aspect-ratio: 1;
  border: 2px solid #ff4d4d;
  border-radius: 50%;
  translate: -50% -50%;
  opacity: 0;
}

.cosmEffect[data-cosm="effect-rec-start"] [data-part="badge"] {
  top: 12px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.9;
}

.cosmEffect[data-cosm="effect-rec-start"] [data-part="badge"]::before {
  content: "";
  position: static;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #ffd4d4, #ff3b3b 55%, #b91c1c);
  box-shadow: 0 0 6px rgb(255 59 59 / var(--cosm-glow-strong));
}

.cosmEffect[data-cosm="effect-rec-start"] [data-part="badge"]::after {
  content: "REC";
  position: static;
  color: #ffe1e1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.5);
}

@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-rec-start"] [data-part="vignette"] {
    animation: cosmRecVignette 1.8s ease-out both;
  }

  .cosmEffect[data-cosm="effect-rec-start"] [data-part="ring"] {
    animation: cosmRecRing 1.6s cubic-bezier(0.2, 0.6, 0.3, 1) both;
  }

  .cosmEffect[data-cosm="effect-rec-start"] .cosmL3 { animation-delay: 0.35s; }

  .cosmEffect[data-cosm="effect-rec-start"] [data-part="badge"] {
    animation: cosmRecBadge 2.2s linear both;
  }
}

@keyframes cosmRecVignette {
  0% { opacity: 0; }
  20% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes cosmRecRing {
  0% { opacity: 0.95; transform: scale(0.95); }
  100% { opacity: 0; transform: scale(2.8); }
}

@keyframes cosmRecBadge {
  0%, 30% { opacity: 0; }
  38% { opacity: 1; }
  52% { opacity: 0.25; }
  66% { opacity: 1; }
  100% { opacity: 0.9; }
}

/* ─── Miras · Altın Varak (epik) ─── */
.cosmEffect[data-cosm="effect-gold-leaf"] [data-part="flake"] {
  bottom: var(--y, 6px);
  left: var(--x, 50%);
  width: var(--w, 7px);
  height: calc(var(--w, 7px) * 0.6);
  border-radius: 1px;
  background: linear-gradient(135deg, #fff1c7, #e5c27a 40%, #b8913f 70%, #8a6a2c);
  box-shadow: 0 0 4px rgb(251 231 176 / var(--cosm-glow-soft));
  rotate: var(--rot, 0deg);
  opacity: 0.75;
}

.cosmEffect[data-cosm="effect-gold-leaf"] .cosmL1 { --x: 6%; --y: 7px; --w: 7px; --rot: 18deg; --sway: 14px; }
.cosmEffect[data-cosm="effect-gold-leaf"] .cosmL2 { --x: 15%; --y: 4px; --w: 5px; --rot: -30deg; --sway: -10px; }
.cosmEffect[data-cosm="effect-gold-leaf"] .cosmL3 { --x: 26%; --y: 9px; --w: 8px; --rot: 42deg; --sway: 18px; }
.cosmEffect[data-cosm="effect-gold-leaf"] .cosmL4 { --x: 38%; --y: 5px; --w: 6px; --rot: -12deg; --sway: -16px; }
.cosmEffect[data-cosm="effect-gold-leaf"] .cosmL5 { --x: 49%; --y: 8px; --w: 9px; --rot: 26deg; --sway: 12px; }
.cosmEffect[data-cosm="effect-gold-leaf"] .cosmL6 { --x: 60%; --y: 4px; --w: 5px; --rot: -40deg; --sway: -12px; }
.cosmEffect[data-cosm="effect-gold-leaf"] .cosmL7 { --x: 70%; --y: 10px; --w: 7px; --rot: 8deg; --sway: 16px; }
.cosmEffect[data-cosm="effect-gold-leaf"] .cosmL8 { --x: 80%; --y: 6px; --w: 6px; --rot: -24deg; --sway: -14px; }
.cosmEffect[data-cosm="effect-gold-leaf"] .cosmL9 { --x: 89%; --y: 8px; --w: 8px; --rot: 34deg; --sway: 10px; }
.cosmEffect[data-cosm="effect-gold-leaf"] .cosmL10 { --x: 95%; --y: 4px; --w: 5px; --rot: -8deg; --sway: -8px; }

@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-gold-leaf"] [data-part="flake"] {
    animation: cosmGoldLeaf 3s var(--cosm-ease-settle) both;
  }

  .cosmEffect[data-cosm="effect-gold-leaf"] [data-part="flake"]:nth-child(2n) { animation-delay: 0.3s; animation-duration: 3.3s; }
  .cosmEffect[data-cosm="effect-gold-leaf"] [data-part="flake"]:nth-child(3n) { animation-delay: 0.6s; }
}

@keyframes cosmGoldLeaf {
  0% { opacity: 0; transform: translate(0, -280px) rotate(-160deg); }
  12% { opacity: 1; }
  45% { transform: translate(var(--sway, 12px), -150px) rotate(-60deg); }
  75% { transform: translate(calc(var(--sway, 12px) * -0.5), -40px) rotate(-15deg); }
  100% { opacity: 0.75; transform: translate(0, 0) rotate(0deg); }
}

/* ─── Astral · Astral Kapı (efsanevi) ───
   A burst of light opens from the avatar, a rune circle swings into place around it
   while a dotted ring turns the other way, and sparks spiral outwards. It rests as a
   faint rune arc over the avatar. */
.cosmEffect[data-cosm="effect-astral-portal"] :is([data-part="burst"], [data-part="runes"], [data-part="dots"]) {
  left: var(--cosm-avatar-x, 50%);
  top: var(--cosm-avatar-y, 40%);
  aspect-ratio: 1;
  translate: -50% -50%;
}

.cosmEffect[data-cosm="effect-astral-portal"] [data-part="burst"] {
  width: 440px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(221 214 254 / 0.6), rgb(167 139 250 / 0.28) 35%, rgb(125 211 252 / 0.12) 55%, transparent 72%);
  opacity: 0;
}

.cosmEffect[data-cosm="effect-astral-portal"] :is([data-part="runes"], [data-part="dots"]) {
  --arc: linear-gradient(180deg, #000 52%, transparent 74%);
  -webkit-mask: var(--arc);
  mask: var(--arc);
}

.cosmEffect[data-cosm="effect-astral-portal"] [data-part="runes"] {
  width: calc(var(--cosm-avatar-size, 80px) * 1.62);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23d8ccff' stroke-linecap='round'%3E%3Ccircle cx='50' cy='50' r='47' stroke-width='.8' opacity='.8'/%3E%3Ccircle cx='50' cy='50' r='40.5' stroke-width='.6' opacity='.55'/%3E%3Cg stroke-width='1.1'%3E%3Cpath d='M50 5.2 V10.8 M48 7 L52 9'/%3E%3Cpath d='M66.6 8.3 L64.6 13.5 M63.4 9.8 L67.4 11.6'/%3E%3Cpath d='M80.3 16.9 L76.6 21 M77 16.8 L80.4 20.6'/%3E%3Cpath d='M89.8 30.4 L84.8 32.9 M86.2 29.4 L87.8 34'/%3E%3Cpath d='M94 50 H88.6 M91.3 47.4 V52.6'/%3E%3Cpath d='M33.4 8.3 L35.4 13.5 M32.6 11.6 L36.6 9.8'/%3E%3Cpath d='M19.7 16.9 L23.4 21 M19.6 20.6 L23 16.8'/%3E%3Cpath d='M10.2 30.4 L15.2 32.9 M12.2 34 L13.8 29.4'/%3E%3Cpath d='M6 50 H11.4 M8.7 47.4 V52.6'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 0 3px rgb(167 139 250 / var(--cosm-glow-strong)));
  opacity: 0.4;
}

.cosmEffect[data-cosm="effect-astral-portal"] [data-part="dots"] {
  width: calc(var(--cosm-avatar-size, 80px) * 1.44);
  border-radius: 50%;
  background: repeating-conic-gradient(rgb(186 230 253 / 0.9) 0 2deg, transparent 2deg 10deg);
  -webkit-mask: radial-gradient(closest-side, transparent 96%, #000 97% 99.5%, transparent 100%), var(--arc);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(closest-side, transparent 96%, #000 97% 99.5%, transparent 100%), var(--arc);
  mask-composite: intersect;
  opacity: 0.35;
}

.cosmEffect[data-cosm="effect-astral-portal"] [data-part="spark"] {
  left: var(--cosm-avatar-x, 50%);
  top: var(--cosm-avatar-y, 40%);
  width: 0;
  height: 0;
  rotate: var(--a, 0deg);
  --r: calc(var(--cosm-avatar-size, 80px) * 0.92);
}

.cosmEffect[data-cosm="effect-astral-portal"] [data-part="spark"]::before {
  content: "";
  left: -5px;
  top: calc(-5px - var(--r));
  width: 10px;
  height: 10px;
  background: radial-gradient(closest-side, #fff 0 22%, rgb(221 214 254 / 0.9) 40%, transparent 72%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  opacity: var(--rest, 0);
}

.cosmEffect[data-cosm="effect-astral-portal"] .cosmL4 { --a: -58deg; --rest: 0.55; }
.cosmEffect[data-cosm="effect-astral-portal"] .cosmL5 { --a: 4deg; --rest: 0.7; }
.cosmEffect[data-cosm="effect-astral-portal"] .cosmL6 { --a: 62deg; --rest: 0.5; }
.cosmEffect[data-cosm="effect-astral-portal"] .cosmL7 { --a: 118deg; }
.cosmEffect[data-cosm="effect-astral-portal"] .cosmL8 { --a: 178deg; }
.cosmEffect[data-cosm="effect-astral-portal"] .cosmL9 { --a: 238deg; }

@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-astral-portal"] [data-part="burst"] {
    animation: cosmPortalBurst 2s ease-out both;
  }

  .cosmEffect[data-cosm="effect-astral-portal"] [data-part="runes"] {
    animation: cosmPortalRunes 2.8s var(--cosm-ease-settle) both;
  }

  .cosmEffect[data-cosm="effect-astral-portal"] [data-part="dots"] {
    animation: cosmPortalDots 2.8s var(--cosm-ease-settle) both;
  }

  .cosmEffect[data-cosm="effect-astral-portal"] [data-part="spark"] {
    animation: cosmPortalSpiral 2.4s var(--cosm-ease-settle) 0.25s both;
  }

  .cosmEffect[data-cosm="effect-astral-portal"] [data-part="spark"]::before {
    animation: cosmPortalSpark 2.4s var(--cosm-ease-settle) 0.25s both;
  }
}

@keyframes cosmPortalBurst {
  0% { opacity: 0; transform: scale(0.15); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes cosmPortalRunes {
  0% { opacity: 0; transform: scale(0.55) rotate(-80deg); }
  40% { opacity: 1; transform: scale(1.03) rotate(-6deg); }
  100% { opacity: 0.4; transform: scale(1) rotate(0deg); }
}

@keyframes cosmPortalDots {
  0% { opacity: 0; transform: scale(0.7) rotate(120deg); }
  40% { opacity: 0.9; }
  100% { opacity: 0.35; transform: scale(1) rotate(0deg); }
}

@keyframes cosmPortalSpiral {
  0% { transform: rotate(-90deg); }
  100% { transform: rotate(0deg); }
}

@keyframes cosmPortalSpark {
  0% { opacity: 0; transform: translateY(var(--r)) scale(0); }
  45% { opacity: 1; transform: translateY(0) scale(1.2); }
  100% { opacity: var(--rest, 0); transform: translateY(0) scale(1); }
}

/* ─── Siber · Sinyal Bozulması (efsanevi) ───
   The card boots like a feed coming online: chroma-split bands jump across, a tear
   rolls down the card, then only fine scanlines remain on the banner. */
.cosmEffect[data-cosm="effect-signal-glitch"] [data-part="scanlines"] {
  inset: 0 0 auto;
  height: var(--cosm-banner-height, 84px);
  background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.05) 0 1px, transparent 1px 3px);
  opacity: 0.7;
}

.cosmEffect[data-cosm="effect-signal-glitch"] [data-part="band"] {
  left: -4%;
  right: -4%;
  background: linear-gradient(90deg, rgb(255 0 110 / 0.34), rgb(255 255 255 / 0.08) 50%, rgb(0 220 255 / 0.34));
  box-shadow: 0 -2px 0 rgb(0 220 255 / 0.35), 0 2px 0 rgb(255 0 110 / 0.35);
  opacity: 0;
}

.cosmEffect[data-cosm="effect-signal-glitch"] .cosmL2 { top: 14%; height: 7%; }
.cosmEffect[data-cosm="effect-signal-glitch"] .cosmL3 { top: 38%; height: 4%; }
.cosmEffect[data-cosm="effect-signal-glitch"] .cosmL4 { top: 61%; height: 10%; }

.cosmEffect[data-cosm="effect-signal-glitch"] [data-part="tear"] {
  inset: 0 0 auto;
  height: 18%;
  background: linear-gradient(180deg, transparent, rgb(34 225 255 / 0.16) 40%, rgb(255 79 216 / 0.16) 60%, transparent);
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-signal-glitch"] [data-part="scanlines"] {
    animation: cosmScanlines 1.8s ease-out both;
  }

  .cosmEffect[data-cosm="effect-signal-glitch"] [data-part="band"] {
    animation: cosmGlitch 0.85s steps(1, end) 2 both;
  }

  .cosmEffect[data-cosm="effect-signal-glitch"] .cosmL3 { animation-delay: 0.08s; }
  .cosmEffect[data-cosm="effect-signal-glitch"] .cosmL4 { animation-delay: 0.16s; }

  .cosmEffect[data-cosm="effect-signal-glitch"] [data-part="tear"] {
    animation: cosmTear 1.2s ease-in 0.55s both;
  }
}

@keyframes cosmScanlines {
  0% { opacity: 1; }
  100% { opacity: 0.7; }
}

@keyframes cosmGlitch {
  0% { opacity: 0; transform: translateX(0); }
  10% { opacity: 1; transform: translateX(-6%); }
  30% { opacity: 1; transform: translateX(5%); }
  45% { opacity: 0; }
  60% { opacity: 1; transform: translateX(-2%); }
  75%, 100% { opacity: 0; transform: translateX(0); }
}

@keyframes cosmTear {
  0% { opacity: 0; transform: translateY(-100%); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateY(560%); }
}

/* ─── Duman · Tüten Duman (epik) ───
   Columns of smoke rise from the bottom of the card, lean, split into strands, widen and thin
   out as they climb towards the banner; then a low, faint haze settles along the bottom edge.
   Each column is a soft SVG plume drawn once (three shapes, one mirrored), so only transform and
   opacity change while it plays. The columns keep to the card's sides, clear of the name. */
.cosmEffect[data-cosm="effect-smoke-rise"] [data-part="plume"] {
  left: var(--x);
  bottom: -30px;
  width: var(--w, 90px);
  aspect-ratio: 100 / 220;
  translate: -50% 0;
  transform-origin: 50% 100%;
  background: var(--plume) center / 100% 100% no-repeat;
  /* The column's foot is always soft, wherever it has risen to. */
  -webkit-mask: linear-gradient(0deg, transparent, #000 24%);
  mask: linear-gradient(0deg, transparent, #000 24%);
  /* Resting look: the plume's dense base, squashed into a low haze. */
  opacity: 0.26;
  transform: translateY(26%) scale(1.2, 0.62);
}

.cosmEffect[data-cosm="effect-smoke-rise"] :is(.cosmL1, .cosmL4) { --plume: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 220'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='1' x2='0' y2='0'%3E%3Cstop offset='0' stop-color='%23e8edf0' stop-opacity='0'/%3E%3Cstop offset='.12' stop-color='%23e8edf0' stop-opacity='.55'/%3E%3Cstop offset='.5' stop-color='%23e2e8ec' stop-opacity='.32'/%3E%3Cstop offset='1' stop-color='%23dfe5ea' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-40%25' y='-40%25' width='180%25' height='180%25'%3E%3CfeGaussianBlur in='SourceGraphic' stdDeviation='4.5' result='b'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.016 0.026' numOctaves='2' seed='2' result='t'/%3E%3CfeDisplacementMap in='b' in2='t' scale='22' xChannelSelector='R' yChannelSelector='G'/%3E%3CfeGaussianBlur stdDeviation='1.6'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23f)' fill='none' stroke='url(%23g)' stroke-linecap='round'%3E%3Cpath d='M50 224 C32.0 180 72.0 140 48.0 104 C26.0 72 60.0 44 54.0 8' stroke-width='26'/%3E%3Cpath d='M48.0 104 C68.0 84 80.0 70 76.0 40 C74.0 26 84.0 18 90.0 12' stroke-width='8'/%3E%3Cpath d='M52 224 C44.0 196 24.0 170 30.0 140 C34.0 116 16.0 96 20.0 70' stroke-width='9'/%3E%3C/g%3E%3C/svg%3E"); }
.cosmEffect[data-cosm="effect-smoke-rise"] .cosmL2 { --plume: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 220'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='1' x2='0' y2='0'%3E%3Cstop offset='0' stop-color='%23e8edf0' stop-opacity='0'/%3E%3Cstop offset='.12' stop-color='%23e8edf0' stop-opacity='.55'/%3E%3Cstop offset='.5' stop-color='%23e2e8ec' stop-opacity='.32'/%3E%3Cstop offset='1' stop-color='%23dfe5ea' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-40%25' y='-40%25' width='180%25' height='180%25'%3E%3CfeGaussianBlur in='SourceGraphic' stdDeviation='4.5' result='b'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.016 0.026' numOctaves='2' seed='7' result='t'/%3E%3CfeDisplacementMap in='b' in2='t' scale='22' xChannelSelector='R' yChannelSelector='G'/%3E%3CfeGaussianBlur stdDeviation='1.6'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23f)' fill='none' stroke='url(%23g)' stroke-linecap='round'%3E%3Cpath d='M50 224 C68.0 180 28.0 140 52.0 104 C74.0 72 40.0 44 46.0 8' stroke-width='26'/%3E%3Cpath d='M52.0 104 C32.0 84 20.0 70 24.0 40 C26.0 26 16.0 18 10.0 12' stroke-width='8'/%3E%3Cpath d='M52 224 C56.0 196 76.0 170 70.0 140 C66.0 116 84.0 96 80.0 70' stroke-width='9'/%3E%3C/g%3E%3C/svg%3E"); }
.cosmEffect[data-cosm="effect-smoke-rise"] .cosmL3 { --plume: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 220'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='1' x2='0' y2='0'%3E%3Cstop offset='0' stop-color='%23e8edf0' stop-opacity='0'/%3E%3Cstop offset='.12' stop-color='%23e8edf0' stop-opacity='.55'/%3E%3Cstop offset='.5' stop-color='%23e2e8ec' stop-opacity='.32'/%3E%3Cstop offset='1' stop-color='%23dfe5ea' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-40%25' y='-40%25' width='180%25' height='180%25'%3E%3CfeGaussianBlur in='SourceGraphic' stdDeviation='4.5' result='b'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.016 0.026' numOctaves='2' seed='13' result='t'/%3E%3CfeDisplacementMap in='b' in2='t' scale='22' xChannelSelector='R' yChannelSelector='G'/%3E%3CfeGaussianBlur stdDeviation='1.6'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23f)' fill='none' stroke='url(%23g)' stroke-linecap='round'%3E%3Cpath d='M50 224 C39.2 180 63.2 140 48.8 104 C35.6 72 56.0 44 52.4 8' stroke-width='26'/%3E%3Cpath d='M48.8 104 C60.8 84 68.0 70 65.6 40 C64.4 26 70.4 18 74.0 12' stroke-width='8'/%3E%3Cpath d='M52 224 C46.4 196 34.4 170 38.0 140 C40.4 116 29.6 96 32.0 70' stroke-width='9'/%3E%3C/g%3E%3C/svg%3E"); }

.cosmEffect[data-cosm="effect-smoke-rise"] .cosmL4 {
  scale: -1 1;
}

/* --sway is the sideways drift, --turn the lean as a column rises. */
.cosmEffect[data-cosm="effect-smoke-rise"] .cosmL1 { --x: 5%; --w: 118px; --sway: 12px; --turn: 5deg; }
.cosmEffect[data-cosm="effect-smoke-rise"] .cosmL2 { --x: 23%; --w: 86px; --sway: -6px; --turn: -3deg; }
.cosmEffect[data-cosm="effect-smoke-rise"] .cosmL3 { --x: 81%; --w: 104px; --sway: 10px; --turn: 4deg; }
.cosmEffect[data-cosm="effect-smoke-rise"] .cosmL4 { --x: 97%; --w: 112px; --sway: -14px; --turn: -6deg; }

@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-smoke-rise"] [data-part="plume"] {
    animation: cosmSmokeRise 3.4s linear both;
  }

  .cosmEffect[data-cosm="effect-smoke-rise"] .cosmL2 { animation-delay: 0.35s; animation-duration: 3.1s; }
  .cosmEffect[data-cosm="effect-smoke-rise"] .cosmL3 { animation-delay: 0.15s; animation-duration: 3.6s; }
  .cosmEffect[data-cosm="effect-smoke-rise"] .cosmL4 { animation-delay: 0.5s; animation-duration: 3.3s; }
}

/* A column climbs quickly at first and slows as it spreads, fading as it goes; hidden, it drops
   back to the bottom and settles into the resting haze. */
@keyframes cosmSmokeRise {
  0% { opacity: 0; transform: translateY(26%) scale(0.7, 0.45); animation-timing-function: cubic-bezier(0.25, 0.5, 0.45, 1); }
  12% { opacity: 0.72; transform: translate(calc(var(--sway) * 0.15), 8%) scale(0.85, 0.75); animation-timing-function: cubic-bezier(0.3, 0.4, 0.55, 1); }
  56% { opacity: 0.38; transform: translate(var(--sway), -26%) rotate(var(--turn)) scale(1.15, 1.08); animation-timing-function: linear; }
  76% { opacity: 0; transform: translate(calc(var(--sway) * 1.35), -40%) rotate(calc(var(--turn) * 1.3)) scale(1.32, 1.2); }
  77% { opacity: 0; transform: translateY(26%) scale(1.2, 0.62); }
  100% { opacity: 0.26; transform: translateY(26%) scale(1.2, 0.62); }
}

/* ─── Sahne · Akor (nadir) ───
   A pick strums six strings across the banner, right of the avatar; each string vibrates and
   fades to a faint trace. */
.cosmEffect[data-cosm="effect-strum"] [data-part="string"] {
  top: var(--y);
  left: 40%;
  right: 6%;
  height: var(--h, 1px);
  background: linear-gradient(90deg, rgb(230 225 215 / 0.2), rgb(250 245 235 / 0.95) 45%, rgb(230 225 215 / 0.5));
  transform-origin: left center;
  opacity: 0.22;
}

.cosmEffect[data-cosm="effect-strum"] .cosmL1 { --y: 16px; }
.cosmEffect[data-cosm="effect-strum"] .cosmL2 { --y: 26px; }
.cosmEffect[data-cosm="effect-strum"] .cosmL3 { --y: 36px; }
.cosmEffect[data-cosm="effect-strum"] .cosmL4 { --y: 46px; --h: 1.5px; }
.cosmEffect[data-cosm="effect-strum"] .cosmL5 { --y: 56px; --h: 1.5px; }
.cosmEffect[data-cosm="effect-strum"] .cosmL6 { --y: 66px; --h: 2px; }

.cosmEffect[data-cosm="effect-strum"] [data-part="pick"] {
  top: 4px;
  left: 62%;
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 12%;
  background:
    radial-gradient(circle at 30% 30%, rgb(255 214 150 / 0.9) 0 16%, transparent 17%),
    linear-gradient(135deg, #f0a24a, #b4541a 55%, #6d2a0c);
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-strum"] [data-part="string"] {
    animation: cosmStrum 2.4s ease-out both;
  }

  .cosmEffect[data-cosm="effect-strum"] .cosmL2 { animation-delay: 0.3s; }
  .cosmEffect[data-cosm="effect-strum"] .cosmL3 { animation-delay: 0.36s; }
  .cosmEffect[data-cosm="effect-strum"] .cosmL4 { animation-delay: 0.42s; }
  .cosmEffect[data-cosm="effect-strum"] .cosmL5 { animation-delay: 0.48s; }
  .cosmEffect[data-cosm="effect-strum"] .cosmL6 { animation-delay: 0.54s; }
  .cosmEffect[data-cosm="effect-strum"] .cosmL1 { animation-delay: 0.24s; }

  .cosmEffect[data-cosm="effect-strum"] [data-part="pick"] {
    animation: cosmPickStrum 0.9s ease-in 0.15s both;
  }
}

@keyframes cosmStrum {
  0% { opacity: 0; transform: scaleX(0); }
  8% { opacity: 1; transform: scaleX(1); }
  16% { transform: translateY(-1.5px); }
  22% { transform: translateY(1.5px); }
  28% { transform: translateY(-1px); }
  34% { transform: translateY(1px); }
  40% { opacity: 0.9; transform: translateY(0); }
  100% { opacity: 0.22; transform: none; }
}

@keyframes cosmPickStrum {
  0% { opacity: 0; transform: translate(0, -6px) rotate(-20deg); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(-12px, 74px) rotate(12deg); }
}

/* ─── Rulet · Bahisler Kapandı (efsanevi, başarım) ───
   "Rien ne va plus": the top of a wheel rises over the banner's right side. When the card opens
   the wheel spins clockwise, the ivory ball runs the other way, both slow down, the ball drops
   into the green zero and a warm light falls on it with three gold glints. At rest the wheel's
   edge, the ball in the zero and a soft glow stay on the banner. Everything is clipped to the
   banner and fades out before the avatar. */
.cosmEffect[data-cosm="effect-bets-closed"] :is([data-part="felt"], [data-part="wheel"], [data-part="ball"], [data-part="flash"]) {
  inset: 0 0 auto;
  height: var(--cosm-banner-height, 84px);
  overflow: hidden;
}

.cosmEffect[data-cosm="effect-bets-closed"] :is([data-part="wheel"], [data-part="ball"]) {
  -webkit-mask: linear-gradient(90deg, transparent 38%, #000 56%);
  mask: linear-gradient(90deg, transparent 38%, #000 56%);
}

.cosmEffect[data-cosm="effect-bets-closed"] [data-part="felt"] {
  background:
    linear-gradient(90deg, transparent 34%, rgb(202 166 91 / 0.55) 70%, rgb(241 217 154 / 0.7)) bottom / 100% 1px no-repeat,
    radial-gradient(85% 135% at 78% 115%, rgb(16 112 70 / 0.72), rgb(16 112 70 / 0.22) 58%, transparent 82%),
    repeating-linear-gradient(115deg, rgb(255 255 255 / 0.015) 0 1px, transparent 1px 3px);
}

/* The wheel: 300px across, centred at (238, 176) on the card, so only its top arc shows. */
.cosmEffect[data-cosm="effect-bets-closed"] :is([data-part="wheel"], [data-part="ball"])::before {
  content: "";
  left: 88px;
  top: 26px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
}

.cosmEffect[data-cosm="effect-bets-closed"] [data-part="wheel"]::before {
  --pocket: 9.7297deg;
  background:
    radial-gradient(closest-side, transparent 83.4%, #caa65b 83.7% 84.5%, transparent 84.8% 93.9%, #e0c27c 94.2% 94.9%, transparent 95.2%),
    radial-gradient(closest-side, #0f0b08 0 83.6%, rgb(0 0 0 / 0.38) 83.6% 86%, transparent 89% 91%, rgb(0 0 0 / 0.3) 94.2%,
      #2b1a10 94.4% 98.6%, #d9b770 98.9% 99.6%, transparent 100%),
    repeating-conic-gradient(from calc(var(--pocket) / 2), rgb(214 180 104 / 0.9) 0 0.35deg, transparent 0.35deg var(--pocket)),
    conic-gradient(from calc(var(--pocket) / -2), #0f8f55 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));
  opacity: 0.82;
}

/* The ball sits in the zero pocket at the top of the wheel (its centre 16px below the rim). */
.cosmEffect[data-cosm="effect-bets-closed"] [data-part="ball"]::before {
  background:
    radial-gradient(circle 5px at 150px 16px, #ffffff 0 1.2px, #f5eedf 2.6px, #cdbfa6 4.4px, transparent 5px),
    radial-gradient(circle 7px at 151px 18px, rgb(0 0 0 / 0.45), transparent 7px);
}

.cosmEffect[data-cosm="effect-bets-closed"] [data-part="flash"] {
  background: radial-gradient(circle 70px at 238px 40px, rgb(255 228 168 / 0.5), rgb(255 228 168 / 0.12) 55%, transparent 100%);
  opacity: 0.45;
}

.cosmEffect[data-cosm="effect-bets-closed"] [data-part="spark"] {
  width: 9px;
  height: 9px;
  background: radial-gradient(closest-side, #fff 0 20%, rgb(255 236 180 / 0.9) 40%, transparent 72%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  opacity: 0;
}

.cosmEffect[data-cosm="effect-bets-closed"] .cosmL5 { left: 214px; top: 30px; }
.cosmEffect[data-cosm="effect-bets-closed"] .cosmL6 { left: 258px; top: 22px; width: 7px; height: 7px; }
.cosmEffect[data-cosm="effect-bets-closed"] .cosmL7 { left: 246px; top: 52px; width: 6px; height: 6px; }

@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-bets-closed"] [data-part="felt"] {
    animation: cosmBetsFelt 0.6s ease-out both;
  }

  .cosmEffect[data-cosm="effect-bets-closed"] [data-part="wheel"]::before {
    animation: cosmBetsWheel 3s cubic-bezier(0.16, 0.66, 0.24, 1) both;
  }

  .cosmEffect[data-cosm="effect-bets-closed"] [data-part="ball"]::before {
    animation: cosmBetsBall 3.1s cubic-bezier(0.2, 0.6, 0.3, 1) both;
  }

  .cosmEffect[data-cosm="effect-bets-closed"] [data-part="flash"] {
    animation: cosmBetsFlash 3.9s ease-out both;
  }

  .cosmEffect[data-cosm="effect-bets-closed"] [data-part="spark"] {
    animation: cosmBetsSpark 1s ease-out 3s both;
  }

  .cosmEffect[data-cosm="effect-bets-closed"] .cosmL6 { animation-delay: 3.12s; }
  .cosmEffect[data-cosm="effect-bets-closed"] .cosmL7 { animation-delay: 3.24s; }
}

@keyframes cosmBetsFelt {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cosmBetsWheel {
  from { opacity: 0.4; transform: rotate(-430deg); }
  18% { opacity: 0.82; }
  to { opacity: 0.82; transform: rotate(0deg); }
}

@keyframes cosmBetsBall {
  from { opacity: 0; transform: rotate(520deg); }
  10% { opacity: 1; }
  to { opacity: 1; transform: rotate(0deg); }
}

@keyframes cosmBetsFlash {
  0%, 76% { opacity: 0; }
  84% { opacity: 1; }
  100% { opacity: 0.45; }
}

@keyframes cosmBetsSpark {
  0% { opacity: 0; transform: scale(0.4); }
  35% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(0.8); }
}


/* Blackjack and Mines · finite reveals restricted to the profile banner. */
.cosmEffect[data-cosm="effect-cards-revealed"] [data-part="card"] {
  top: 12px;
  right: 40px;
  width: 30px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2060%2080%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%2Fsvg%3E") center / contain no-repeat;
  transform: rotate(-12deg);
  opacity: 0.8;
}
.cosmEffect[data-cosm="effect-cards-revealed"] .cosmL2 {
  top: 20px;
  right: 17px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2060%2080%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%3EK%3C%2Ftext%3E%3Cpath%20d%3D%22M16%2034L23%2040L30%2030L37%2040L44%2034L40%2052H20Z%22%20fill%3D%22%23b28a3e%22%2F%3E%3Cpath%20d%3D%22M20%2057H40%22%20stroke%3D%22%23202025%22%20stroke-width%3D%223%22%2F%3E%3C%2Fsvg%3E");
  transform: rotate(10deg);
  --card-angle: 10deg;
}
.cosmEffect[data-cosm="effect-cards-revealed"] .cosmL1 { --card-angle: -12deg; }
.cosmEffect[data-cosm="effect-cards-revealed"] [data-part="flash"] {
  inset: 0 0 auto auto;
  width: 100px;
  height: var(--cosm-banner-height, 84px);
  background: radial-gradient(ellipse at 65% 40%, rgb(229 197 121 / 0.18), transparent 65%);
  opacity: 0;
}
.cosmEffect[data-cosm="effect-diamond-rain"] [data-part="tile"] {
  top: 18px;
  right: var(--tile-right);
  width: 17px;
  height: 21px;
  border: 1px solid rgb(110 231 183 / 0.4);
  border-radius: 3px;
  background: #182d28;
  opacity: 0.55;
}
.cosmEffect[data-cosm="effect-diamond-rain"] [data-part="diamond"] {
  top: 21px;
  right: calc(var(--tile-right) + 2px);
  width: 13px;
  height: 16px;
  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%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%2Fsvg%3E") center / contain no-repeat;
  opacity: 0.75;
}
.cosmEffect[data-cosm="effect-diamond-rain"] :is(.cosmL1, .cosmL6) { --tile-right: 13px; --tile-delay: 0s; }
.cosmEffect[data-cosm="effect-diamond-rain"] :is(.cosmL2, .cosmL7) { --tile-right: 34px; --tile-delay: 0.15s; }
.cosmEffect[data-cosm="effect-diamond-rain"] :is(.cosmL3, .cosmL8) { --tile-right: 55px; --tile-delay: 0.3s; }
.cosmEffect[data-cosm="effect-diamond-rain"] :is(.cosmL4, .cosmL9) { --tile-right: 76px; --tile-delay: 0.44999999999999996s; }
.cosmEffect[data-cosm="effect-diamond-rain"] :is(.cosmL5, .cosmL10) { --tile-right: 97px; --tile-delay: 0.6s; }
@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-cards-revealed"] [data-part="card"] {
    animation: cosmBlackjackReveal 1.8s var(--cosm-ease-settle) 0.1s both;
  }
  .cosmEffect[data-cosm="effect-cards-revealed"] .cosmL2 { animation-delay: 0.4s; }
  .cosmEffect[data-cosm="effect-cards-revealed"] [data-part="flash"] {
    animation: cosmBlackjackFlash 2.4s var(--cosm-ease-breathe) both;
  }
  .cosmEffect[data-cosm="effect-diamond-rain"] [data-part="tile"] {
    animation: cosmMinesTile 1.6s var(--cosm-ease-settle) var(--tile-delay) both;
  }
  .cosmEffect[data-cosm="effect-diamond-rain"] [data-part="diamond"] {
    animation: cosmMinesDiamond 2.2s var(--cosm-ease-settle) var(--tile-delay) both;
  }
}
@keyframes cosmBlackjackReveal {
  0% { opacity: 0; transform: translateY(-6px) rotate(var(--card-angle)) rotateY(90deg); }
  55% { opacity: 1; transform: rotate(var(--card-angle)) rotateY(0); }
  100% { opacity: 0.8; transform: rotate(var(--card-angle)); }
}
@keyframes cosmBlackjackFlash {
  0%, 100% { opacity: 0; }
  45% { opacity: 1; }
}
@keyframes cosmMinesTile {
  0% { opacity: 0; transform: scale(0.7); }
  35% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.55; transform: scale(1); }
}
@keyframes cosmMinesDiamond {
  0%, 20% { opacity: 0; transform: translateY(9px) scale(0.4); }
  65% { opacity: 1; transform: translateY(-6px) scale(1); }
  100% { opacity: 0.75; transform: translateY(0) scale(1); }
}


/* Football and Aviator · finite celebrations stay inside the profile banner. */
.cosmEffect[data-cosm="effect-goal-celebration"] [data-part="net"] {
  top: 10px;
  right: 12px;
  width: 84px;
  height: 48px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2084%2048%27%3E%3Cpath%20d%3D%27M13%206H76V37H13ZM13%206L4%2014V44H67L76%2037M13%2037L4%2044M67%2044V14L76%206M4%2014H67%27%20fill%3D%27%23162c22%27%20fill-opacity%3D%27.32%27%20stroke%3D%27%23aec6a7%27%20stroke-width%3D%271.1%27%20stroke-linejoin%3D%27round%27%2F%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%23a4bba2%27%20stroke-width%3D%27.55%27%20opacity%3D%27.35%27%3E%3Cpath%20d%3D%27M20%207V36M28%207V36M36%207V36M44%207V36M52%207V36M60%207V36M68%207V36M14%2013H75M14%2019H75M14%2025H75M14%2031H75M5%2020H12M5%2027H12M5%2034H12M11%2014V39%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / contain no-repeat;
  opacity: 0.42;
}

.cosmEffect[data-cosm="effect-goal-celebration"] [data-part="ball"] {
  top: 37px;
  right: 37px;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%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%2Fsvg%3E") center / contain no-repeat;
  opacity: 0.7;
}

.cosmEffect[data-cosm="effect-goal-celebration"] [data-part="burst"] {
  top: 4px;
  right: 8px;
  width: 114px;
  height: 68px;
  background: radial-gradient(ellipse at 68% 45%, rgb(219 200 128 / 0.17), transparent 65%);
  opacity: 0;
}

.cosmEffect[data-cosm="effect-goal-celebration"] [data-part="confetti"] {
  top: var(--y);
  right: var(--x);
  width: 3px;
  height: 7px;
  border-radius: 1px;
  background: var(--c);
  opacity: 0.25;
  transform: rotate(var(--turn));
}

.cosmEffect[data-cosm="effect-goal-celebration"] .cosmL4 { --x: 17px; --y: 13px; --turn: -24deg; --c: #e6d39b; --delay: 0.5s; }
.cosmEffect[data-cosm="effect-goal-celebration"] .cosmL5 { --x: 31px; --y: 7px; --turn: 32deg; --c: #98c59d; --delay: 0.56s; }
.cosmEffect[data-cosm="effect-goal-celebration"] .cosmL6 { --x: 50px; --y: 17px; --turn: -8deg; --c: #f0dda6; --delay: 0.62s; }
.cosmEffect[data-cosm="effect-goal-celebration"] .cosmL7 { --x: 73px; --y: 10px; --turn: 65deg; --c: #86ba94; --delay: 0.68s; }
.cosmEffect[data-cosm="effect-goal-celebration"] .cosmL8 { --x: 95px; --y: 24px; --turn: 28deg; --c: #d4be7b; --delay: 0.74s; }
.cosmEffect[data-cosm="effect-goal-celebration"] .cosmL9 { --x: 20px; --y: 62px; --turn: -43deg; --c: #83b78d; --delay: 0.8s; }
.cosmEffect[data-cosm="effect-goal-celebration"] .cosmL10 { --x: 61px; --y: 65px; --turn: 18deg; --c: #e9dcae; --delay: 0.86s; }
.cosmEffect[data-cosm="effect-goal-celebration"] .cosmL11 { --x: 88px; --y: 54px; --turn: -18deg; --c: #9dcca2; --delay: 0.92s; }

.cosmEffect[data-cosm="effect-sonic-boom"] [data-part="wake"] {
  top: 10px;
  right: 16px;
  width: 128px;
  height: 56px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20128%2056%27%3E%3Cdefs%3E%3ClinearGradient%20id%3D%27t%27%20x2%3D%271%27%20y2%3D%270%27%3E%3Cstop%20stop-color%3D%27%23edb575%27%20stop-opacity%3D%270%27%2F%3E%3Cstop%20offset%3D%27.45%27%20stop-color%3D%27%23edb575%27%20stop-opacity%3D%27.35%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%23bddfec%27%20stop-opacity%3D%27.8%27%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%27M2%2048Q43%2048%2068%2033T117%208%27%20fill%3D%27none%27%20stroke%3D%27url(%23t)%27%20stroke-width%3D%272.1%27%2F%3E%3Cpath%20d%3D%27M9%2054Q50%2054%2078%2034T120%2015%27%20fill%3D%27none%27%20stroke%3D%27url(%23t)%27%20stroke-width%3D%27.65%27%20opacity%3D%27.55%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  opacity: 0.4;
  transform-origin: right top;
}

.cosmEffect[data-cosm="effect-sonic-boom"] [data-part="ring"] {
  --ring-opacity: 0.25;
  top: 21px;
  right: 48px;
  width: 46px;
  height: 28px;
  border: 1px solid rgb(169 213 231 / 0.38);
  border-radius: 50%;
  transform: rotate(-28deg);
  opacity: 0.25;
}

.cosmEffect[data-cosm="effect-sonic-boom"] .cosmL3 {
  --ring-opacity: 0.17;
  top: 17px;
  right: 40px;
  width: 62px;
  height: 38px;
  border-color: rgb(169 213 231 / 0.2);
  opacity: 0.17;
}

.cosmEffect[data-cosm="effect-sonic-boom"] [data-part="plane"] {
  top: 10px;
  right: 20px;
  width: 27px;
  height: 27px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2030%2030%27%3E%3Cdefs%3E%3ClinearGradient%20id%3D%27a%27%20x2%3D%271%27%20y2%3D%271%27%3E%3Cstop%20stop-color%3D%27%23e9f8ff%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%2383abc1%27%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%27M23%203L18%2015L19%2024L16%2027L12%2019L7%2023L3%2022L9%2016L2%2012L5%209L14%2010Z%27%20fill%3D%27url(%23a)%27%20stroke%3D%27%23d6edf5%27%20stroke-width%3D%27.65%27%20stroke-linejoin%3D%27round%27%2F%3E%3Cpath%20d%3D%27M14%2010L19%208L17%2013%27%20fill%3D%27%23f0bd7c%27%2F%3E%3Cpath%20d%3D%27M9%2016L17%209%27%20stroke%3D%27%23557a96%27%20stroke-width%3D%27.65%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  opacity: 0.72;
}

.cosmEffect[data-cosm="effect-sonic-boom"] [data-part="glint"] {
  top: 20px;
  right: 31px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f4d097;
  box-shadow: 0 0 8px rgb(244 208 151 / 0.3);
  opacity: 0.24;
}

@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-goal-celebration"] [data-part="net"] {
    animation: cosmGoalNet 2.2s var(--cosm-ease-settle) both;
  }

  .cosmEffect[data-cosm="effect-goal-celebration"] [data-part="ball"] {
    animation: cosmGoalStrike 2.4s var(--cosm-ease-settle) both;
  }

  .cosmEffect[data-cosm="effect-goal-celebration"] [data-part="burst"] {
    animation: cosmGoalBurst 2.4s var(--cosm-ease-breathe) both;
  }

  .cosmEffect[data-cosm="effect-goal-celebration"] [data-part="confetti"] {
    animation: cosmGoalConfetti 2.2s var(--cosm-ease-settle) var(--delay) both;
  }

  .cosmEffect[data-cosm="effect-sonic-boom"] [data-part="wake"] {
    animation: cosmFlightWake 2.8s var(--cosm-ease-sweep) both;
  }

  .cosmEffect[data-cosm="effect-sonic-boom"] [data-part="ring"] {
    animation: cosmSonicRing 2.8s var(--cosm-ease-settle) both;
  }

  .cosmEffect[data-cosm="effect-sonic-boom"] .cosmL3 { animation-delay: 0.2s; }

  .cosmEffect[data-cosm="effect-sonic-boom"] [data-part="plane"] {
    animation: cosmAceFlyby 2.8s var(--cosm-ease-sweep) both;
  }

  .cosmEffect[data-cosm="effect-sonic-boom"] [data-part="glint"] {
    animation: cosmFlightGlint 2.8s var(--cosm-ease-settle) both;
  }
}

@keyframes cosmGoalNet {
  0% { opacity: 0.15; transform: none; }
  25% { opacity: 0.55; transform: none; }
  38% { opacity: 0.55; transform: translateX(2px); }
  100% { opacity: 0.42; transform: none; }
}

@keyframes cosmGoalStrike {
  0% { opacity: 0; transform: translate(-88px, -12px) rotate(-100deg) scale(0.8); }
  12% { opacity: 0.9; }
  34% { opacity: 1; transform: translate(3px, 0) rotate(25deg) scale(1); }
  50%, 100% { opacity: 0.7; transform: none; }
}

@keyframes cosmGoalBurst {
  0%, 22%, 100% { opacity: 0; }
  38% { opacity: 1; }
}

@keyframes cosmGoalConfetti {
  0% { opacity: 0; transform: translateY(18px) rotate(0deg) scale(0.5); }
  32% { opacity: 0.8; transform: translateY(-6px) rotate(calc(var(--turn) + 35deg)) scale(1); }
  100% { opacity: 0.25; transform: rotate(var(--turn)); }
}

@keyframes cosmFlightWake {
  0% { opacity: 0; transform: scaleX(0.2); }
  40% { opacity: 0.8; transform: scaleX(1); }
  100% { opacity: 0.4; transform: none; }
}

@keyframes cosmSonicRing {
  0%, 20% { opacity: 0; transform: rotate(-28deg) scale(0.3); }
  45% { opacity: 0.5; transform: rotate(-28deg) scale(0.75); }
  100% { opacity: var(--ring-opacity); transform: rotate(-28deg); }
}

@keyframes cosmAceFlyby {
  0% { opacity: 0; transform: translate(-99px, 42px) scale(0.65); }
  12% { opacity: 0.5; }
  42% { opacity: 0.95; transform: none; }
  100% { opacity: 0.72; transform: none; }
}

@keyframes cosmFlightGlint {
  0%, 32% { opacity: 0; transform: scale(0.5); }
  43% { opacity: 0.7; transform: scale(1.4); }
  100% { opacity: 0.24; transform: none; }
}


/* Slot, Şeker, Penaltı, Uno, Kingo and Kart Savaşı · finite reveals that settle inside the banner. */
.cosmEffect[data-cosm="effect-jackpot-lights"] [data-part="reel"] {
  top: 18px;
  right: var(--reel-right);
  width: 22px;
  height: 30px;
  overflow: hidden;
  border: 1px solid rgb(245 196 81 / 0.75);
  border-radius: 4px;
  background: #fbf3df;
  box-shadow: 0 0 0 2px rgb(42 24 64 / 0.85);
  opacity: 0.85;
}

.cosmEffect[data-cosm="effect-jackpot-lights"] [data-part="reel"]::before {
  content: "";
  inset: 0 0 auto;
  height: 400%;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2022%20120%27%3E%3Crect%20width%3D%2722%27%20height%3D%27120%27%20fill%3D%27%23fbf3df%27%2F%3E%3Cg%20font-family%3D%27Georgia%2Cserif%27%20font-weight%3D%27700%27%20font-size%3D%2719%27%20text-anchor%3D%27middle%27%20fill%3D%27%23e0283d%27%3E%3Ctext%20x%3D%2711%27%20y%3D%2722%27%3E7%3C%2Ftext%3E%3Ctext%20x%3D%2711%27%20y%3D%27112%27%3E7%3C%2Ftext%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate(-2%2036)%20scale(.85)%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%3Crect%20x%3D%273%27%20y%3D%2768%27%20width%3D%2716%27%20height%3D%279%27%20rx%3D%271.5%27%20fill%3D%27%232a1840%27%2F%3E%3Ctext%20x%3D%2711%27%20y%3D%2775.4%27%20text-anchor%3D%27middle%27%20font-family%3D%27Arial%2Csans-serif%27%20font-weight%3D%27900%27%20font-size%3D%276.4%27%20fill%3D%27%23f5c451%27%3EBAR%3C%2Ftext%3E%3C%2Fsvg%3E") center top / 100% 100% no-repeat;
  transform: translateY(-75%);
}

.cosmEffect[data-cosm="effect-jackpot-lights"] .cosmL1 { --reel-right: 72px; --reel-delay: 0s; }
.cosmEffect[data-cosm="effect-jackpot-lights"] .cosmL2 { --reel-right: 46px; --reel-delay: 0.25s; }
.cosmEffect[data-cosm="effect-jackpot-lights"] .cosmL3 { --reel-right: 20px; --reel-delay: 0.5s; }

.cosmEffect[data-cosm="effect-jackpot-lights"] [data-part="flash"] {
  inset: 0 0 auto auto;
  width: 130px;
  height: var(--cosm-banner-height, 84px);
  background: radial-gradient(ellipse at 62% 40%, rgb(245 196 81 / 0.22), rgb(156 77 204 / 0.08) 50%, transparent 72%);
  opacity: 0.35;
}

.cosmEffect[data-cosm="effect-jackpot-lights"] [data-part="coin"] {
  top: var(--coin-y);
  right: var(--coin-x);
  width: 10px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cdefs%3E%3CradialGradient%20id%3D%27o%27%20cx%3D%27.35%27%20cy%3D%27.3%27%3E%3Cstop%20stop-color%3D%27%23fff4c4%27%2F%3E%3Cstop%20offset%3D%27.6%27%20stop-color%3D%27%23f5c451%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%23a9741e%27%2F%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%3Ccircle%20cx%3D%2710%27%20cy%3D%2710%27%20r%3D%279%27%20fill%3D%27url(%23o)%27%20stroke%3D%27%23fff0b8%27%20stroke-width%3D%27.8%27%2F%3E%3Ccircle%20cx%3D%2710%27%20cy%3D%2710%27%20r%3D%276%27%20fill%3D%27none%27%20stroke%3D%27%23a9741e%27%20stroke-width%3D%27.8%27%2F%3E%3Ctext%20x%3D%2710%27%20y%3D%2713.6%27%20text-anchor%3D%27middle%27%20font-family%3D%27Georgia%2Cserif%27%20font-weight%3D%27700%27%20font-size%3D%279.5%27%20fill%3D%27%238a5a14%27%3E%24%3C%2Ftext%3E%3C%2Fsvg%3E") center / contain no-repeat;
  opacity: 0.75;
}

.cosmEffect[data-cosm="effect-jackpot-lights"] .cosmL5 { --coin-x: 104px; --coin-y: 52px; --coin-delay: 1.35s; }
.cosmEffect[data-cosm="effect-jackpot-lights"] .cosmL6 { --coin-x: 60px; --coin-y: 56px; --coin-delay: 1.45s; }
.cosmEffect[data-cosm="effect-jackpot-lights"] .cosmL7 { --coin-x: 8px; --coin-y: 50px; --coin-delay: 1.55s; }

.cosmEffect[data-cosm="effect-candy-burst"] [data-part="burst"] {
  top: 6px;
  right: 6px;
  width: 128px;
  height: 66px;
  background: radial-gradient(ellipse at 55% 60%, rgb(255 134 192 / 0.2), rgb(141 232 198 / 0.07) 55%, transparent 72%);
  opacity: 0.4;
}

.cosmEffect[data-cosm="effect-candy-burst"] [data-part="candy"] {
  top: var(--y);
  right: var(--x);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgb(255 255 255 / 0.9) 0 14%, transparent 16%),
    conic-gradient(var(--c) 0 12.5%, #fff7fb 0 25%, var(--c) 0 37.5%, #fff7fb 0 50%, var(--c) 0 62.5%, #fff7fb 0 75%, var(--c) 0 87.5%, #fff7fb 0);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.25);
  opacity: 0.8;
}

.cosmEffect[data-cosm="effect-candy-burst"] .cosmL2 { --x: 120px; --y: 40px; --dx: 50px; --dy: -6px; --c: #ff6fb1; --delay: 0.05s; }
.cosmEffect[data-cosm="effect-candy-burst"] .cosmL3 { --x: 100px; --y: 20px; --dx: 30px; --dy: 14px; --c: #5fd6aa; --delay: 0.12s; }
.cosmEffect[data-cosm="effect-candy-burst"] .cosmL4 { --x: 76px; --y: 12px; --dx: 6px; --dy: 22px; --c: #ffc94d; --delay: 0.19s; }
.cosmEffect[data-cosm="effect-candy-burst"] .cosmL5 { --x: 52px; --y: 14px; --dx: -18px; --dy: 20px; --c: #b98cff; --delay: 0.26s; }
.cosmEffect[data-cosm="effect-candy-burst"] .cosmL6 { --x: 30px; --y: 24px; --dx: -40px; --dy: 10px; --c: #ff8a5c; --delay: 0.33s; }
.cosmEffect[data-cosm="effect-candy-burst"] .cosmL7 { --x: 14px; --y: 44px; --dx: -56px; --dy: -10px; --c: #6fc4ff; --delay: 0.4s; }

.cosmEffect[data-cosm="effect-top-corner"] [data-part="goal"] {
  top: 12px;
  right: 14px;
  width: 92px;
  height: 50px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%2054%27%3E%3Cdefs%3E%3Cpattern%20id%3D%27n%27%20width%3D%275%27%20height%3D%275%27%20patternUnits%3D%27userSpaceOnUse%27%3E%3Cpath%20d%3D%27M0%200L5%205M5%200L0%205%27%20stroke%3D%27%239fc4e0%27%20stroke-width%3D%27.4%27%20opacity%3D%27.55%27%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Cpath%20d%3D%27M8%2052V6H92V52%27%20fill%3D%27url(%23n)%27%20stroke%3D%27%23f2f7fb%27%20stroke-width%3D%272.4%27%20stroke-linejoin%3D%27round%27%2F%3E%3Cpath%20d%3D%27M0%2052H100%27%20stroke%3D%27%23f2f7fb%27%20stroke-width%3D%271%27%20opacity%3D%27.55%27%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
  transform-origin: 50% 0;
  opacity: 0.45;
}

.cosmEffect[data-cosm="effect-top-corner"] [data-part="trail"] {
  top: 14px;
  right: 22px;
  width: 128px;
  height: 64px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20120%2060%27%3E%3Cdefs%3E%3ClinearGradient%20id%3D%27t%27%20x2%3D%271%27%20y2%3D%270%27%3E%3Cstop%20stop-color%3D%27%23ff9b3d%27%20stop-opacity%3D%270%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%23ffc27a%27%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%27M4%2056Q50%2050%2076%2026T112%208%27%20fill%3D%27none%27%20stroke%3D%27url(%23t)%27%20stroke-width%3D%271.4%27%20stroke-dasharray%3D%273%203%27%20stroke-linecap%3D%27round%27%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
  opacity: 0.35;
}

.cosmEffect[data-cosm="effect-top-corner"] [data-part="ball"] {
  top: 17px;
  right: 24px;
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2012%2012%27%3E%3Ccircle%20cx%3D%276%27%20cy%3D%276%27%20r%3D%275.4%27%20fill%3D%27%23fbfdff%27%20stroke%3D%27%231e3a5c%27%20stroke-width%3D%27.6%27%2F%3E%3Cpath%20d%3D%27M6%203.1L8.7%205.1L7.7%208.2H4.3L3.3%205.1Z%27%20fill%3D%27%231e3a5c%27%2F%3E%3Cpath%20d%3D%27M6%203.1V.8M8.7%205.1L11%204.3M7.7%208.2L9.2%2010.3M4.3%208.2L2.8%2010.3M3.3%205.1L1%204.3%27%20stroke%3D%27%231e3a5c%27%20stroke-width%3D%27.5%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  opacity: 0.85;
}

.cosmEffect[data-cosm="effect-top-corner"] [data-part="flash"] {
  top: 0;
  right: 0;
  width: 70px;
  height: 50px;
  background: radial-gradient(circle at 60% 45%, rgb(255 194 122 / 0.3), rgb(124 198 242 / 0.08) 50%, transparent 72%);
  opacity: 0.2;
}

.cosmEffect[data-cosm="effect-uno-call"] [data-part="card"] {
  top: 26px;
  right: 46px;
  width: 22px;
  height: 32px;
  background: var(--card) center / contain no-repeat;
  transform-origin: 50% 110%;
  transform: rotate(var(--fan));
  opacity: 0.8;
}

.cosmEffect[data-cosm="effect-uno-call"] .cosmL1 { --fan: -33deg; --card: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2022%2032%27%3E%3Crect%20x%3D%27.7%27%20y%3D%27.7%27%20width%3D%2720.6%27%20height%3D%2730.6%27%20rx%3D%273%27%20fill%3D%27%23ff5a4f%27%20stroke%3D%27%23fff%27%20stroke-width%3D%271.3%27%2F%3E%3Cellipse%20cx%3D%2711%27%20cy%3D%2716%27%20rx%3D%276%27%20ry%3D%2710%27%20fill%3D%27%23fff%27%20transform%3D%27rotate(25%2011%2016)%27%2F%3E%3Cellipse%20cx%3D%2711%27%20cy%3D%2716%27%20rx%3D%273%27%20ry%3D%275%27%20fill%3D%27%23ff5a4f%27%20transform%3D%27rotate(25%2011%2016)%27%2F%3E%3C%2Fsvg%3E"); }
.cosmEffect[data-cosm="effect-uno-call"] .cosmL2 { --fan: -11deg; --card: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2022%2032%27%3E%3Crect%20x%3D%27.7%27%20y%3D%27.7%27%20width%3D%2720.6%27%20height%3D%2730.6%27%20rx%3D%273%27%20fill%3D%27%23ffd23f%27%20stroke%3D%27%23fff%27%20stroke-width%3D%271.3%27%2F%3E%3Cellipse%20cx%3D%2711%27%20cy%3D%2716%27%20rx%3D%276%27%20ry%3D%2710%27%20fill%3D%27%23fff%27%20transform%3D%27rotate(25%2011%2016)%27%2F%3E%3Cellipse%20cx%3D%2711%27%20cy%3D%2716%27%20rx%3D%273%27%20ry%3D%275%27%20fill%3D%27%23ffd23f%27%20transform%3D%27rotate(25%2011%2016)%27%2F%3E%3C%2Fsvg%3E"); }
.cosmEffect[data-cosm="effect-uno-call"] .cosmL3 { --fan: 11deg; --card: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2022%2032%27%3E%3Crect%20x%3D%27.7%27%20y%3D%27.7%27%20width%3D%2720.6%27%20height%3D%2730.6%27%20rx%3D%273%27%20fill%3D%27%233ccf6e%27%20stroke%3D%27%23fff%27%20stroke-width%3D%271.3%27%2F%3E%3Cellipse%20cx%3D%2711%27%20cy%3D%2716%27%20rx%3D%276%27%20ry%3D%2710%27%20fill%3D%27%23fff%27%20transform%3D%27rotate(25%2011%2016)%27%2F%3E%3Cellipse%20cx%3D%2711%27%20cy%3D%2716%27%20rx%3D%273%27%20ry%3D%275%27%20fill%3D%27%233ccf6e%27%20transform%3D%27rotate(25%2011%2016)%27%2F%3E%3C%2Fsvg%3E"); }
.cosmEffect[data-cosm="effect-uno-call"] .cosmL4 { --fan: 33deg; --card: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2022%2032%27%3E%3Crect%20x%3D%27.7%27%20y%3D%27.7%27%20width%3D%2720.6%27%20height%3D%2730.6%27%20rx%3D%273%27%20fill%3D%27%233d8bff%27%20stroke%3D%27%23fff%27%20stroke-width%3D%271.3%27%2F%3E%3Cellipse%20cx%3D%2711%27%20cy%3D%2716%27%20rx%3D%276%27%20ry%3D%2710%27%20fill%3D%27%23fff%27%20transform%3D%27rotate(25%2011%2016)%27%2F%3E%3Cellipse%20cx%3D%2711%27%20cy%3D%2716%27%20rx%3D%273%27%20ry%3D%275%27%20fill%3D%27%233d8bff%27%20transform%3D%27rotate(25%2011%2016)%27%2F%3E%3C%2Fsvg%3E"); }

.cosmEffect[data-cosm="effect-uno-call"] [data-part="badge"] {
  top: 12px;
  right: 20px;
  width: 46px;
  height: 23px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2064%2032%27%3E%3Cellipse%20cx%3D%2732%27%20cy%3D%2716%27%20rx%3D%2730%27%20ry%3D%2714%27%20fill%3D%27%23e8322b%27%20stroke%3D%27%23ffd23f%27%20stroke-width%3D%272%27%20transform%3D%27rotate(-8%2032%2016)%27%2F%3E%3Ctext%20x%3D%2732%27%20y%3D%2722.5%27%20text-anchor%3D%27middle%27%20font-family%3D%27Arial%2Csans-serif%27%20font-weight%3D%27900%27%20font-size%3D%2718%27%20fill%3D%27%23ffd23f%27%20stroke%3D%27%23141418%27%20stroke-width%3D%271.2%27%20transform%3D%27rotate(-8%2032%2016)%27%3EUNO%3C%2Ftext%3E%3C%2Fsvg%3E") center / contain no-repeat;
  opacity: 0.85;
}

.cosmEffect[data-cosm="effect-royal-hand"] [data-part="glow"] {
  top: 4px;
  right: 10px;
  width: 110px;
  height: 66px;
  background: radial-gradient(ellipse at 50% 38%, rgb(232 196 106 / 0.2), rgb(122 70 176 / 0.12) 52%, transparent 72%);
  opacity: 0.45;
}

.cosmEffect[data-cosm="effect-royal-hand"] [data-part="crown"] {
  top: 10px;
  right: 47px;
  width: 34px;
  height: 29px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2026%2022%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(1%201)%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 / contain no-repeat;
  filter: drop-shadow(0 0 6px rgb(255 228 160 / 0.35));
  opacity: 0.85;
}

.cosmEffect[data-cosm="effect-royal-hand"] [data-part="suit"] {
  top: 46px;
  right: var(--suit-right);
  width: 12px;
  height: 12px;
  background: var(--suit) center / contain no-repeat;
  opacity: 0.75;
}

.cosmEffect[data-cosm="effect-royal-hand"] .cosmL3 { --suit-right: 95px; --suit: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%27-1%20-1%2012%2012%27%3E%3Cg%20fill%3D%27%23efe4ff%27%3E%3Cpath%20d%3D%27M5%200C3.5%202.5%200%204%200%206.6C0%208.6%202.3%209.2%203.8%207.8L3%2010H7L6.2%207.8C7.7%209.2%2010%208.6%2010%206.6C10%204%206.5%202.5%205%200Z%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); --suit-delay: 0.7s; }
.cosmEffect[data-cosm="effect-royal-hand"] .cosmL4 { --suit-right: 73px; --suit: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%27-1%20-1%2012%2012%27%3E%3Cg%20fill%3D%27%23ff6b81%27%3E%3Cpath%20d%3D%27M5%209.6L1%205.6C-.6%204%20.2%20.8%202.6%20.8C3.8%20.8%204.6%201.6%205%202.4C5.4%201.6%206.2%20.8%207.4%20.8C9.8%20.8%2010.6%204%209%205.6Z%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); --suit-delay: 0.85s; }
.cosmEffect[data-cosm="effect-royal-hand"] .cosmL5 { --suit-right: 51px; --suit: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%27-1%20-1%2012%2012%27%3E%3Cg%20fill%3D%27%23ff6b81%27%3E%3Cpath%20d%3D%27M5%200L9%205L5%2010L1%205Z%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); --suit-delay: 1s; }
.cosmEffect[data-cosm="effect-royal-hand"] .cosmL6 { --suit-right: 29px; --suit: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%27-1%20-1%2012%2012%27%3E%3Cg%20fill%3D%27%23efe4ff%27%3E%3Ccircle%20cx%3D%275%27%20cy%3D%272.6%27%20r%3D%272.4%27%2F%3E%3Ccircle%20cx%3D%272.4%27%20cy%3D%276%27%20r%3D%272.4%27%2F%3E%3Ccircle%20cx%3D%277.6%27%20cy%3D%276%27%20r%3D%272.4%27%2F%3E%3Cpath%20d%3D%27M4.2%206H5.8L6.8%2010H3.2Z%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); --suit-delay: 1.15s; }

.cosmEffect[data-cosm="effect-war-declared"] [data-part="card"] {
  top: 16px;
  width: 26px;
  height: 36px;
  background: var(--card) center / contain no-repeat;
  transform: rotate(var(--tilt));
  opacity: 0.8;
}

.cosmEffect[data-cosm="effect-war-declared"] .cosmL1 { right: 66px; --tilt: -12deg; --from: -46px; --card: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2028%27%3E%3Crect%20x%3D%27.5%27%20y%3D%27.5%27%20width%3D%2719%27%20height%3D%2727%27%20rx%3D%272.4%27%20fill%3D%27%235a2229%27%20stroke%3D%27%23ff6b74%27%20stroke-width%3D%271%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%273%27%20width%3D%2714%27%20height%3D%2722%27%20rx%3D%271.2%27%20fill%3D%27none%27%20stroke%3D%27%23ff6b74%27%20stroke-width%3D%27.6%27%20opacity%3D%27.7%27%2F%3E%3Cpath%20d%3D%27M10%207L14%2014L10%2021L6%2014Z%27%20fill%3D%27none%27%20stroke%3D%27%23ff6b74%27%20stroke-width%3D%27.7%27%2F%3E%3C%2Fsvg%3E"); }
.cosmEffect[data-cosm="effect-war-declared"] .cosmL2 { right: 32px; --tilt: 12deg; --from: 46px; --card: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2028%27%3E%3Crect%20x%3D%27.5%27%20y%3D%27.5%27%20width%3D%2719%27%20height%3D%2727%27%20rx%3D%272.4%27%20fill%3D%27%2336404c%27%20stroke%3D%27%23d4dce6%27%20stroke-width%3D%271%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%273%27%20width%3D%2714%27%20height%3D%2722%27%20rx%3D%271.2%27%20fill%3D%27none%27%20stroke%3D%27%23d4dce6%27%20stroke-width%3D%27.6%27%20opacity%3D%27.7%27%2F%3E%3Cpath%20d%3D%27M10%207L14%2014L10%2021L6%2014Z%27%20fill%3D%27none%27%20stroke%3D%27%23d4dce6%27%20stroke-width%3D%27.7%27%2F%3E%3C%2Fsvg%3E"); }

.cosmEffect[data-cosm="effect-war-declared"] [data-part="clash"] {
  top: 8px;
  right: 34px;
  width: 64px;
  height: 52px;
  background: radial-gradient(circle at 50% 50%, rgb(255 236 214 / 0.55), rgb(214 69 79 / 0.18) 40%, transparent 70%);
  opacity: 0.2;
}

.cosmEffect[data-cosm="effect-war-declared"] [data-part="spark"] {
  width: 9px;
  height: 9px;
  background: radial-gradient(closest-side, #fff 0 20%, rgb(255 214 170 / 0.9) 40%, transparent 72%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  opacity: 0;
}

.cosmEffect[data-cosm="effect-war-declared"] .cosmL4 { top: 12px; right: 62px; }
.cosmEffect[data-cosm="effect-war-declared"] .cosmL5 { top: 26px; right: 52px; width: 7px; height: 7px; }
.cosmEffect[data-cosm="effect-war-declared"] .cosmL6 { top: 46px; right: 64px; width: 6px; height: 6px; }

@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-jackpot-lights"] [data-part="reel"]::before {
    animation: cosmJackpotReel 1.6s cubic-bezier(0.2, 0.7, 0.25, 1) var(--reel-delay) both;
  }

  .cosmEffect[data-cosm="effect-jackpot-lights"] [data-part="flash"] {
    animation: cosmJackpotFlash 2.6s ease-out both;
  }

  .cosmEffect[data-cosm="effect-jackpot-lights"] [data-part="coin"] {
    animation: cosmJackpotCoin 1.3s var(--cosm-ease-settle) var(--coin-delay) both;
  }

  .cosmEffect[data-cosm="effect-candy-burst"] [data-part="burst"] {
    animation: cosmCandyGlow 2s var(--cosm-ease-breathe) both;
  }

  .cosmEffect[data-cosm="effect-candy-burst"] [data-part="candy"] {
    animation: cosmCandyPop 1.5s var(--cosm-ease-settle) var(--delay) both;
  }

  .cosmEffect[data-cosm="effect-top-corner"] [data-part="goal"] {
    animation: cosmTopCornerNet 2.4s var(--cosm-ease-settle) both;
  }

  .cosmEffect[data-cosm="effect-top-corner"] [data-part="trail"] {
    animation: cosmTopCornerTrail 2.4s ease-out both;
  }

  .cosmEffect[data-cosm="effect-top-corner"] [data-part="ball"] {
    animation: cosmTopCornerShot 1.4s cubic-bezier(0.3, 0.1, 0.3, 1) 0.2s both;
  }

  .cosmEffect[data-cosm="effect-top-corner"] [data-part="flash"] {
    animation: cosmTopCornerFlash 2.4s ease-out both;
  }

  .cosmEffect[data-cosm="effect-uno-call"] [data-part="card"] {
    animation: cosmUnoFan 1.4s var(--cosm-ease-settle) 0.1s both;
  }

  .cosmEffect[data-cosm="effect-uno-call"] [data-part="badge"] {
    animation: cosmUnoBadge 1.6s var(--cosm-ease-settle) 1s both;
  }

  .cosmEffect[data-cosm="effect-royal-hand"] [data-part="glow"] {
    animation: cosmRoyalGlow 2.6s var(--cosm-ease-breathe) both;
  }

  .cosmEffect[data-cosm="effect-royal-hand"] [data-part="crown"] {
    animation: cosmRoyalCrown 1.4s var(--cosm-ease-settle) both;
  }

  .cosmEffect[data-cosm="effect-royal-hand"] [data-part="suit"] {
    animation: cosmRoyalSuit 1.1s var(--cosm-ease-settle) var(--suit-delay) both;
  }

  .cosmEffect[data-cosm="effect-war-declared"] [data-part="card"] {
    animation: cosmWarCharge 1.5s var(--cosm-ease-settle) both;
  }

  .cosmEffect[data-cosm="effect-war-declared"] [data-part="clash"] {
    animation: cosmWarClash 2.2s ease-out both;
  }

  .cosmEffect[data-cosm="effect-war-declared"] [data-part="spark"] {
    animation: cosmWarSpark 0.9s ease-out 0.62s both;
  }

  .cosmEffect[data-cosm="effect-war-declared"] .cosmL5 { animation-delay: 0.7s; }
  .cosmEffect[data-cosm="effect-war-declared"] .cosmL6 { animation-delay: 0.78s; }
}

@keyframes cosmJackpotReel {
  from { transform: translateY(0); }
  to { transform: translateY(-75%); }
}

@keyframes cosmJackpotFlash {
  0%, 55% { opacity: 0; }
  70% { opacity: 1; }
  100% { opacity: 0.35; }
}

@keyframes cosmJackpotCoin {
  0% { opacity: 0; transform: translateY(14px) scale(0.5); }
  45% { opacity: 1; transform: translateY(-12px) scale(1.1); }
  100% { opacity: 0.75; transform: none; }
}

@keyframes cosmCandyGlow {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0.4; }
}

@keyframes cosmCandyPop {
  0% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); }
  55% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.8; transform: none; }
}

@keyframes cosmTopCornerNet {
  0%, 55% { opacity: 0.3; transform: none; }
  64% { opacity: 0.6; transform: scale(1.03, 1.06); }
  100% { opacity: 0.45; transform: none; }
}

@keyframes cosmTopCornerTrail {
  0%, 15% { opacity: 0; }
  60% { opacity: 0.7; }
  100% { opacity: 0.35; }
}

@keyframes cosmTopCornerShot {
  0% { opacity: 0; transform: translate(-92px, 42px) scale(1.45); }
  12% { opacity: 1; }
  50% { transform: translate(-40px, 6px) scale(1.15); }
  80% { transform: translate(2px, -2px) scale(0.95); }
  100% { opacity: 0.85; transform: none; }
}

@keyframes cosmTopCornerFlash {
  0%, 52% { opacity: 0; }
  62% { opacity: 1; }
  100% { opacity: 0.2; }
}

@keyframes cosmUnoFan {
  0% { opacity: 0; transform: translateY(10px) rotate(0deg); }
  35% { opacity: 1; transform: rotate(0deg); }
  100% { opacity: 0.8; transform: rotate(var(--fan)); }
}

@keyframes cosmUnoBadge {
  0% { opacity: 0; transform: scale(0.4) rotate(-12deg); }
  45% { opacity: 1; transform: scale(1.18) rotate(4deg); }
  100% { opacity: 0.85; transform: none; }
}

@keyframes cosmRoyalGlow {
  0% { opacity: 0; }
  40% { opacity: 1; }
  100% { opacity: 0.45; }
}

@keyframes cosmRoyalCrown {
  0% { opacity: 0; transform: translateY(-16px) scale(0.85); }
  70% { opacity: 1; transform: translateY(2px); }
  100% { opacity: 0.85; transform: none; }
}

@keyframes cosmRoyalSuit {
  0% { opacity: 0; transform: translateY(6px) scale(0.5); }
  55% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0.75; transform: none; }
}

@keyframes cosmWarCharge {
  0% { opacity: 0; transform: translateX(var(--from)) rotate(var(--tilt)); }
  40% { opacity: 1; transform: translateX(0) rotate(0deg); }
  50% { transform: translateX(calc(var(--from) / -12)) rotate(0deg); }
  100% { opacity: 0.8; transform: rotate(var(--tilt)); }
}

@keyframes cosmWarClash {
  0%, 36% { opacity: 0; transform: scale(0.6); }
  46% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0.2; transform: none; }
}

@keyframes cosmWarSpark {
  0% { opacity: 0; transform: scale(0.4); }
  35% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(0.8); }
}

/* Selected sets: one-shot banner accents; names, avatars and controls stay clear. */
.cosmEffect[data-cosm="effect-velvet-glint"] [data-part="glint"] {
  top: 14px;
  right: 27px;
  width: 9px;
  height: 9px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2016%2016'%3E%3Cpath%20d%3D'M8%200L9.5%206.5L16%208L9.5%209.5L8%2016L6.5%209.5L0%208L6.5%206.5Z'%20fill%3D'%23f0e6ed'%20stroke%3D'none'%20stroke-width%3D'0'%20stroke-linejoin%3D'round'%20stroke-linecap%3D'round'%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  opacity: 0.2;
}

.cosmEffect[data-cosm="effect-velvet-glint"] .cosmL2 {
  top: 34px;
  right: 53px;
  width: 5px;
  height: 5px;
}

.cosmEffect[data-cosm="effect-tape-start"] [data-part="reel"] {
  top: 18px;
  right: 48px;
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2012%2012'%3E%3Ccircle%20cx%3D'6'%20cy%3D'6'%20r%3D'5.3'%20fill%3D'none'%20stroke%3D'%23c9b991'%20stroke-width%3D'.8'%2F%3E%3Cpath%20d%3D'M6%202V10M2%206H10'%20stroke%3D'%23c9b991'%20stroke-width%3D'.7'%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  opacity: 0.15;
}

.cosmEffect[data-cosm="effect-tape-start"] .cosmL2 { right: 22px; }

.cosmEffect[data-cosm="effect-tape-start"] [data-part="label"] {
  top: 44px;
  right: 24px;
  width: 35px;
  height: 2px;
  background: #b56845;
  opacity: 0.18;
  transform-origin: left center;
}

.cosmEffect[data-cosm="effect-contour-reveal"] [data-part="contour"] {
  top: 9px;
  right: 12px;
  width: 105px;
  height: 64px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2056%2042'%3E%3Cg%20opacity%3D'.45'%3E%3Cpath%20d%3D'M6%200Q32%209%2022%2023Q12%2035%2047%2042'%20fill%3D'none'%20stroke%3D'%2382c1b9'%20stroke-width%3D'0.7'%20stroke-linejoin%3D'round'%20stroke-linecap%3D'round'%2F%3E%3Cpath%20d%3D'M14%200Q36%209%2029%2023Q23%2034%2049%2040'%20fill%3D'none'%20stroke%3D'%2382c1b9'%20stroke-width%3D'0.7'%20stroke-linejoin%3D'round'%20stroke-linecap%3D'round'%2F%3E%3Cpath%20d%3D'M23%200Q43%208%2035%2024Q29%2034%2050%2039'%20fill%3D'none'%20stroke%3D'%2382c1b9'%20stroke-width%3D'0.7'%20stroke-linejoin%3D'round'%20stroke-linecap%3D'round'%2F%3E%3Cpath%20d%3D'M31%200Q49%209%2042%2022Q36%2031%2051%2036'%20fill%3D'none'%20stroke%3D'%2382c1b9'%20stroke-width%3D'0.7'%20stroke-linejoin%3D'round'%20stroke-linecap%3D'round'%2F%3E%3C%2Fg%3E%3Cpath%20d%3D'M44%207L51%207'%20fill%3D'none'%20stroke%3D'%23c1ceca'%20stroke-width%3D'1'%20stroke-linejoin%3D'round'%20stroke-linecap%3D'round'%2F%3E%3C%2Fsvg%3E") right center / 100% 100% no-repeat;
  opacity: 0.25;
}

.cosmEffect[data-cosm="effect-boot-ready"] [data-part="cell"] {
  top: 20px;
  right: 58px;
  width: 5px;
  height: 5px;
  background: #a5ba98;
  opacity: 0.18;
}

.cosmEffect[data-cosm="effect-boot-ready"] .cosmL2 { right: 47px; }
.cosmEffect[data-cosm="effect-boot-ready"] .cosmL3 { right: 36px; }
.cosmEffect[data-cosm="effect-boot-ready"] .cosmL4 { right: 25px; }

@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-velvet-glint"] [data-part="glint"] {
    animation: cosmVelvetGlint 1.8s var(--cosm-ease-settle) both;
  }

  .cosmEffect[data-cosm="effect-velvet-glint"] .cosmL2 { animation-delay: 0.25s; }

  .cosmEffect[data-cosm="effect-tape-start"] [data-part="reel"] {
    animation: cosmTapeStart 2.2s var(--cosm-ease-settle) both;
  }

  .cosmEffect[data-cosm="effect-tape-start"] [data-part="label"] {
    animation: cosmTapeLabel 1.6s var(--cosm-ease-settle) 0.2s both;
  }

  .cosmEffect[data-cosm="effect-contour-reveal"] [data-part="contour"] {
    animation: cosmContourReveal 2.4s var(--cosm-ease-settle) both;
  }

  .cosmEffect[data-cosm="effect-boot-ready"] [data-part="cell"] {
    animation: cosmBootCell 1.5s var(--cosm-ease-settle) both;
  }

  .cosmEffect[data-cosm="effect-boot-ready"] .cosmL2 { animation-delay: 0.12s; }
  .cosmEffect[data-cosm="effect-boot-ready"] .cosmL3 { animation-delay: 0.24s; }
  .cosmEffect[data-cosm="effect-boot-ready"] .cosmL4 { animation-delay: 0.36s; }
}

@keyframes cosmVelvetGlint {
  0% { opacity: 0; transform: translateY(3px) scale(0.75); }
  30% { opacity: 0.7; transform: none; }
  100% { opacity: 0.2; transform: none; }
}

@keyframes cosmTapeStart {
  0% { opacity: 0; transform: rotate(-120deg); }
  35% { opacity: 0.5; }
  100% { opacity: 0.15; transform: none; }
}

@keyframes cosmTapeLabel {
  0% { opacity: 0; transform: scaleX(0.4); }
  45% { opacity: 0.5; }
  100% { opacity: 0.18; transform: none; }
}

@keyframes cosmContourReveal {
  0% { opacity: 0; transform: translateX(6px); }
  45% { opacity: 0.6; transform: none; }
  100% { opacity: 0.25; transform: none; }
}

@keyframes cosmBootCell {
  0% { opacity: 0; transform: translateY(2px); }
  25%, 40% { opacity: 0.65; transform: none; }
  100% { opacity: 0.18; transform: none; }
}
/* Son Düello: one high-noon reveal on the banner, with a quiet resting town. */
.cosmEffect[data-cosm="effect-high-noon"] [data-part="sun"] {
  inset: 9px 45px auto auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff0c3, #edc585 60%, #b68a50);
  opacity: 0.5;
}

.cosmEffect[data-cosm="effect-high-noon"] [data-part="town"] {
  inset: 0 12px auto auto;
  width: 128px;
  height: 80px;
  background: url("../../../assets/cosmetics/duel-town.svg") center / contain no-repeat;
  opacity: 0.65;
}

.cosmEffect[data-cosm="effect-high-noon"] [data-part="dust"] {
  inset: 56px 24px auto auto;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #edc585;
  opacity: 0;
}

.cosmEffect[data-cosm="effect-high-noon"] .cosmL4 { right: 64px; top: 47px; }
.cosmEffect[data-cosm="effect-high-noon"] .cosmL5 { right: 103px; top: 63px; }

@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-high-noon"] [data-part="sun"] {
    animation: cosmHighNoonSun 2s var(--cosm-ease-settle) both;
  }
  .cosmEffect[data-cosm="effect-high-noon"] [data-part="town"] {
    animation: cosmHighNoonTown 1.8s var(--cosm-ease-settle) both;
  }
  .cosmEffect[data-cosm="effect-high-noon"] [data-part="dust"] {
    animation: cosmHighNoonDust 2.4s ease-out both;
  }
  .cosmEffect[data-cosm="effect-high-noon"] .cosmL4 { animation-delay: 0.2s; }
  .cosmEffect[data-cosm="effect-high-noon"] .cosmL5 { animation-delay: 0.4s; }
}

@keyframes cosmHighNoonSun {
  0% { opacity: 0; transform: translateY(18px) scale(0.85); }
  100% { opacity: 0.5; transform: none; }
}

@keyframes cosmHighNoonTown {
  0% { opacity: 0; transform: translateY(5px); }
  100% { opacity: 0.65; transform: none; }
}

@keyframes cosmHighNoonDust {
  0% { opacity: 0; transform: none; }
  25% { opacity: 0.65; }
  100% { opacity: 0; transform: translate(-24px, -16px); }
}

/* Askıda Para: two rings reveal once over the banner, then leave a resting seal. */
.cosmEffect[data-cosm="effect-kindness-ripple"] [data-part="seal"] {
  inset: 8px 34px auto auto;
  width: 64px;
  height: 64px;
  background: url("../../../assets/cosmetics/donation-seal.svg") center / contain no-repeat;
  opacity: 0.6;
}

.cosmEffect[data-cosm="effect-kindness-ripple"] [data-part="ring"] {
  inset: 6px 32px auto auto;
  width: 68px;
  height: 68px;
  border: 1px solid #b9d8b0;
  border-radius: 50%;
  opacity: 0;
}

.cosmEffect[data-cosm="effect-kindness-ripple"] .cosmL2 { border-color: #edbe8a; }

@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-kindness-ripple"] [data-part="ring"] {
    animation: cosmKindnessRipple 2.4s var(--cosm-ease-settle) both;
  }
  .cosmEffect[data-cosm="effect-kindness-ripple"] .cosmL2 { animation-delay: 0.3s; }
  .cosmEffect[data-cosm="effect-kindness-ripple"] [data-part="seal"] {
    animation: cosmKindnessSeal 1.8s var(--cosm-ease-settle) both;
  }
}

@keyframes cosmKindnessRipple {
  0% { opacity: 0; transform: scale(0.6); }
  25% { opacity: 0.5; }
  100% { opacity: 0; transform: scale(2); }
}

@keyframes cosmKindnessSeal {
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 0.6; transform: none; }
}
/* Printstream · one finite foil reveal, contained entirely in the banner. */
.cosmEffect[data-cosm="effect-printstream-reflection"] {
  /* The banner overlaps the top half of the avatar; keep the image and its ring uncovered. */
  --ps-avatar-clear: calc(var(--cosm-avatar-size, 80px) / 2 + 10px);
  -webkit-mask: radial-gradient(circle at var(--cosm-avatar-x, 58px) var(--cosm-avatar-y, 82px),
    transparent var(--ps-avatar-clear), #000 calc(var(--ps-avatar-clear) + 1px));
  mask: radial-gradient(circle at var(--cosm-avatar-x, 58px) var(--cosm-avatar-y, 82px),
    transparent var(--ps-avatar-clear), #000 calc(var(--ps-avatar-clear) + 1px));
}
.cosmEffect[data-cosm="effect-printstream-reflection"] [data-part="foil"] {
  inset: 0 0 auto;
  height: var(--cosm-banner-height, 84px);
  overflow: hidden;
  opacity: var(--ps-sheen);
}
.cosmEffect[data-cosm="effect-printstream-reflection"] [data-part="foil"]::before {
  content: "";
  inset: -50% -20%;
  background: var(--ps-pearl);
  -webkit-mask: linear-gradient(100deg, transparent 6%, #000 80%);
  mask: linear-gradient(100deg, transparent 6%, #000 80%);
}
.cosmEffect[data-cosm="effect-printstream-reflection"] [data-part="scan"] {
  inset: 0 0 auto;
  height: var(--cosm-banner-height, 84px);
  background: linear-gradient(108deg, transparent 25%, #c7ecf44d 38%, #fff 49%, #fbd0f580 55%, transparent 68%);
  opacity: 0;
}
.cosmEffect[data-cosm="effect-printstream-reflection"] [data-part="seal"] {
  inset: 12px 20px auto auto;
  width: 58px;
  height: 58px;
  background: url("../../../assets/cosmetics/printstream-seal.svg") center / contain no-repeat;
  opacity: 0.7;
}
.cosmEffect[data-cosm="effect-printstream-reflection"] [data-part="spark"] {
  inset: 12px 12px auto auto;
  width: 125px;
  height: 63px;
  background: linear-gradient(#fff, #fff) 19% 26% / 8px 1px no-repeat,
    linear-gradient(#fff, #fff) 22% 22% / 1px 8px no-repeat,
    linear-gradient(#fbdcff, #fbdcff) 92% 85% / 5px 1px no-repeat,
    radial-gradient(circle at 38% 78%, #d3faff 0 1px, transparent 1.8px);
  opacity: 0.5;
}
@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-printstream-reflection"] [data-part="foil"]::before {
    animation: cosmPrintstreamFoilReveal 3s ease-out both;
  }
  .cosmEffect[data-cosm="effect-printstream-reflection"] [data-part="scan"] {
    animation: cosmPrintstreamScan 2.8s cubic-bezier(.2,.7,.2,1) both;
  }
  .cosmEffect[data-cosm="effect-printstream-reflection"] [data-part="seal"] {
    animation: cosmPrintstreamSealReveal 2.6s ease-out both;
  }
  .cosmEffect[data-cosm="effect-printstream-reflection"] [data-part="spark"] {
    animation: cosmPrintstreamSparkReveal 3.2s ease-out both;
  }
}
@keyframes cosmPrintstreamFoilReveal {
  0% { opacity: 0; transform: translateX(-25%) skewX(-12deg); }
  35% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes cosmPrintstreamScan {
  0% { opacity: 0; transform: translateX(-100%); }
  25% { opacity: 0.8; }
  75%, 100% { opacity: 0; transform: translateX(100%); }
}
@keyframes cosmPrintstreamSealReveal {
  0%, 15% { opacity: 0; transform: translateY(7px) scale(0.9) rotate(-12deg); }
  55% { opacity: 1; transform: translateY(0) scale(1.05) rotate(0deg); }
  100% { opacity: 0.7; transform: none; }
}
@keyframes cosmPrintstreamSparkReveal {
  0%, 12% { opacity: 0; transform: translateY(4px); }
  48% { opacity: 1; }
  100% { opacity: 0.5; transform: none; }
}

/* Gece Ayini: one quiet reveal on the right, clipped above profile content. */
.cosmEffect[data-cosm="effect-gothic-reverie"] {
  height: var(--cosm-banner-height, 84px);
  bottom: auto;
  -webkit-mask: linear-gradient(90deg, transparent 38%, #000 53%);
  mask: linear-gradient(90deg, transparent 38%, #000 53%);
}
.cosmEffect[data-cosm="effect-gothic-reverie"] [data-part="moon"] {
  inset: 6px 56px auto auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, #dab9f22b 30%, #ba80df24 60%, transparent 71%);
  box-shadow: inset 1px 0 0 #ebd1ff61;
  opacity: 0.7;
}
.cosmEffect[data-cosm="effect-gothic-reverie"] [data-part="portrait"] {
  inset: 0 6px auto auto;
  width: 108px;
  height: 84px;
  background: url("../../../assets/cosmetics/gothic-portrait.svg") center 24% / 108px 108px no-repeat;
  -webkit-mask: linear-gradient(0deg, transparent, #000 18%);
  mask: linear-gradient(0deg, transparent, #000 18%);
}
.cosmEffect[data-cosm="effect-gothic-reverie"] [data-part="spark"] {
  inset: 6px 10px auto auto;
  width: 140px;
  height: 70px;
  background: radial-gradient(circle at 12% 68%, #e7c3ff 0 1px, transparent 1.5px),
    radial-gradient(circle at 30% 22%, #f5e6ff 0 1px, transparent 1.5px),
    radial-gradient(circle at 84% 42%, #bd8fe4 0 1.5px, transparent 2px),
    radial-gradient(circle at 72% 80%, #edcfff 0 1px, transparent 1.5px);
  opacity: 0.6;
}
@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-gothic-reverie"] [data-part="moon"] {
    animation: cosmGothicMoonReveal 2.4s ease-out both;
  }
  .cosmEffect[data-cosm="effect-gothic-reverie"] [data-part="portrait"] {
    animation: cosmGothicPortraitReveal 2.6s var(--cosm-ease-settle) both;
  }
  .cosmEffect[data-cosm="effect-gothic-reverie"] [data-part="spark"] {
    animation: cosmGothicSparkReveal 3.2s ease-out both;
  }
}
@keyframes cosmGothicMoonReveal {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 0.7; transform: none; }
}
@keyframes cosmGothicPortraitReveal {
  0%, 12% { opacity: 0; transform: translateX(10px); }
  100% { opacity: 1; transform: none; }
}
@keyframes cosmGothicSparkReveal {
  0%, 10% { opacity: 0; transform: translateY(10px); }
  45% { opacity: 1; }
  100% { opacity: 0.6; transform: none; }
}

/* Taş ve Vitray: Gothic stone tracery and jewel glass. */
.cosmEffect[data-cosm="effect-cathedral-dawn"] {
  height: var(--cosm-banner-height, 84px);
  bottom: auto;
}
.cosmEffect[data-cosm="effect-cathedral-dawn"] [data-part="window"] {
  inset: 0 8px 0 45%;
  background: url("../../../assets/cosmetics/cathedral-rose.svg") right center / auto 90% no-repeat;
  opacity: 0.8;
}
.cosmEffect[data-cosm="effect-cathedral-dawn"] [data-part="light"] {
  background: conic-gradient(from 185deg at 88% 20%, transparent, #307ba16b 10deg, transparent 25deg, #a83e6059 38deg, transparent 50deg, #e0bc754d 65deg, transparent 85deg);
  opacity: 0.7;
  transform-origin: 88% 20%;
}
@media (prefers-reduced-motion: no-preference) {
  .cosmEffect[data-cosm="effect-cathedral-dawn"] [data-part="window"] {
    animation: cosmCathedralWindow 2.4s ease-out both;
  }
  .cosmEffect[data-cosm="effect-cathedral-dawn"] [data-part="light"] {
    animation: cosmCathedralDawn 3.2s ease-out both;
  }
}
@keyframes cosmCathedralWindow {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 0.8; transform: none; }
}
@keyframes cosmCathedralDawn {
  from { opacity: 0; transform: rotate(-12deg); }
  to { opacity: 0.7; transform: none; }
}

/* Big Bass Bonanza: achievement collection. */
.cosmEffect[data-cosm="effect-golden-catch"] { height: var(--cosm-banner-height, 84px); bottom: auto; }
.cosmEffect[data-cosm="effect-golden-catch"] [data-part="scene"] { inset: 0 0 0 36%; background: url("../../../assets/cosmetics/bass-scene.svg") right center / auto 100% no-repeat; opacity: 0.8; -webkit-mask: linear-gradient(90deg, transparent, #000 35%); mask: linear-gradient(90deg, transparent, #000 35%); }
.cosmEffect[data-cosm="effect-golden-catch"] [data-part="wild"] {
  inset: 3px 8px auto auto;
  width: 78px;
  height: 78px;
  background: url("../../../assets/games/bass/wild.webp") center / contain no-repeat;
}

/* Tombstone: achievement collection. */
.cosmEffect[data-cosm="effect-deadwood-moon"] { height: var(--cosm-banner-height, 84px); bottom: auto; }
.cosmEffect[data-cosm="effect-deadwood-moon"] [data-part="scene"] { inset: 0 0 0 36%; background: url("../../../assets/cosmetics/tombstone-scene.svg") right center / auto 100% no-repeat; opacity: 0.8; -webkit-mask: linear-gradient(90deg, transparent, #000 35%); mask: linear-gradient(90deg, transparent, #000 35%); }
.cosmEffect[data-cosm="effect-deadwood-moon"] [data-part="seal"] { inset: 12px 12px auto auto; width: 46px; height: 46px; background: url("../../../assets/cosmetics/tombstone-seal.svg") center / contain no-repeat; opacity: 0.65; }

/* Şeytanla Anlaşma: achievement collection. */
.cosmEffect[data-cosm="effect-redemption-pact"] { bottom: auto; height: var(--cosm-banner-height, 84px); }
.cosmEffect[data-cosm="effect-redemption-pact"] [data-part="scene"] { inset: 0; background: url("../../../assets/cosmetics/devil-contract.webp") right center / cover no-repeat; opacity: 0.8; -webkit-mask: linear-gradient(90deg, transparent 28%, #000 68%); mask: linear-gradient(90deg, transparent 28%, #000 68%); }
.cosmEffect[data-cosm="effect-redemption-pact"] [data-part="seal"] { inset: 8px 12px auto auto; width: 44px; height: 44px; background: url("../../../assets/cosmetics/devil-seal.webp") center / contain no-repeat; opacity: 0.85; }
