/* ═══════════════════════════════════════════════════════════════════════
   KOZMETİKLER · Profil çerçeveleri
   Drawn over the profile card's edge (300px wide, 14px radius) and over the
   market's mini cards. Art stays on the border, in the corners and on the
   banner; the name, status and buttons are never covered.
   ═══════════════════════════════════════════════════════════════════════ */

/* Manifest · Arıyo: chrome is masked to the perimeter, never painted over user content. */
.cosmFrame[data-cosm="frame-manifest-ariyo"] [data-part="border"] {
  --bw: 4px;
  background: linear-gradient(145deg, #06181e, #5bf8ff 8%, #f0ffff 12%, #078fa3 18%,
    #091318 28%, #3ce4f3 38%, #d2ffff 43%, #075669 51%, #06171e 61%, #6cffff 75%, #e4ffff 80%, #036074 91%, #68faff);
  box-shadow: inset 0 0 0 1px #93faff;
}
.cosmFrame[data-cosm="frame-manifest-ariyo"] [data-part="inner"] {
  --gap: 5px;
  --line: #53d4df70;
  box-shadow: 0 0 0 1px #030e14;
}
.cosmFrame[data-cosm="frame-manifest-ariyo"] [data-part="inner"]::after {
  content: '';
  inset: -4px;
  background: url("../../../assets/cosmetics/manifest-corner.svg") left top / 24px 24px no-repeat;
  transform: scaleY(-1);
}
.cosmFrame[data-cosm="frame-manifest-ariyo"] [data-part="corners"] {
  inset: 1px;
  background: url("../../../assets/cosmetics/manifest-corner.svg") left top / 24px 24px no-repeat;
}
.cosmFrame[data-cosm="frame-manifest-ariyo"] [data-part="corners"]::before,
.cosmFrame[data-cosm="frame-manifest-ariyo"] [data-part="corners"]::after {
  content: '';
  inset: 0;
  background: url("../../../assets/cosmetics/manifest-corner.svg") left top / 24px 24px no-repeat;
}
.cosmFrame[data-cosm="frame-manifest-ariyo"] [data-part="corners"]::before { transform: scaleX(-1); }
.cosmFrame[data-cosm="frame-manifest-ariyo"] [data-part="corners"]::after { transform: rotate(180deg); }
.cosmFrame[data-cosm="frame-manifest-ariyo"] [data-part="reflection"] {
  border: 1px solid #baffff;
  opacity: 0.2;
}
@media (prefers-reduced-motion: no-preference) {
  .cosmFrame[data-cosm="frame-manifest-ariyo"] [data-part="reflection"] {
    animation: cosmManifestChrome 7s ease-in-out infinite both;
  }
}
@keyframes cosmManifestChrome {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.65; }
}

