html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

body {
    padding-bottom: calc(3.8rem + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
}

.container {
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.content-home {
    overflow-wrap: break-word;
    word-wrap: break-word;
    padding-bottom: 1rem;
}

.content-home img {
    max-width: 100%;
    height: auto;
}

.running-text marquee {
    font-size: clamp(0.65rem, 2.5vw, 1rem);
}

.nav-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.item-nav-bottom {
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn-credit {
    min-height: 44px;
}

#btn-colorscheme {
    min-width: 44px;
    min-height: 44px;
}

@media screen and (max-width: 991px) {
    #rtp-content > .col-lg-4.col-6,
    #rtp-content > .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    #rtp-content .rtp-card > .row.g-1,
    #rtp-content .rtp-card > div[class*="row"] {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    #rtp-content .rtp-card .row.g-1 > .col-lg-6:first-child,
    #rtp-content .rtp-card .row.g-1 > [class*="col-"]:first-child {
        flex: 0 0 38%;
        max-width: 38%;
        width: 38%;
    }

    #rtp-content .rtp-card .row.g-1 > .col-lg-6:last-child,
    #rtp-content .rtp-card .row.g-1 > [class*="col-"]:last-child {
        flex: 0 0 62%;
        max-width: 62%;
        width: 62%;
    }

    #rtp-content .rtp-card {
        padding: 0.45rem !important;
    }

    #rtp-content .rtp-card .place-img-rtp {
        padding: 0.25rem !important;
    }

    #rtp-content .rtp-card .rtp-card-img {
        aspect-ratio: 1 / 1;
    }

    .pola-wrapper {
        padding: 0.45rem !important;
    }

    .pola-wrapper h4 {
        font-size: clamp(0.62rem, 2.6vw, 0.76rem);
        padding-right: 1.35rem;
    }

    .percent p {
        font-size: clamp(0.68rem, 2.5vw, 0.8rem);
    }
}

@media screen and (max-width: 575px) {
    #rtp-content > .col-lg-4.col-6,
    #rtp-content > .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #rtp-content > [class*="col-"] {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

@media screen and (max-width: 380px) {
    #rtp-content .rtp-card .row.g-1 > .col-lg-6:first-child,
    #rtp-content .rtp-card .row.g-1 > [class*="col-"]:first-child {
        flex: 0 0 34%;
        max-width: 34%;
        width: 34%;
    }

    #rtp-content .rtp-card .row.g-1 > .col-lg-6:last-child,
    #rtp-content .rtp-card .row.g-1 > [class*="col-"]:last-child {
        flex: 0 0 66%;
        max-width: 66%;
        width: 66%;
    }

    .top-game,
    .hot-game {
        width: 2.4rem;
        height: 2.3rem;
        left: 0.25rem;
    }
}

@media screen and (min-width: 992px) {
    #rtp-content > .col-lg-4.col-6 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media screen and (max-width: 1024px) {
    .logo img {
        max-width: min(15rem, 75vw) !important;
        width: auto !important;
    }

    .slider,
    .swiper {
        width: 100% !important;
    }

    .slider-img {
        width: 100% !important;
    }

    .rtp-card {
        width: 100% !important;
    }

    .pola-wrapper {
        width: 100% !important;
    }
}

@media screen and (max-width: 768px) {
    .logo img {
        max-width: min(13rem, 72vw) !important;
        width: auto !important;
    }

    .pola-wrapper {
        padding: 0.58rem !important;
    }

    .rtp-card-img {
        width: 100% !important;
    }

    .title-game:not(.rtp-neon-heading) {
        font-size: clamp(1rem, 4vw, 1.35rem) !important;
    }

    .item-nav-bottom {
        font-size: 0.7rem !important;
    }

    .icon-providers {
        top: 0.2rem !important;
        right: 0 !important;
    }

    .btn-play {
        font-size: 0.6rem !important;
        width: 10rem !important;
    }

    .content-home h1,
    .content-home h2 {
        font-size: clamp(1rem, 4.5vw, 1.5rem);
        line-height: 1.35;
    }

    .content-home p,
    .content-home li {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        line-height: 1.6;
    }
}

@media screen and (max-width: 480px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden !important;
    }

    .logo img {
        max-width: min(11rem, 80vw) !important;
        width: auto !important;
        margin-top: 1rem !important;
    }

    .slider-wrapper {
        padding: 0.5rem;
    }

    .running-text {
        font-size: 0.75rem;
    }

    .btn-up {
        bottom: calc(3.8rem + env(safe-area-inset-bottom, 0px));
    }
}

@media screen and (max-width: 850px) and (orientation: landscape) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden !important;
    }

    .logo img {
        width: 10rem !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    body {
        padding-bottom: calc(3.2rem + env(safe-area-inset-bottom, 0px));
    }
}

@media screen and (max-width: 640px) {
    .btn-play {
        font-size: 0.6rem !important;
    }
}

@media screen and (min-device-width: 768px) and (max-device-width: 1024px) {
}

@media screen and (max-device-width: 480px) and (orientation: portrait) {
    html,
    body {
        max-width: 100%;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .logo img {
        max-width: min(13rem, 72vw) !important;
        width: auto !important;
    }

    .pola-wrapper {
        width: 100% !important;
        padding: 0.58rem !important;
    }

    .rtp-card-img {
        width: 100% !important;
    }

    .slider,
    .swiper {
        width: 100%;
        height: auto;
    }

    .title-game:not(.rtp-neon-heading) {
        font-size: clamp(1rem, 4vw, 1.35rem) !important;
    }

    .item-nav-bottom {
        font-size: 0.7rem !important;
    }

    .icon-providers {
        top: 0.2rem !important;
        right: 0 !important;
    }
}

@media screen and (max-device-width: 850px) and (orientation: landscape) {
    html,
    body {
        max-width: 100%;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
}
