/* ===== SECTION ===== */
.section-wrap {
    max-width: var(--all-width);
    margin: 0 auto;
    padding: 40px 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.section-more {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-more:hover {
    text-decoration: underline;
}

/* ===== GAME GRID ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.game-card {
    border-radius: var(--card-radius);
    overflow: hidden;
    background: var(--bg3);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(108, 99, 255, 0.25);
}

.game-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background: var(--bg2);
}

.game-info {
    padding: 10px 12px;
}

.game-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-cat {
    font-size: 11px;
    color: var(--text2);
    margin-top: 3px;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.stars {
    font-size: 11px;
    line-height: 1;
}

.star-full {
    color: #ffd700;
}

.star-empty {
    color: rgba(255, 215, 0, 0.25);
}

.rating-num {
    font-size: 11px;
    color: var(--text2);
}

/* ===== CATEGORY PILLS ===== */
.cat-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 32px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.cat-pills::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    white-space: nowrap;
    padding: 8px 18px;
    border-radius: 20px;
    background: var(--bg3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text2);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.cat-pill:hover,
.cat-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== RESPONSIVE - MAIN CONTENT ===== */
@media (max-width: 1199px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 900px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 769px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .section-wrap {
        padding: 24px 16px;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
