.game-categories-carousel {
    position: relative;
    padding: 10px 18px;
    background: #000000;
    touch-action: pan-x;
	max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.game-categories-carousel__list {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 8px; 
    scrollbar-width: thin;        
    scrollbar-color: #444 #000;
    cursor: grab;
}

.game-categories-carousel__list::-webkit-scrollbar {
    height: 4px;                
}

.game-categories-carousel__list::-webkit-scrollbar-track {
    background: #000;
}

.game-categories-carousel__list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 999px;
}

.game-categories-carousel__list.is-dragging {
    cursor: grabbing;
}


.game-categories-carousel__placeholder {
    padding: 14px 24px;
    background: rgba(255,255,255,0.08);
    border: 1px dashed rgba(255,255,255,0.25);
    border-radius: 999px;
    color: rgba(255,255,255,0.7);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    white-space: nowrap;
}

.game-category-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #262626;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid #3a3a3a;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.game-category-btn:hover {
    background: #333333;
    border-color: #454545;
}

.game-category-btn:hover .game-category-btn__name {
    color: #cbcbcb;
}
.game-category-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.game-category-btn__icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 1;
    display: block;
}

.game-category-btn--active {
    background: var(--magicwin-accent, #75ff20);
    color: #ffffff;
    border-color: var(--magicwin-accent, #75ff20);
}

.game-category-btn--active:hover {
    background: color-mix(in srgb, var(--magicwin-accent, #75ff20) 70%, transparent);
    border-color: color-mix(in srgb, var(--magicwin-accent, #75ff20) 70%, transparent);
    color: #ffffff;
}
.game-category-btn--active:hover .game-category-btn__name {
    color: white; 
}

.game-category-btn--active .game-category-btn__icon img {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.game-category-btn__name {
    line-height: 1.2;
}

@media (max-width: 768px) {
    .game-categories-carousel {
        padding: 12px 16px;
    }
    .game-category-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    .game-category-btn__icon img {
        width: 18px;
        height: 18px;
    }
}
