/* Compatibility fixes for the offline copy. */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body > .row {
    width: 1170px;
    max-width: calc(100% - 30px);
    margin-right: auto;
    margin-left: auto;
}

.banner,
.banner-carousel,
.banner-carousel > div,
.banner-carousel a {
    width: 100%;
}

.banner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 5;
    min-height: 0;
    overflow: hidden;
    background: #120000;
}

.banner-carousel,
.banner-carousel > div,
.banner-carousel a,
.banner-carousel picture {
    display: block;
    height: 100%;
}

.banner-carousel img {
    display: block;
    width: 100%;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center;
}

.home-progressive-jackpot,
.popular-games,
.games-group,
.site-info,
.provider-section,
.download-apk-container {
    min-width: 0;
}

.home-inner-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 197px;
    align-items: center;
    gap: 20px;
}

.home-inner-container > [data-section="jackpot"],
.home-inner-container > [data-section="lottery"] {
    width: 100% !important;
    min-width: 0;
}

.home-progressive-jackpot .jackpot-border-container {
    display: flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.home-progressive-jackpot .jackpot-currency {
    display: inline-block !important;
    margin-right: 12px !important;
    color: #f10d0d !important;
    font-size: 25px !important;
    line-height: 1 !important;
}

.home-progressive-jackpot #progressive_jackpot {
    display: inline-block;
    min-width: 330px;
    color: #f10d0d !important;
    font-family: 'Open24DisplaySt', monospace !important;
    font-size: 46px !important;
    line-height: 1 !important;
    letter-spacing: 3px;
    text-align: center;
}

.lottery-result-container .lottery-numbers {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.lottery-result-container .lottery-numbers > span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 24px !important;
    height: 36px !important;
    background: #f3f3f3 !important;
    border: 1px solid #d1d1d1;
    border-radius: 3px;
}

.lottery-result-container .lottery-numbers > span::before {
    content: attr(data-lottery-number);
    color: #a30000;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.game-list,
.popular-game-list,
.hover-list {
    padding-left: 0;
}

.game-item,
.game-wrapper,
.provider-container,
.site-info-container {
    min-width: 0;
}

/* Keep the popular-slots area aligned like the desktop reference. */
.popular-games {
    display: grid !important;
    grid-template-columns: 232px 455px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    min-height: 360px;
    background: #fff !important;
}

.popular-games > [data-section="left"] {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start !important;
    gap: 10px;
    width: 232px !important;
}

.popular-games > [data-section="left"] .section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 55px !important;
    padding: 0 12px !important;
    box-sizing: border-box;
}

.popular-games > [data-section="left"] .section-title,
.popular-games > [data-section="left"] .jackpot-winners,
.popular-games > [data-section="left"] > a {
    width: 232px !important;
    margin: 0 !important;
}

.popular-games > [data-section="left"] .jackpot-winners {
    position: static !important;
    height: 178px !important;
    overflow: hidden !important;
    box-sizing: border-box;
}

.popular-games > [data-section="left"] > a {
    display: block;
    height: 87px;
    overflow: hidden;
}

.popular-games > [data-section="left"] > a img {
    display: block;
    width: 232px !important;
    height: 87px !important;
    object-fit: cover;
}

.popular-games > [data-section="right"] {
    grid-column: 2 / 4;
    width: 100% !important;
    min-width: 0;
    background: #fff !important;
}

.popular-games .target-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    width: 455px !important;
    height: 55px !important;
    margin: 0 0 6px !important;
    padding: 0 20px !important;
    box-sizing: border-box;
    background: #e5e5e5 !important;
    overflow: hidden !important;
}

.popular-games .target-tabs > li {
    display: none !important;
    width: auto !important;
    margin: 0 !important;
}

.popular-games .target-tabs > li:nth-child(-n+3) {
    display: block !important;
    position: static !important;
    float: none !important;
    transform: none !important;
}

.popular-games .target-tabs > li > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 55px !important;
    padding: 4px !important;
}

.popular-games .target-tabs img {
    display: block;
    max-width: 120px;
    max-height: 45px;
}

.popular-games .tab-content {
    position: relative;
    width: 100% !important;
    min-height: 344px;
    overflow: visible;
    background: #fff !important;
}

