/* FundingPe — Mobile / tablet 3D VFX (paired with js/mobile-fx.js; html.mfx is set only on touch devices without reduced motion) */

/* JS owns the 3D transform once a card has revealed: stop the CSS sway on those cards and make transforms snappy */
html.mfx [data-tilt].mfx-live{animation:none!important;transition:transform .2s linear,box-shadow .45s ease,border-color .45s ease!important;transition-delay:0s!important;transform-style:preserve-3d;will-change:transform;backface-visibility:hidden}
html.mfx [data-tilt].mfx-press{box-shadow:0 0 0 1px rgba(242,182,64,.55),0 0 34px rgba(242,182,64,.28),0 24px 44px rgba(0,0,0,.35)!important}

/* glare is shared by every page that uses [data-tilt] */
html.mfx .tm-glare{position:absolute;inset:0;z-index:3;border-radius:inherit;pointer-events:none;opacity:0;mix-blend-mode:soft-light;background:radial-gradient(circle at var(--gx,50%) var(--gy,50%),rgba(255,255,255,.45),transparent 55%);transition:opacity .45s ease}
html.mfx [data-tilt].is-tilt .tm-glare{opacity:1}
html.mfx figure .tm-glare,html.mfx .tm-md__pic .tm-glare{display:none}

/* light-sweep shine on the focused card (was switched off for touch) */
html.mfx .cr-card.is-tilt::after,html.mfx .cr-point.is-tilt::after,html.mfx .cr-job.is-tilt::after,html.mfx .cr-ti.is-tilt::after,
html.mfx .cr-rule.is-tilt::after,html.mfx .cr-step.is-tilt::after,html.mfx .cr-stat.is-tilt::after,
html.mfx .hi-pc.is-tilt::after,html.mfx .pk .pk-plan.is-tilt::after{display:block}

/* scroll + gyroscope parallax for illustrations */
html.mfx [data-parallax]{translate:var(--px,0px) var(--py,0px);transition:translate .25s linear}
html.mfx .fico-layer{translate:none}

/* floating light that follows the finger (drifts on its own when idle) */
.mfx-light{position:fixed;left:0;top:0;z-index:60;width:340px;height:340px;border-radius:50%;pointer-events:none;opacity:0;
  background:radial-gradient(circle,rgba(255,214,110,.16),rgba(47,184,116,.08) 45%,transparent 70%);mix-blend-mode:screen;
  transition:opacity 1.2s ease;will-change:transform}
.mfx-light.on{opacity:1}
[data-theme="light"] .mfx-light{mix-blend-mode:normal;background:radial-gradient(circle,rgba(242,182,64,.10),rgba(47,184,116,.05) 45%,transparent 70%)}

/* tap sparkle burst */
.mfx-burst{position:fixed;z-index:9999;width:0;height:0;pointer-events:none}
.mfx-burst i{position:absolute;left:-3px;top:-3px;width:6px;height:6px;border-radius:50%;background:radial-gradient(circle,#fff6d6,#f2b640 60%,transparent 70%);box-shadow:0 0 8px rgba(242,182,64,.9);animation:mfxBurst .65s cubic-bezier(.2,.8,.3,1) forwards}
.mfx-burst i:nth-child(even){width:4px;height:4px;background:#7ef0b0;box-shadow:0 0 8px rgba(47,184,116,.9)}
@keyframes mfxBurst{0%{transform:translate(0,0) scale(1);opacity:1}100%{transform:translate(var(--x),var(--y)) scale(.2);opacity:0}}

/* bring back the floating coins on phones (smaller and softer so they never cover text) */
@media (max-width:640px){
  html.mfx .cr-coin,html.mfx .nw-coin,html.mfx .pp-coin,html.mfx .tm-coin,html.mfx .ts-coin{display:block;scale:.55;opacity:.7}
  html.mfx .cr-sparks i:nth-child(n+4){display:block}
}

@media (prefers-reduced-motion:reduce){ .mfx-light,.mfx-burst{display:none} }
