/* Real-Time Live Cursor Overlay Styles */

#live-cursors-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 999999;
    overflow: visible;
}

.live-cursor-item {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    will-change: transform, opacity;
    transition: transform 0.06s linear, opacity 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 1;
}

.live-cursor-item.idle {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.live-cursor-pointer-wrap {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: top left;
    transition: transform 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.live-cursor-pointer-wrap.clicking {
    transform: scale(0.82) rotate(-6deg);
}

.live-cursor-svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
    overflow: visible;
}

.live-cursor-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: "Courier New", Courier, monospace, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(12, 14, 20, 0.92);
    border: 1px solid var(--cursor-color, #33b5e5);
    color: #f0f0f0;
    margin-top: 1px;
    margin-left: 14px;
    white-space: nowrap;
    user-select: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.live-cursor-badge .badge-icon {
    font-size: 10px;
    line-height: 1;
}

/* ==========================================================================
   Admin "danlegt" Special Glow & Shimmer Styles
   ========================================================================== */

.live-cursor-item.is-admin .live-cursor-pointer-wrap {
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 12px rgba(255, 60, 180, 0.5));
}

.live-cursor-item.is-admin .live-cursor-svg path.cursor-body {
    fill: url(#admin-gold-gradient, #ffd700);
}

.live-cursor-item.is-admin .live-cursor-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 62, 231, 0.25), rgba(24, 245, 219, 0.3)), rgba(10, 10, 15, 0.94);
    border: 1px solid #ffd700;
    color: #fffbdf;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.9), 0 0 15px rgba(255, 62, 231, 0.6);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6), 0 0 24px rgba(255, 62, 231, 0.35), 0 4px 10px rgba(0, 0, 0, 0.8);
    animation: admin-glow-pulse 2.5s infinite alternate ease-in-out;
}

.live-cursor-item.is-admin .badge-icon {
    color: #ffd700;
    filter: drop-shadow(0 0 4px #ffd700);
    animation: admin-crown-bob 1.8s infinite ease-in-out;
}

@keyframes admin-glow-pulse {
    0% {
        border-color: #ffd700;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 62, 231, 0.3);
    }
    50% {
        border-color: #ff3ee7;
        box-shadow: 0 0 14px rgba(255, 62, 231, 0.8), 0 0 24px rgba(24, 245, 219, 0.4);
    }
    100% {
        border-color: #18f5db;
        box-shadow: 0 0 12px rgba(24, 245, 219, 0.7), 0 0 22px rgba(255, 215, 0, 0.5);
    }
}

@keyframes admin-crown-bob {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-1px) rotate(-4deg);
    }
}

/* ==========================================================================
   Click Particle Burst
   ========================================================================== */

.cursor-particle {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
    animation: particle-burst 0.55s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.cursor-particle.star-shape {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

@keyframes particle-burst {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) scale(0.2);
    }
}
