/* ===== THE BUBBLE ===== */
.bubble {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 50;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.bubble:hover {
    transform: scale(1.1);
}

.bubble:hover .bubble-inner {
    border-color: rgba(50, 255, 100, 0.6);
    box-shadow:
        0 0 30px rgba(50, 255, 100, 0.3),
        0 0 60px rgba(50, 255, 100, 0.1),
        inset 0 0 30px rgba(50, 255, 100, 0.1);
}

.bubble.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0);
    transition: all 0.5s ease;
}

.bubble-inner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 35% 35%,
        rgba(255, 255, 255, 0.2),
        rgba(50, 255, 100, 0.1) 40%,
        rgba(0, 50, 80, 0.4) 70%,
        rgba(0, 20, 40, 0.6)
    );
    border: 1.5px solid rgba(50, 255, 100, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
        0 0 20px rgba(50, 255, 100, 0.15),
        0 0 40px rgba(50, 255, 100, 0.05),
        inset 0 0 20px rgba(50, 255, 100, 0.05);
    animation: bubbleFloat 4s ease-in-out infinite;
}

.bubble-text {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: rgba(50, 255, 100, 0.9);
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(50, 255, 100, 0.5);
    z-index: 2;
}

/* Bubble highlight / reflection */
.bubble-inner::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 18px;
    width: 18px;
    height: 12px;
    background: radial-gradient(
        ellipse,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    border-radius: 50%;
    transform: rotate(-30deg);
}

/* Bubble secondary reflection */
.bubble-inner::after {
    content: '';
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 8px;
    height: 6px;
    background: radial-gradient(
        ellipse,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    border-radius: 50%;
}

/* Pulse ring */
.bubble-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(50, 255, 100, 0.3);
    animation: bubblePulse 3s ease-in-out infinite;
}

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes bubblePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* ===== BURST OVERLAY ===== */
.burst-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 90;
    pointer-events: none;
    opacity: 0;
}

.burst-overlay.active {
    animation: burstFlash 1.2s ease forwards;
}

@keyframes burstFlash {
    0% {
        opacity: 0;
        background: radial-gradient(circle at var(--burst-x, 70px) var(--burst-y, 70px),
            rgba(50, 255, 100, 0.8), transparent 10%);
    }
    15% {
        opacity: 1;
        background: radial-gradient(circle at var(--burst-x, 70px) var(--burst-y, 70px),
            rgba(255, 255, 255, 0.9), rgba(50, 255, 100, 0.4) 30%, transparent 60%);
    }
    40% {
        opacity: 0.8;
        background: radial-gradient(circle at var(--burst-x, 70px) var(--burst-y, 70px),
            rgba(50, 255, 100, 0.3), transparent 80%);
    }
    100% {
        opacity: 0;
        background: transparent;
    }
}

/* Burst particles */
.burst-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    pointer-events: none;
    z-index: 95;
}

/* ===== MOBILE BUBBLE ===== */
@media (max-width: 480px) {
    .bubble {
        top: 15px;
        left: 15px;
    }

    .bubble-inner {
        width: 60px;
        height: 60px;
    }

    .bubble-text {
        font-size: 9px;
    }
}
