/**
 * bubbles.css - Wspoldzielone style balonikow punktowych
 * Kazda aplikacja moze nadpisac --bubble-color w swoim CSS
 */

.point-bubbles-container {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    z-index: 100;
}

.point-bubble {
    --bubble-color: var(--accent, #ef5350);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bubble-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: point-bubble-float 2s ease-out forwards;
}

.point-bubble-head {
    width: 40px;
    height: 40px;
    border-radius: 0;
    border: none;
    background: transparent url('/img/heads.png') no-repeat;
    background-size: 320px 160px; /* 512*(40/64) x 256*(40/64) */
    /* background-position ustawiane inline w JS */
    box-shadow: none;
    font-size: 0;
}

@keyframes point-bubble-float {
    0% {
        transform: scale(0) translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        transform: scale(1.2) translateY(0) translateX(0);
        opacity: 1;
    }
    20% {
        transform: scale(1) translateY(-20px) translateX(8px);
        opacity: 1;
    }
    40% {
        transform: scale(1) translateY(-60px) translateX(-8px);
        opacity: 1;
    }
    60% {
        transform: scale(1) translateY(-100px) translateX(8px);
        opacity: 1;
    }
    80% {
        transform: scale(0.9) translateY(-140px) translateX(-5px);
        opacity: 0.7;
    }
    100% {
        transform: scale(0.8) translateY(-180px) translateX(0);
        opacity: 0;
    }
}
