/* Fleep Home — Game categories a, section order, catalog tabs */

body.fleep-ui #guestView.fleep-home-ordered .home-catalog-tabs-scroll,
body.fleep-ui #lobbyView.fleep-home-ordered .home-catalog-tabs-scroll,
body.fleep-ui #guestView.fleep-home-ordered .catalog-tabs-scroll {
    display: none !important;
}
body.fleep-ui #guestView.fleep-home-ordered,
body.fleep-ui #lobbyView.fleep-home-ordered {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: var(--fleep-content-max);
    margin: 0 auto;
}

body.fleep-ui .fleep-home-ordered > * {
    margin-bottom: 0 !important;
}

/* Hide non-Figma home blocks */
body.fleep-ui .fleep-home-ordered .home-strip-for-you,
body.fleep-ui .fleep-home-ordered .home-strip-recently-played,
body.fleep-ui .fleep-home-ordered .home-hot-slots-block,
body.fleep-ui .fleep-home-ordered #homeStripBonusBuyGuest,
body.fleep-ui .fleep-home-ordered #homeStripBonusBuyLobby,
body.fleep-ui .fleep-home-ordered .home-faq-block,
body.fleep-ui .fleep-home-ordered #homeNewsWidgetGuest,
body.fleep-ui .fleep-home-ordered #homeNewsWidgetLobby,
body.fleep-ui .fleep-home-ordered .home-daily-streak,
body.fleep-ui .fleep-home-ordered .home-promo-zone--large {
    display: none !important;
}

/* Game categories a */
.fleep-game-categories {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.fleep-game-categories__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.fleep-game-categories__title {
    margin: 0;
    font-family: var(--fleep-font);
    font-size: 32px;
    font-weight: 700;
    line-height: 44px;
    color: #AEB4BA;
}

.fleep-game-categories__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.fleep-game-categories__providers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border: none;
    border-radius: 8px;
    background: #262628;
    color: #fff;
    font-family: var(--fleep-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
}

.fleep-game-categories__providers-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 22px;
    padding: 0 8px;
    border-radius: 11px;
    background: #383C41;
    font-size: 11px;
    font-weight: 600;
    color: #AEB4BA;
}

.fleep-game-categories__scroll-btns {
    display: inline-flex;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #262628;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
}

.fleep-game-categories__scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: #262628;
    color: #AEB4BA;
    cursor: pointer;
}

.fleep-game-categories__scroll-btn + .fleep-game-categories__scroll-btn {
    border-left: 1px solid #383C41;
}

.fleep-game-categories__scroll-btn:hover {
    color: #fff;
}

.fleep-game-categories__track-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.fleep-game-categories__track-wrap::-webkit-scrollbar {
    display: none;
}

.fleep-game-categories__track {
    display: flex;
    gap: 20px;
    padding-bottom: 4px;
}

.fleep-cat-card {
    flex: 0 0 138px;
    width: 138px;
    height: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 12px;
    border: none;
    border-radius: 8px;
    background: #1D1E20;
    color: #AEB4BA;
    font-family: var(--fleep-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.15s;
}

.fleep-cat-card:hover,
.fleep-cat-card.is-active {
    background: #383D43;
    color: #fff;
}

.fleep-game-categories__providers .fleep-cat-card__icon-img {
    width: 24px;
    height: 24px;
}

.fleep-cat-card__icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.fleep-cat-card__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
}

/* Main game grid (Game group d) */
.fleep-game-categories__scroll-btn .fleep-icon-img {
    width: 24px;
    height: 24px;
    opacity: 0.85;
}

body.fleep-ui .fleep-home-grid {
    display: block !important;
}

body.fleep-ui .fleep-home-grid.hidden {
    display: block !important;
}

body.fleep-ui .home-slots-section.fleep-home-grid .games-nav-block,
body.fleep-ui .home-slots-section.fleep-home-grid .home-slots-section-head .games-toolbar-actions-wrap {
    display: none !important;
}

body.fleep-ui .fleep-home-grid .home-games-block-head {
    margin-bottom: 16px;
}

body.fleep-ui .fleep-home-grid .section-title {
    font-size: 24px !important;
    line-height: 32px !important;
    color: #fff !important;
}

body.fleep-ui .home-slots-section.fleep-home-grid .home-catalog-tabs-scroll,
body.fleep-ui .home-slots-section.fleep-home-grid .games-toolbar-actions-wrap {
    display: none !important;
}

body.fleep-ui .home-slots-section.fleep-home-grid .home-slots-grid.games-grid--pinko {
    display: grid !important;
    grid-auto-rows: auto !important;
    gap: 10px !important;
}

@media (min-width: 768px) {
    body.fleep-ui .home-slots-section.fleep-home-grid .home-slots-grid.games-grid--pinko {
        grid-template-columns: repeat(var(--icons-per-row, 12), minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    body.fleep-ui .home-slots-section.fleep-home-grid .home-slots-grid.games-grid--pinko,
    body.fleep-ui .fleep-mosaic.home-slots-grid.games-grid--pinko {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
}

body.fleep-ui .home-slots-section.fleep-home-grid .home-games-hint {
    display: none !important;
}

/* Horizontal strips (Game group b) */
body.fleep-ui .fleep-home-ordered .home-slots-catalog-strip {
    width: 100%;
}

body.fleep-ui .fleep-home-ordered .home-slots-catalog-strip .section-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #fff !important;
}

body.fleep-ui .fleep-home-ordered .home-games-strip-wrap {
    margin-top: 12px;
}

/* Catalog tabs on home — high contrast pills (when visible) */
body.fleep-ui .home-catalog-tabs .catalog-tab {
    background: #1D1E20 !important;
    border: 1px solid #383C41 !important;
    color: #AEB4BA !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
}

body.fleep-ui .home-catalog-tabs .catalog-tab:hover {
    background: #262628 !important;
    color: #fff !important;
}

body.fleep-ui .home-catalog-tabs .catalog-tab.active {
    background: #383D43 !important;
    border-color: #383D43 !important;
    color: #fff !important;
}

/* Toolbar search/providers */
body.fleep-ui .games-search-btn,
body.fleep-ui .games-provider-btn {
    background: #262628 !important;
    border: none !important;
    color: #fff !important;
    min-height: 40px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15) !important;
    font-weight: 600 !important;
}

@media (max-width: 767px) {
    .fleep-game-categories__title {
        font-size: 24px;
        line-height: 32px;
    }

    .fleep-cat-card {
        flex: 0 0 120px;
        width: 120px;
        height: 96px;
    }
}

@media (max-width: 359px) {
    .fleep-cat-card {
        flex: 0 0 100px;
        width: 100px;
        height: 88px;
        font-size: 11px;
    }
}