/* Askıda Para: the patron frame keeps all decoration on the edge and banner. */
.cosmFrame[data-cosm="frame-community-patron"] [data-part="border"] {
  --bw: 2px;
  background: linear-gradient(135deg, #ffe6b2, #bf805a 28%, #b9d8b0 62%, #d9b58a);
}

.cosmFrame[data-cosm="frame-community-patron"] [data-part="inner"] {
  --gap: 5px;
  --line: #b9d8b033;
}

.cosmFrame[data-cosm="frame-community-patron"] [data-part="corners"] {
  inset: 7px;
  background: url("../../../assets/cosmetics/donation-laurel.svg") top left / 26px 26px no-repeat,
    url("../../../assets/cosmetics/donation-laurel.svg") bottom right / 26px 26px no-repeat;
}

.cosmFrame[data-cosm="frame-community-patron"] [data-part="medallion"] {
  inset: 2px auto auto calc(50% - 16px);
  width: 32px;
  height: 32px;
  background: url("../../../assets/cosmetics/donation-seal.svg") center / contain no-repeat;
}

/* Son Düello: leather fittings and a brass seal stay on the card's edge. */
.cosmFrame[data-cosm="frame-duel-legend"] [data-part="border"] {
  --bw: 3px;
  background: linear-gradient(135deg, #f7dfa6, #946136 25%, #422821 45%, #b68a50 70%, #edc585);
}

.cosmFrame[data-cosm="frame-duel-legend"] [data-part="inner"] {
  --gap: 6px;
  --line: #edc58540;
  border-style: dashed;
}

.cosmFrame[data-cosm="frame-duel-legend"] [data-part="corners"] {
  inset: 5px;
  background: url("../../../assets/cosmetics/duel-corner.svg") top left / 28px 28px no-repeat;
}

.cosmFrame[data-cosm="frame-duel-legend"] [data-part="corners"]::after {
  content: "";
  inset: 0;
  background: url("../../../assets/cosmetics/duel-corner.svg") top left / 28px 28px no-repeat;
  transform: rotate(180deg);
}

.cosmFrame[data-cosm="frame-duel-legend"] [data-part="medallion"] {
  inset: -3px auto auto calc(50% - 17px);
  width: 34px;
  height: 34px;
  background: url("../../../assets/cosmetics/duel-star.svg") center / contain no-repeat;
}

/* ─── Primitive: border band ───
   A layer that is visible only as a band --bw wide along the card's edge. */
.cosmFrame :is([data-part="border"], [data-part="runner"], [data-part="sweep"], [data-part="haze"]) {
  --bw: 2px;
  padding: var(--bw);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* ─── Primitive: inner line ─── */
.cosmFrame [data-part="inner"] {
  --gap: 5px;
  inset: var(--gap);
  border: 1px solid var(--line, rgb(255 255 255 / 0.07));
  border-radius: max(2px, calc(var(--cosm-card-radius, 14px) - var(--gap)));
}

/* ─── Primitive: sheen travelling along the border ─── */
.cosmFrame [data-part="sweep"] {
  --bw: 3px;
  overflow: hidden;
}

.cosmFrame [data-part="sweep"]::before {
  content: "";
  top: -50%;
  left: 0;
  width: 22%;
  height: 200%;
  background: linear-gradient(90deg, transparent, var(--sheen, rgb(255 255 255 / 0.85)), transparent);
  transform: translateX(-120%) rotate(18deg);
}

@media (prefers-reduced-motion: no-preference) {
  .cosmFrame [data-part="sweep"]::before {
    animation: cosmFrameSheen var(--cosm-dur-shimmer) var(--cosm-ease-sweep) infinite;
  }
}

@keyframes cosmFrameSheen {
  0%, 50% { transform: translateX(-120%) rotate(18deg); }
  90%, 100% { transform: translateX(560%) rotate(18deg); }
}

/* Legendary signature sets: corner fittings scale with the card, never across its text. */
.cosmFrame[data-cosm="frame-duat-temple"] {
  --signature-corner: url("../../../assets/cosmetics/duat-corner.svg");
  --signature-crest: url("../../../assets/cosmetics/duat-seal.svg");
}
.cosmFrame[data-cosm="frame-duat-temple"] [data-part="border"] {
  --bw: 3px;
  background: linear-gradient(135deg, #f7e2a1, #78582a 28%, #e1b965 50%, #263e5b 70%, #d2b16f);
}
.cosmFrame[data-cosm="frame-duat-temple"] [data-part="inner"] {
  --gap: 6px;
  --line: #b49a5b4d;
}
.cosmFrame[data-cosm="frame-powder-workshop"] {
  --signature-corner: url("../../../assets/cosmetics/powder-corner.svg");
  --signature-crest: url("../../../assets/cosmetics/powder-seal.svg");
}
.cosmFrame[data-cosm="frame-powder-workshop"] [data-part="border"] {
  --bw: 3px;
  background: linear-gradient(145deg, #4e9eb1, #263642 30%, #ec81bb 31% 35%, #425462 36% 70%, #2998b8);
}
.cosmFrame[data-cosm="frame-powder-workshop"] [data-part="inner"] {
  --gap: 6px;
  --line: #849ead38;
  border-style: dashed;
}
.cosmFrame[data-cosm="frame-sparta-forge"] {
  --signature-corner: url("../../../assets/cosmetics/sparta-corner.svg");
  --signature-crest: url("../../../assets/cosmetics/sparta-seal.svg");
}
.cosmFrame[data-cosm="frame-sparta-forge"] [data-part="border"] {
  --bw: 3px;
  background: linear-gradient(120deg, #e5e3d9, #56676d 20%, #a4b6b8 45%, #973942 46% 49%, #4c5d62 50%, #c9d7d3);
}
.cosmFrame[data-cosm="frame-sparta-forge"] [data-part="inner"] {
  --gap: 6px;
  --line: #a0bdc43b;
}
/* Will of Fire · Hokage Pelerini: an orange and black band with chakra chasing round it, kunai and
   seal-tag corners, the leaf headband as crest and cloak flames inside the bottom padding. */
.cosmFrame[data-cosm="frame-konoha-hokage"] {
  --signature-corner: url("../../../assets/cosmetics/konoha-corner.svg");
  --signature-crest: url("../../../assets/cosmetics/konoha-plate.svg");
}
.cosmFrame[data-cosm="frame-konoha-hokage"] [data-part="border"] {
  --bw: 4px;
  background: linear-gradient(135deg, #ffd27a, #ff7a1a 18%, #1a1b22 19% 23%, #f28a2e 24% 52%,
    #1a1b22 53% 57%, #ff8a2a 58% 82%, #ffd27a);
}
.cosmFrame[data-cosm="frame-konoha-hokage"] [data-part="runner"] {
  --bw: 4px;
  overflow: hidden;
  mix-blend-mode: plus-lighter;
}
.cosmFrame[data-cosm="frame-konoha-hokage"] [data-part="runner"]::before {
  content: "";
  left: 50%;
  top: 50%;
  width: 230%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: conic-gradient(from 0deg,
    transparent 0 130deg, rgb(255 110 30 / 0.4) 158deg, #ffc04a 174deg, #fff2c6 179deg, transparent 180deg,
    transparent 310deg, rgb(255 110 30 / 0.4) 338deg, #ffc04a 354deg, #fff2c6 359deg, transparent 360deg);
}
.cosmFrame[data-cosm="frame-konoha-hokage"] [data-part="inner"] {
  --gap: 7px;
  --line: #ff9a3c4d;
}
/* The flames stay inside the card's bottom padding, below the footer buttons. */
.cosmFrame[data-cosm="frame-konoha-hokage"] [data-part="flames"] {
  inset: auto 4px 4px;
  height: 18px;
  overflow: hidden;
  border-radius: 0 0 max(2px, calc(var(--cosm-card-radius, 14px) - 4px)) max(2px, calc(var(--cosm-card-radius, 14px) - 4px));
}
.cosmFrame[data-cosm="frame-konoha-hokage"] [data-part="flames"]::before,
.cosmFrame[data-cosm="frame-konoha-hokage"] [data-part="flames"]::after {
  content: "";
  inset: 0;
  background: url("../../../assets/cosmetics/konoha-hem.svg") left bottom / 40px 15px repeat-x;
  transform-origin: 50% 100%;
  opacity: 0.85;
}
.cosmFrame[data-cosm="frame-konoha-hokage"] [data-part="flames"]::after {
  background-position: 20px bottom;
  background-size: 40px 11px;
  opacity: 0.5;
}

/* Mitik · Ejder Pulu Zırh: a scaled crimson band, gripping claws and the dragon's eye as crest. */
.cosmFrame[data-cosm="frame-dragon-scales"] {
  --signature-corner: url("../../../assets/cosmetics/dragon-corner.svg");
  --signature-crest: url("../../../assets/cosmetics/dragon-seal.svg");
}
.cosmFrame[data-cosm="frame-dragon-scales"] [data-part="border"] {
  --bw: 4px;
  background:
    radial-gradient(circle at 50% 100%, transparent 3px, #2a080a 3.4px 4px, transparent 4.4px) 0 0 / 8px 5px,
    radial-gradient(circle at 50% 100%, transparent 3px, #2a080a 3.4px 4px, transparent 4.4px) 4px 2.5px / 8px 5px,
    linear-gradient(135deg, #ffe39a, #c8372d 22%, #8f1d1f 45%, #e2a93b 62%, #8f1d1f 80%, #f0b84e);
}
.cosmFrame[data-cosm="frame-dragon-scales"] [data-part="inner"] {
  --gap: 7px;
  --line: #e2a93b4d;
}
/* Two tongues of molten gold chase each other round the scaled band. */
.cosmFrame[data-cosm="frame-dragon-scales"] [data-part="runner"] {
  --bw: 4px;
  overflow: hidden;
  mix-blend-mode: plus-lighter;
}
.cosmFrame[data-cosm="frame-dragon-scales"] [data-part="runner"]::before {
  content: "";
  left: 50%;
  top: 50%;
  width: 230%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: conic-gradient(from 0deg,
    transparent 0 120deg, rgb(255 120 60 / 0.35) 150deg, #ffd27a 172deg, #fff6dc 178deg, transparent 180deg,
    transparent 300deg, rgb(255 120 60 / 0.35) 330deg, #ffd27a 352deg, #fff6dc 358deg, transparent 360deg);
}
/* Heat behind the crest: the eye sits in an ember glow that swells as it blinks. */
.cosmFrame[data-cosm="frame-dragon-scales"] [data-part="glow"] {
  inset: -6px auto auto calc(50% - 30px);
  width: 60px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 150 60 / 0.55), rgb(200 55 45 / 0.2) 60%, transparent);
  opacity: 0.6;
}
/* Embers rise along both sides of the card, well clear of the name and buttons. */
.cosmFrame[data-cosm="frame-dragon-scales"] [data-part="embers"] {
  overflow: hidden;
}
.cosmFrame[data-cosm="frame-dragon-scales"] [data-part="embers"]::before,
.cosmFrame[data-cosm="frame-dragon-scales"] [data-part="embers"]::after {
  content: "";
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(circle at 3.5% 88%, #ffd27a 0 1.3px, transparent 2.4px),
    radial-gradient(circle at 5.5% 72%, #ff9a3c 0 1px, transparent 2px),
    radial-gradient(circle at 3% 55%, #ffe7a3 0 1px, transparent 2px),
    radial-gradient(circle at 96.5% 84%, #ff9a3c 0 1.3px, transparent 2.4px),
    radial-gradient(circle at 94.5% 66%, #ffd27a 0 1px, transparent 2px),
    radial-gradient(circle at 97% 47%, #ffe7a3 0 1px, transparent 2px);
}
.cosmFrame[data-cosm="frame-dragon-scales"] [data-part="embers"]::after {
  background:
    radial-gradient(circle at 4.5% 80%, #ff9a3c 0 1px, transparent 2px),
    radial-gradient(circle at 2.8% 63%, #ffd27a 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 95.5% 92%, #ffe7a3 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 97.2% 70%, #ff9a3c 0 1px, transparent 2px);
}
.cosmFrame:is([data-cosm="frame-duat-temple"], [data-cosm="frame-powder-workshop"],
  [data-cosm="frame-sparta-forge"], [data-cosm="frame-dragon-scales"], [data-cosm="frame-konoha-hokage"]) [data-part="corners"]::before,
.cosmFrame:is([data-cosm="frame-duat-temple"], [data-cosm="frame-powder-workshop"],
  [data-cosm="frame-sparta-forge"], [data-cosm="frame-dragon-scales"], [data-cosm="frame-konoha-hokage"]) [data-part="corners"]::after {
  content: "";
  inset: 0 auto auto 0;
  width: 21%;
  max-width: 64px;
  aspect-ratio: 1;
  background: var(--signature-corner) center / contain no-repeat;
}
.cosmFrame:is([data-cosm="frame-duat-temple"], [data-cosm="frame-powder-workshop"],
  [data-cosm="frame-sparta-forge"], [data-cosm="frame-dragon-scales"], [data-cosm="frame-konoha-hokage"]) [data-part="corners"]::after {
  inset: auto 0 0 auto;
  transform: rotate(180deg);
}
.cosmFrame:is([data-cosm="frame-duat-temple"], [data-cosm="frame-powder-workshop"],
  [data-cosm="frame-sparta-forge"], [data-cosm="frame-dragon-scales"], [data-cosm="frame-konoha-hokage"]) [data-part="crest"] {
  inset: 5px auto auto 40%;
  width: 20%;
  height: 29px;
  background: var(--signature-crest) top center / contain no-repeat;
}

/* Mitik · Moskova Gecesi: a matte kit-red chassis with a black print channel, bracket corners and the
   badge as crest, over a night-match banner: floodlight haze from both top corners, rain falling
   through the beams and the odd camera flash in the stands. The beams stay above the avatar; the
   name, status and buttons stay clear. */
.cosmProfileCard:has(> .cosmFrame[data-cosm="frame-cr7-floodlights"]) > .cosmProfileBanner {
  background:
    radial-gradient(55% 120% at 0% 0%, rgb(255 238 220 / 0.12), transparent 70%),
    radial-gradient(55% 120% at 100% 0%, rgb(255 238 220 / 0.12), transparent 70%),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.018) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #121318, #1a0c11 62%, #2a0a12);
}
.cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="border"] {
  --bw: 6px;
  background: linear-gradient(135deg, #b8213a, #8a0e24 28%, #a3132d 52%, #6a0918 78%, #ad1c35);
}
/* Two satin highlights chase each other round the band. */
.cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="runner"] {
  --bw: 6px;
  overflow: hidden;
  mix-blend-mode: plus-lighter;
  opacity: 0.6;
}
.cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="runner"]::before {
  content: "";
  left: 50%;
  top: 50%;
  width: 230%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: conic-gradient(from 0deg,
    transparent 0 150deg, rgb(255 226 214 / 0.25) 170deg, #fff4ea 178deg, transparent 180deg,
    transparent 330deg, rgb(230 200 140 / 0.25) 350deg, #f4e6bf 358deg, transparent 360deg);
}
.cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="inner"] {
  --gap: 6px;
  --line: rgb(239 236 228 / 0.4);
  box-shadow: 0 0 0 1px #0d0e11;
}
.cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="beams"],
.cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="rain"],
.cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="flash"] {
  inset: 0 0 auto;
  height: var(--cosm-banner-height, 84px);
  overflow: hidden;
  border-radius: inherit;
}
/* Two soft light cones from the top corners, angled to cross above the avatar. */
.cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="beams"]::before,
.cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="beams"]::after {
  content: "";
  inset: 0;
  background: conic-gradient(from 92deg at 8px 8px, transparent, rgb(255 244 228 / 0.16) 8deg, transparent 16deg 360deg);
  -webkit-mask: linear-gradient(90deg, #000 20%, transparent 85%);
  mask: linear-gradient(90deg, #000 20%, transparent 85%);
}
.cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="beams"]::after {
  background: conic-gradient(from 252deg at calc(100% - 8px) 8px, transparent, rgb(255 244 228 / 0.16) 8deg, transparent 16deg 360deg);
  -webkit-mask: linear-gradient(270deg, #000 20%, transparent 85%);
  mask: linear-gradient(270deg, #000 20%, transparent 85%);
}
/* Rain shows only inside the beams, the way it does under real floodlights. */
.cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="rain"] {
  -webkit-mask:
    conic-gradient(from 90deg at 8px 8px, #000 0 20deg, transparent 20deg),
    conic-gradient(from 250deg at calc(100% - 8px) 8px, #000 0 20deg, transparent 20deg);
  mask:
    conic-gradient(from 90deg at 8px 8px, #000 0 20deg, transparent 20deg),
    conic-gradient(from 250deg at calc(100% - 8px) 8px, #000 0 20deg, transparent 20deg);
}
.cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="rain"]::before {
  content: "";
  inset: -60px 0 0;
  background: url("../../../assets/cosmetics/cr7-rain.svg") 0 0 / 40px 60px repeat;
  opacity: 0.4;
}
/* Camera flashes in the stands behind the banner; none at rest. */
.cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="flash"]::before,
.cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="flash"]::after {
  content: "";
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(circle at 58% 18%, #fff 0 0.8px, rgb(255 255 255 / 0.4) 1.6px, transparent 4px),
    radial-gradient(circle at 74% 40%, #fff 0 0.8px, rgb(255 255 255 / 0.35) 1.6px, transparent 4px),
    radial-gradient(circle at 88% 22%, #fff 0 0.8px, rgb(255 255 255 / 0.4) 1.6px, transparent 4px);
}
.cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="flash"]::after {
  background:
    radial-gradient(circle at 66% 30%, #fff 0 0.8px, rgb(255 255 255 / 0.35) 1.6px, transparent 4px),
    radial-gradient(circle at 81% 12%, #fff 0 0.8px, rgb(255 255 255 / 0.4) 1.6px, transparent 4px),
    radial-gradient(circle at 50% 36%, #fff 0 0.8px, rgb(255 255 255 / 0.3) 1.6px, transparent 4px);
}
/* Black print brackets at two corners, with print bars on the left edge and the bottom. */
.cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="corners"] {
  border-radius: inherit;
  background: url("../../../assets/cosmetics/cr7-corner.svg") top left / 40px 40px no-repeat,
    repeating-linear-gradient(0deg, #0d0e11 0 2px, transparent 2px 5px) left 2px center / 3px 28px no-repeat,
    repeating-linear-gradient(90deg, #0d0e11 0 2px, transparent 2px 5px) center bottom 2px / 35px 3px no-repeat;
}
.cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="corners"]::after {
  content: "";
  inset: 0;
  background: url("../../../assets/cosmetics/cr7-corner.svg") top left / 40px 40px no-repeat;
  transform: rotate(180deg);
}
.cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="crest"] {
  inset: 1px auto auto calc(50% - 15px);
  width: 30px;
  height: 30px;
  background: url("../../../assets/cosmetics/cr7-seal.svg") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px #0a020480);
}

@media (prefers-reduced-motion: no-preference) {
  .cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="runner"]::before {
    animation: cosmSpin 8s linear infinite;
  }
  .cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="beams"] {
    animation: cosmCr7FrameBeams 6s var(--cosm-ease-breathe) infinite;
  }
  .cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="rain"]::before {
    animation: cosmCr7FrameRain 0.8s linear infinite;
  }
  .cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="flash"]::before {
    animation: cosmCr7FrameFlash 4.2s ease-out infinite;
  }
  .cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="flash"]::after {
    animation: cosmCr7FrameFlash 4.2s 2.1s ease-out infinite;
  }
  .cosmFrame[data-cosm="frame-cr7-floodlights"] [data-part="crest"] {
    animation: cosmCr7FrameCrest 6s ease-in-out infinite;
  }
}

@keyframes cosmCr7FrameBeams {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* One tile per loop, so the fall repeats without a seam. */
@keyframes cosmCr7FrameRain {
  to { transform: translateY(60px); }
}

@keyframes cosmCr7FrameFlash {
  0%, 78%, 100% { opacity: 0; }
  80% { opacity: 1; }
  83% { opacity: 0.1; }
  85% { opacity: 0.8; }
  91% { opacity: 0; }
}

@keyframes cosmCr7FrameCrest {
  0%, 100% { opacity: 0.9; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(1px); }
}

/* Fittings breathe in place; the border geometry and card content stay still. */
@media (prefers-reduced-motion: no-preference) {
  .cosmFrame[data-cosm="frame-duat-temple"] [data-part="inner"],
  .cosmFrame[data-cosm="frame-duat-temple"] [data-part="corners"]::before,
  .cosmFrame[data-cosm="frame-duat-temple"] [data-part="corners"]::after {
    animation: cosmDuatFrameInlay 7.2s var(--cosm-ease-breathe) infinite;
  }
  .cosmFrame[data-cosm="frame-duat-temple"] [data-part="crest"] {
    animation: cosmDuatFrameCrest 7.2s var(--cosm-ease-breathe) infinite;
  }
  .cosmFrame[data-cosm="frame-powder-workshop"] [data-part="inner"],
  .cosmFrame[data-cosm="frame-powder-workshop"] [data-part="corners"]::before,
  .cosmFrame[data-cosm="frame-powder-workshop"] [data-part="corners"]::after {
    animation: cosmPowderFrameInk 5.2s var(--cosm-ease-breathe) infinite;
  }
  .cosmFrame[data-cosm="frame-powder-workshop"] [data-part="crest"] {
    animation: cosmPowderFrameSway 5.2s var(--cosm-ease-breathe) infinite;
  }
  .cosmFrame[data-cosm="frame-sparta-forge"] [data-part="inner"],
  .cosmFrame[data-cosm="frame-sparta-forge"] [data-part="corners"]::before,
  .cosmFrame[data-cosm="frame-sparta-forge"] [data-part="corners"]::after {
    animation: cosmSpartaFrameFrost 6.2s var(--cosm-ease-breathe) infinite;
  }
  .cosmFrame[data-cosm="frame-sparta-forge"] [data-part="crest"] {
    animation: cosmSpartaFrameCrest 6.2s var(--cosm-ease-breathe) infinite;
  }
  .cosmFrame[data-cosm="frame-dragon-scales"] [data-part="inner"] {
    animation: cosmDragonFrameHeat 6.6s var(--cosm-ease-breathe) infinite;
  }
  .cosmFrame[data-cosm="frame-dragon-scales"] [data-part="runner"]::before {
    animation: cosmSpin 7.5s linear infinite;
  }
  .cosmFrame[data-cosm="frame-dragon-scales"] [data-part="glow"] {
    animation: cosmDragonFrameGlow 6.6s var(--cosm-ease-breathe) infinite;
  }
  .cosmFrame[data-cosm="frame-dragon-scales"] [data-part="embers"]::before {
    animation: cosmDragonFrameEmbers 4.4s ease-out infinite;
  }
  .cosmFrame[data-cosm="frame-dragon-scales"] [data-part="embers"]::after {
    animation: cosmDragonFrameEmbers 4.4s 2.2s ease-out infinite;
  }
  /* The claws tighten their grip on the corners now and then. */
  .cosmFrame[data-cosm="frame-dragon-scales"] [data-part="corners"]::before {
    transform-origin: 0 0;
    animation: cosmDragonClaw 6.6s var(--cosm-ease-breathe) infinite;
  }
  .cosmFrame[data-cosm="frame-dragon-scales"] [data-part="corners"]::after {
    animation: cosmDragonClawTurned 6.6s var(--cosm-ease-breathe) infinite;
  }
  /* The eye blinks: a quick lid close and open, then a long stare. */
  .cosmFrame[data-cosm="frame-dragon-scales"] [data-part="crest"] {
    animation: cosmDragonFrameBlink 6.6s ease-in-out infinite;
  }
  .cosmFrame[data-cosm="frame-konoha-hokage"] [data-part="runner"]::before {
    animation: cosmSpin 6.4s linear infinite;
  }
  .cosmFrame[data-cosm="frame-konoha-hokage"] [data-part="flames"]::before {
    animation: cosmKonohaHem 1.9s var(--cosm-ease-breathe) infinite;
  }
  .cosmFrame[data-cosm="frame-konoha-hokage"] [data-part="flames"]::after {
    animation: cosmKonohaHemBack 1.5s var(--cosm-ease-breathe) infinite;
  }
  .cosmFrame[data-cosm="frame-konoha-hokage"] [data-part="corners"]::before,
  .cosmFrame[data-cosm="frame-konoha-hokage"] [data-part="corners"]::after {
    animation: cosmKonohaFrameCorner 4.8s var(--cosm-ease-breathe) infinite;
  }
  .cosmFrame[data-cosm="frame-konoha-hokage"] [data-part="crest"] {
    animation: cosmKonohaFrameCrest 4.8s var(--cosm-ease-breathe) infinite;
  }
}

/* Cloak flames: two rows licking out of step, each starting from its resting height. */
@keyframes cosmKonohaHem {
  0%, 100% { transform: scaleY(1) skewX(0deg); opacity: 0.85; }
  25% { transform: scaleY(1.18) skewX(-4deg); opacity: 1; }
  50% { transform: scaleY(0.92) skewX(2deg); opacity: 0.8; }
  75% { transform: scaleY(1.1) skewX(-2deg); opacity: 0.95; }
}

@keyframes cosmKonohaHemBack {
  0%, 100% { transform: scaleY(1) skewX(0deg); opacity: 0.5; }
  35% { transform: scaleY(0.85) skewX(3deg); opacity: 0.35; }
  65% { transform: scaleY(1.25) skewX(-3deg); opacity: 0.65; }
}

@keyframes cosmKonohaFrameCorner {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

@keyframes cosmKonohaFrameCrest {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-1px) rotate(-2deg); }
  70% { transform: translateY(0.5px) rotate(2deg); }
}

@keyframes cosmDragonFrameHeat {
  0%, 100% { opacity: 1; }
  40% { opacity: 0.6; }
  65% { opacity: 0.95; }
}

@keyframes cosmDragonFrameGlow {
  0%, 60%, 100% { transform: scale(1); opacity: 0.6; }
  76% { transform: scale(1.35); opacity: 1; }
  86% { transform: scale(1.1); opacity: 0.75; }
}

@keyframes cosmDragonFrameEmbers {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-46px); opacity: 0; }
}

@keyframes cosmDragonClaw {
  0%, 30%, 100% { transform: scale(1); }
  40% { transform: scale(0.93); }
  48% { transform: scale(1.03); }
  56% { transform: scale(1); }
}

@keyframes cosmDragonClawTurned {
  0%, 30%, 100% { transform: rotate(180deg) scale(1); }
  40% { transform: rotate(180deg) scale(0.96); }
  48% { transform: rotate(180deg) scale(1.02); }
  56% { transform: rotate(180deg) scale(1); }
}

@keyframes cosmDragonFrameBlink {
  0%, 70%, 78%, 100% { transform: scaleY(1); }
  74% { transform: scaleY(0.12); }
}

@keyframes cosmDuatFrameInlay {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes cosmDuatFrameCrest {
  0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
  50% { transform: translateY(-1px) scale(1.035); opacity: 0.82; }
}

@keyframes cosmPowderFrameInk {
  0%, 100% { opacity: 1; }
  35% { opacity: 0.6; }
  65% { opacity: 0.9; }
}

@keyframes cosmPowderFrameSway {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-1px) rotate(3deg); }
  70% { transform: translateY(0.5px) rotate(-3deg); }
}

@keyframes cosmSpartaFrameFrost {
  0%, 100% { opacity: 1; }
  35% { opacity: 0.45; }
  55% { opacity: 0.95; }
  75% { opacity: 0.65; }
}

@keyframes cosmSpartaFrameCrest {
  0%, 100% { transform: scale(1); opacity: 1; }
  35% { transform: scale(1.045); opacity: 0.76; }
  55% { transform: scale(1.015); opacity: 0.95; }
}

/* ─── Yalın · Grafit Kenar (yaygın) ─── */
.cosmFrame[data-cosm="frame-graphite-edge"] [data-part="border"] {
  --bw: 1.5px;
  background: linear-gradient(160deg, #9095a0, #3d4047 35%, #6d717a 60%, #34363c 85%, #7b808a);
}

/* ─── Yalın · Perçinli Çelik (seçkin) ─── */
.cosmFrame[data-cosm="frame-riveted-steel"] [data-part="border"] {
  --bw: 3px;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.06) 0 1px, transparent 1px 3px),
    linear-gradient(135deg, #c3c8d1, #555960 22%, #d7dbe2 46%, #5d616a 70%, #adb2bc);
}

.cosmFrame[data-cosm="frame-riveted-steel"] [data-part="inner"] {
  --gap: 3px;
  --line: rgb(0 0 0 / 0.45);
}

.cosmFrame[data-cosm="frame-riveted-steel"] [data-part="rivets"] {
  inset: 8px;
  background:
    radial-gradient(circle at 4px 4px, #f1f3f6 0 1.1px, #8a8f98 1.6px 2.8px, rgb(0 0 0 / 0.5) 3.1px, transparent 3.6px) top left / 8px 8px no-repeat,
    radial-gradient(circle at 4px 4px, #f1f3f6 0 1.1px, #8a8f98 1.6px 2.8px, rgb(0 0 0 / 0.5) 3.1px, transparent 3.6px) top right / 8px 8px no-repeat,
    radial-gradient(circle at 4px 4px, #f1f3f6 0 1.1px, #8a8f98 1.6px 2.8px, rgb(0 0 0 / 0.5) 3.1px, transparent 3.6px) bottom left / 8px 8px no-repeat,
    radial-gradient(circle at 4px 4px, #f1f3f6 0 1.1px, #8a8f98 1.6px 2.8px, rgb(0 0 0 / 0.5) 3.1px, transparent 3.6px) bottom right / 8px 8px no-repeat;
}

/* ─── Sinyal · Frekans Kadranı (nadir) ───
   A radio dial along the top of the banner; the needle searches for a station. */
.cosmFrame[data-cosm="frame-frequency"] [data-part="border"] {
  --bw: 1.5px;
  background: linear-gradient(180deg, #5eead4, rgb(45 212 191 / 0.4) 40%, rgb(45 212 191 / 0.16));
}

.cosmFrame[data-cosm="frame-frequency"] [data-part="dial"] {
  inset: 7px 26px auto;
  height: 11px;
  border-radius: 0;
  background:
    linear-gradient(rgb(153 246 228 / 0.55), rgb(153 246 228 / 0.55)) top / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, #ccfbf1 0 1.5px, transparent 1.5px 40px) top left / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, rgb(153 246 228 / 0.6) 0 1px, transparent 1px 8px) top left / 100% 5px no-repeat;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.cosmFrame[data-cosm="frame-frequency"] [data-part="needle"] {
  inset: 4px auto auto 26px;
  width: 2px;
  height: 17px;
  border-radius: 1px;
  background: linear-gradient(180deg, #fff, #99f6e4);
  box-shadow: 0 0 6px rgb(94 234 212 / var(--cosm-glow-strong));
  transform: translateX(122px);
}

@media (prefers-reduced-motion: no-preference) {
  .cosmFrame[data-cosm="frame-frequency"] [data-part="needle"] {
    animation: cosmDialSeek 12s var(--cosm-ease-breathe) infinite;
  }
}

@keyframes cosmDialSeek {
  0%, 100% { transform: translateX(122px); }
  14%, 26% { transform: translateX(62px); }
  42%, 56% { transform: translateX(196px); }
  72%, 84% { transform: translateX(28px); }
}

/* ─── Gece · Ay Işığı (nadir) ─── */
.cosmFrame[data-cosm="frame-moonlight"] [data-part="border"] {
  background: linear-gradient(145deg, #eef2ff, #8b9cf6 30%, #3b4a9a 55%, #c7d2fe 80%, #6f7fd8);
}

.cosmFrame[data-cosm="frame-moonlight"] [data-part="moon"] {
  inset: 12px 14px auto auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(44% 44% at 70% 34%, transparent 97%, #eef1ff 100%);
  filter: drop-shadow(0 0 4px rgb(199 210 254 / var(--cosm-glow-strong)));
}

.cosmFrame[data-cosm="frame-moonlight"] [data-part="star"] {
  inset: auto;
  width: var(--s, 6px);
  height: var(--s, 6px);
  border-radius: 0;
  background: radial-gradient(closest-side, #fff 0 22%, rgb(255 255 255 / 0.85) 38%, transparent 72%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

.cosmFrame[data-cosm="frame-moonlight"] .cosmL3 { top: 40px; right: 18px; --s: 7px; }
.cosmFrame[data-cosm="frame-moonlight"] .cosmL4 { top: 14px; right: 48px; --s: 5px; }
.cosmFrame[data-cosm="frame-moonlight"] .cosmL5 { bottom: 16px; left: 14px; --s: 7px; }
.cosmFrame[data-cosm="frame-moonlight"] .cosmL6 { bottom: 30px; left: 9px; --s: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .cosmFrame[data-cosm="frame-moonlight"] [data-part="star"] {
    animation: cosmTwinkle 5s var(--cosm-ease-breathe) infinite both;
  }

  .cosmFrame[data-cosm="frame-moonlight"] .cosmL4 { animation-delay: 1.2s; }
  .cosmFrame[data-cosm="frame-moonlight"] .cosmL5 { animation-delay: 2.5s; }
  .cosmFrame[data-cosm="frame-moonlight"] .cosmL6 { animation-delay: 3.7s; }
}

/* ─── Siber · Devre İzi (nadir) ─── */
.cosmFrame[data-cosm="frame-circuit-trace"] [data-part="border"] {
  --bw: 1.5px;
  background: linear-gradient(135deg, #22e1ff, rgb(34 225 255 / 0.3) 40%, rgb(255 79 216 / 0.3) 60%, #ff4fd8);
}

.cosmFrame[data-cosm="frame-circuit-trace"] [data-part="traces"] {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%2322e1ff' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round' opacity='.85'%3E%3Cpath d='M1 16 H10 L18 8 V1'/%3E%3Cpath d='M1 28 H16 L26 18 H40'/%3E%3Cpath d='M28 1 V9 L34 15 H48'/%3E%3C/g%3E%3Cg fill='none' stroke='%2322e1ff' stroke-width='1.2'%3E%3Ccircle cx='42' cy='18' r='2'/%3E%3Ccircle cx='50' cy='15' r='2'/%3E%3C/g%3E%3C/svg%3E") top left / 56px 56px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ff4fd8' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round' opacity='.85'%3E%3Cpath d='M59 44 H50 L42 52 V59'/%3E%3Cpath d='M59 32 H44 L34 42 H20'/%3E%3Cpath d='M32 59 V51 L26 45 H12'/%3E%3C/g%3E%3Cg fill='none' stroke='%23ff4fd8' stroke-width='1.2'%3E%3Ccircle cx='18' cy='42' r='2'/%3E%3Ccircle cx='10' cy='45' r='2'/%3E%3C/g%3E%3C/svg%3E") bottom right / 56px 56px no-repeat;
}

.cosmFrame[data-cosm="frame-circuit-trace"] [data-part="pad"] {
  inset: auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  opacity: 0.4;
}

.cosmFrame[data-cosm="frame-circuit-trace"] .cosmL3 {
  left: 40.5px;
  top: 12.5px;
  background: radial-gradient(closest-side, #e0fbff, rgb(34 225 255 / 0.6) 55%, transparent);
}

.cosmFrame[data-cosm="frame-circuit-trace"] .cosmL4 {
  right: 40.5px;
  bottom: 12.5px;
  background: radial-gradient(closest-side, #ffe0f7, rgb(255 79 216 / 0.6) 55%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .cosmFrame[data-cosm="frame-circuit-trace"] [data-part="pad"] {
    animation: cosmPad 2.8s var(--cosm-ease-breathe) infinite both;
  }

  .cosmFrame[data-cosm="frame-circuit-trace"] .cosmL4 { animation-delay: 1.4s; }
}

@keyframes cosmPad {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ─── Kızıl · Kızıl Nabız (epik) ───
   A warm light runs around a dark crimson border; viewfinder corners and a tally lamp. */
.cosmFrame[data-cosm="frame-crimson-pulse"] :is([data-part="border"], [data-part="runner"]) {
  --bw: 2px;
}

.cosmFrame[data-cosm="frame-crimson-pulse"] [data-part="border"] {
  background: linear-gradient(135deg, #7f1022, #4a0c16 40%, #6b0f1d 70%, #3d0a12);
}

.cosmFrame[data-cosm="frame-crimson-pulse"] [data-part="runner"] {
  overflow: hidden;
}

.cosmFrame[data-cosm="frame-crimson-pulse"] [data-part="runner"]::before {
  content: "";
  left: 50%;
  top: 50%;
  width: 220%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: conic-gradient(from 0deg, transparent 0 280deg, rgb(255 110 80 / 0.4) 318deg, #ff9a70 346deg, #fff1e8 354deg, transparent 360deg);
}

.cosmFrame[data-cosm="frame-crimson-pulse"] [data-part="corners"] {
  --b: 1.5px;
  --l: 14px;
  --c: #ff5a5a;
  inset: 9px;
  border-radius: 0;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--b) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--b) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--b) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--b) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--b) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--b) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--b) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--b) var(--l) no-repeat;
  opacity: 0.85;
}

.cosmFrame[data-cosm="frame-crimson-pulse"] [data-part="badge"] {
  inset: 15px 17px auto auto;
  display: flex;
  align-items: center;
  width: auto;
  height: 8px;
  border-radius: 0;
}

.cosmFrame[data-cosm="frame-crimson-pulse"] [data-part="badge"]::before {
  content: "";
  position: static;
  width: 7px;
  height: 7px;
  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));
}


@media (prefers-reduced-motion: no-preference) {
  .cosmFrame[data-cosm="frame-crimson-pulse"] [data-part="runner"]::before {
    animation: cosmSpin 6.5s linear infinite;
  }

  .cosmFrame[data-cosm="frame-crimson-pulse"] [data-part="badge"]::before {
    animation: cosmLampBreathe var(--cosm-dur-pulse) var(--cosm-ease-breathe) infinite;
  }
}

/* ─── Astral · Kristal Kafes (epik) ─── */
.cosmFrame[data-cosm="frame-crystal-lattice"] [data-part="border"] {
  background: conic-gradient(from 20deg, #a5f3fc, #c4b5fd, #f9a8d4, #fde68a, #a5f3fc, #c4b5fd, #a5f3fc);
}

/* Faceted crystal clusters in two corners. Corner art lives outside the masked border layers. */
.cosmFrame[data-cosm="frame-crystal-lattice"] [data-part="prisms"] {
  --crystal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M1 1 L19 6 L27 27 Z' fill='%23e0f7ff'/%3E%3Cpath d='M1 1 L6 19 L27 27 Z' fill='%23b9a6ff'/%3E%3Cpath d='M19 6 L27 27 L30 9 Z' fill='%237dd3fc' opacity='.75'/%3E%3Cpath d='M6 19 L27 27 L9 30 Z' fill='%23f0abfc' opacity='.6'/%3E%3Cpath d='M23 2 L31 3 L34 9 L27 6 Z' fill='%23f5f3ff' opacity='.85'/%3E%3Cpath d='M2 23 L3 31 L9 34 L6 27 Z' fill='%23c4b5fd' opacity='.85'/%3E%3Cpath d='M1 1 L27 27' stroke='%23ffffff' stroke-width='.6' opacity='.7'/%3E%3C/svg%3E");
  inset: 3px;
  border-radius: 0;
  background: var(--crystal) top left / 36px 36px no-repeat;
  filter: drop-shadow(0 0 4px rgb(196 181 253 / var(--cosm-glow-soft)));
}

/* The opposite corner mirrors the cluster. */
.cosmFrame[data-cosm="frame-crystal-lattice"] [data-part="prisms"]::after {
  content: "";
  inset: 0;
  background: var(--crystal) top left / 36px 36px no-repeat;
  transform: rotate(180deg);
}

.cosmFrame[data-cosm="frame-crystal-lattice"] [data-part="sweep"] {
  --sheen: rgb(255 255 255 / 0.9);
}

/* ─── Miras · Yaldız Telkari (efsanevi) ───
   A gold border with an inner gold hairline, filigree scrolls in each corner, star
   medallions on the top and bottom edges, and a slow gold sheen. */
.cosmFrame[data-cosm="frame-gilded-filigree"] [data-part="border"] {
  background: linear-gradient(135deg, #fde68a, #b7791f 26%, #fef3c7 48%, #a16207 72%, #fcd34d);
}

.cosmFrame[data-cosm="frame-gilded-filigree"] [data-part="inner"] {
  --gap: 4px;
  --line: rgb(246 210 122 / 0.45);
}

.cosmFrame[data-cosm="frame-gilded-filigree"] [data-part="corners"] {
  inset: 4px;
  border-radius: 0;
  --scroll: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23f6d27a' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M3 26 C3 12 12 3 26 3'/%3E%3Cpath d='M8 22 C8 14 14 8 22 8 C27 8 28 13 24.5 14.5 C21.5 15.8 19.5 13 21.2 11.6'/%3E%3Cpath d='M3 33 C6 29.5 9.5 30 10 33'/%3E%3Cpath d='M33 3 C29.5 6 30 9.5 33 10'/%3E%3C/g%3E%3Cpath d='M13.5 21 C15.5 17.8 18.5 17 21 17.4 C19 19.8 16.4 21.2 13.5 21 Z' fill='%23e8b85a'/%3E%3Cg fill='%23fff3c4'%3E%3Ccircle cx='12.6' cy='12.6' r='1.6'/%3E%3Ccircle cx='4.8' cy='36' r='1'/%3E%3Ccircle cx='36' cy='4.8' r='1'/%3E%3C/g%3E%3C/svg%3E");
  --scroll-turned: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='rotate(180 20 20)'%3E%3Cg fill='none' stroke='%23f6d27a' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M3 26 C3 12 12 3 26 3'/%3E%3Cpath d='M8 22 C8 14 14 8 22 8 C27 8 28 13 24.5 14.5 C21.5 15.8 19.5 13 21.2 11.6'/%3E%3Cpath d='M3 33 C6 29.5 9.5 30 10 33'/%3E%3Cpath d='M33 3 C29.5 6 30 9.5 33 10'/%3E%3C/g%3E%3Cpath d='M13.5 21 C15.5 17.8 18.5 17 21 17.4 C19 19.8 16.4 21.2 13.5 21 Z' fill='%23e8b85a'/%3E%3Cg fill='%23fff3c4'%3E%3Ccircle cx='12.6' cy='12.6' r='1.6'/%3E%3Ccircle cx='4.8' cy='36' r='1'/%3E%3Ccircle cx='36' cy='4.8' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background:
    var(--scroll) top left / 30px 30px no-repeat,
    var(--scroll-turned) bottom right / 30px 30px no-repeat;
}

/* The top-right and bottom-left corners mirror the first; the bottom-right one is the
   turned copy above, so it is flipped on both axes. */
.cosmFrame[data-cosm="frame-gilded-filigree"] [data-part="corners"]::before,
.cosmFrame[data-cosm="frame-gilded-filigree"] [data-part="corners"]::after {
  content: "";
  inset: 0;
  background: var(--scroll) top left / 30px 30px no-repeat;
}

.cosmFrame[data-cosm="frame-gilded-filigree"] [data-part="corners"]::before {
  transform: scaleX(-1);
}

.cosmFrame[data-cosm="frame-gilded-filigree"] [data-part="corners"]::after {
  transform: scaleY(-1);
}

.cosmFrame[data-cosm="frame-gilded-filigree"] [data-part="medallion"] {
  inset: auto;
  left: calc(50% - 8px);
  width: 16px;
  height: 16px;
  border-radius: 0;
  clip-path: polygon(50% 0, 64.65% 14.64%, 85.36% 14.64%, 85.36% 35.35%, 100% 50%, 85.36% 64.65%, 85.36% 85.36%, 64.65% 85.36%, 50% 100%, 35.35% 85.36%, 14.64% 85.36%, 14.64% 64.65%, 0 50%, 14.64% 35.35%, 14.64% 14.64%, 35.35% 14.64%);
  background:
    radial-gradient(circle, #5eead4 0 14%, #0f766e 24%, transparent 28%),
    linear-gradient(135deg, #fff1c7, #d9b36a 45%, #8a6a2c);
}

.cosmFrame[data-cosm="frame-gilded-filigree"] .cosmL4 { top: -3px; }
.cosmFrame[data-cosm="frame-gilded-filigree"] .cosmL5 { bottom: -3px; }

.cosmFrame[data-cosm="frame-gilded-filigree"] [data-part="sweep"] {
  --sheen: rgb(254 243 199 / 0.95);
}

/* ─── Duman · İs Camı (nadir) ───
   A thick edge of smoked green glass, like a hookah base: dark and tinted, lit along its upper
   left edge, with smoke trapped inside it that drifts slowly around the card. Bevelled brass caps
   hold the corners, and a soft reflection crosses the glass now and then. */
.cosmFrame[data-cosm="frame-smoked-glass"] [data-part="border"] {
  --bw: 5px;
  background:
    linear-gradient(160deg, rgb(206 236 226 / 0.5), transparent 22%),
    linear-gradient(160deg, rgb(58 84 76 / 0.92), rgb(28 40 37 / 0.95) 45%, rgb(20 29 27 / 0.96) 70%, rgb(70 100 92 / 0.85));
}

/* Smoke inside the glass: a stitched noise texture, masked to the glass, drifting sideways. */
.cosmFrame[data-cosm="frame-smoked-glass"] [data-part="haze"] {
  --bw: 5px;
  overflow: hidden;
  opacity: 0.3;
}

.cosmFrame[data-cosm="frame-smoked-glass"] [data-part="haze"]::before {
  content: "";
  inset: 0 -160px 0 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 60' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .03' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.8 0 0 0 0 0.88 0 0 0 0 0.84 2.4 0 0 0 -1.05'/%3E%3C/filter%3E%3C/defs%3E%3Crect width='160' height='60' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 160px 60px repeat;
}

/* The glass's inner edge: brighter where the light comes from (top and left). */
.cosmFrame[data-cosm="frame-smoked-glass"] [data-part="inner"] {
  --gap: 5px;
  border-color: rgb(210 240 230 / 0.2) rgb(200 235 225 / 0.06) rgb(200 235 225 / 0.04) rgb(210 240 230 / 0.14);
}

/* Bevelled brass caps that follow the rounded corners: brass at each corner, shown only on the
   glass band. */
.cosmFrame[data-cosm="frame-smoked-glass"] [data-part="corners"] {
  --cap: 22px;
  padding: 3px;
  background:
    radial-gradient(circle at 0 0, #f6dca4, #c89a58 calc(var(--cap) * 0.55), #7d5a2e var(--cap), transparent calc(var(--cap) + 0.5px)),
    radial-gradient(circle at 100% 0, #f6dca4, #c89a58 calc(var(--cap) * 0.55), #7d5a2e var(--cap), transparent calc(var(--cap) + 0.5px)),
    radial-gradient(circle at 0 100%, #e8c98c, #a97f45 calc(var(--cap) * 0.55), #6b4c26 var(--cap), transparent calc(var(--cap) + 0.5px)),
    radial-gradient(circle at 100% 100%, #e8c98c, #a97f45 calc(var(--cap) * 0.55), #6b4c26 var(--cap), transparent calc(var(--cap) + 0.5px));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* Smoked glass catches light softly: a dim, wide reflection that crosses slowly. */
.cosmFrame[data-cosm="frame-smoked-glass"] [data-part="sweep"] {
  --bw: 5px;
  --sheen: rgb(220 245 238 / 0.32);
}

@media (prefers-reduced-motion: no-preference) {
  .cosmFrame[data-cosm="frame-smoked-glass"] [data-part="haze"]::before {
    animation: cosmGlassSmoke 38s linear infinite;
  }

  .cosmFrame[data-cosm="frame-smoked-glass"] [data-part="sweep"]::before {
    animation-duration: 11s;
  }
}

@keyframes cosmGlassSmoke {
  to { transform: translateX(-160px); }
}

/* ─── Sahne · Işık Rampası (epik) ───
   A box truss spans the top of the banner; three lamps hang from it and pour soft coloured beams
   down through the air, each tilting on its own slow rhythm. The lamps hang right of the avatar,
   so no light falls on the face. */
.cosmFrame[data-cosm="frame-light-rig"] [data-part="border"] {
  background: linear-gradient(180deg, #6a6f79, #2c2f35 40%, #1f2126);
}

.cosmFrame[data-cosm="frame-light-rig"] [data-part="truss"] {
  inset: 7px 18px auto;
  height: 10px;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M0 1.2H14M0 8.8H14' stroke='%23aab0ba' stroke-width='1.3'/%3E%3Cpath d='M0 8.8L7 1.2L14 8.8' fill='none' stroke='%236d737d' stroke-width='.9'/%3E%3Cpath d='M0 .7H14' stroke='%23e3e7ec' stroke-width='.4' stroke-opacity='.7'/%3E%3C/svg%3E") 0 0 / 14px 10px repeat-x;
  filter: drop-shadow(0 2px 2px rgb(0 0 0 / 0.5));
}

/* A lamp: a black can on a yoke, its lens lit in the beam's colour. It tilts about its clamp. */
.cosmFrame[data-cosm="frame-light-rig"] [data-part="lamp"] {
  inset: 15px auto auto var(--x);
  width: 12px;
  height: 11px;
  translate: -50% 0;
  border-radius: 2px 2px 4px 4px;
  background: linear-gradient(90deg, #202227, #4a4e57 35%, #1a1c20);
  box-shadow: inset 0 -2px 0 rgb(var(--c) / 0.95), 0 4px 10px rgb(var(--c) / 0.5);
  transform-origin: 50% -2px;
  rotate: var(--aim);
}

/* The beam, below the lens: a soft cone (the SVG is its mask), added onto the banner like light. */
.cosmFrame[data-cosm="frame-light-rig"] [data-part="lamp"]::after {
  content: "";
  top: 9px;
  left: 50%;
  width: 84px;
  height: 104px;
  translate: -50% 0;
  background: rgb(var(--c) / 0.62);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 200'%3E%3Cdefs%3E%3ClinearGradient id='l' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.3' stop-color='%23fff' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='s' x='-40%25' y='-10%25' width='180%25' height='120%25'%3E%3CfeGaussianBlur stdDeviation='4.5'/%3E%3C/filter%3E%3Cfilter id='h' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.018 .05' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.6 0 0 0 -.25'/%3E%3CfeComposite in2='SourceGraphic' operator='in'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23s)'%3E%3Cpolygon points='45,0 55,0 92,200 8,200' fill='url(%23l)' opacity='.7'/%3E%3Cpolygon points='47.5,0 52.5,0 68,200 32,200' fill='url(%23l)'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 200'%3E%3Cdefs%3E%3ClinearGradient id='l' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.3' stop-color='%23fff' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='s' x='-40%25' y='-10%25' width='180%25' height='120%25'%3E%3CfeGaussianBlur stdDeviation='4.5'/%3E%3C/filter%3E%3Cfilter id='h' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.018 .05' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.6 0 0 0 -.25'/%3E%3CfeComposite in2='SourceGraphic' operator='in'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23s)'%3E%3Cpolygon points='45,0 55,0 92,200 8,200' fill='url(%23l)' opacity='.7'/%3E%3Cpolygon points='47.5,0 52.5,0 68,200 32,200' fill='url(%23l)'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mix-blend-mode: plus-lighter;
}

.cosmFrame[data-cosm="frame-light-rig"] .cosmL3 { --x: 44%; --c: 251 191 36; --aim: -10deg; --swing: 14deg; }
.cosmFrame[data-cosm="frame-light-rig"] .cosmL4 { --x: 65%; --c: 244 114 182; --aim: 6deg; --swing: -16deg; }
.cosmFrame[data-cosm="frame-light-rig"] .cosmL5 { --x: 86%; --c: 125 211 252; --aim: 12deg; --swing: -14deg; }

@media (prefers-reduced-motion: no-preference) {
  .cosmFrame[data-cosm="frame-light-rig"] [data-part="lamp"] {
    animation: cosmRigSway 6.4s var(--cosm-ease-breathe) infinite;
  }

  .cosmFrame[data-cosm="frame-light-rig"] .cosmL4 { animation-duration: 5.1s; animation-delay: -1.8s; }
  .cosmFrame[data-cosm="frame-light-rig"] .cosmL5 { animation-duration: 7.3s; animation-delay: -3.9s; }
}

/* A lamp tilts out, holds, and comes most of the way home before settling. */
@keyframes cosmRigSway {
  0%, 100% { transform: none; }
  36%, 48% { transform: rotate(var(--swing)); }
  74% { transform: rotate(calc(var(--swing) * 0.25)); }
}

/* ─── Rulet · Monaco Gecesi (efsanevi, başarım) ───
   A high-roller's card: a night-black lacquer edge between two champagne-gold lines, art deco
   fans in the corners, a small wheel medallion (green zero and ball at the top) set into the top
   edge, and a warm chandelier light over the banner. A slow gold light travels round the edge. */
.cosmFrame[data-cosm="frame-monaco-night"] :is([data-part="border"], [data-part="runner"]) {
  --bw: 7px;
}

.cosmFrame[data-cosm="frame-monaco-night"] [data-part="glow"] {
  inset: 0 0 auto;
  height: var(--cosm-banner-height, 84px);
  border-radius: 0;
  background:
    radial-gradient(46% 70% at 50% -18%, rgb(255 226 164 / 0.26), transparent 72%),
    radial-gradient(90% 120% at 50% -30%, rgb(15 60 40 / 0.35), transparent 70%);
}

.cosmFrame[data-cosm="frame-monaco-night"] [data-part="border"] {
  background: linear-gradient(135deg, #f7e6b0, #b58b41 24%, #fff0c6 46%, #9b7431 70%, #ecd497 88%, #b58b41);
}

/* The lacquer core: a black band inside the gold, leaving two gold lines. */
.cosmFrame[data-cosm="frame-monaco-night"] [data-part="inner"] {
  --gap: 1.6px;
  border: 3.8px solid #0b0a0d;
  box-shadow: inset 0 0 0 0.6px rgb(255 240 200 / 0.08), 0 0 0 0.6px rgb(255 240 200 / 0.08);
}

.cosmFrame[data-cosm="frame-monaco-night"] [data-part="runner"] {
  overflow: hidden;
}

.cosmFrame[data-cosm="frame-monaco-night"] [data-part="runner"]::before {
  content: "";
  left: 50%;
  top: 50%;
  width: 230%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: conic-gradient(from 0deg, transparent 0 300deg, rgb(255 226 150 / 0.35) 330deg, #ffeab0 350deg, #fffaf0 356deg, transparent 360deg);
}

.cosmFrame[data-cosm="frame-monaco-night"] [data-part="corners"] {
  inset: 7px;
  border-radius: 0;
  --fan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M28.5 1.5A27 27 0 0 1 1.5 28.5' fill='none' stroke='%23e8cf8e' stroke-width='1.1' opacity='1'/%3E%3Cpath d='M22.5 1.5A21 21 0 0 1 1.5 22.5' fill='none' stroke='%23e8cf8e' stroke-width='0.8' opacity='0.85'/%3E%3Cpath d='M17 1.5A15.5 15.5 0 0 1 1.5 17' fill='none' stroke='%23e8cf8e' stroke-width='0.7' opacity='0.7'/%3E%3Cpath d='M8.45 2.35L27.8 4.73' stroke='%23e8cf8e' stroke-width='.7' opacity='0.8'/%3E%3Cpath d='M8.09 3.86L20.8 8.4' stroke='%23e8cf8e' stroke-width='.7' opacity='0.55'/%3E%3Cpath d='M7.41 5.24L23.89 15.68' stroke='%23e8cf8e' stroke-width='.7' opacity='0.8'/%3E%3Cpath d='M6.45 6.45L15.99 16' stroke='%23e8cf8e' stroke-width='.7' opacity='0.55'/%3E%3Cpath d='M5.24 7.42L15.67 23.89' stroke='%23e8cf8e' stroke-width='.7' opacity='0.8'/%3E%3Cpath d='M3.85 8.09L8.39 20.81' stroke='%23e8cf8e' stroke-width='.7' opacity='0.55'/%3E%3Cpath d='M2.35 8.45L4.72 27.8' stroke='%23e8cf8e' stroke-width='.7' opacity='0.8'/%3E%3Ccircle cx='5.5' cy='5.5' r='2.2' fill='%23f6e2ae'/%3E%3C/svg%3E");
  background: var(--fan) top left / 28px 28px no-repeat;
  filter: drop-shadow(0 0 2px rgb(232 207 142 / 0.3));
}

.cosmFrame[data-cosm="frame-monaco-night"] [data-part="corners"]::before,
.cosmFrame[data-cosm="frame-monaco-night"] [data-part="corners"]::after {
  content: "";
  inset: 0;
  background: var(--fan) top left / 28px 28px no-repeat, var(--fan) bottom left / 28px 28px no-repeat;
}

.cosmFrame[data-cosm="frame-monaco-night"] [data-part="corners"]::before {
  transform: scaleX(-1);
}

.cosmFrame[data-cosm="frame-monaco-night"] [data-part="corners"]::after {
  transform: scaleY(-1);
  background: var(--fan) top left / 28px 28px no-repeat;
}

.cosmFrame[data-cosm="frame-monaco-night"] [data-part="medallion"] {
  inset: 0 auto auto calc(50% - 14px);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='19.4' fill='%23100d0a' stroke='%23caa65b' stroke-width='1.2'/%3E%3Ccircle cx='20' cy='20' r='17.6' fill='%23452814'/%3E%3Ccircle cx='20' cy='20' r='17' fill='none' stroke='%23d8b56c' stroke-width='.7' opacity='.8'/%3E%3Ccircle cx='20' cy='20' r='17.599999999999998' fill='none' stroke='%23caa65b' stroke-width='.9'/%3E%3Cpath d='M18.61 3.66A16.4 16.4 0 0 1 21.39 3.66L20.98 8.54A11.5 11.5 0 0 0 19.02 8.54Z' fill='%230e8a52'/%3E%3Cpath d='M19.02 8.54L18.61 3.66' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M21.39 3.66A16.4 16.4 0 0 1 24.13 4.13L22.9 8.87A11.5 11.5 0 0 0 20.98 8.54Z' fill='%23b3192b'/%3E%3Cpath d='M20.98 8.54L21.39 3.66' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M24.13 4.13A16.4 16.4 0 0 1 26.76 5.06L24.74 9.52A11.5 11.5 0 0 0 22.9 8.87Z' fill='%2317181c'/%3E%3Cpath d='M22.9 8.87L24.13 4.13' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M26.76 5.06A16.4 16.4 0 0 1 29.18 6.41L26.44 10.47A11.5 11.5 0 0 0 24.74 9.52Z' fill='%23b3192b'/%3E%3Cpath d='M24.74 9.52L26.76 5.06' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M29.18 6.41A16.4 16.4 0 0 1 31.35 8.16L27.96 11.7A11.5 11.5 0 0 0 26.44 10.47Z' fill='%2317181c'/%3E%3Cpath d='M26.44 10.47L29.18 6.41' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M31.35 8.16A16.4 16.4 0 0 1 33.19 10.25L29.25 13.16A11.5 11.5 0 0 0 27.96 11.7Z' fill='%23b3192b'/%3E%3Cpath d='M27.96 11.7L31.35 8.16' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M33.19 10.25A16.4 16.4 0 0 1 34.64 12.62L30.27 14.82A11.5 11.5 0 0 0 29.25 13.16Z' fill='%2317181c'/%3E%3Cpath d='M29.25 13.16L33.19 10.25' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M34.64 12.62A16.4 16.4 0 0 1 35.68 15.2L31 16.63A11.5 11.5 0 0 0 30.27 14.82Z' fill='%23b3192b'/%3E%3Cpath d='M30.27 14.82L34.64 12.62' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M35.68 15.2A16.4 16.4 0 0 1 36.27 17.92L31.41 18.54A11.5 11.5 0 0 0 31 16.63Z' fill='%2317181c'/%3E%3Cpath d='M31 16.63L35.68 15.2' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M36.27 17.92A16.4 16.4 0 0 1 36.39 20.7L31.49 20.49A11.5 11.5 0 0 0 31.41 18.54Z' fill='%23b3192b'/%3E%3Cpath d='M31.41 18.54L36.27 17.92' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M36.39 20.7A16.4 16.4 0 0 1 36.03 23.46L31.24 22.42A11.5 11.5 0 0 0 31.49 20.49Z' fill='%2317181c'/%3E%3Cpath d='M31.49 20.49L36.39 20.7' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M36.03 23.46A16.4 16.4 0 0 1 35.22 26.11L30.67 24.29A11.5 11.5 0 0 0 31.24 22.42Z' fill='%23b3192b'/%3E%3Cpath d='M31.24 22.42L36.03 23.46' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M35.22 26.11A16.4 16.4 0 0 1 33.97 28.6L29.79 26.03A11.5 11.5 0 0 0 30.67 24.29Z' fill='%2317181c'/%3E%3Cpath d='M30.67 24.29L35.22 26.11' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M33.97 28.6A16.4 16.4 0 0 1 32.31 30.84L28.63 27.6A11.5 11.5 0 0 0 29.79 26.03Z' fill='%23b3192b'/%3E%3Cpath d='M29.79 26.03L33.97 28.6' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M32.31 30.84A16.4 16.4 0 0 1 30.3 32.76L27.22 28.95A11.5 11.5 0 0 0 28.63 27.6Z' fill='%2317181c'/%3E%3Cpath d='M28.63 27.6L32.31 30.84' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M30.3 32.76A16.4 16.4 0 0 1 28 34.32L25.61 30.04A11.5 11.5 0 0 0 27.22 28.95Z' fill='%23b3192b'/%3E%3Cpath d='M27.22 28.95L30.3 32.76' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M28 34.32A16.4 16.4 0 0 1 25.46 35.46L23.83 30.84A11.5 11.5 0 0 0 25.61 30.04Z' fill='%2317181c'/%3E%3Cpath d='M25.61 30.04L28 34.32' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M25.46 35.46A16.4 16.4 0 0 1 22.77 36.16L21.94 31.33A11.5 11.5 0 0 0 23.83 30.84Z' fill='%23b3192b'/%3E%3Cpath d='M23.83 30.84L25.46 35.46' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M22.77 36.16A16.4 16.4 0 0 1 20 36.4L20 31.5A11.5 11.5 0 0 0 21.94 31.33Z' fill='%2317181c'/%3E%3Cpath d='M21.94 31.33L22.77 36.16' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M20 36.4A16.4 16.4 0 0 1 17.23 36.16L18.06 31.33A11.5 11.5 0 0 0 20 31.5Z' fill='%23b3192b'/%3E%3Cpath d='M20 31.5L20 36.4' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M17.23 36.16A16.4 16.4 0 0 1 14.54 35.46L16.17 30.84A11.5 11.5 0 0 0 18.06 31.33Z' fill='%2317181c'/%3E%3Cpath d='M18.06 31.33L17.23 36.16' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M14.54 35.46A16.4 16.4 0 0 1 12 34.32L14.39 30.04A11.5 11.5 0 0 0 16.17 30.84Z' fill='%23b3192b'/%3E%3Cpath d='M16.17 30.84L14.54 35.46' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M12 34.32A16.4 16.4 0 0 1 9.7 32.76L12.78 28.95A11.5 11.5 0 0 0 14.39 30.04Z' fill='%2317181c'/%3E%3Cpath d='M14.39 30.04L12 34.32' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M9.7 32.76A16.4 16.4 0 0 1 7.69 30.84L11.37 27.6A11.5 11.5 0 0 0 12.78 28.95Z' fill='%23b3192b'/%3E%3Cpath d='M12.78 28.95L9.7 32.76' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M7.69 30.84A16.4 16.4 0 0 1 6.03 28.6L10.21 26.03A11.5 11.5 0 0 0 11.37 27.6Z' fill='%2317181c'/%3E%3Cpath d='M11.37 27.6L7.69 30.84' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M6.03 28.6A16.4 16.4 0 0 1 4.78 26.11L9.33 24.29A11.5 11.5 0 0 0 10.21 26.03Z' fill='%23b3192b'/%3E%3Cpath d='M10.21 26.03L6.03 28.6' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M4.78 26.11A16.4 16.4 0 0 1 3.97 23.46L8.76 22.42A11.5 11.5 0 0 0 9.33 24.29Z' fill='%2317181c'/%3E%3Cpath d='M9.33 24.29L4.78 26.11' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M3.97 23.46A16.4 16.4 0 0 1 3.61 20.7L8.51 20.49A11.5 11.5 0 0 0 8.76 22.42Z' fill='%23b3192b'/%3E%3Cpath d='M8.76 22.42L3.97 23.46' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M3.61 20.7A16.4 16.4 0 0 1 3.73 17.92L8.59 18.54A11.5 11.5 0 0 0 8.51 20.49Z' fill='%2317181c'/%3E%3Cpath d='M8.51 20.49L3.61 20.7' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M3.73 17.92A16.4 16.4 0 0 1 4.32 15.2L9 16.63A11.5 11.5 0 0 0 8.59 18.54Z' fill='%23b3192b'/%3E%3Cpath d='M8.59 18.54L3.73 17.92' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M4.32 15.2A16.4 16.4 0 0 1 5.36 12.62L9.73 14.82A11.5 11.5 0 0 0 9 16.63Z' fill='%2317181c'/%3E%3Cpath d='M9 16.63L4.32 15.2' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M5.36 12.62A16.4 16.4 0 0 1 6.81 10.25L10.75 13.16A11.5 11.5 0 0 0 9.73 14.82Z' fill='%23b3192b'/%3E%3Cpath d='M9.73 14.82L5.36 12.62' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M6.81 10.25A16.4 16.4 0 0 1 8.65 8.16L12.04 11.7A11.5 11.5 0 0 0 10.75 13.16Z' fill='%2317181c'/%3E%3Cpath d='M10.75 13.16L6.81 10.25' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M8.65 8.16A16.4 16.4 0 0 1 10.82 6.41L13.56 10.47A11.5 11.5 0 0 0 12.04 11.7Z' fill='%23b3192b'/%3E%3Cpath d='M12.04 11.7L8.65 8.16' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M10.82 6.41A16.4 16.4 0 0 1 13.24 5.06L15.26 9.52A11.5 11.5 0 0 0 13.56 10.47Z' fill='%2317181c'/%3E%3Cpath d='M13.56 10.47L10.82 6.41' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M13.24 5.06A16.4 16.4 0 0 1 15.87 4.13L17.1 8.87A11.5 11.5 0 0 0 15.26 9.52Z' fill='%23b3192b'/%3E%3Cpath d='M15.26 9.52L13.24 5.06' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Cpath d='M15.87 4.13A16.4 16.4 0 0 1 18.61 3.66L19.02 8.54A11.5 11.5 0 0 0 17.1 8.87Z' fill='%2317181c'/%3E%3Cpath d='M17.1 8.87L15.87 4.13' stroke='%23caa65b' stroke-width='.45' opacity='.9'/%3E%3Ccircle cx='20' cy='20' r='10.9' fill='none' stroke='%23caa65b' stroke-width='.9'/%3E%3Ccircle cx='20' cy='20' r='10.4' fill='%23201509'/%3E%3Ccircle cx='20' cy='20' r='6.45' fill='%23140d07'/%3E%3Cpath d='M21.08 21.08L23.73 23.73' stroke='%23e2c47f' stroke-width='0.94' stroke-linecap='round'/%3E%3Ccircle cx='23.73' cy='23.73' r='0.85' fill='%23f1d99a'/%3E%3Cpath d='M18.92 21.08L16.27 23.73' stroke='%23e2c47f' stroke-width='0.94' stroke-linecap='round'/%3E%3Ccircle cx='16.27' cy='23.73' r='0.85' fill='%23f1d99a'/%3E%3Cpath d='M18.92 18.92L16.27 16.27' stroke='%23e2c47f' stroke-width='0.94' stroke-linecap='round'/%3E%3Ccircle cx='16.27' cy='16.27' r='0.85' fill='%23f1d99a'/%3E%3Cpath d='M21.08 18.92L23.73 16.27' stroke='%23e2c47f' stroke-width='0.94' stroke-linecap='round'/%3E%3Ccircle cx='23.73' cy='16.27' r='0.85' fill='%23f1d99a'/%3E%3Ccircle cx='20' cy='20' r='1.7' fill='%23f1d99a' stroke='%239a7430' stroke-width='.5'/%3E%3Ccircle cx='20' cy='6.05' r='1.7' fill='%23f7f0e2'/%3E%3Ccircle cx='19.41' cy='5.46' r='0.65' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.7)) drop-shadow(0 0 5px rgb(241 217 154 / var(--cosm-glow-soft)));
}

@media (prefers-reduced-motion: no-preference) {
  .cosmFrame[data-cosm="frame-monaco-night"] [data-part="runner"]::before {
    animation: cosmSpin 9s linear infinite;
  }
}


/* Blackjack and Mines · thin crafted edges and a banner seal. */
.cosmFrame[data-cosm="frame-blackjack-master"] [data-part="border"] {
  --bw: 3px;
  background: linear-gradient(135deg, #f3dfaa, #786038 25%, #242026 50%, #e5c579 75%, #8a6f3c);
}
.cosmFrame[data-cosm="frame-mines-master"] [data-part="border"] {
  --bw: 3px;
  background: linear-gradient(135deg, #b6f7dd, #267459 25%, #202b2b 50%, #6ee7b7 75%, #e1b369);
}
.cosmFrame[data-cosm="frame-blackjack-master"] [data-part="inner"] { --line: rgb(229 197 121 / 0.24); }
.cosmFrame[data-cosm="frame-mines-master"] [data-part="inner"] { --line: rgb(110 231 183 / 0.24); }
.cosmFrame:is([data-cosm="frame-blackjack-master"], [data-cosm="frame-mines-master"]) [data-part="corners"] {
  inset: 7px;
  background: var(--game-corner) top left / 12px 12px no-repeat, var(--game-corner) top right / 12px 12px no-repeat,
    var(--game-corner) bottom left / 12px 12px no-repeat, var(--game-corner) bottom right / 12px 12px no-repeat;
}
.cosmFrame[data-cosm="frame-blackjack-master"] { --game-corner: 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%206C39%2025%2012%2038%2012%2058C12%2078%2037%2082%2046%2067L39%2091H61L54%2067C63%2082%2088%2078%2088%2058C88%2038%2061%2025%2050%206Z%22%20fill%3D%22%23f1d99a%22%2F%3E%3C%2Fsvg%3E"); }
.cosmFrame[data-cosm="frame-mines-master"] { --game-corner: 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"); }
.cosmFrame:is([data-cosm="frame-blackjack-master"], [data-cosm="frame-mines-master"]) [data-part="medallion"] {
  inset: 12px auto auto 40%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--game-seal) center / contain no-repeat;
}
.cosmFrame[data-cosm="frame-blackjack-master"] {
  --game-seal: 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%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2246%22%20fill%3D%22%23202025%22%20stroke%3D%22%23e5c579%22%20stroke-width%3D%223%22%2F%3E%3Ctext%20x%3D%2250%22%20y%3D%2266%22%20text-anchor%3D%22middle%22%20font-family%3D%22serif%22%20font-size%3D%2246%22%20fill%3D%22%23f1d99a%22%3E21%3C%2Ftext%3E%3C%2Fsvg%3E");
}
.cosmFrame[data-cosm="frame-mines-master"] { --game-seal: 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%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2223%22%20fill%3D%22%23171e21%22%20stroke%3D%22%23e1b369%22%20stroke-width%3D%224%22%2F%3E%3Cpath%20d%3D%22M50%2012V26M50%2074V88M12%2050H26M74%2050H88M23%2023L33%2033M67%2067L77%2077M23%2077L33%2067M67%2033L77%2023%22%20stroke%3D%22%23e1b369%22%20stroke-width%3D%225%22%2F%3E%3Ccircle%20cx%3D%2243%22%20cy%3D%2241%22%20r%3D%225%22%20fill%3D%22%23f5d8a3%22%2F%3E%3C%2Fsvg%3E"); }
.cosmFrame:is([data-cosm="frame-blackjack-master"], [data-cosm="frame-mines-master"]) [data-part="sweep"] {
  --cosm-dur-shimmer: 14s;
  --sheen: rgb(255 244 216 / 0.8);
}


/* Football and Aviator · trophy hardware and an ace's winged insignia. */
.cosmFrame[data-cosm="frame-champions-cup"] [data-part="border"] {
  --bw: 4px;
  background: linear-gradient(135deg, #e2ca87, #84662c 24%, #eddaa3 47%, #a28341 70%, #e2ca87);
  box-shadow: inset 0 0 0 1px rgb(255 237 179 / 0.3);
}

.cosmFrame[data-cosm="frame-champions-cup"] [data-part="inner"] {
  --gap: 6px;
  --line: rgb(125 164 119 / 0.42);
}

.cosmFrame[data-cosm="frame-champions-cup"] [data-part="corners"] {
  --corner: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2032%2032%27%3E%3Cpath%20d%3D%27M4%2024V10Q4%204%2010%204H24%27%20fill%3D%27none%27%20stroke%3D%27%23ccb477%27%20stroke-width%3D%271%27%2F%3E%3Cg%20transform%3D%27translate(4%200)%27%3E%3Cpath%20d%3D%27M11%204Q3%2013%2015%2026%27%20fill%3D%27none%27%20stroke%3D%27%23d4bd7c%27%20stroke-width%3D%27.7%27%2F%3E%3Cg%20fill%3D%27%23b9a15e%27%3E%3Cpath%20d%3D%27M9%209Q2%205%205%2013L8%2015M7%2016Q1%2013%205%2020L9%2021M10%2022Q5%2020%209%2025L15%2026M9%2010Q15%207%2012%2014L8%2015M8%2017Q14%2015%2012%2021L9%2021%27%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background: var(--corner) top left / 30px 30px no-repeat;
}

.cosmFrame[data-cosm="frame-champions-cup"] [data-part="medallion"] {
  inset: 0 auto auto calc(50% - 38px);
  width: 76px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2076%2040%27%3E%3Cdefs%3E%3ClinearGradient%20id%3D%27gold%27%20x1%3D%270%27%20x2%3D%271%27%3E%3Cstop%20stop-color%3D%27%239d7736%27%2F%3E%3Cstop%20offset%3D%27.3%27%20stop-color%3D%27%23f7e5ac%27%2F%3E%3Cstop%20offset%3D%27.54%27%20stop-color%3D%27%23ddbd70%27%2F%3E%3Cstop%20offset%3D%27.8%27%20stop-color%3D%27%23fff0be%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%23af843d%27%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%27M27%200H49L57%209L51%2029L38%2037L25%2029L19%209Z%27%20fill%3D%27%2318241c%27%20stroke%3D%27%238e7846%27%20stroke-width%3D%27.8%27%2F%3E%3Cg%20transform%3D%27translate(5%206)%20scale(.85)%27%3E%3Cpath%20d%3D%27M11%204Q3%2013%2015%2026%27%20fill%3D%27none%27%20stroke%3D%27%23d4bd7c%27%20stroke-width%3D%27.7%27%2F%3E%3Cg%20fill%3D%27%23b9a15e%27%3E%3Cpath%20d%3D%27M9%209Q2%205%205%2013L8%2015M7%2016Q1%2013%205%2020L9%2021M10%2022Q5%2020%209%2025L15%2026M9%2010Q15%207%2012%2014L8%2015M8%2017Q14%2015%2012%2021L9%2021%27%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate(71%206)%20scale(-.85%20.85)%27%3E%3Cpath%20d%3D%27M11%204Q3%2013%2015%2026%27%20fill%3D%27none%27%20stroke%3D%27%23d4bd7c%27%20stroke-width%3D%27.7%27%2F%3E%3Cg%20fill%3D%27%23b9a15e%27%3E%3Cpath%20d%3D%27M9%209Q2%205%205%2013L8%2015M7%2016Q1%2013%205%2020L9%2021M10%2022Q5%2020%209%2025L15%2026M9%2010Q15%207%2012%2014L8%2015M8%2017Q14%2015%2012%2021L9%2021%27%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20fill%3D%27url(%23gold)%27%20stroke%3D%27%23ead495%27%20stroke-width%3D%27.6%27%3E%3Cpath%20d%3D%27M27%207H49L47%2018Q45%2024%2039%2025V29H44V32H32V29H37V25Q31%2024%2029%2018Z%27%2F%3E%3Cpath%20d%3D%27M28%2010H23V14Q23%2020%2031%2020L30%2017Q26%2017%2026%2013H28ZM48%2010H53V14Q53%2020%2045%2020L46%2017Q50%2017%2050%2013H48Z%27%2F%3E%3Cpath%20d%3D%27M31%2033H45V36H31Z%27%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%27M31%2010L33%2019Q34%2022%2036%2022%27%20fill%3D%27none%27%20stroke%3D%27%23fff3cc%27%20stroke-width%3D%27.8%27%2F%3E%3Cpath%20d%3D%27M35%204H41%27%20stroke%3D%27%23d7c382%27%20stroke-width%3D%27.8%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgb(0 0 0 / 0.4));
}

.cosmFrame[data-cosm="frame-champions-cup"] [data-part="sweep"] {
  --bw: 4px;
  --sheen: rgb(255 243 205 / 0.6);
}

.cosmFrame[data-cosm="frame-aviator-ace"] [data-part="border"] {
  --bw: 3px;
  background: linear-gradient(135deg, #c2d7e3, #496a84 25%, #e0edf4 48%, #4e7088 72%, #b5cad9);
}

.cosmFrame[data-cosm="frame-aviator-ace"] [data-part="inner"] {
  --gap: 6px;
  --line: rgb(137 186 209 / 0.35);
}

.cosmFrame[data-cosm="frame-aviator-ace"] [data-part="corners"] {
  --corner: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2028%2028%27%3E%3Cpath%20d%3D%27M4%2023V10L10%204H23%27%20fill%3D%27none%27%20stroke%3D%27%23bed3e1%27%20stroke-width%3D%271.7%27%2F%3E%3Cpath%20d%3D%27M8%2022V12L12%208H22%27%20fill%3D%27none%27%20stroke%3D%27%23678399%27%20stroke-width%3D%27.8%27%2F%3E%3Cpath%20d%3D%27M5%2017H9M17%205V9%27%20stroke%3D%27%23e9bd7f%27%20stroke-width%3D%271%27%2F%3E%3Ccircle%20cx%3D%278.5%27%20cy%3D%278.5%27%20r%3D%271.2%27%20fill%3D%27%23f3dbab%27%2F%3E%3C%2Fsvg%3E");
  --corner-turned: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2028%2028%27%3E%3Cg%20transform%3D%27rotate(180%2014%2014)%27%3E%3Cpath%20d%3D%27M4%2023V10L10%204H23%27%20fill%3D%27none%27%20stroke%3D%27%23bed3e1%27%20stroke-width%3D%271.7%27%2F%3E%3Cpath%20d%3D%27M8%2022V12L12%208H22%27%20fill%3D%27none%27%20stroke%3D%27%23678399%27%20stroke-width%3D%27.8%27%2F%3E%3Cpath%20d%3D%27M5%2017H9M17%205V9%27%20stroke%3D%27%23e9bd7f%27%20stroke-width%3D%271%27%2F%3E%3Ccircle%20cx%3D%278.5%27%20cy%3D%278.5%27%20r%3D%271.2%27%20fill%3D%27%23f3dbab%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background:
    var(--corner) top left / 28px 28px no-repeat,
    var(--corner-turned) bottom right / 28px 28px no-repeat;
}

.cosmFrame[data-cosm="frame-aviator-ace"] [data-part="medallion"] {
  inset: 0 auto auto calc(50% - 47px);
  width: 94px;
  height: 36px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2094%2036%27%3E%3Cdefs%3E%3ClinearGradient%20id%3D%27metal%27%20y2%3D%271%27%20x2%3D%27.4%27%3E%3Cstop%20stop-color%3D%27%23eaf6ff%27%2F%3E%3Cstop%20offset%3D%27.48%27%20stop-color%3D%27%238daec3%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%23435e76%27%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%27M47%201L59%207V23L47%2034L35%2023V7Z%27%20fill%3D%27%23182b3b%27%20stroke%3D%27%23accbdc%27%20stroke-width%3D%27.8%27%2F%3E%3Cg%20fill%3D%27url(%23metal)%27%20stroke%3D%27%23aec6d3%27%20stroke-width%3D%27.55%27%3E%3Cpath%20d%3D%27M34%208L4%204L10%2011L34%2016ZM34%2017L11%2013L17%2020L34%2023ZM34%2024L20%2022L26%2028L38%2030ZM60%208L90%204L84%2011L60%2016ZM60%2017L83%2013L77%2020L60%2023ZM60%2024L74%2022L68%2028L56%2030Z%27%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%27M47%208L49.4%2013.6L55.5%2014.1L50.8%2018.3L52.2%2024.4L47%2021.2L41.8%2024.4L43.2%2018.3L38.5%2014.1L44.6%2013.6Z%27%20fill%3D%27%23f0ce8d%27%20stroke%3D%27%23fff0c4%27%20stroke-width%3D%27.55%27%2F%3E%3Cpath%20d%3D%27M43%2028L47%2031L51%2028%27%20fill%3D%27none%27%20stroke%3D%27%23759db5%27%20stroke-width%3D%27.7%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgb(0 0 0 / 0.4));
}

.cosmFrame[data-cosm="frame-aviator-ace"] [data-part="sweep"] {
  --bw: 3px;
  --sheen: rgb(214 242 255 / 0.6);
}

.cosmFrame:is([data-cosm="frame-champions-cup"], [data-cosm="frame-aviator-ace"]) [data-part="corners"]::before,
.cosmFrame:is([data-cosm="frame-champions-cup"], [data-cosm="frame-aviator-ace"]) [data-part="corners"]::after {
  content: "";
  inset: 0;
  background: var(--corner) top left / 28px 28px no-repeat, var(--corner) bottom left / 28px 28px no-repeat;
}

.cosmFrame:is([data-cosm="frame-champions-cup"], [data-cosm="frame-aviator-ace"]) [data-part="corners"]::before {
  transform: scaleX(-1);
}

.cosmFrame:is([data-cosm="frame-champions-cup"], [data-cosm="frame-aviator-ace"]) [data-part="corners"]::after {
  transform: scaleY(-1);
  background: var(--corner) top left / 28px 28px no-repeat;
}

/* The mirrored layer supplies only the top-right; its bottom copy would face up like the top-right. */
.cosmFrame[data-cosm="frame-aviator-ace"] [data-part="corners"]::before {
  background: var(--corner) top left / 28px 28px no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
  .cosmFrame:is([data-cosm="frame-champions-cup"], [data-cosm="frame-aviator-ace"]) [data-part="sweep"]::before {
    animation-duration: 12s;
  }
}


/* Slot, Şeker, Penaltı, Uno, Kingo and Kart Savaşı · crafted edges, game corners and a banner seal. */
.cosmFrame[data-cosm="frame-slot-master"] [data-part="border"] {
  --bw: 3px;
  background: linear-gradient(135deg, #ffe08a, #7b3fa8 25%, #2a1840 50%, #f5c451 75%, #9c4dcc);
}

.cosmFrame[data-cosm="frame-slot-master"] [data-part="inner"] { --line: rgb(245 196 81 / 0.26); }

.cosmFrame[data-cosm="frame-candy-master"] [data-part="border"] {
  --bw: 3px;
  background: repeating-linear-gradient(135deg, #ff86c0 0 7px, #fff3f9 7px 12px, #8de8c6 12px 17px, #fff3f9 17px 22px);
}

.cosmFrame[data-cosm="frame-candy-master"] [data-part="inner"] { --line: rgb(255 134 192 / 0.28); }

.cosmFrame[data-cosm="frame-penalty-master"] [data-part="border"] {
  --bw: 3px;
  background: linear-gradient(135deg, #f2f7fb, #2c5a85 25%, #12202e 50%, #7cc6f2 75%, #ff9b3d);
}

.cosmFrame[data-cosm="frame-penalty-master"] [data-part="inner"] { --line: rgb(124 198 242 / 0.28); }

.cosmFrame[data-cosm="frame-uno-master"] [data-part="border"] {
  --bw: 3px;
  background: linear-gradient(135deg, #ff5a4f 0 25%, #ffd23f 25% 50%, #3ccf6e 50% 75%, #3d8bff 75%);
}

.cosmFrame[data-cosm="frame-uno-master"] [data-part="inner"] { --line: rgb(255 255 255 / 0.16); }

.cosmFrame[data-cosm="frame-kingo-master"] [data-part="border"] {
  --bw: 3px;
  background: linear-gradient(135deg, #f7e3a6, #5b2f8c 25%, #1e1529 50%, #e8c46a 75%, #7a46b0);
}

.cosmFrame[data-cosm="frame-kingo-master"] [data-part="inner"] { --line: rgb(232 196 106 / 0.26); }

.cosmFrame[data-cosm="frame-war-master"] [data-part="border"] {
  --bw: 3px;
  background: linear-gradient(135deg, #e8edf3, #4d5866 25%, #191c22 50%, #d6454f 75%, #8c99a8);
}

.cosmFrame[data-cosm="frame-war-master"] [data-part="inner"] { --line: rgb(214 69 79 / 0.26); }

.cosmFrame:is([data-cosm="frame-slot-master"], [data-cosm="frame-candy-master"], [data-cosm="frame-penalty-master"], [data-cosm="frame-uno-master"], [data-cosm="frame-kingo-master"], [data-cosm="frame-war-master"]) [data-part="corners"] {
  inset: 7px;
  background: var(--corner-tl) top left / 12px 12px no-repeat, var(--corner-tr) top right / 12px 12px no-repeat,
    var(--corner-bl) bottom left / 12px 12px no-repeat, var(--corner-br) bottom right / 12px 12px no-repeat;
}

.cosmFrame[data-cosm="frame-slot-master"] {
  --corner-tl: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2028%2024%27%3E%3Cg%20transform%3D%27translate(1%200)%27%3E%3Cdefs%3E%3CradialGradient%20id%3D%27c%27%20cx%3D%27.35%27%20cy%3D%27.3%27%3E%3Cstop%20stop-color%3D%27%23ff9a9a%27%2F%3E%3Cstop%20offset%3D%27.55%27%20stop-color%3D%27%23e0283d%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%238e0f22%27%2F%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%27M8%2011Q11%204%2019%201M15.5%2013Q16%206%2019%201%27%20fill%3D%27none%27%20stroke%3D%27%235cc96a%27%20stroke-width%3D%271.5%27%20stroke-linecap%3D%27round%27%2F%3E%3Cpath%20d%3D%27M19%201Q25%20-.5%2027%204Q22%205.5%2019%201Z%27%20fill%3D%27%234caf50%27%20stroke%3D%27%23b9f2c0%27%20stroke-width%3D%27.4%27%2F%3E%3Ccircle%20cx%3D%277.5%27%20cy%3D%2715%27%20r%3D%275.2%27%20fill%3D%27url(%23c)%27%20stroke%3D%27%23ffd1d6%27%20stroke-width%3D%27.5%27%2F%3E%3Ccircle%20cx%3D%2716%27%20cy%3D%2717%27%20r%3D%275.2%27%20fill%3D%27url(%23c)%27%20stroke%3D%27%23ffd1d6%27%20stroke-width%3D%27.5%27%2F%3E%3Ccircle%20cx%3D%275.8%27%20cy%3D%2713.2%27%20r%3D%271.3%27%20fill%3D%27%23ffe3e6%27%2F%3E%3Ccircle%20cx%3D%2714.3%27%20cy%3D%2715.2%27%20r%3D%271.3%27%20fill%3D%27%23ffe3e6%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --corner-tr: var(--corner-tl);
  --corner-bl: var(--corner-tl);
  --corner-br: var(--corner-tl);
}

.cosmFrame[data-cosm="frame-candy-master"] {
  --corner-tl: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2026%2014%27%3E%3Cpath%20d%3D%27M0%203L6.5%207L0%2011Z%20M26%203L19.5%207L26%2011Z%27%20fill%3D%27%23ffd36b%27%20stroke%3D%27%23fff8e0%27%20stroke-width%3D%27.6%27%20stroke-linejoin%3D%27round%27%2F%3E%3Cellipse%20cx%3D%2713%27%20cy%3D%277%27%20rx%3D%277.6%27%20ry%3D%275.6%27%20fill%3D%27%235fd6aa%27%20stroke%3D%27%23fff3fa%27%20stroke-width%3D%27.7%27%2F%3E%3Cpath%20d%3D%27M9%203.4Q13%207%2010%2010.6M14%202Q17%207%2014%2012%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%271.1%27%20fill%3D%27none%27%20opacity%3D%27.85%27%2F%3E%3C%2Fsvg%3E");
  --corner-tr: var(--corner-tl);
  --corner-bl: var(--corner-tl);
  --corner-br: var(--corner-tl);
}

.cosmFrame[data-cosm="frame-penalty-master"] {
  --corner-tl: 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");
  --corner-tr: var(--corner-tl);
  --corner-bl: var(--corner-tl);
  --corner-br: var(--corner-tl);
}

.cosmFrame[data-cosm="frame-uno-master"] {
  --corner-tl: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2012%2016%27%3E%3Crect%20x%3D%27.6%27%20y%3D%27.6%27%20width%3D%2710.8%27%20height%3D%2714.8%27%20rx%3D%272%27%20fill%3D%27%23ff5a4f%27%20stroke%3D%27%23fff%27%20stroke-width%3D%27.9%27%2F%3E%3Cellipse%20cx%3D%276%27%20cy%3D%278%27%20rx%3D%272.6%27%20ry%3D%274.2%27%20fill%3D%27%23fff%27%20opacity%3D%27.85%27%20transform%3D%27rotate(25%206%208)%27%2F%3E%3C%2Fsvg%3E");
  --corner-tr: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2012%2016%27%3E%3Crect%20x%3D%27.6%27%20y%3D%27.6%27%20width%3D%2710.8%27%20height%3D%2714.8%27%20rx%3D%272%27%20fill%3D%27%23ffd23f%27%20stroke%3D%27%23fff%27%20stroke-width%3D%27.9%27%2F%3E%3Cellipse%20cx%3D%276%27%20cy%3D%278%27%20rx%3D%272.6%27%20ry%3D%274.2%27%20fill%3D%27%23fff%27%20opacity%3D%27.85%27%20transform%3D%27rotate(25%206%208)%27%2F%3E%3C%2Fsvg%3E");
  --corner-bl: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2012%2016%27%3E%3Crect%20x%3D%27.6%27%20y%3D%27.6%27%20width%3D%2710.8%27%20height%3D%2714.8%27%20rx%3D%272%27%20fill%3D%27%233ccf6e%27%20stroke%3D%27%23fff%27%20stroke-width%3D%27.9%27%2F%3E%3Cellipse%20cx%3D%276%27%20cy%3D%278%27%20rx%3D%272.6%27%20ry%3D%274.2%27%20fill%3D%27%23fff%27%20opacity%3D%27.85%27%20transform%3D%27rotate(25%206%208)%27%2F%3E%3C%2Fsvg%3E");
  --corner-br: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2012%2016%27%3E%3Crect%20x%3D%27.6%27%20y%3D%27.6%27%20width%3D%2710.8%27%20height%3D%2714.8%27%20rx%3D%272%27%20fill%3D%27%233d8bff%27%20stroke%3D%27%23fff%27%20stroke-width%3D%27.9%27%2F%3E%3Cellipse%20cx%3D%276%27%20cy%3D%278%27%20rx%3D%272.6%27%20ry%3D%274.2%27%20fill%3D%27%23fff%27%20opacity%3D%27.85%27%20transform%3D%27rotate(25%206%208)%27%2F%3E%3C%2Fsvg%3E");
}

.cosmFrame[data-cosm="frame-kingo-master"] {
  --corner-tl: 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%3Cpath%20fill%3D%27%23efe4ff%27%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%2Fsvg%3E");
  --corner-tr: 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%3Cpath%20fill%3D%27%23ff6b81%27%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%2Fsvg%3E");
  --corner-bl: 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%3Cpath%20fill%3D%27%23ff6b81%27%20d%3D%27M5%200L9%205L5%2010L1%205Z%27%2F%3E%3C%2Fsvg%3E");
  --corner-br: 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");
}

.cosmFrame[data-cosm="frame-war-master"] {
  --corner-tl: 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%27%20fill%3D%27%235b6675%27%20stroke%3D%27%23e8edf3%27%20stroke-width%3D%27.8%27%2F%3E%3Ccircle%20cx%3D%276%27%20cy%3D%276%27%20r%3D%272.6%27%20fill%3D%27%23c3ccd8%27%2F%3E%3Cpath%20d%3D%27M4.2%206H7.8%27%20stroke%3D%27%233b4552%27%20stroke-width%3D%27.9%27%2F%3E%3C%2Fsvg%3E");
  --corner-tr: var(--corner-tl);
  --corner-bl: var(--corner-tl);
  --corner-br: var(--corner-tl);
}

.cosmFrame:is([data-cosm="frame-slot-master"], [data-cosm="frame-candy-master"], [data-cosm="frame-penalty-master"], [data-cosm="frame-uno-master"], [data-cosm="frame-kingo-master"], [data-cosm="frame-war-master"]) [data-part="medallion"] {
  inset: 12px auto auto 40%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--game-seal) center / contain no-repeat;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.55));
}

.cosmFrame[data-cosm="frame-slot-master"] [data-part="medallion"] { --game-seal: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Ccircle%20cx%3D%2750%27%20cy%3D%2750%27%20r%3D%2746%27%20fill%3D%27%232a1840%27%20stroke%3D%27%23f5c451%27%20stroke-width%3D%274%27%2F%3E%3Ccircle%20cx%3D%2750%27%20cy%3D%2750%27%20r%3D%2738%27%20fill%3D%27none%27%20stroke%3D%27%239c4dcc%27%20stroke-width%3D%272%27%2F%3E%3Ctext%20x%3D%2750%27%20y%3D%2763%27%20text-anchor%3D%27middle%27%20font-family%3D%27Georgia%2Cserif%27%20font-weight%3D%27700%27%20font-size%3D%2734%27%20fill%3D%27%23ff4d5e%27%20stroke%3D%27%23ffe08a%27%20stroke-width%3D%271.2%27%3E777%3C%2Ftext%3E%3C%2Fsvg%3E"); }

.cosmFrame[data-cosm="frame-candy-master"] [data-part="medallion"] { --game-seal: 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%3Ccircle%20cx%3D%2710%27%20cy%3D%2710%27%20r%3D%279.2%27%20fill%3D%27%23ffe0ef%27%20stroke%3D%27%23ff86c0%27%20stroke-width%3D%271.1%27%2F%3E%3Cpath%20d%3D%27M10%2010m-5.6%200a5.6%205.6%200%201%201%2011.2%200a4.2%204.2%200%201%201%20-8.4%200a2.8%202.8%200%201%201%205.6%200a1.4%201.4%200%201%201%20-2.8%200%27%20fill%3D%27none%27%20stroke%3D%27%23ff4f9f%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%2F%3E%3Ccircle%20cx%3D%276.6%27%20cy%3D%276.4%27%20r%3D%271.6%27%20fill%3D%27%23fff%27%20opacity%3D%27.85%27%2F%3E%3C%2Fsvg%3E"); }

.cosmFrame[data-cosm="frame-penalty-master"] [data-part="medallion"] { --game-seal: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Ccircle%20cx%3D%2750%27%20cy%3D%2750%27%20r%3D%2746%27%20fill%3D%27%23132538%27%20stroke%3D%27%23f2f7fb%27%20stroke-width%3D%274%27%2F%3E%3Cg%20transform%3D%27translate(25%2021)%20scale(2.05)%27%3E%3Cdefs%3E%3ClinearGradient%20id%3D%27g%27%20x2%3D%270%27%20y2%3D%271%27%3E%3Cstop%20stop-color%3D%27%23ffc98a%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%23f0741a%27%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%27M5%2025V14Q3%2012%203%209V6Q3%204.5%204.5%204.5Q6%204.5%206%206V10H7V3Q7%201.5%208.5%201.5Q10%201.5%2010%203V10H11V2Q11%20.5%2012.5%20.5Q14%20.5%2014%202V10H15V3.5Q15%202%2016.5%202Q18%202%2018%203.5V12L20%209.5Q21.2%208.2%2022.4%209.2Q23.4%2010.2%2022.5%2011.5L18.5%2018V25Z%27%20fill%3D%27url(%23g)%27%20stroke%3D%27%23ffe6c8%27%20stroke-width%3D%27.7%27%20stroke-linejoin%3D%27round%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%2723.5%27%20width%3D%2715.5%27%20height%3D%275%27%20rx%3D%271.2%27%20fill%3D%27%231d3550%27%20stroke%3D%27%239fd3f5%27%20stroke-width%3D%27.6%27%2F%3E%3Cpath%20d%3D%27M7%2015.5H16%27%20stroke%3D%27%23b9560f%27%20stroke-width%3D%27.8%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }

.cosmFrame[data-cosm="frame-uno-master"] [data-part="medallion"] { --game-seal: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Ccircle%20cx%3D%2750%27%20cy%3D%2750%27%20r%3D%2746%27%20fill%3D%27%23141418%27%20stroke%3D%27%23f4f4f4%27%20stroke-width%3D%274%27%2F%3E%3Cellipse%20cx%3D%2750%27%20cy%3D%2750%27%20rx%3D%2738%27%20ry%3D%2726%27%20fill%3D%27%23e8322b%27%20transform%3D%27rotate(-18%2050%2050)%27%2F%3E%3Ctext%20x%3D%2750%27%20y%3D%2759%27%20text-anchor%3D%27middle%27%20font-family%3D%27Arial%2Csans-serif%27%20font-weight%3D%27900%27%20font-size%3D%2726%27%20fill%3D%27%23ffd23f%27%20stroke%3D%27%23141418%27%20stroke-width%3D%271.6%27%20transform%3D%27rotate(-18%2050%2050)%27%3EUNO%3C%2Ftext%3E%3C%2Fsvg%3E"); }

.cosmFrame[data-cosm="frame-kingo-master"] [data-part="medallion"] { --game-seal: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Cdefs%3E%3ClinearGradient%20id%3D%27k%27%20x2%3D%270%27%20y2%3D%271%27%3E%3Cstop%20stop-color%3D%27%23fff0b8%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%23c99a3a%27%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Ccircle%20cx%3D%2750%27%20cy%3D%2750%27%20r%3D%2746%27%20fill%3D%27%232b1a3d%27%20stroke%3D%27%23e8c46a%27%20stroke-width%3D%274%27%2F%3E%3Cg%20transform%3D%27translate(23%2029)%20scale(2.25)%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"); }

.cosmFrame[data-cosm="frame-war-master"] [data-part="medallion"] { --game-seal: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Ccircle%20cx%3D%2750%27%20cy%3D%2750%27%20r%3D%2746%27%20fill%3D%27%231d2128%27%20stroke%3D%27%23c3ccd8%27%20stroke-width%3D%274%27%2F%3E%3Cg%20transform%3D%27translate(22%2017)%20scale(2.35)%27%3E%3Cdefs%3E%3ClinearGradient%20id%3D%27s%27%20x2%3D%27.6%27%20y2%3D%271%27%3E%3Cstop%20stop-color%3D%27%23a9b5c4%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%233b4552%27%2F%3E%3C%2FlinearGradient%3E%3CclipPath%20id%3D%27p%27%3E%3Cpath%20d%3D%27M12%203L20%206V13Q20%2021%2012%2026Q4%2021%204%2013V6Z%27%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3Cpath%20d%3D%27M0%200L20.5%2023.5M24%200L3.5%2023.5%27%20stroke%3D%27%23e6ecf2%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%2F%3E%3Cpath%20d%3D%27M16.4%2023.4L21.4%2019M7.6%2023.4L2.6%2019%27%20stroke%3D%27%23c08a4a%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%2F%3E%3Ccircle%20cx%3D%2722%27%20cy%3D%2725.4%27%20r%3D%271.3%27%20fill%3D%27%23c08a4a%27%2F%3E%3Ccircle%20cx%3D%272%27%20cy%3D%2725.4%27%20r%3D%271.3%27%20fill%3D%27%23c08a4a%27%2F%3E%3Cpath%20d%3D%27M12%203L20%206V13Q20%2021%2012%2026Q4%2021%204%2013V6Z%27%20fill%3D%27url(%23s)%27%2F%3E%3Cpath%20d%3D%27M10.4%203V27H13.6V3Z%27%20fill%3D%27%23d6454f%27%20clip-path%3D%27url(%23p)%27%2F%3E%3Cpath%20d%3D%27M12%203L20%206V13Q20%2021%2012%2026Q4%2021%204%2013V6Z%27%20fill%3D%27none%27%20stroke%3D%27%23eef2f6%27%20stroke-width%3D%27.9%27%20stroke-linejoin%3D%27round%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }

.cosmFrame:is([data-cosm="frame-slot-master"], [data-cosm="frame-candy-master"], [data-cosm="frame-penalty-master"], [data-cosm="frame-uno-master"], [data-cosm="frame-kingo-master"], [data-cosm="frame-war-master"]) [data-part="sweep"] {
  --cosm-dur-shimmer: 14s;
}

.cosmFrame[data-cosm="frame-slot-master"] [data-part="sweep"] { --sheen: rgb(255 240 200 / 0.8); }
.cosmFrame[data-cosm="frame-candy-master"] [data-part="sweep"] { --sheen: rgb(255 255 255 / 0.85); }
.cosmFrame[data-cosm="frame-penalty-master"] [data-part="sweep"] { --sheen: rgb(232 246 255 / 0.8); }
.cosmFrame[data-cosm="frame-uno-master"] [data-part="sweep"] { --sheen: rgb(255 255 255 / 0.75); }
.cosmFrame[data-cosm="frame-kingo-master"] [data-part="sweep"] { --sheen: rgb(255 241 201 / 0.8); }
.cosmFrame[data-cosm="frame-war-master"] [data-part="sweep"] { --sheen: rgb(242 246 250 / 0.8); }

/* Selected sets: card borders and small corner details, no content overlay. */
.cosmFrame[data-cosm="frame-velvet-edge"] [data-part="border"] {
  --bw: 1.5px;
  background: #b8a9d8;
}

.cosmFrame[data-cosm="frame-velvet-edge"] [data-part="inner"] {
  --gap: 4px;
  --line: #292332;
}

.cosmFrame[data-cosm="frame-velvet-edge"] [data-part="corners"] {
  inset: 5px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2032%2024'%3E%3Cpath%20d%3D'M2%2012V5H10M4%205L7%208M12%202L15%205'%20fill%3D'none'%20stroke%3D'%23dbadca'%20stroke-width%3D'0.9'%20stroke-linejoin%3D'round'%20stroke-linecap%3D'round'%2F%3E%3C%2Fsvg%3E") top right / 32px 24px no-repeat;
}

.cosmFrame[data-cosm="frame-tape-shell"] [data-part="border"] {
  --bw: 1.5px;
  background: #46403a;
}

.cosmFrame[data-cosm="frame-tape-shell"] [data-part="inner"] {
  --gap: 4px;
  --line: #1b1a19;
}

.cosmFrame[data-cosm="frame-tape-shell"] [data-part="corners"] {
  inset: 5px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2032%2024'%3E%3Crect%20x%3D'2'%20y%3D'3'%20width%3D'26'%20height%3D'12'%20rx%3D'2'%20fill%3D'%231b1a19'%20stroke%3D'%2346403a'%20stroke-width%3D'0.8'%2F%3E%3Ccircle%20cx%3D'8'%20cy%3D'9'%20r%3D'2.6'%20fill%3D'%231b1a19'%20stroke%3D'%23c9b991'%20stroke-width%3D'0.7'%2F%3E%3Ccircle%20cx%3D'21'%20cy%3D'9'%20r%3D'2.6'%20fill%3D'%231b1a19'%20stroke%3D'%23c9b991'%20stroke-width%3D'0.7'%2F%3E%3Cpath%20d%3D'M10%209L18%209'%20fill%3D'none'%20stroke%3D'%2346403a'%20stroke-width%3D'1'%20stroke-linejoin%3D'round'%20stroke-linecap%3D'round'%2F%3E%3Crect%20x%3D'3'%20y%3D'18'%20width%3D'18'%20height%3D'1'%20rx%3D'0'%20fill%3D'%23b56845'%20stroke%3D'none'%20stroke-width%3D'1'%2F%3E%3C%2Fsvg%3E") top right / 32px 24px no-repeat;
}

.cosmFrame[data-cosm="frame-contour-edge"] [data-part="border"] {
  --bw: 1.5px;
  background: #36545a;
}

.cosmFrame[data-cosm="frame-contour-edge"] [data-part="inner"] {
  --gap: 4px;
  --line: #11282d;
}

.cosmFrame[data-cosm="frame-contour-edge"] [data-part="corners"] {
  inset: 5px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2032%2024'%3E%3Cpath%20d%3D'M2%2020Q5%205%2020%203M2%2014Q6%207%2014%203M2%208L8%202'%20fill%3D'none'%20stroke%3D'%2382c1b9'%20stroke-width%3D'0.7'%20stroke-linejoin%3D'round'%20stroke-linecap%3D'round'%2F%3E%3C%2Fsvg%3E") top right / 32px 24px no-repeat;
}

.cosmFrame[data-cosm="frame-pocket-shell"] [data-part="border"] {
  --bw: 1.5px;
  background: #576575;
}

.cosmFrame[data-cosm="frame-pocket-shell"] [data-part="inner"] {
  --gap: 4px;
  --line: #20242a;
}

.cosmFrame[data-cosm="frame-pocket-shell"] [data-part="corners"] {
  inset: 5px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2032%2024'%3E%3Cpath%20d%3D'M2%2020V10H6V6H12V2H22'%20fill%3D'none'%20stroke%3D'%23576575'%20stroke-width%3D'1.3'%20stroke-linejoin%3D'round'%20stroke-linecap%3D'round'%2F%3E%3Crect%20x%3D'14'%20y%3D'5'%20width%3D'2'%20height%3D'2'%20rx%3D'0'%20fill%3D'%23a5ba98'%20stroke%3D'none'%20stroke-width%3D'1'%2F%3E%3Crect%20x%3D'18'%20y%3D'5'%20width%3D'2'%20height%3D'2'%20rx%3D'0'%20fill%3D'%23a5ba98'%20stroke%3D'none'%20stroke-width%3D'1'%2F%3E%3C%2Fsvg%3E") top right / 32px 24px no-repeat;
}

.cosmFrame[data-cosm="frame-contour-edge"] [data-part="corners"] {
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2032%2024'%3E%3Cpath%20d%3D'M2%2020Q5%205%2020%203M2%2014Q6%207%2014%203M2%208L8%202'%20fill%3D'none'%20stroke%3D'%2382c1b9'%20stroke-width%3D'0.7'%20stroke-linejoin%3D'round'%20stroke-linecap%3D'round'%2F%3E%3C%2Fsvg%3E") top right / 32px 24px no-repeat,
    url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2032%2024'%3E%3Cpath%20d%3D'M2%2020Q5%205%2020%203M2%2014Q6%207%2014%203M2%208L8%202'%20fill%3D'none'%20stroke%3D'%2382c1b9'%20stroke-width%3D'0.7'%20stroke-linejoin%3D'round'%20stroke-linecap%3D'round'%2F%3E%3C%2Fsvg%3E") bottom left / 32px 24px no-repeat;
}
/* Printstream · layered ceramic chassis with engraved ink fittings. */
.hasPrintstreamFrame .cosmProfileBanner {
  background: url("../../../assets/cosmetics/printstream-print.svg") right center / auto 100% no-repeat,
    linear-gradient(118deg, #e6eaf1, #f7f8fc 40%, #d2dbe8);
}
.cosmFrame[data-cosm="frame-printstream-chassis"] [data-part="border"] {
  --bw: 7px;
  background: linear-gradient(125deg, #fff, #b4bdce 24%, #fafaff 42%, #e1deef 72%, #f7faff);
}
.cosmFrame[data-cosm="frame-printstream-chassis"] [data-part="runner"] {
  --bw: 7px;
  overflow: hidden;
  opacity: var(--ps-sheen);
}
.cosmFrame[data-cosm="frame-printstream-chassis"] [data-part="runner"]::before {
  content: "";
  inset: -25%;
  background: var(--ps-pearl);
}
.cosmFrame[data-cosm="frame-printstream-chassis"] [data-part="inner"] {
  --gap: 8px;
  --line: #bdebf57a;
  box-shadow: 0 0 0 1px #111723, inset 0 0 0 1px #0b0d15;
}
.cosmFrame[data-cosm="frame-printstream-chassis"] [data-part="corners"] {
  inset: 0;
  border-radius: inherit;
  background: url("../../../assets/cosmetics/printstream-corner.svg") top left / 43px 43px no-repeat,
    repeating-linear-gradient(0deg, #131923 0 2px, transparent 2px 5px) left 2px center / 3px 28px no-repeat,
    repeating-linear-gradient(90deg, #131923 0 2px, transparent 2px 5px) center bottom 2px / 35px 3px no-repeat;
}
.cosmFrame[data-cosm="frame-printstream-chassis"] [data-part="corners"]::after {
  content: "";
  inset: 0;
  background: url("../../../assets/cosmetics/printstream-corner.svg") top left / 43px 43px no-repeat;
  transform: rotate(180deg);
}
.cosmFrame[data-cosm="frame-printstream-chassis"] [data-part="crest"] {
  inset: 0 auto auto calc(50% - 15px);
  width: 30px;
  height: 30px;
  background: url("../../../assets/cosmetics/printstream-seal.svg") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px #13172370);
}
@media (prefers-reduced-motion: no-preference) {
  .cosmFrame[data-cosm="frame-printstream-chassis"] [data-part="runner"]::before {
    animation: cosmPrintstreamFlow 6s ease-in-out infinite both;
  }
  .cosmFrame[data-cosm="frame-printstream-chassis"] [data-part="crest"] {
    animation: cosmPrintstreamCrest 6s ease-in-out infinite both;
  }
}
@keyframes cosmPrintstreamCrest {
  0%, 100% { opacity: 0.85; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(1.5px); }
}
@media (forced-colors: active) {
  .hasPrintstreamFrame .cosmProfileBanner { background: Canvas; }
}

/* Gece Ayini: tracery stays in the banner, silver filigree stays on the edges. */
.cosmProfileCard:has(> .cosmFrame[data-cosm="frame-gothic-cathedral"]) > .cosmProfileBanner {
  background: radial-gradient(ellipse at 76% 30%, #65417866, transparent 64%),
    linear-gradient(125deg, #15101d, #24172f 70%, #191120);
}
.cosmFrame[data-cosm="frame-gothic-cathedral"] [data-part="border"] {
  --bw: 2px;
  background: linear-gradient(135deg, #d4b8e5, #63506f 26%, #bb91d4 52%, #42304f 75%, #d4b8e5);
}
.cosmFrame[data-cosm="frame-gothic-cathedral"] [data-part="inner"] {
  --gap: 5px;
  --line: #a57dc23d;
}
.cosmFrame[data-cosm="frame-gothic-cathedral"] [data-part="inner"]::after {
  content: "";
  inset: auto auto -5px -5px;
  width: 28px;
  height: 28px;
  background: url("../../../assets/cosmetics/gothic-corner.svg") center / contain no-repeat;
  transform: scaleY(-1);
}
.cosmFrame[data-cosm="frame-gothic-cathedral"] [data-part="window"] {
  inset: 0 0 auto;
  height: var(--cosm-banner-height, 84px);
  background: url("../../../assets/cosmetics/gothic-window.svg") right top / auto 100% no-repeat;
}
.cosmFrame[data-cosm="frame-gothic-cathedral"] [data-part="corners"] {
  background: url("../../../assets/cosmetics/gothic-corner.svg") left top / 36px 36px no-repeat;
}
.cosmFrame[data-cosm="frame-gothic-cathedral"] [data-part="corners"]::before {
  content: "";
  inset: 0;
  background: url("../../../assets/cosmetics/gothic-corner.svg") left top / 36px 36px no-repeat;
  transform: scaleX(-1);
}
.cosmFrame[data-cosm="frame-gothic-cathedral"] [data-part="corners"]::after {
  content: "";
  inset: 0;
  background: url("../../../assets/cosmetics/gothic-corner.svg") left top / 28px 28px no-repeat;
  transform: rotate(180deg);
}
.cosmFrame[data-cosm="frame-gothic-cathedral"] [data-part="crest"] {
  inset: -2px auto auto calc(50% - 15px);
  width: 30px;
  height: 34px;
  background: url("../../../assets/cosmetics/gothic-seal.svg") center / contain no-repeat;
  filter: drop-shadow(0 1px 2px #09050ec9);
}
@media (prefers-reduced-motion: no-preference) {
  .cosmFrame[data-cosm="frame-gothic-cathedral"] [data-part="crest"] {
    animation: cosmGothicCrest 7s ease-in-out infinite both;
  }
}
@keyframes cosmGothicCrest {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}
@media (forced-colors: active) {
  .cosmProfileCard:has(> .cosmFrame[data-cosm="frame-gothic-cathedral"]) > .cosmProfileBanner { background: Canvas; }
}

/* Taş ve Vitray: Gothic stone tracery and jewel glass. */
.cosmProfileCard:has(> .cosmFrame[data-cosm="frame-cathedral-portal"]) > .cosmProfileBanner {
  background: linear-gradient(115deg, #111c2b, #25364a);
}
.cosmFrame[data-cosm="frame-cathedral-portal"] [data-part="border"] {
  --bw: 2px;
  background: linear-gradient(135deg, #e5cfa0, #666b6b 28%, #b8a47c 55%, #434d5a 80%, #d8c493);
}
.cosmFrame[data-cosm="frame-cathedral-portal"] [data-part="inner"] {
  --gap: 5px;
  --line: #bea77c40;
}
.cosmFrame[data-cosm="frame-cathedral-portal"] [data-part="inner"]::before,
.cosmFrame[data-cosm="frame-cathedral-portal"] [data-part="inner"]::after {
  content: "";
  inset: auto auto 0 0;
  width: 82px;
  height: 82px;
  background: url("../../../assets/cosmetics/cathedral-corner.svg") center / contain no-repeat;
  transform: scaleY(-1);
  opacity: 0.09;
}
.cosmFrame[data-cosm="frame-cathedral-portal"] [data-part="inner"]::after {
  left: auto;
  right: 0;
  transform: rotate(180deg);
}
.cosmFrame[data-cosm="frame-cathedral-portal"] [data-part="window"] {
  inset: 0 0 auto;
  height: var(--cosm-banner-height, 84px);
  background: url("../../../assets/cosmetics/cathedral-window.svg") right top / auto 100% no-repeat;
}
.cosmFrame[data-cosm="frame-cathedral-portal"] [data-part="corners"] {
  background: url("../../../assets/cosmetics/cathedral-corner.svg") left top / 32px 32px no-repeat;
}
.cosmFrame[data-cosm="frame-cathedral-portal"] [data-part="corners"]::before,
.cosmFrame[data-cosm="frame-cathedral-portal"] [data-part="corners"]::after {
  content: "";
  inset: 0;
  background: url("../../../assets/cosmetics/cathedral-corner.svg") left top / 32px 32px no-repeat;
}
.cosmFrame[data-cosm="frame-cathedral-portal"] [data-part="corners"]::before { transform: scaleX(-1); }
.cosmFrame[data-cosm="frame-cathedral-portal"] [data-part="corners"]::after { transform: rotate(180deg); }
.cosmFrame[data-cosm="frame-cathedral-portal"] [data-part="crest"] {
  inset: -3px auto auto calc(50% - 13px);
  width: 26px;
  height: 30px;
  background: url("../../../assets/cosmetics/cathedral-lily.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 3px #d8b97438);
}
@media (forced-colors: active) {
  .cosmProfileCard:has(> .cosmFrame[data-cosm="frame-cathedral-portal"]) > .cosmProfileBanner { background: Canvas; }
}

/* Big Bass Bonanza: achievement collection. */
.cosmFrame[data-cosm="frame-bass-legend"] [data-part="border"] { --bw: 2px; background: linear-gradient(135deg, #f3d18a, #102d32 30%, #74e3d5 65%, #f3d18a); }
.cosmFrame[data-cosm="frame-bass-legend"] [data-part="inner"] { --gap: 5px; --line: #74e3d544; }
.cosmFrame[data-cosm="frame-bass-legend"] [data-part="corners"] { inset: 7px; border-block: 2px solid #f3d18a88; border-radius: 5px; opacity: 0.6; }
.cosmFrame[data-cosm="frame-bass-legend"] [data-part="medallion"] { inset: -5px auto auto calc(50% - 15px); width: 30px; height: 30px; background: url("../../../assets/cosmetics/bass-seal.svg") center / contain no-repeat; }

/* Tombstone: achievement collection. */
.cosmFrame[data-cosm="frame-tombstone-legend"] [data-part="border"] { --bw: 2px; background: linear-gradient(135deg, #dec9a4, #292025 30%, #f5ad79 65%, #dec9a4); }
.cosmFrame[data-cosm="frame-tombstone-legend"] [data-part="inner"] { --gap: 5px; --line: #f5ad7944; }
.cosmFrame[data-cosm="frame-tombstone-legend"] [data-part="corners"] { inset: 7px; border-block: 2px solid #dec9a488; border-radius: 5px; opacity: 0.6; }
.cosmFrame[data-cosm="frame-tombstone-legend"] [data-part="medallion"] { inset: -5px auto auto calc(50% - 15px); width: 30px; height: 30px; background: url("../../../assets/cosmetics/tombstone-seal.svg") center / contain no-repeat; }

/* Şeytanla Anlaşma: achievement collection. */
.cosmFrame[data-cosm="frame-debt-paid"] [data-part="border"] { --bw: 3px; background: linear-gradient(135deg, #f1d0a2, #8f4936 20%, #23191b 45%, #b66b48 72%, #f1d0a2); }
.cosmFrame[data-cosm="frame-debt-paid"] [data-part="inner"] { --gap: 6px; --line: #e8b47e40; }
.cosmFrame[data-cosm="frame-debt-paid"] [data-part="corners"] { inset: 6px; border-block: 2px solid #b66b4890; border-inline: 1px solid #e8b47e44; border-radius: 7px; }
.cosmFrame[data-cosm="frame-debt-paid"] [data-part="medallion"] { inset: -10px auto auto calc(50% - 22px); width: 44px; height: 44px; background: url("../../../assets/cosmetics/devil-seal.webp") center / contain no-repeat; }
