@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&display=swap");
/* ═════ DYING STAR (owner 11/9: "this has to stand out from every single card in the game … 10 mill, needs to look it").
   Built by card-apex.js html(). v12 = FULL-ART LUXURY (owner picked it after the cut-out 3D layers made the survivor look
   like a keyhole / a blob and the chunky plate + frame read as a basic card):
     · the original picture edge to edge on one plane: the supernova moves (WebGL on big copies: flowing gas, rainbow
       aurora waves, light shafts, the blast) BEHIND the untouched foreground (apex_dyingstar-fg.webp = original pixels)
     · a thin platinum refractor border with comets of light racing it, a gold hairline and corner brackets
     · refractor foil (a rainbow swirl centred on the light) + star glitter that follow the tilt
     · gold-foil stamped lettering: AFTERLIFE mark, a 1/1 serial stamp, the name in an engraved serif, MYTHIC + value
   Every 12 s the star flickers and pulls in, then detonates (flash, two shock rings that bend the picture, spikes, debris,
   the silhouettes catch the light, the card shakes once in Inspect). card-apex.js keeps every ax* animation on the
   shader's 12 s clock (animation startTime 0). ═════ */
.ds12 { --rc: #cfe4ff; container-type: inline-size;
    /* (named --gold for history) starlight chrome: icy white, ice blue, violet, magenta — the Dying Star's own colours, never gold (owner 11/9) */
    --gold: linear-gradient(100deg, #8a96c8 0%, #e6f0ff 12%, #ffffff 22%, #b9a6ff 34%, #7f8fd0 46%, #ffd0f4 58%, #ffffff 68%, #9fe0ff 82%, #6f78b0 100%); }
.ds12 .ds-inner { padding: 0 !important; display: block !important; border: 0 !important; border-radius: 16px; background: #05030b !important; overflow: hidden;
    box-shadow: 0 0 0 1px rgba(220,235,255,.7), 0 0 24px rgba(143,200,255,.3), 0 0 54px rgba(176,107,255,.4) !important; }
.ds12 .ds-inner > * { position: absolute !important; display: block; }

/* ── the picture: sky (CSS fallback / WebGL) + the untouched foreground on the same plane ── */
/* depth (owner 11/9 "more of a 3D look"): the sky slides against the tilt, the town (one piece, so no outlines) with it;
   the trim + lettering ride above the picture in real 3D (.ds-raise) */
.ds12 .ax-scene { inset: 0; overflow: hidden; pointer-events: none; transform: translate(calc(var(--px, 0px) * -2), calc(var(--py, 0px) * -2)) scale(1.09); transition: transform .3s ease; }
.ds12 .ds-fg { inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; transform: translate(calc(var(--px, 0px) * 1.2), calc(var(--py, 0px) * 1.2)) scale(1.05); transition: transform .3s ease; }
.ds12.rv-tilt :is(.ax-scene, .ds-fg, .ds-fglit, .ax-lamp) { transition: none; }
.ds12 .ax-lamp { transform: translate(calc(var(--px, 0px) * 1.2), calc(var(--py, 0px) * 1.2)) scale(1.05); transition: transform .3s ease; }
.ds12 .ds-raise { position: absolute; inset: 0; display: block; pointer-events: none; border-radius: 16px; }
.ds12 .ds-raise.r1 { transform: translateZ(5px); } .ds12 .ds-raise.r2 { transform: translateZ(9px); } .ds12 .ds-raise.r3 { transform: translateZ(16px); }
.ds12 .ds-raise > * { position: absolute !important; display: block; }
.ds12 .ds-fglit { inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .05; transform: translate(calc(var(--px, 0px) * 1.2), calc(var(--py, 0px) * 1.2)) scale(1.05);
    background: radial-gradient(75% 55% at 50% 30%, rgba(214,238,255,.95), rgba(160,200,255,.55) 40%, rgba(255,111,224,.25) 70%, transparent 95%);
    -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; animation: axLit 12s ease-out infinite; }
.ds12 .ax-lamp { left: 56.5%; top: 33%; width: 9%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; mix-blend-mode: screen;
    background: radial-gradient(closest-side, rgba(255,236,190,.95), rgba(255,180,90,.5) 35%, transparent 75%); animation: axLamp 3.7s steps(1, end) infinite; }
.ds12 .ax-lamp.l2 { left: 92.3%; top: 46.6%; width: 7%; animation-duration: 5.3s; animation-delay: -1.7s; }
/* a soft dark fall at the bottom for the lettering, and a whisper at the top for the marks */
.ds12 .ds-shade { inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5,3,11,.3) 0%, transparent 10%, transparent 66%, rgba(5,3,11,.6) 81%, rgba(5,3,11,.88) 100%); }

