/**
 * Fleep lobby: category chips, game cards with title, play-page rail.
 */
body.fleep-ui .fleep-card-meta {
    display: none;
}

html[data-slot-catalog-layout="portrait"] body.fleep-ui #pageGames #gamesCatalogList.games-grid.games-grid--pinko,
body.fleep-ui #pageGames #gamesCatalogList.games-grid,
body.fleep-ui #pageGames #gamesCatalogList.games-grid--pinko,
body.fleep-ui #pageGames #gamesCatalogList.games-grid--slots {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)) !important;
    gap: 12px !important;
}

body.fleep-ui #pageGames #gamesCatalogList .game-card {
    position: relative;
    display: block;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

body.fleep-ui #pageGames #gamesCatalogList .game-card-inner--thumb {
    border-radius: 12px;
    overflow: hidden;
    background: #12151b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

body.fleep-ui #pageGames #gamesCatalogList .game-card-img,
body.fleep-ui #pageGames #gamesCatalogList .game-card--grid .game-card-img {
    aspect-ratio: 3 / 4 !important;
    border-radius: 12px;
    background: #12151b;
    border: none;
    overflow: hidden;
}

body.fleep-ui #pageGames #gamesCatalogList .game-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.fleep-ui #pageGames #gamesCatalogList .game-card-img.placeholder img {
    opacity: 0.35;
}

/* Название только поверх обложки при наведении, без второй подписи под карточкой. */
body.fleep-ui #pageGames #gamesCatalogList .fleep-card-meta {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    padding: 28px 10px 9px;
    background: linear-gradient(180deg, rgba(8, 10, 14, 0) 0%, rgba(8, 10, 14, 0.92) 62%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

body.fleep-ui #pageGames #gamesCatalogList .game-card:hover .fleep-card-meta,
body.fleep-ui #pageGames #gamesCatalogList .game-card:focus-within .fleep-card-meta {
    opacity: 1;
}

body.fleep-ui #pageGames #gamesCatalogList .fleep-card-name {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.fleep-ui #pageGames #gamesCatalogList .fleep-card-provider {
    display: none;
}

body.fleep-ui #pageGames #gamesCatalogList .game-card--has-hover:hover .game-card-inner--thumb {
    border-color: rgba(255, 255, 255, 0.16);
}

body.fleep-ui #pagePlay .fleep-play__more {
    position: relative;
    z-index: 12;
    flex: 0 0 auto;
    padding: 0 16px 14px;
}

body.fleep-ui #pagePlay .fleep-play__more[hidden] {
    display: none !important;
}

body.fleep-ui #pagePlay .fleep-play__more-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #c5ccd6;
}

body.fleep-ui #pagePlay .fleep-play__more-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    padding-bottom: 2px;
}

body.fleep-ui #pagePlay .fleep-play__more-row::-webkit-scrollbar {
    display: none;
}

body.fleep-ui #pagePlay .fleep-play__more-row .game-card {
    flex: 0 0 96px;
    width: 96px;
}

body.fleep-ui #pagePlay .fleep-play__more-row .game-card-img,
body.fleep-ui #pagePlay .fleep-play__more-row .game-card-inner--thumb {
    border-radius: 10px;
}

body.fleep-ui #pagePlay .fleep-play__title,
body.fleep-ui #pagePlay .play-page-frame-title {
    font-size: 16px;
    letter-spacing: -0.02em;
}

@media (max-width: 767px) {
    body.fleep-ui #pageGames #gamesCatalogList.games-grid,
    body.fleep-ui #pageGames #gamesCatalogList.games-grid--pinko,
    body.fleep-ui #pageGames #gamesCatalogList.games-grid--slots {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px 8px !important;
    }

    body.fleep-ui #pageGames #gamesCatalogList .fleep-card-meta {
        opacity: 1;
        padding: 22px 8px 7px;
    }

    body.fleep-ui #pageGames #gamesCatalogList .fleep-card-name {
        font-size: 11px;
    }

    body.fleep-ui #pagePlay .fleep-play__more {
        padding: 0 10px 10px;
    }
}

@media (max-height: 640px) {
    body.fleep-ui #pagePlay .fleep-play__more {
        display: none !important;
    }
}

/* Category row: full labels, not one clipped scroller beside Search. */
@media (min-width: 768px) {
    body.fleep-ui #pageGames .games-nav-block {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    body.fleep-ui #pageGames .games-nav-row--categories {
        order: 1;
        flex: none !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    body.fleep-ui #pageGames .games-nav-row--actions {
        order: 2;
        width: 100% !important;
        justify-content: flex-start !important;
    }

    body.fleep-ui #pageGames .catalog-tabs-scroll {
        overflow: visible !important;
    }

    body.fleep-ui #pageGames .catalog-tabs,
    body.fleep-ui #pageGames .catalog-tabs-scroll .catalog-tabs {
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 8px !important;
    }

    body.fleep-ui #pageGames .catalog-tabs .catalog-tab,
    body.fleep-ui #pageGames .catalog-tabs-scroll .catalog-tab,
    body.fleep-ui #pageGames #catalogTabs .catalog-tab {
        overflow: visible !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 14px !important;
    }

    body.fleep-ui #pageGames .catalog-tab-label {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
    }
}
