/*
 * Efecte animate pentru nume (glitch, sclipici, petale, thunder blue / gold, liquid).
 * Merg cu orice font: pseudo-elementele moștenesc fontul numelui (content: attr(data-text)).
 * Se aplică din name-fx.js: clasa „kxfx kxfx-<efect>” + data-text + --kxc (culoarea numelui).
 */
.kxfx{position:relative;display:inline-block !important;width:-webkit-fit-content !important;width:fit-content !important;max-width:100%;vertical-align:baseline;isolation:isolate;overflow:visible !important;text-overflow:clip !important;--kxc:#ffffff}
.kxfx::before,.kxfx::after{pointer-events:none}

/* ── Glitch ─────────────────────────────────────── */
.kxfx-glitch{animation:kxfxGlitchSkew 3.2s infinite steps(1)}
.kxfx-glitch::before,.kxfx-glitch::after{content:attr(data-text);position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;white-space:inherit;color:inherit;text-shadow:none}
.kxfx-glitch::before{left:2px;text-shadow:-2px 0 #ff00c8;clip-path:inset(0 0 0 0);animation:kxfxGlitchA 2.4s infinite linear alternate-reverse;opacity:.9}
.kxfx-glitch::after{left:-2px;text-shadow:2px 0 #00fff9;clip-path:inset(0 0 0 0);animation:kxfxGlitchB 2.9s infinite linear alternate-reverse;opacity:.9}
@keyframes kxfxGlitchA{0%{clip-path:inset(12% 0 70% 0)}10%{clip-path:inset(60% 0 8% 0)}20%{clip-path:inset(30% 0 45% 0)}30%{clip-path:inset(80% 0 2% 0)}40%{clip-path:inset(5% 0 85% 0)}50%{clip-path:inset(42% 0 33% 0)}60%{clip-path:inset(70% 0 12% 0)}70%{clip-path:inset(18% 0 60% 0)}80%{clip-path:inset(55% 0 25% 0)}90%{clip-path:inset(2% 0 90% 0)}100%{clip-path:inset(35% 0 40% 0)}}
@keyframes kxfxGlitchB{0%{clip-path:inset(65% 0 10% 0)}12%{clip-path:inset(8% 0 75% 0)}25%{clip-path:inset(40% 0 38% 0)}37%{clip-path:inset(85% 0 3% 0)}50%{clip-path:inset(20% 0 55% 0)}62%{clip-path:inset(50% 0 30% 0)}75%{clip-path:inset(3% 0 80% 0)}87%{clip-path:inset(72% 0 8% 0)}100%{clip-path:inset(28% 0 50% 0)}}
@keyframes kxfxGlitchSkew{0%,100%{transform:none}92%{transform:skewX(0)}93%{transform:skewX(-8deg) translateX(1px)}94%{transform:skewX(6deg) translateX(-1px)}95%{transform:none}}

/* ── Sclipici + lumină ─────────────────────────── */
.kxfx-sparkle{text-shadow:0 0 6px rgba(255,255,255,.55),0 0 14px rgba(255,236,170,.35)}
.kxfx-sparkle::after{content:attr(data-text);position:absolute;left:0;top:0;width:100%;height:100%;white-space:inherit;color:transparent;-webkit-text-fill-color:transparent;text-shadow:none;background:linear-gradient(110deg,transparent 0 38%,rgba(255,255,255,.95) 48%,rgba(255,240,190,.9) 52%,transparent 62% 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;animation:kxfxShine 2.8s ease-in-out infinite}
.kxfx-sparkle::before{content:"";position:absolute;left:-10%;top:-45%;width:120%;height:190%;z-index:-1;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cg fill='%23ffe27a'%3E%3Cpath d='M14 10l1.4 3.6L19 15l-3.6 1.4L14 20l-1.4-3.6L9 15l3.6-1.4z'/%3E%3Cpath d='M70 6l1 2.6L73.6 9.6 71 10.6 70 13.2 69 10.6 66.4 9.6 69 8.6z'/%3E%3Cpath d='M98 34l1.6 4L104 39.6l-4.4 1.6L98 45.6l-1.6-4.4L92 39.6l4.4-1.6z'/%3E%3Cpath d='M44 42l.9 2.3 2.3.9-2.3.9-.9 2.3-.9-2.3-2.3-.9 2.3-.9z'/%3E%3C/g%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='30' cy='52' r='1.1'/%3E%3Ccircle cx='86' cy='16' r='1'/%3E%3Ccircle cx='58' cy='28' r='.8'/%3E%3C/g%3E%3C/svg%3E");background-size:auto 100%;background-repeat:repeat-x;animation:kxfxTwinkle 1.6s ease-in-out infinite alternate}
@keyframes kxfxShine{0%{background-position:120% 0}60%,100%{background-position:-120% 0}}
@keyframes kxfxTwinkle{0%{opacity:.25;filter:drop-shadow(0 0 1px #fff3b0)}100%{opacity:1;filter:drop-shadow(0 0 4px #ffd84a)}}

/* ── Petale de trandafir ───────────────────────── */
.kxfx-petals{text-shadow:0 0 8px rgba(255,120,170,.55)}
.kxfx-petals::before,.kxfx-petals::after{content:"";position:absolute;left:-12%;top:-70%;width:124%;height:240%;z-index:-1;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ffe1ec'/%3E%3Cstop offset='1' stop-color='%23ff6f9f'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg transform='translate(12 14) rotate(25) scale(.75)'%3E%3Cpath d='M0 -7 C5 -6 7 -1 0 7 C-7 -1 -5 -6 0 -7 Z' fill='url(%23g)'/%3E%3C/g%3E%3Cg transform='translate(62 36) rotate(140) scale(.6)'%3E%3Cpath d='M0 -7 C5 -6 7 -1 0 7 C-7 -1 -5 -6 0 -7 Z' fill='url(%23g)'/%3E%3C/g%3E%3Cg transform='translate(34 72) rotate(-35) scale(.7)'%3E%3Cpath d='M0 -7 C5 -6 7 -1 0 7 C-7 -1 -5 -6 0 -7 Z' fill='url(%23g)'/%3E%3C/g%3E%3C/svg%3E");background-size:64px 64px;animation:kxfxPetalFall 6s linear infinite;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 20%,#000 80%,transparent);mask-image:linear-gradient(to bottom,transparent,#000 20%,#000 80%,transparent)}
.kxfx-petals::after{background-size:46px 46px;animation-duration:8.5s;animation-direction:normal;opacity:.75;left:-6%;background-position:14px 0}
@keyframes kxfxPetalFall{0%{background-position:0 0}100%{background-position:64px 128px}}

/* ── Thunder blue / gold: același efect ca la ramele Thunder (puls, sclipiri, fulgere, scântei) ── */
.kxfx-thunder_blue,.kxfx-thunder_gold{--kxg1:#4aa8ff;--kxg2:#1b6dff;--kxbolt:#eaf7ff;animation:kxfxSway 6s ease-in-out infinite;transform-origin:50% 60%}
.kxfx-thunder_gold{--kxg1:#ffd24a;--kxg2:#ff9e1b;--kxbolt:#fff6d6}
.kxfx-thunder_blue,.kxfx-thunder_gold{text-shadow:0 0 .12em var(--kxg1),0 0 .28em var(--kxg2)}
/* strat „flick” (sclipiri rapide) și „zap” (descărcare puternică), ca la ramă */
.kxfx-thunder_blue::before,.kxfx-thunder_gold::before,.kxfx-thunder_blue::after,.kxfx-thunder_gold::after{content:attr(data-text);position:absolute;left:0;top:0;width:100%;height:100%;white-space:inherit;color:#fff;-webkit-text-fill-color:#fff;pointer-events:none}
.kxfx-thunder_blue::before,.kxfx-thunder_gold::before{text-shadow:0 0 .16em var(--kxg1),0 0 .36em var(--kxg2);opacity:0;animation:kxfxFlick 1.6s steps(1,end) infinite}
.kxfx-thunder_blue::after,.kxfx-thunder_gold::after{text-shadow:0 0 .06em #fff,0 0 .22em var(--kxg1),0 0 .45em var(--kxg2);opacity:0;animation:kxfxZap 3.6s ease-in-out infinite}
.kxfx-svg{position:absolute;left:-14%;top:-55%;width:128%;height:210%;pointer-events:none;overflow:visible;z-index:-1}
.kxfx-bolt{fill:none;stroke:var(--kxbolt,#eaf7ff);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:0;filter:drop-shadow(0 0 2px var(--kxg1,#4aa8ff)) drop-shadow(0 0 5px var(--kxg2,#1b6dff));animation:kxfxBoltF 1.5s steps(1,end) infinite;vector-effect:non-scaling-stroke}
.kxfx-spk{fill:var(--kxbolt,#e7f6ff);opacity:0;filter:drop-shadow(0 0 2px var(--kxg1,#4aa8ff));animation:kxfxSpk 1.8s ease-in-out infinite}
.kxfx-spk.kx-y{fill:#fff0b8}
.kxfx-thunder_gold .kxfx-spk.kx-y{fill:#ffffff}
@keyframes kxfxSway{0%,100%{transform:rotate(-1.2deg)}50%{transform:rotate(1.2deg)}}
@keyframes kxfxFlick{0%,4%{opacity:0}5%{opacity:.85}7%{opacity:0}18%{opacity:0}19%{opacity:.6}21%{opacity:0}49%{opacity:0}50%{opacity:.8}52%{opacity:0}74%{opacity:0}75%{opacity:.75}77%{opacity:0}100%{opacity:0}}
@keyframes kxfxZap{0%,38%,100%{opacity:0}40%{opacity:.9}43%{opacity:0}45%{opacity:.55}47%{opacity:0}}
@keyframes kxfxBoltF{0%,100%{opacity:0}3%{opacity:1}5%{opacity:.3}7%{opacity:1}10%{opacity:0}55%{opacity:0}57%{opacity:.9}62%{opacity:0}}
@keyframes kxfxSpk{0%,100%{opacity:0}8%{opacity:1}24%{opacity:0}}

/* ── Liquid ─────────────────────────────────────── */
.kxfx-liquid{color:transparent !important;-webkit-text-fill-color:transparent;text-shadow:none !important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' preserveAspectRatio='none'%3E%3Cpath d='M0 20 Q15 12 30 20 T60 20 T90 20 T120 20 V40 H0Z' fill='rgba(255,255,255,0.35)'/%3E%3C/svg%3E"),linear-gradient(var(--kxc),var(--kxc));background-repeat:repeat-x,no-repeat;background-size:60px 40%,100% 58%;background-position:0 30%,0 100%;-webkit-background-clip:text;background-clip:text;animation:kxfxWave 2.2s linear infinite,kxfxLevel 4s ease-in-out infinite alternate}
.kxfx-liquid::before{content:attr(data-text);position:absolute;left:0;top:0;width:100%;height:100%;white-space:inherit;color:transparent;-webkit-text-fill-color:transparent;-webkit-text-stroke:1px var(--kxc);opacity:.75;z-index:-1}
@keyframes kxfxWave{0%{background-position-x:0,0}100%{background-position-x:60px,0}}
@keyframes kxfxLevel{0%{background-size:60px 40%,100% 52%;background-position-y:36%,100%}100%{background-size:60px 40%,100% 66%;background-position-y:22%,100%}}

/* Liste / rânduri cu text tăiat: efectele nu strică „…” */
.kxfx-glitch,.kxfx-sparkle,.kxfx-liquid{overflow:visible}

@media (prefers-reduced-motion:reduce){.kxfx,.kxfx::before,.kxfx::after{animation:none !important}}