.popular-games .tab-content > .tab-pane {
    display: none !important;
}

.popular-games .tab-content > .tab-pane.active,
.popular-games .tab-content > .tab-pane:first-child {
    position: relative;
    display: block !important;
    width: 100%;
    min-height: 344px;
    background: #fff !important;
}

.popular-games .tab-pane .popular-game-list {
    position: relative;
    z-index: 2;
    display: grid !important;
    grid-template-columns: repeat(3, 132px);
    grid-template-rows: repeat(2, 132px);
    gap: 10px;
    width: 455px !important;
    height: 292px;
    padding: 8px 11px;
    border: 1px solid #243763;
    background: #e5e5e5;
    box-sizing: border-box;
    overflow: hidden;
}

.popular-games .tab-pane .popular-game-list > .game-item {
    display: block;
    width: 132px !important;
    height: 132px !important;
    margin: 0 !important;
    overflow: hidden;
}

.popular-games .tab-pane .popular-game-list > .game-item:nth-child(n+7) {
    display: none !important;
}

.popular-games .tab-pane .popular-game-list .game-wrapper,
.popular-games .tab-pane .popular-game-list picture,
.popular-games .tab-pane .popular-game-list img {
    display: block;
    width: 132px !important;
    height: 132px !important;
    margin: 0 !important;
}

.popular-games .tab-pane .popular-game-list img {
    object-fit: cover;
}

.popular-games .tab-pane > picture > .animated-image {
    position: absolute !important;
    z-index: 1;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    display: block !important;
    width: 421px !important;
    height: 334px !important;
    max-width: 421px !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    transform: none !important;
    opacity: 1 !important;
}

.popular-games .tab-pane .game-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 455px !important;
}

.popular-games .tab-pane .game-item,
.popular-games .tab-pane .game-wrapper {
    width: 100% !important;
    margin: 0 !important;
}

.site-footer > .container > .row:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 0;
    margin: 0;
}

.site-footer .copyright {
    white-space: normal;
    text-align: right;
}

.site-footer .provider-section,
.site-footer .provider-section .container,
.site-footer .provider-section .row,
.site-footer .provider-section .col-md-12 {
    max-width: 100%;
}

.site-footer .provider-container {
    vertical-align: top;
}

.site-footer .hover-list {
    align-content: flex-start;
    max-width: 100%;
}

.site-footer .hover-list img {
    max-width: 100%;
    height: auto;
}

/* Footer information layout. */
.site-footer > .container {
    padding-top: 22px;
    padding-bottom: 22px;
}

.site-footer > .container > .row {
    display: flex;
    flex-wrap: wrap;
    width: auto;
}

.site-footer .footer-separator {
    width: 100%;
    margin: 18px 0;
    border: 0;
    border-top: 1px dotted #777;
}

.site-footer .site-description {
    width: 100%;
    padding: 4px 0;
}

.site-footer .site-description h1 {
    margin: 0;
    color: #f10d0d !important;
    font-size: 31px;
    font-weight: 400;
    line-height: 1.25;
}

.site-footer .site-info-container {
    width: 33.333333% !important;
    padding: 0 27px !important;
    margin: 0 !important;
}

.site-footer .site-info-container:first-child {
    padding-left: 0 !important;
}

.site-footer .site-info-container:last-child {
    padding-right: 0 !important;
}

.site-footer .site-info {
    width: 100%;
}

.site-footer .site-info-title {
    display: flex;
    align-items: flex-start;
    min-height: 58px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px dotted #777;
}

.site-footer .site-info-title h3 {
    margin: 0;
    color: #6d6d6d;
    font-size: 20px;
    line-height: 1.15;
    text-transform: uppercase;
}

.site-footer .site-info-title h3 + div,
.site-footer .site-info-title > div > div {
    margin-top: 2px;
    color: #555;
    font-size: 11px;
}

.site-footer .site-info-description {
    width: 100%;
    min-height: 0;
    color: #555;
    line-height: 1.7;
}

.site-footer .site-info-description.with-seperator {
    padding-right: 26px;
    border-right: 1px solid #333;
}

.site-footer .support-container {
    width: 100%;
}

.site-footer .site-info-container:first-child .site-info-description {
    position: relative;
    min-height: 78px;
    margin-bottom: 2px;
}

