/* Игры: список /games/, страница игры, карточки игр в поиске */

/* Таблетка с точкой цвета игры */
.game-tag {
    display: inline-flex;
    align-items: center;
    column-gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background-color: color-mix(in srgb, var(--game) 14%, #fff);
    font-size: 13px;
    font-variant-numeric: lining-nums;
    color: color-mix(in srgb, var(--game) 75%, #141414);
    white-space: nowrap;
}

.game-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--game);
}

/* Игра без шайни */
.game-tag--none {
    background-color: #F0F0F0;
    color: #838383;
}

.game-tag--none::before {
    background-color: #c9c9c9;
}

/* Обложка: картинка записи или плашка в цвете игры */
.game-cover {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--game) 0%, color-mix(in srgb, var(--game) 55%, #141414) 100%);
    color: #fff;
    aspect-ratio: 3 / 4;
}

.game-cover--image {
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.game-cover--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-cover__small {
    font-size: 13px;
    opacity: 0.8;
}

.game-cover__name {
    font-size: 28px;
    font-weight: 700;
    line-height: 110%;
    text-transform: uppercase;
}

/* Карточка игры */
.game-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
    border: 1px solid #e2e2e2;
    border-top: 4px solid var(--game);
    border-radius: 12px;
    background-color: #fff;
    color: #141414;
    transition: 0.3s;
}

.game-card:hover {
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.game-card__name {
    font-size: 18px;
    font-weight: 700;
}

.game-card__meta {
    margin-top: 2px;
    font-size: 13px;
    color: #838383;
}

.game-card__odds {
    margin-top: 12px;
}

.game-card mark {
    padding: 0 1px;
    border-radius: 3px;
    background-color: #EDEDED;
    color: inherit;
}

/* Список игр */
.games {
    padding-bottom: 65px;
}

.games__title {
    margin-bottom: 10px;
    font-size: 50px;
    font-weight: 700;
    line-height: 120%;
    text-transform: uppercase;
}

.games__lead {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 150%;
    color: #535353;
}

.games__gen {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding-top: 25px;
    padding-bottom: 25px;
    border-top: 1px solid #e2e2e2;
}

.games__gen-title {
    font-size: 20px;
    font-weight: 700;
}

.games__gen-region {
    font-size: 14px;
    color: #838383;
}

.games__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* Страница игры */
.game-page {
    padding-bottom: 65px;
}

.game-page__hero {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 35px;
    margin-top: 24px;
    padding: 30px;
    border-radius: 12px;
    background-color: #F8F8F8;
}

.game-page__info {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.game-page__title {
    margin-top: 12px;
    margin-bottom: 12px;
    font-size: 50px;
    font-weight: 700;
    line-height: 110%;
    text-transform: uppercase;
}

.game-page__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.game-page__pill {
    padding: 5px 12px;
    border: 1px solid #e2e2e2;
    border-radius: 20px;
    background-color: #fff;
    font-size: 13px;
    font-variant-numeric: lining-nums;
    color: #535353;
    white-space: nowrap;
}

.game-page__descr {
    font-size: 16px;
    line-height: 150%;
    color: #535353;
}

.game-page__descr p:last-child {
    margin-bottom: 0;
}

.game-page__facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.game-page__fact {
    padding: 14px 16px;
    border-radius: 12px;
    background-color: #fff;
}

.game-page__fact-value {
    font-size: 24px;
    font-weight: 700;
    font-variant-numeric: lining-nums;
}

.game-page__fact-label {
    margin-top: 2px;
    font-size: 13px;
    color: #838383;
}

/* Сообщение «В этой игре нет шайни» вместо плиток с шансами */
.game-page__notice {
    padding: 18px 20px;
    border-left: 4px solid var(--game);
    border-radius: 12px;
    background-color: #fff;
}

.game-page__notice-title {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 700;
}

.game-page__notice-text {
    font-size: 15px;
    line-height: 150%;
    color: #535353;
}

.game-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.game-page__articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Разделы страницы игры */
.game-section {
    margin-top: 50px;
}

/* Покемоны игры — блок шайнидекса без его нижнего отступа */
.game-section.shinydex {
    padding-bottom: 0;
}

.game-section__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 20px;
}

.game-section__title {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 120%;
    text-transform: uppercase;
}

.game-section__more {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 600;
    color: #141414;
    border-bottom: 1px solid currentColor;
}

.game-section__more:hover {
    color: #7b78a8;
}

/* Методы */
.game-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.game-method {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
}

.game-method__type {
    font-size: 12px;
    font-weight: 700;
    color: #838383;
    text-transform: uppercase;
}

.game-method__name {
    margin-top: 4px;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
}

.game-method__text {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 150%;
    color: #535353;
}

.game-method__odds {
    display: flex;
    gap: 20px;
    align-self: stretch;
    margin-top: auto;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e2e2;
}

.game-method__odd {
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: lining-nums;
}

.game-method__odd span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #838383;
}

.game-method__odd--charm {
    color: #7b78a8;
}

/* Шайни-лок: картинка приглушена — шайни в этой игре не бывает */
.game-locks__text {
    max-width: 720px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 150%;
    color: #535353;
}

.game-locks {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.game-lock {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 12px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    background-color: #F8F8F8;
    color: #141414;
    transition: 0.3s;
}

.game-lock:hover {
    border-color: #e2e2e2;
    background-color: #fff;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.game-lock__icon {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #141414;
    color: #fff;
}

.game-lock__icon svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}

.game-lock__img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.55;
}

.game-lock__name {
    margin-top: 8px;
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
}

.game-lock__number {
    font-size: 12px;
    font-variant-numeric: lining-nums;
    color: #838383;
}

/* Амулет сияния */
.game-charm {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px 30px;
    border-radius: 12px;
    background-color: #141414;
    color: #fff;
}

.game-charm__img {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.game-charm__title {
    margin-bottom: 6px;
    font-size: 20px;
    font-weight: 700;
}

.game-charm__text {
    font-size: 14px;
    line-height: 150%;
    font-variant-numeric: lining-nums;
    color: #c9c9c9;
}

/* Карточки игр на странице поиска */
.search-page__games {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.search-page__grid + .search-page__games {
    margin-top: 30px;
}

.search-page__games + .search-page__rows {
    margin-top: 30px;
}

@media (max-width: 1200px) {
    .games__list,
    .search-page__games {
        grid-template-columns: repeat(3, 1fr);
    }

    .game-page__facts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .game-page__hero {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .game-page__hero .game-cover {
        aspect-ratio: 16 / 7;
    }

    .game-methods,
    .game-page__articles {
        grid-template-columns: 1fr 1fr;
    }

    .game-locks {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .games__title,
    .game-page__title {
        font-size: 30px;
    }

    .games__gen {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .games__list,
    .search-page__games {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .game-card {
        padding: 12px 14px;
    }

    .game-card__name {
        font-size: 15px;
    }

    .game-page__hero {
        padding: 15px;
    }

    .game-page__fact-value {
        font-size: 20px;
    }

    .game-page__actions .btn {
        width: 100%;
    }

    .game-section {
        margin-top: 35px;
    }

    .game-section__title {
        font-size: 22px;
    }

    .game-methods,
    .game-page__articles {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .game-locks {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .game-lock__img {
        width: 64px;
        height: 64px;
    }

    .game-lock__name {
        font-size: 12px;
    }

    .game-charm {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px;
    }

    .game-charm__img {
        width: 60px;
        height: 60px;
    }
}
