.footer__games-wrap {
    position: relative;
}

.footer__games-toggle {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

/* Компактные иконки и шрифты карточек игр */
.footer__games-wrap .footer__row--games {
    display: block;
    columns: 230px 4;
    column-gap: 24px;
}

.footer__games-wrap .footer__row--games .footer-block {
    gap: 10px;
    margin-bottom: 18px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.footer__games-wrap .footer__row--games .footer__games {
    gap: 6px;
    align-items: center;
    padding-right: 4px;
}

.footer__games-wrap .footer__row--games .games-menu__link-icon {
    width: 20px;
    height: 20px;
}

.footer__games-wrap .footer__row--games .title--large {
    font-size: 14px;
    line-height: 1.5;
}

.footer__games-wrap .footer__row--games .footer__list {
    gap: 6px;
}

.footer__games-wrap .footer__row--games .text--small {
    font-size: 12px;
    line-height: 1.45;
    font-weight: 500;
}

/* Свёрнуто сразу при первой отрисовке (без JS, без вспышки) */
.footer__games-grid {
    overflow: hidden;
    max-height: 400px;
    transition: max-height 0.35s ease;
}

.footer__games-toggle:checked ~ .footer__games-grid {
    max-height: 3000px;
}

/* Тень над нижней частью свёрнутого блока — в фон футера (#181818) */
.footer__games-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 200px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(24, 24, 24, 0) 0%,
        rgba(24, 24, 24, 0.7) 55%,
        var(--background-dark-grey, #181818) 100%
    );
}

.footer__games-toggle:checked ~ .footer__games-fade {
    display: none;
}

/* Кнопка-лейбл: по центру поверх тени (свёрнуто) / снизу (раскрыто) */
.footer__games-more-row {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    display: flex;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.footer__games-toggle:checked ~ .footer__games-more-row {
    position: static;
    bottom: auto;
    margin-top: 20px;
}

.footer__games-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(28, 28, 28, 0.95);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.footer__games-more:hover {
    background: rgba(40, 40, 40, 0.98);
    border-color: rgba(255, 255, 255, 0.24);
}

.footer__games-more-text::before {
    content: attr(data-more);
}

.footer__games-toggle:checked ~ .footer__games-more-row .footer__games-more-text::before {
    content: attr(data-less);
}

.footer__games-more-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.footer__games-toggle:checked ~ .footer__games-more-row .footer__games-more-icon {
    transform: rotate(180deg);
}