/* ── refractor foil: a rainbow swirl centred on the light + glitter near it ── */
/* fine refractor lines (thin rainbow bands round the light, soft), strongest along the edges, kept off the lettering */
.ds12 .ds-refr { inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .2; filter: blur(.4px);
    background: repeating-conic-gradient(from var(--tc-a) at var(--mx, var(--ix, 50%)) var(--my, var(--iy, 32%)), rgba(255,60,160,.5) 0deg .6deg, rgba(255,200,40,.5) .6deg 1.2deg, rgba(60,255,170,.5) 1.2deg 1.8deg, rgba(40,170,255,.5) 1.8deg 2.4deg, rgba(170,60,255,.5) 2.4deg 3deg, transparent 3deg 4.2deg);
    -webkit-mask: radial-gradient(118% 80% at 50% 40%, rgba(0,0,0,.15) 40%, #000 82%), linear-gradient(180deg, #000 72%, transparent 80%); -webkit-mask-composite: source-in;
    mask: radial-gradient(118% 80% at 50% 40%, rgba(0,0,0,.15) 40%, #000 82%) intersect, linear-gradient(180deg, #000 72%, transparent 80%);
    animation: tcSpinA 30s linear infinite; }
/* owner 11/9: "the stars that shine when the card tilts need to be more visible" → brighter, wider glitter + real 4-point
   star glints (a tiled star field) lit wherever the light sits, so they sparkle as the card tilts */
.ds12 .ds-glit { inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: 1; filter: brightness(1.5); background: url(/assets/cards/diamond-dust.webp?v=1) 0 0 / 140px 140px repeat;
    -webkit-mask: radial-gradient(68% 52% at var(--mx, var(--ix, 50%)) var(--my, var(--iy, 40%)), #000 20%, transparent 78%); mask: radial-gradient(68% 52% at var(--mx, var(--ix, 50%)) var(--my, var(--iy, 40%)), #000 20%, transparent 78%); }
.ds12 .ds-spark { inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .95;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130' fill='%23fff'%3E%3Cpath d='M22 8l1.6 8.4L32 18l-8.4 1.6L22 28l-1.6-8.4L12 18l8.4-1.6z'/%3E%3Cpath d='M92 40l1 5L98 46l-5 1L92 52l-1-5L86 46l5-1z'/%3E%3Cpath d='M58 88l2.2 11.8L72 102l-11.8 2.2L58 116l-2.2-11.8L44 102l11.8-2.2z'/%3E%3Cpath d='M112 104l.8 3.2L116 108l-3.2.8L112 112l-.8-3.2L108 108l3.2-.8z'/%3E%3Ccircle cx='40' cy='60' r='1.2'/%3E%3Ccircle cx='104' cy='14' r='1'/%3E%3C/svg%3E") 0 0 / 130px 130px repeat;
    filter: drop-shadow(0 0 3px rgba(223,243,255,.95)) drop-shadow(0 0 6px rgba(200,160,255,.6));
    -webkit-mask: radial-gradient(42% 32% at var(--mx, var(--ix, 50%)) var(--my, var(--iy, 40%)), #000 15%, rgba(0,0,0,.35) 55%, transparent 80%); mask: radial-gradient(42% 32% at var(--mx, var(--ix, 50%)) var(--my, var(--iy, 40%)), #000 15%, rgba(0,0,0,.35) 55%, transparent 80%);
    animation: axSpark 2.4s ease-in-out infinite; }
@keyframes axSpark { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }

/* ── the border: thin platinum refractor rim, gold hairline, corner brackets ── */
.ds12 .ds-rim { inset: 0; border-radius: 16px; padding: 1.7cqw; pointer-events: none;
    background: conic-gradient(from var(--tc-a), #ffffff, #cfe6ff 8%, #8a93b0 15%, #ffe9b0 22%, #f4f7ff 30%, #b9a6ff 38%, #ffffff 45%, #9fb0c8 53%, #ffd6f0 61%, #f8fbff 70%, #8fdcff 80%, #b5bfd6 90%, #ffffff);
    -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 exclude, linear-gradient(#000 0 0);
    animation: tcSpinA 18s linear infinite; }
.ds12 .ds-line { inset: 3.1cqw; border-radius: 11px; pointer-events: none; border: 1px solid transparent;
    background: var(--gold) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0) border-box; -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0) border-box; opacity: .85; }
.ds12 .ds-cb { width: 7cqw; height: 7cqw; pointer-events: none; border: 0 solid transparent; background: var(--gold) border-box;
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0) border-box; -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0) border-box;
    filter: drop-shadow(0 0 3px rgba(176,150,255,.6)); }
.ds12 .ds-cb.tl { left: 4.6cqw; top: 4.6cqw; border-width: 2px 0 0 2px; border-top-left-radius: 4px; }
.ds12 .ds-cb.tr { right: 4.6cqw; top: 4.6cqw; border-width: 2px 2px 0 0; border-top-right-radius: 4px; }
.ds12 .ds-cb.bl { left: 4.6cqw; bottom: 4.6cqw; border-width: 0 0 2px 2px; border-bottom-left-radius: 4px; }
.ds12 .ds-cb.br { right: 4.6cqw; bottom: 4.6cqw; border-width: 0 2px 2px 0; border-bottom-right-radius: 4px; }

/* ── gold-foil stamped lettering ── */
.ds12 :is(.ds-brand, .ds-serial, .ds-name, .ds-rar, .ds-val) { background: var(--gold) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.85)) drop-shadow(0 0 6px rgba(160,200,255,.4)); animation: axFoil 7s linear infinite; }
.ds12 .ds-brand { left: 12.6cqw; top: 6.4cqw; display: inline-flex !important; align-items: center; gap: 1.3cqw; font: 800 2.9cqw/1 "Cinzel", "Barlow Condensed", serif; letter-spacing: .32em; }
.ds12 .ds-brand .tc-star4 { width: 2.8cqw; height: 2.8cqw; background: var(--gold); }
/* the 1/1 serial: a stamped foil oval */
.ds12 .ds-serial { right: 12.6cqw; top: 5.1cqw; /* clear of the corner bracket (owner 11/9: "the 1/1 tag is cutting into the trim") */ display: inline-flex !important; align-items: baseline; gap: .4cqw; padding: 1cqw 2.4cqw .9cqw; font: 900 3.6cqw/1 "Cinzel", serif; letter-spacing: .04em; }
.ds12 .ds-serial::before { content: ""; position: absolute; inset: 0; border-radius: 999px; border: 1px solid transparent; background: var(--gold) border-box;
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0) border-box; -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0) border-box; }
.ds12 .ds-serial i { font-style: normal; font-size: .8em; padding: 0 .1em; }
/* the name (owner 11/9: "the letterings look basic"): struck gold with a dark engraved edge, a bright bevel along the top
   of each letter (the ::after copy, clipped to the upper half), a soft gold bloom; a spaced subtitle under it between rules */
