/* =========================================
   КАТАЛОГ НАСТОЛЬНЫХ ИГР (Чистый и строгий)
   ========================================= */

.elysium-games-wrapper {
    margin: 0 auto;
    padding: 60px 20px;
}

.elysium-games-title {
    font-family: 'Russo One', sans-serif !important;
    color: #d8bd8e !important;
    text-align: center;
    font-size: 3em !important;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.elysium-games-subtitle {
    font-family: 'Comfortaa', cursive;
    color: #888888;
    text-align: center;
    margin-bottom: 40px;
}

/* ===== Фильтры (Вернули как было) ===== */
.games-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #333333;
    color: #cccccc;
    font-family: 'Russo One', sans-serif;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9em;
}

.filter-btn:hover, .filter-btn.active {
    border-color: #d8bd8e;
    color: #d8bd8e;
    background-color: rgba(216, 189, 142, 0.1); /* Легкий золотой фон, а не сплошной цвет */
}

/* ===== Сетка (Строго 3 в ряд) ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 одинаковые колонки */
    gap: 30px;
}

/* ===== Карточка игры (Аккуратная) ===== */
.game-card {
    background-color: #151515;
    border: 1px solid #2a2a2a; /* Тонкая строгая рамка, без подсветок */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: #555555; /* При наведении рамка чуть светлеет */
}

/* Картинка */
.game-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid #2a2a2a;
}

/* Текстовый блок (Название + Описание) */
.game-info {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-info h3 {
    font-family: 'Russo One', sans-serif;
    color: #d8bd8e; /* Золотое название */
    font-size: 1.3em;
    margin: 0 0 15px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.game-info p {
    font-family: 'Comfortaa', cursive;
    color: #cccccc; /* Светло-серый текст для хорошей читаемости */
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
}

/* ===== Бирки редкости (Аккуратные плашки) ===== */
.game-rarity {
    position: absolute;
    top: 15px;
    right: -5px;
    padding: 6px 12px;
    font-family: 'Russo One', sans-serif;
    font-size: 0.8em;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: black 0px 0px 5px 2px;
    letter-spacing: 0.5px;
}

.rarity-common { background-color: #e0e0e0; color: #111111; }
.rarity-rare { background-color: #4a90e2; color: #ffffff; }
.rarity-legendary { background-color: #d8bd8e; color: #111111; }

/* Класс для работы скрипта фильтрации */
.game-hidden { 
    display: none !important; 
}

/* ===== Адаптивность для экранов поменьше ===== */
@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 в ряд на планшетах */
    }
}

@media (max-width: 600px) {
    .games-grid {
        grid-template-columns: 1fr; /* 1 в ряд на телефонах */
    }
}