/* The source uses desktop widths for the toolbar, jackpot and navigation. */
@media (max-width: 991px) {
    .site-header .top-menu {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .site-header .top-menu::-webkit-scrollbar {
        display: none;
    }

    .site-header .top-menu > li {
        flex: 0 0 80px;
    }

    .site-header .top-menu > li > a {
        padding: 10px 4px;
        line-height: 1.35;
    }

    /* The inline small-screen style displays every provider tab at once. */
    .popular-games .tab-content > .tab-pane:not(.active) {
        display: none;
    }

    .popular-games .tab-content:not(:has(> .active)) > .tab-pane:first-child {
        display: flex;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .home-progressive-jackpot .border-container {
        gap: 12px;
    }

    .home-progressive-jackpot .jackpot-container {
        font-size: 30px;
        letter-spacing: 2px;
    }
}

@media (max-width: 767px) {
    .topbar-container .row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 18px;
        padding: 0 8px;
    }

    .topbar-left-container,
    .topbar-right-container {
        width: auto;
        max-width: 100%;
    }

    .topbar-left-section {
        justify-content: center;
    }

    .site-header .logo {
        padding-top: 0;
        height: 78px;
    }

    .site-header .logo > img {
        max-width: calc(100% - 20px);
        height: 66px;
        margin: 6px auto;
        object-fit: contain;
    }

    .footer-copyright-section .col-md-12 {
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .footer-copyright-section .col-md-12 .copyright {
        flex-basis: 100%;
        margin-left: 0;
        overflow-wrap: anywhere;
    }

    .announcement-container {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 4px 8px;
        padding: 8px 12px;
    }

    .announcement-container > [data-section="date"] {
        grid-row: 1;
        grid-column: 2;
        justify-content: flex-end;
        text-align: right;
    }

    .announcement-container > [data-section="announcements"] {
        grid-column: 1 / -1;
        min-width: 0;
        width: 100%;
        white-space: nowrap;
    }

    .home-inner-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        margin-bottom: 20px;
    }

    .home-progressive-jackpot .outer-container,
    .home-progressive-jackpot .inner-container,
    .home-progressive-jackpot .border-container,
    .home-progressive-jackpot .jackpot-container,
    .home-progressive-jackpot .jackpot-inner-container {
        min-width: 0;
        padding: 4px;
    }

    .home-progressive-jackpot .border-container {
        gap: 6px;
    }

    .home-progressive-jackpot .jackpot-play-section {
        margin-left: 4px;
        align-items: center;
    }

    .home-progressive-jackpot .jackpot-play-section img {
        width: 48px;
    }

    .home-progressive-jackpot .jackpot-play-section .jackpot-play-text {
        font-size: 14px;
    }

    .home-progressive-jackpot .jackpot-container {
        font-size: clamp(15px, 4vw, 26px);
        letter-spacing: 1px;
    }

    .home-progressive-jackpot .jackpot-border-container {
        min-width: 0;
        align-items: center;
        flex-wrap: wrap;
        line-height: 1.3;
        padding: 4px 2px;
        text-align: center;
    }
}

/* Keep the source popup's close button and calls to action within reach on short screens. */
#Fafa828PromoPopup .Fafa828-popup-card {
    max-height: calc(100% - 2px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

#Fafa828PromoPopup .Fafa828-popup-img {
    height: auto;
}

/* Styles for the source header's local game search. */
body.fafa828-search-open {
    overflow: hidden;
}

#fafa828-local-search {
    z-index: 100000;
}

#fafa828-local-search .search-container {
    width: min(800px, calc(100vw - 28px));
    height: 80vh;
    max-height: calc(100% - 40px);
    margin-top: 20px;
    color: #f9eaff;
    background: #210a42;
}

#fafa828-local-search .search-title {
    padding: 16px 52px 16px 20px;
    color: #f9eaff;
    background: #461274;
}

#fafa828-local-search .close-button {
    border: 0;
    background: transparent;
    color: #f9eaff;
    font-size: 30px;
    line-height: 1;
    padding: 3px 8px;
}

#fafa828-local-search input {
    color: #f9eaff;
    background: #1c0938;
}

#fafa828-local-search .search-result-section {
    padding-bottom: 20px;
}

#fafa828-local-search .search-result-section-title {
    background: #451074;
}

#fafa828-local-search .game-item {
    padding: 12px;
    border: 1px solid #9241b7;
    border-radius: 6px;
    min-width: 0;
    text-decoration: none;
    background: #320c54;
}

#fafa828-local-search .game-item:hover,
#fafa828-local-search .game-item:focus-visible {
    background: #6318a6;
    outline: 2px solid #eec5ff;
    outline-offset: 1px;
}

#fafa828-local-search .game-name {
    color: #f9eaff;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    #fafa828-local-search .game-item {
        flex-basis: calc((100% - 8px) / 2);
    }
}
