/* ===== Grid de jogos estilo Bullsbet (4 por fileira) ===== */
.bb-games-section {
    width: 100%;
    margin: 14px 0 18px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    user-select: none;
}

.bb-games-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
}

.bb-games-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 0%;
}

.bb-games-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #111111;
    background: #FF6A00;
    flex-shrink: 0;
}

.bb-games-icon--fire {
    background: transparent;
    color: #FF6A00;
    font-size: 18px;
}

.bb-games-icon--teal,
.bb-games-icon--cyan {
    background: #FF6A00;
    color: #111111;
}

.bb-games-icon--purple {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
}

.bb-games-icon--orange {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #fff;
}

.bb-games-icon--gold {
    background: linear-gradient(135deg, #d97706, #fbbf24);
    color: #3b2200;
}

.bb-games-icon--live {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
}

.bb-games-title {
    margin: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.3em;
    min-width: 0;
    font-size: 16px;
    line-height: 1.2;
    font-family: Montserrat, system-ui, sans-serif;
}

.bb-games-title-accent {
    color: #FF6A00;
    font-weight: 700;
}

.bb-games-title-rest {
    color: #fff;
    font-weight: 500;
}

.bb-games-more {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
    padding: 4px 16px;
    border-radius: 16px;
    border: 1px solid #FF6A00;
    background: rgba(224, 224, 224, 0.1);
    text-decoration: none;
    white-space: nowrap;
}

.bb-games-more span {
    color: #f4f4f4;
    font-family: Montserrat, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 120%;
    text-transform: capitalize;
}

.bb-games-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.bb-games-cell {
    min-width: 0;
    width: 100%;
}

/* Cards no grid — proporção Bullsbet (padding-top 120%) */
.bb-games-grid .game-card-link {
    display: block;
    width: 100%;
}

.bb-games-grid .game-card-inner {
    aspect-ratio: auto !important;
    width: 100% !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    background: rgba(253, 255, 255, 0.05) !important;
    overflow: hidden !important;
}

.bb-games-grid .game-card-inner:hover {
    transform: none !important;
}

.bb-games-grid .game-card-body {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    padding-top: 120% !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: rgba(253, 255, 255, 0.05) !important;
}

.bb-games-grid .game-card-media {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.bb-games-grid .game-card-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

.bb-games-grid .game-card-glow,
.bb-games-grid .game-card-neon-ring,
.bb-games-grid .game-card-top-badge {
    display: none !important;
}

.bb-games-grid .game-card-overlay {
    border-radius: 6px !important;
}

.bb-games-grid .game-card-play {
    background: #FF8C1A !important;
    color: #212425 !important;
    font-size: 0.7rem !important;
    padding: 0.375rem 0.625rem !important;
    border-radius: 0.375rem !important;
}

/* Providers stack spacing */
.providers-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.providers-stack .bb-games-section {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Legacy carousel chrome — esconder se ainda existir */
.most-played-section.recommended-section,
.mj-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
}

.mj-track {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
}

.mj-card {
    flex: none !important;
    max-width: none !important;
    width: 100% !important;
    border-radius: 6px !important;
}

.mj-card img {
    aspect-ratio: auto !important;
    padding-top: 0 !important;
    width: 100%;
    height: auto;
    display: block;
}

.mj-seeall {
    display: inline-flex !important;
    align-items: center;
    padding: 4px 16px !important;
    border-radius: 16px !important;
    border: 1px solid #FF6A00 !important;
    background: rgba(224, 224, 224, 0.1) !important;
    color: #f4f4f4 !important;
    font-size: 10px !important;
}

.mj-arrow {
    display: none !important;
}

.bottom-nav-root .back-to-top {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%) !important;
    z-index: 60 !important;
}

body.withdraw-modal-open .bottom-nav-root .back-to-top,
body.deposit-modal-open .bottom-nav-root .back-to-top,
body.profile-fs-open .bottom-nav-root .back-to-top {
    display: none !important;
}

@media (min-width: 700px) {
    .bb-games-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (min-width: 1024px) {
    .bb-games-section {
        max-width: 1110px;
        margin-left: auto;
        margin-right: auto;
    }

    .bb-games-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .mj-track {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