.site-footer .site-info-container:first-child .site-info-description h4 {
    margin: 0 0 2px;
    color: #6d6d6d;
    font-size: 16px;
    line-height: 1.2;
}

.site-footer .site-info-container:first-child .site-info-description p {
    margin: 0;
    color: #555;
    font-size: 11px;
}

.site-footer #deposit_progress,
.site-footer #withdrawal_progress {
    position: absolute;
    right: 0;
    bottom: 10px;
    left: 0;
    width: 100% !important;
    height: 10px;
    border-radius: 6px;
}

.site-footer #deposit_progress {
    background: linear-gradient(to right, #777 0 15%, #252525 15% 100%);
}

.site-footer #withdrawal_progress {
    background: linear-gradient(to right, #777 0 30%, #252525 30% 100%);
}

.site-footer #deposit_progress::before,
.site-footer #withdrawal_progress::before {
    position: absolute;
    right: 26px;
    bottom: 15px;
    color: #777;
    font-size: 43px;
    font-weight: 700;
    line-height: 1;
}

.site-footer #deposit_progress::before {
    content: "3";
}

.site-footer #withdrawal_progress::before {
    content: "5";
}

.site-footer #deposit_progress::after,
.site-footer #withdrawal_progress::after {
    content: "Min";
    position: absolute;
    right: 0;
    bottom: 16px;
    color: #666;
    font-size: 14px;
    line-height: 1;
}

.download-apk-container .download-apk > div {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.download-apk-container .download-apk {
    overflow: hidden;
}

.download-apk-container .download-apk > div:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-apk-container .download-apk > div:first-child picture {
    display: none;
}

.download-apk-container .download-apk > div:first-child::before {
    content: "";
    display: block;
    width: 245px;
    height: 340px;
    border: 6px solid #350505;
    border-radius: 28px;
    background: #160303 url("https://res.cloudinary.com/dr9tteswc/image/upload/v1784711740/ampblog_tyddaj.png") center/cover no-repeat;
    box-shadow: 0 18px 36px rgba(45, 0, 0, .38), inset 0 0 0 2px rgba(255, 201, 86, .55);
}

@media (max-width: 767px) {
    body > .row {
        max-width: calc(100% - 20px);
    }

    .banner {
        aspect-ratio: 16 / 5;
    }

    .home-inner-container {
        display: block !important;
    }

    .home-inner-container > [data-section="lottery"] {
        margin-top: 12px;
    }

    .home-progressive-jackpot #progressive_jackpot {
        min-width: 0;
        font-size: 30px !important;
        letter-spacing: 1px;
    }

    .site-footer > .container > .row:first-child {
        display: block;
    }

    .site-footer .footer-links {
        justify-content: center;
        margin-bottom: 12px;
    }

    .site-footer .copyright {
        text-align: center;
    }

    .site-footer > .container > .row {
        display: block;
    }

    .site-footer .site-description h1 {
        font-size: 23px;
        text-align: center;
    }

    .site-footer .site-info-container {
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 24px !important;
    }

    .site-footer .site-info-description.with-seperator {
        padding-right: 0;
        border-right: 0;
    }

    .popular-games {
        display: block !important;
        min-height: 0;
        background-image: none !important;
    }

    .popular-games > [data-section="left"],
    .popular-games > [data-section="right"],
    .popular-games > [data-section="left"] .section-title,
    .popular-games > [data-section="left"] .jackpot-winners,
    .popular-games > [data-section="left"] > a,
    .popular-games .target-tabs,
    .popular-games .tab-content,
    .popular-games .tab-pane .game-list {
        width: 100% !important;
    }

    .popular-games > [data-section="right"] {
        margin-top: 12px;
    }

    .download-apk-container .download-apk > div:first-child {
        display: none;
    }

    .download-apk-container .download-apk > div:last-child {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .container {
        width: calc(100% - 30px);
    }

    .top-menu {
        overflow-x: auto;
        overflow-y: hidden;
    }

    .popular-games {
        grid-template-columns: 232px minmax(0, 1fr);
        background-image: none !important;
    }

    .popular-games > [data-section="right"],
    .popular-games .target-tabs,
    .popular-games .tab-content,
    .popular-games .tab-pane .game-list {
        width: 100% !important;
    }
}
