/* Animated fire cursor — GPU-friendly, low overhead */

html.mophyz-fire-cursor {
    cursor: none;
}

html.mophyz-fire-cursor * {
    cursor: none !important;
}

html.mophyz-fire-cursor.is-fire-hidden {
    cursor: auto;
}

html.mophyz-fire-cursor.is-fire-hidden * {
    cursor: auto !important;
}

#mophyz-fire-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 30px;
    margin-left: -12px;
    margin-top: -26px;
    pointer-events: none;
    z-index: 2147483646;
    opacity: 0;
    contain: strict;
    transform: translate3d(-100px, -100px, 0);
}

#mophyz-fire-cursor.is-visible {
    opacity: 1;
}

#mophyz-fire-cursor .fire-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    transform: translateZ(0);
}

#mophyz-fire-cursor .fire-flame {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    transform-origin: 50% 100%;
    border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
    will-change: transform, opacity;
}

#mophyz-fire-cursor .fire-flame--outer {
    width: 20px;
    height: 28px;
    background: radial-gradient(ellipse at 50% 92%, rgba(254, 243, 199, 0.2) 0%, #fb923c 30%, #ea580c 55%, #b91c1c 78%, transparent 100%);
    animation: fire-flicker-outer 0.7s steps(4, end) infinite;
}

#mophyz-fire-cursor .fire-flame--core {
    width: 10px;
    height: 18px;
    background: radial-gradient(ellipse at 50% 88%, #fff 0%, #fde047 40%, #f97316 100%);
    animation: fire-flicker-core 0.45s steps(3, end) infinite;
}

@keyframes fire-flicker-outer {
    0%, 100% { transform: translateX(-50%) scale(0.96, 0.94); opacity: 0.9; }
    50% { transform: translateX(-50%) scale(1.04, 1.05); opacity: 1; }
}

@keyframes fire-flicker-core {
    0%, 100% { transform: translateX(-50%) scale(0.94, 0.9); opacity: 0.95; }
    50% { transform: translateX(-50%) scale(1.06, 1.08); opacity: 1; }
}

@media (pointer: coarse), (max-width: 1024px), (prefers-reduced-motion: reduce) {
    html.mophyz-fire-cursor,
    html.mophyz-fire-cursor * {
        cursor: auto !important;
    }

    #mophyz-fire-cursor {
        display: none !important;
    }
}