.ds12 .ds-name { left: 3%; right: 3%; bottom: 16.4%; text-align: center; white-space: nowrap; font: 900 10.8cqw/1 "Cinzel", "Barlow Condensed", serif; letter-spacing: .07em; padding-left: .07em; text-transform: uppercase;
    -webkit-text-stroke: .35px rgba(30,20,70,.85); filter: drop-shadow(0 2px 0 rgba(8,4,20,.95)) drop-shadow(0 4px 6px rgba(0,0,0,.7)) drop-shadow(0 0 14px rgba(150,190,255,.6)); }
.ds12 .ds-name::after { content: attr(data-t); position: absolute; inset: 0; padding-left: .07em; -webkit-text-stroke: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(225,238,255,.5) 40%, transparent 52%); -webkit-background-clip: text; background-clip: text; color: transparent; mix-blend-mode: soft-light; }
/* owner 11/9: "the words should look like the aurora that's in the card, not basic" → the name and the value are filled
   with the supernova itself (the sky picture) blended with a flowing rainbow, both drifting so the colours move through the
   letters; a thin bright rim keeps them readable */
/* (2nd pass, owner: "as colorful as the aurora, not just purple & blue"): the FULL spectrum always spans the word, and
   the colours cycle through it (hue-rotate); the nebula picture adds texture (soft-light) */
