/* Current player badge styling */
.current-player-badge {
    /* background-color is set inline to player's color */
    /* color is set with getContrastTextColor function */
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 8px 2px currentColor;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    animation: badge-pulse 1.5s infinite alternate;
    z-index: 10;
}

@keyframes badge-pulse {
    0% {
        opacity: 0.85;
        transform: translateX(-50%);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1.15);
    }
}
