.games {
    width: 1200px;
    margin: 20px auto;
}
.games .games-header ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}
.games .games-header ul li {
    position: relative;
    padding-bottom: 10px;
}
.games .games-header ul li.active {
    font-weight: bold;
}
.games .games-header ul li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
}
.games .games-header ul li a {
    color: #fff;
    text-decoration: none;
}
.games .games-header ul li a:hover {
    color: #4ed462;
}
.games .games-content {
    display: grid;
    grid-template-columns: repeat(8,minmax(0, 1fr));
    gap: 20px;
}
.games .games-content .card {
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #142a18;
    border-radius: 10px;
}
.games .games-content .card .img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
}
.games .games-content .card .title { 
    font-size: 16px;
    width: 100%;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-top: 5px;
    text-align: center;
}


@media screen and (max-width: 992px) {
    .games {
        width: 100%;
        padding: 0px 10px;
    }
    .games .games-header {
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none; 
    }
    .games .games-header::-webkit-scrollbar {
        display: none;           
    }
    .games .games-header ul {
        display: flex;            
        gap: 12px;                 
        padding: 0 12px;          
    }
    .games .games-header li {
        flex: 0 0 auto;           
        padding: 8px 10px;
        font-size: 16px;
    }
    .games .games-header li.active {
        color: #fff;
    }
    .games .games-content {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
    .games .games-content .card .title {
        font-size: 14px;
    }
}