/* ── Shared lobby v2: top nav + 2-col banner cards ── */
.lobby-v2 .news,
.lobby-v2 + .news,
.wrapper.lobby-v2 > .news,
.lobby-v2 .news.ml-2 {
    margin: 0 !important;
    padding: 6px 12px 4px;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
}

/* Home-style top block on lobby (banner + winning + promo CTAs) */
.lobby-v2 .lobby-home-top {
    background: #eaf2fc;
    padding-bottom: 2px;
}

.lobby-v2 .lobby-home-top .home-banner-wrap {
    width: calc(100% - 24px);
    margin: 10px auto 8px;
}

.lobby-v2 .lobby-home-top .home-banner-img {
    border-radius: 12px;
    overflow: hidden;
}

.lobby-v2 .lobby-home-top .kz-home__top-section {
    margin-top: 4px;
    margin-bottom: 0;
}

.lobby-v2 .lobby-home-top .kz-home__promos {
    padding-top: 8px;
    padding-bottom: 4px;
}

.lobby-top-cats.kz-home__cats,
.slot-top-cats.kz-home__cats {
    display: block;
    gap: 0;
    padding: 8px 12px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
}

.lobby-top-cats.kz-home__cats::-webkit-scrollbar,
.slot-top-cats.kz-home__cats::-webkit-scrollbar {
    display: none;
}

.lobby-top-cats .kz-home__cats-row,
.slot-top-cats .kz-home__cats-row {
    display: flex;
    gap: 10px;
    min-width: max-content;
}

.lobby-top-cats .kz-home__cat,
.slot-top-cats .kz-home__cat,
.lobby-top-cat.kz-home__cat,
.slot-top-cat.kz-home__cat {
    flex-shrink: 0;
    width: 60px;
    min-width: 60px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    color: #1f2937 !important;
    font-size: 10px;
    font-weight: 700;
    box-shadow: none !important;
    text-decoration: none;
}

.lobby-top-cats .kz-home__cat-icon,
.slot-top-cats .kz-home__cat-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden;
}

.lobby-top-cats .kz-home__cat-icon img,
.slot-top-cats .kz-home__cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.lobby-top-cats .kz-home__cat.is-active .kz-home__cat-icon,
.lobby-top-cats .kz-home__cat.active .kz-home__cat-icon,
.slot-top-cats .kz-home__cat.is-active .kz-home__cat-icon,
.slot-top-cats .kz-home__cat.active .kz-home__cat-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.28) !important;
    transform: translateY(-1px) scale(1.04);
}

.lobby-top-cats .kz-home__cat-label,
.slot-top-cats .kz-home__cat-label {
    color: #1f2937 !important;
}

/* legacy fallback if old markup remains */
.lobby-top-cats:not(.kz-home__cats),
.slot-top-cats:not(.kz-home__cats) {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    overflow-x: auto;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
}

.lobby-v2 .wrapper {
    padding-top: 52px;
}

.lobby-v2 .game-lobby-content.flex {
    min-height: calc(100vh - 160px);
}

.lobby-v2 .board-provider-card,
.lobby-v2 .game-item {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* 2-column provider banner grid (Live / Sport / Cockfighting) */
.lobby-v2 .wrapper {
    padding-top: 52px !important;
}

.lobby-v2 .wrapper > .list,
.lobby-v2 .swiper.list {
    display: none !important;
}

.lobby-banner-wrap {
    padding: 10px 10px 80px;
    background: #eaf2fc;
    min-height: calc(100vh - 160px);
}

.lobby-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lobby-banner-grid > li {
    display: block;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.lobby-banner-card {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 96px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e8eef5;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.lobby-banner-card:active {
    transform: scale(0.985);
}

.lobby-banner-card__badges {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 3;
    display: flex;
    gap: 4px;
}

.lobby-banner-card__badge {
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.lobby-banner-card__badge--hot {
    background: #f97316;
}

.lobby-banner-card__badge--new {
    background: #ef4444;
}

.lobby-banner-card__left {
    flex: 0 0 46%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 12px 10px;
    z-index: 2;
}

.lobby-banner-card__logo {

    object-fit: contain;
    object-position: left center;
    margin-bottom: 6px;
}

.lobby-banner-card__name {
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
}

.lobby-banner-card__desc {
    margin-top: 2px;
    font-size: 9px;
    color: #64748b;
    line-height: 1.2;
}

.lobby-banner-card__hero {
    flex: 1;
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.lobby-banner-card__hero img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.lobby-banner-card__hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.2) 35%, transparent 100%);
    pointer-events: none;
}

.lobby-banner-card--sport .lobby-banner-card__hero-shade {
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.15) 40%, transparent 100%);
}

.lobby-banner-card--live .lobby-banner-card__hero-shade {
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.1) 45%, transparent 100%);
}

.lobby-banner-card--lottery .lobby-banner-card__hero-shade {
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.12) 40%, transparent 100%);
}

.lobby-banner-loading,
.lobby-banner-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 16px;
    color: #94a3b8;
    font-size: 13px;
}

.lobby-banner-loading i {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--slot-accent-visible, #2195f3);
}

/* Fish reuses slot-lobby-v2 body classes */
.fish-lobby-v2 {
    --slot-accent: transparent;
    --slot-accent-visible: #2195f3;
    --slot-bg: #eaf2fc;
    --slot-surface: #ffffff;
    --slot-text: #1e293b;
    --slot-muted: #94a3b8;
    background: var(--slot-bg);
    min-height: calc(100vh - 112px);
}

.fish-lobby-v2 .fish-grid-footer {
    padding: 8px 12px 4px;
    font-size: 11px;
    color: #64748b;
    text-align: center;
}

.fish-lobby-v2 .fish-grid-footer__bar {
    height: 3px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-bottom: 6px;
    overflow: hidden;
}

.fish-lobby-v2 .fish-grid-footer__bar span {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--slot-accent-visible, #2195f3);
    border-radius: 3px;
}
