.custom-avatar-wrapper {
    position: relative;
    overflow: visible;
    height: 60px;
    width: 100%;
    pointer-events: none;
}

.avatar-container {
    position: absolute;
    top: 5px;
    height: 50px;
    animation: bounce-header-avatar 10s linear infinite alternate;
    display: inline-block;
    pointer-events: auto;
}

@keyframes bounce-header-avatar {
    0% {
        left: 0%;
    }
    100% {
        left: calc(100vw - 50px);
    }
}

.custom-avatar-animated {
    height: 50px;
    transform-origin: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.custom-avatar-animated.flipped {
    transform: scaleX(-1);
}

.custom-avatar-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #BC1D90;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    margin-bottom: 8px;
    z-index: 9999;
}

.custom-avatar-tooltip.visible {
    opacity: 1;
}