.ds12 :is(.ds-name, .ds-val) {
    background: url(/assets/cards/art/apex_dyingstar-sky.webp?v=2) 30% 18% / 240% auto, linear-gradient(100deg, #ff3b6b 0%, #ff9a3d 13%, #ffe75a 26%, #6dff8c 39%, #3de8ff 52%, #6d7bff 65%, #c45bff 78%, #ff4fd8 90%, #ff3b6b 100%) 0 0 / 100% 100%;
    background-blend-mode: soft-light, normal; -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-text-stroke: .45px rgba(255,255,255,.65); animation: axAuroraText 18s ease-in-out infinite alternate; }
.ds12 .ds-name { animation: axAuroraText 18s ease-in-out infinite alternate, axAuroraHue 8s linear infinite; }
.ds12 .ds-val { -webkit-text-stroke: .3px rgba(255,255,255,.65); animation: axAuroraText 18s ease-in-out infinite alternate, axAuroraHueV 8s linear infinite; }
@keyframes axAuroraText { 0% { background-position: 20% 10%, 0 0; } 100% { background-position: 60% 30%, 0 0; } }
@keyframes axAuroraHue { from { filter: hue-rotate(0deg) drop-shadow(0 2px 0 rgba(8,4,20,.95)) drop-shadow(0 4px 6px rgba(0,0,0,.7)) drop-shadow(0 0 12px rgba(255,120,200,.45)); }
    to { filter: hue-rotate(360deg) drop-shadow(0 2px 0 rgba(8,4,20,.95)) drop-shadow(0 4px 6px rgba(0,0,0,.7)) drop-shadow(0 0 12px rgba(255,120,200,.45)); } }
@keyframes axAuroraHueV { from { filter: hue-rotate(0deg) drop-shadow(0 1px 0 rgba(0,0,0,.85)); } to { filter: hue-rotate(360deg) drop-shadow(0 1px 0 rgba(0,0,0,.85)); } }
.ds12 .ds-tag { left: 10%; right: 10%; bottom: 12.4%; display: flex !important; align-items: center; justify-content: center; gap: 2.2cqw; font: 800 2.35cqw/1 "Cinzel", serif; letter-spacing: .5em; padding-left: .5em; color: #dfe9ff; text-shadow: 0 1px 0 rgba(0,0,0,.9), 0 0 8px rgba(160,190,255,.55); white-space: nowrap; }
.ds12 .ds-tag i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #b9c8ff); }
.ds12 .ds-tag i:last-child { background: linear-gradient(90deg, #b9c8ff, transparent); }
.ds12 .ds-rule { left: 22%; right: 22%; bottom: 9.6%; height: 1px; background: linear-gradient(90deg, transparent, #b9c8ff 25%, #ffffff 50%, #ffc8f0 75%, transparent); }
.ds12 .ds-rule .tc-star4 { position: absolute; left: 50%; top: 50%; width: 3.4cqw; height: 3.4cqw; translate: -50% -50%; background: var(--gold); filter: drop-shadow(0 0 4px rgba(170,200,255,.95)); }
.ds12 .ds-foot { left: 9.4cqw; right: 9.4cqw; bottom: 4.2%; display: flex !important; align-items: center; justify-content: space-between; }
.ds12 .ds-rar { font: 800 2.5cqw/1 "Cinzel", serif; letter-spacing: .3em; }
/* the value in a struck-gold capsule, like the 1/1 stamp */
.ds12 .ds-val { position: relative; font: 900 4.1cqw/1 "Cinzel", serif; letter-spacing: .03em; padding: 1cqw 2.6cqw .9cqw; }
.ds12 .ds-val::before { content: ""; position: absolute; inset: 0; border-radius: 999px; border: 1px solid transparent; background: var(--gold) border-box;
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0) border-box; -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0) border-box; }
@keyframes axFoil { from { background-position: 0% 0; } to { background-position: -250% 0; } }

/* ── the blast's anamorphic streak, across the card at the star's height ── */
.ds12 .ax-flare { left: 0; right: 0; top: 30%; height: 0; pointer-events: none; }
.ax-flare > b { position: absolute; left: -10%; right: -10%; top: -2px; display: block; height: 4px; border-radius: 50%; opacity: 0; mix-blend-mode: screen;
    background: linear-gradient(90deg, transparent, rgba(110,170,255,.55) 15%, rgba(200,235,255,.95) 40%, #fff 50%, rgba(200,235,255,.95) 60%, rgba(110,170,255,.55) 85%, transparent);
    box-shadow: 0 0 10px 3px rgba(143,200,255,.75), 0 0 26px 6px rgba(110,140,255,.35); animation: axStreak 12s cubic-bezier(.2,.7,.3,1) infinite; }
.ds12 :is(.tc-shine, .tc-gloss, .tc-glare) { inset: 0; border-radius: 16px; }

/* ── the sky: CSS version for small copies; card-apex.js swaps in WebGL on big ones (.gl-on) ── */
.ax-scene > b, .ax-scene .ax-stars > b { position: absolute; display: block; pointer-events: none; }
.ax-scene .ax-sky { inset: 0; background: var(--ax-sky) center / 100% 100% no-repeat; transform-origin: 50% 30%; will-change: transform; animation: axSky 26s ease-in-out infinite; }
.ax-scene .ax-swirl { inset: -6%; background: var(--ax-sky) center / 100% 100% no-repeat; transform-origin: 50% 31%; mix-blend-mode: screen; will-change: transform, opacity;
    -webkit-mask: radial-gradient(48% 34% at 50% 31%, #000 30%, rgba(0,0,0,.5) 62%, transparent 92%); mask: radial-gradient(48% 34% at 50% 31%, #000 30%, rgba(0,0,0,.5) 62%, transparent 92%);
    animation: axSwirl 19s ease-in-out infinite alternate, axHue 11s ease-in-out infinite alternate; }
.ax-scene .ax-core { left: 50%; top: 30%; width: 92%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; mix-blend-mode: screen;
    background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(236,248,255,.7) 7%, rgba(160,222,255,.42) 18%, rgba(176,107,255,.2) 36%, rgba(255,79,216,.08) 54%, transparent 72%);
    animation: axCore 12s ease-in-out infinite; }
.ax-scene .ax-flash { inset: 0; mix-blend-mode: screen; opacity: 0; background: radial-gradient(70% 50% at 50% 30%, rgba(255,255,255,.9), rgba(191,230,255,.55) 22%, rgba(176,107,255,.25) 48%, transparent 75%); animation: axFlash 12s ease-out infinite; }
.ax-scene .ax-ring { left: 50%; top: 30%; width: 40%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; mix-blend-mode: screen; opacity: 0;
    box-shadow: 0 0 0 2px rgba(234,247,255,.85), 0 0 14px 2px rgba(143,220,255,.7), 0 0 34px rgba(176,107,255,.5), inset 0 0 18px rgba(255,111,224,.5); animation: axRing 12s cubic-bezier(.15,.6,.3,1) infinite; }
.ax-scene .ax-ring.r2 { box-shadow: 0 0 0 1px rgba(255,190,240,.7), 0 0 20px rgba(255,79,216,.5); animation-delay: .45s; }
.ax-scene .ax-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .5s ease; }
.ax-scene.gl-on .ax-gl { opacity: 1; }
.ax-scene.gl-on :is(.ax-sky, .ax-swirl, .ax-core, .ax-ring, .ax-flash) { visibility: hidden; animation: none; }
.ax-scene .ax-stars { inset: 0; }
.ax-scene .ax-stars > b { width: 4.2cqw; height: 4.2cqw; translate: -50% -50%; opacity: 0; mix-blend-mode: screen;
    background: radial-gradient(circle, #fff 0 1.2px, rgba(223,243,255,.85) 2.2px, transparent 5px), linear-gradient(0deg, transparent 45%, rgba(240,248,255,.95) 50%, transparent 55%), linear-gradient(90deg, transparent 45%, rgba(240,248,255,.95) 50%, transparent 55%);
    animation: axTwinkle 4.6s ease-in-out infinite; }
.ax-stars > b:nth-child(1) { left: 11%; top: 9%; animation-delay: -.4s; } .ax-stars > b:nth-child(2) { left: 84%; top: 12%; animation-delay: -1.9s; transform: scale(1.3); }
.ax-stars > b:nth-child(3) { left: 71%; top: 17%; animation-delay: -3.1s; } .ax-stars > b:nth-child(4) { left: 21%; top: 29%; animation-delay: -2.4s; }
.ax-stars > b:nth-child(5) { left: 91%; top: 27%; animation-delay: -.9s; } .ax-stars > b:nth-child(6) { left: 8%; top: 45%; animation-delay: -3.8s; }
.ax-stars > b:nth-child(7) { left: 59%; top: 10%; animation-delay: -1.3s; } .ax-stars > b:nth-child(8) { left: 37%; top: 13%; animation-delay: -4.2s; }
.ax-stars > b:nth-child(9) { left: 79%; top: 37%; animation-delay: -2.8s; }
.ax-scene .ax-meteor { left: 78%; top: 8%; width: 34%; height: 2px; border-radius: 2px; transform-origin: 0 50%; rotate: 158deg; opacity: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(191,230,255,.6) 25%, rgba(176,107,255,.2) 60%, transparent); box-shadow: 0 0 6px rgba(191,230,255,.8);
    animation: axMeteor 13s ease-in infinite; animation-delay: 4.2s; }

/* ── light pouring off the card (big copies only): pulsing halo + two slow fans of rays ── */
.ds12 .ax-aura { position: absolute; left: 50%; top: 40%; width: 200%; aspect-ratio: 1; translate: -50% -50%; z-index: -1; pointer-events: none; display: none; }
:is(.tc-insp, .tc-apexsec-card, .tc-face, .tc-stage, .ax-show) .ds12 .ax-aura { display: block; }
.ax-aura > b { position: absolute; inset: 0; display: block; border-radius: 50%; }
.ax-aura .ax-halo { inset: 16%; background: radial-gradient(closest-side, rgba(225,240,255,.5), rgba(143,220,255,.28) 30%, rgba(176,107,255,.16) 52%, rgba(255,79,216,.07) 70%, transparent 82%); animation: axHalo 12s ease-out infinite; }
.ax-aura .ax-rays { background: repeating-conic-gradient(from 0deg, rgba(210,230,255,.13) 0deg 1.4deg, transparent 1.4deg 9deg); opacity: .8;
    -webkit-mask: radial-gradient(closest-side, transparent 22%, #000 34%, rgba(0,0,0,.5) 62%, transparent 92%); mask: radial-gradient(closest-side, transparent 22%, #000 34%, rgba(0,0,0,.5) 62%, transparent 92%);
    animation: axRays 70s linear infinite, axRaysP 12s ease-out infinite; }
.ax-aura .ax-rays.r2 { background: repeating-conic-gradient(from 4deg, rgba(255,150,230,.1) 0deg 2.2deg, transparent 2.2deg 13deg); animation: axRays 110s linear infinite reverse, axRaysP 12s ease-out infinite; }
.tc-insp:has(.ds12) { overflow-x: hidden; }

/* ── comets of light racing the platinum rim ── */
@property --ax-cm { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ds12 .ax-frame { position: absolute; inset: 0; pointer-events: none; border-radius: 16px; transform: translateZ(1px); display: block; }
.ax-frame .ax-cm { position: absolute; inset: 0; display: block; border-radius: inherit; padding: 1.7cqw;
    background: conic-gradient(from var(--ax-cm), transparent 0deg 140deg, rgba(200,225,255,.5) 160deg, #fff 172deg, rgba(190,150,255,.7) 176deg, transparent 182deg 320deg, rgba(191,230,255,.5) 340deg, #fff 352deg, rgba(255,150,230,.7) 356deg, transparent 360deg);
    -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 exclude, linear-gradient(#000 0 0);
    filter: drop-shadow(0 0 4px rgba(200,225,255,.9)) drop-shadow(0 0 10px rgba(176,107,255,.55)); animation: axComet 4.2s linear infinite; }

/* ── debris thrown out of the core toward you ── */
.ds12 .ax-debris { position: absolute; left: 50%; top: 30%; width: 0; height: 0; display: block; transform: translateZ(44px); pointer-events: none; }
.ax-debris > b { position: absolute; left: 0; top: 0; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; opacity: 0; mix-blend-mode: screen; display: block;
    background: #fff; box-shadow: 0 0 6px 1px rgba(191,230,255,.95), 0 0 12px rgba(255,111,224,.6); animation: axDebris 12s cubic-bezier(.08,.75,.3,1) infinite; }
.ax-debris > b:nth-child(1) { --a: 8deg; --r: 230px; } .ax-debris > b:nth-child(2) { --a: 28deg; --r: 300px; animation-delay: .05s; } .ax-debris > b:nth-child(3) { --a: 49deg; --r: 200px; animation-delay: .1s; }
.ax-debris > b:nth-child(4) { --a: 70deg; --r: 280px; } .ax-debris > b:nth-child(5) { --a: 91deg; --r: 240px; animation-delay: .08s; } .ax-debris > b:nth-child(6) { --a: 112deg; --r: 320px; animation-delay: .03s; }
.ax-debris > b:nth-child(7) { --a: 133deg; --r: 220px; animation-delay: .12s; } .ax-debris > b:nth-child(8) { --a: 154deg; --r: 290px; } .ax-debris > b:nth-child(9) { --a: 175deg; --r: 210px; animation-delay: .07s; }
.ax-debris > b:nth-child(10) { --a: 196deg; --r: 330px; animation-delay: .02s; } .ax-debris > b:nth-child(11) { --a: 217deg; --r: 250px; animation-delay: .11s; } .ax-debris > b:nth-child(12) { --a: 238deg; --r: 280px; }
.ax-debris > b:nth-child(13) { --a: 259deg; --r: 230px; animation-delay: .06s; } .ax-debris > b:nth-child(14) { --a: 280deg; --r: 310px; animation-delay: .09s; } .ax-debris > b:nth-child(15) { --a: 301deg; --r: 220px; }
.ax-debris > b:nth-child(16) { --a: 322deg; --r: 290px; animation-delay: .04s; } .ax-debris > b:nth-child(17) { --a: 343deg; --r: 250px; animation-delay: .13s; } .ax-debris > b:nth-child(18) { --a: 18deg; --r: 160px; animation-delay: .15s; }
.ax-debris > b:nth-child(3n) { width: 3px; height: 3px; } .ax-debris > b:nth-child(4n) { background: #ffd6f4; } .ax-debris > b:nth-child(5n) { width: 6px; height: 2px; border-radius: 2px; }
/* the card shakes once when the star goes (Inspect / reveal only) */
:is(.tc-insp, .tc-face, .tc-stage, .ax-show) .tc-card.ds12 { animation: axShake 12s linear infinite; }

@keyframes axSky { 0%, 100% { transform: rotate(0deg) scale(1.03); } 50% { transform: rotate(1.8deg) scale(1.09); } }
@keyframes axSwirl { from { transform: rotate(-5deg) scale(1.08); opacity: .28; } to { transform: rotate(6deg) scale(1.17); opacity: .55; } }
@keyframes axHue { from { filter: hue-rotate(0deg) saturate(1.2); } to { filter: hue-rotate(38deg) saturate(1.45); } }
@keyframes axCore { 0% { transform: scale(1.18); opacity: 1; } 12% { transform: scale(.9); opacity: .72; } 70% { transform: scale(.82); opacity: .62; } 92% { transform: scale(.78); opacity: .7; } 100% { transform: scale(1.18); opacity: 1; } }
@keyframes axFlash { 0% { opacity: .95; } 3% { opacity: .75; } 22% { opacity: 0; } 94% { opacity: 0; } 98% { opacity: .35; } 100% { opacity: .95; } }
@keyframes axRing { 0% { transform: scale(.25); opacity: 0; } 4% { opacity: 1; } 45% { opacity: 0; } 100% { transform: scale(3.1); opacity: 0; } }
@keyframes axLit { 0% { opacity: .55; } 22% { opacity: .07; } 85% { opacity: .05; } 97% { opacity: .2; } 100% { opacity: .55; } }
@keyframes axTwinkle { 0%, 100% { opacity: 0; scale: .4; } 45% { opacity: 1; scale: 1; } 60% { opacity: .8; scale: .85; } }
@keyframes axMeteor { 0% { opacity: 0; transform: scaleX(.1) translateX(0); } 1% { opacity: 1; } 6% { opacity: 0; transform: scaleX(1) translateX(-40%); } 100% { opacity: 0; } }
@keyframes axLamp { 0%, 100% { opacity: .9; } 46% { opacity: .55; } 49% { opacity: .95; } 72% { opacity: .7; } 74% { opacity: 1; } }
@keyframes axDebris { 0% { opacity: 0; transform: rotate(var(--a)) translateX(4px) scale(1.4); } 1.5% { opacity: 1; } 30% { opacity: .7; } 48% { opacity: 0; transform: rotate(var(--a)) translateX(var(--r)) scale(.6); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--r)) scale(.6); } }
@keyframes axHalo { 0% { transform: scale(1.18); opacity: 1; } 28% { transform: scale(.95); opacity: .55; } 82% { transform: scale(.9); opacity: .45; } 96% { transform: scale(.82); opacity: .3; } 100% { transform: scale(1.18); opacity: 1; } }
@keyframes axRays { to { rotate: 360deg; } }
@keyframes axRaysP { 0% { opacity: 1; } 35% { opacity: .45; } 85% { opacity: .4; } 97% { opacity: .2; } 100% { opacity: 1; } }
@keyframes axComet { to { --ax-cm: 360deg; } }
@keyframes axStreak { 0% { opacity: 1; transform: scaleX(.15) scaleY(1.6); } 6% { opacity: .9; transform: scaleX(1) scaleY(1); } 22% { opacity: 0; transform: scaleX(1.1) scaleY(.6); } 100% { opacity: 0; } }
@keyframes axShake { 0% { translate: 0 0; } .35% { translate: 4px -3px; } .7% { translate: -4px 3px; } 1.05% { translate: 3px 2px; } 1.4% { translate: -2px -2px; } 1.9% { translate: 1px 1px; } 2.5%, 100% { translate: 0 0; } }

/* ── cost control: grid copies stay still until hovered; phones drop the extras; reduced motion = a still card ── */
.tc-grid .tc-card.ds12:not(:hover):not(.press) :is(.ax-scene b, .ax-debris b, .ax-cm, .ds-fglit, .ax-lamp, .ds-rim, .ds-refr, .ax-flare b, .ds-brand, .ds-serial, .ds-name, .ds-rar, .ds-val) { animation: none !important; }
.tc-grid .tc-card.ds12:not(:hover):not(.press) :is(.ax-flash, .ax-ring, .ax-meteor, .ax-debris, .ax-flare) { opacity: 0 !important; }
.tc-tgrid.lite .ds12 :is(.ax-scene > b:not(.ax-sky), .ax-debris, .ax-frame) { display: none !important; }
@media (hover: none), (max-width: 760px) { .tc-grid .tc-card.ds12 :is(.ax-swirl, .ax-debris, .ax-stars, .ax-meteor, .ds-glit, .ds-refr, .ds-spark) { display: none; } }
@media (prefers-reduced-motion: reduce) { .ds12 *, .ds12 { animation: none !important; } .ds12 :is(.ax-flash, .ax-ring, .ax-meteor, .ax-debris) { opacity: 0 !important; } }
