/* ==========================================================================
   Higgs Games - style_v2.css (Exact Replica of topbos.com layout with custom buttons)
   ========================================================================== */

/* Load Custom Fonts from topbos.com */
@font-face {
    font-family: 'NewEras';
    src: url("https://www.topbos.com/images/common/fonts/NewEras.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Barlow';
    src: url("https://www.topbos.com/images/common/fonts/BARLOW-BOLDCONDENSED.WOFF2.TTF") format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background-color: #21a396;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 100px; /* Baseline rem = 100px at 720px width. Controlled by script.js dynamically */
}

/* Background grid repeating pattern exactly like topbos.com */
body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(https://www.topbos.com/images/website/new2025/bg_after.png) repeat;
    background-size: 7.2rem 1.05rem;
    pointer-events: none;
    z-index: 1;
}

/* Main Section Wrapper (720px / 7.2rem mobile design canvas) */
#targetSection {
    position: relative;
    margin: 0 auto;
    width: 7.2rem;
    min-height: 100%;
    background: linear-gradient(#6cf2ca 11%, #4acba5 51%, #22a59a 92%);
    z-index: 2;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* Positioning helpers & general bg helper */
.pr { position: relative; }
.pa { position: absolute; }
.df {
    display: flex;
    align-items: center;
    justify-content: center;
}
.bg {
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.wrapper {
    margin: 0 auto;
    width: 7.2rem;
    color: #008a73;
    font-size: .16rem;
    background-image: url(https://www.topbos.com/images/website/new2026/bg.png);
    background-size: 7.2rem 7.4rem !important;
    background-position: 0 1.2rem;
    background-repeat: no-repeat !important;
    z-index: 3;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top ID Header (white/green top header) */
.top-id {
    top: 0;
    left: 0;
    padding: 0 .2rem;
    width: 100%;
    height: .95rem;
    background: #EAFFEF;
    border-bottom: .03rem #c5f3e3 solid;
    font-family: 'NewEras', sans-serif;
    font-size: .38rem;
    color: #008069;
    box-sizing: border-box;
    z-index: 2;
    justify-content: flex-start;
}

.top-id .top-logo {
    top: 50%;
    left: .2rem;
    transform: translateY(-50%);
}

.top-id .top-logo img {
    height: .71rem;
    display: block;
}

.top-id .text {
    margin-left: 1.0rem;
    font-weight: bold;
}

/* Floating H5 Play Icon (top-right side) */
.icon-jump {
    top: 2rem;
    right: .1rem;
    z-index: 10;
}

.icon-jump .ico {
    text-align: right;
}

.icon-jump .ico img {
    width: .8rem;
    display: block;
    cursor: pointer;
    transition: transform 0.2s;
}

.icon-jump .ico img:hover {
    transform: scale(1.08);
}

.icon-jump .text {
    position: absolute;
    top: 50%;
    right: 1.2rem;
    padding: .05rem .1rem;
    width: 2.0rem;
    background: #EAFFEF;
    border-bottom: .03rem #6BF4C3 solid;
    font-size: .2rem;
    line-height: 1.2;
    color: #008a73;
    border-radius: .05rem;
    transform: translateY(-60%);
    word-break: break-word;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.icon-jump .text::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -.08rem;
    width: .08rem;
    height: .22rem;
    background: url(https://www.topbos.com/images/website/new2025/arrow_03.png) no-repeat;
    background-size: 100% 100%;
    transform: translateY(-50%);
}

/* Nav Bar Component */
.nav {
    overflow: hidden;
    width: 100%;
    height: .74rem;
    background: url(https://www.topbos.com/images/website/new2025/bg_nav.gif) repeat-x;
    background-size: .12rem .74rem;
}

.nav_btn {
    position: relative;
    height: .74rem;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: top center;
}

.nav-has-hgi .nav_btn {
    flex: none;
}

.nav_btn::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: .02rem;
    height: .74rem;
    background: url(https://www.topbos.com/images/website/new2025/bg_nav_line.png) no-repeat;
    background-size: 100% 100%;
    transform: translateY(-50%);
}

.nav_btn:last-of-type::before {
    background: none;
}

.nav-has-hgi .nav_btn.nav_btn_recharge {
    width: 1.37rem;
    background-image: url(https://www.topbos.com/images/website/new2025/nav_bar_01_v2.png);
}

.nav-has-hgi .nav_btn.nav_btn_recharge:hover {
    background-image: url(https://www.topbos.com/images/website/new2025/nav_bar_active_01_v2.png);
}

.nav-has-hgi .nav_btn.nav_btn_giftcard {
    width: 1.89rem;
    background-image: url(https://www.topbos.com/images/website/new2025/nav_bar_02_v2.png);
}

.nav-has-hgi .nav_btn.nav_btn_giftcard:hover {
    background-image: url(https://www.topbos.com/images/website/new2025/nav_bar_active_02_v2.png);
}

.nav-has-hgi .nav_btn.nav_btn_hgi {
    width: 2.13rem;
    background-image: url(https://www.topbos.com/images/website/new2025/nav_bar_03_v3.png);
}

.nav-has-hgi .nav_btn.nav_btn_hgi:hover {
    background-image: url(https://www.topbos.com/images/website/new2025/nav_bar_active_03_v3.png);
}

.nav-has-hgi .nav_btn.nav_btn_service {
    width: 1.81rem;
    background-image: url(https://www.topbos.com/images/website/new2025/nav_bar_04_v2.png);
}

.nav-has-hgi .nav_btn.nav_btn_service:hover {
    background-image: url(https://www.topbos.com/images/website/new2025/nav_bar_active_04_v2.png);
}

/* Download Box Styles */
.download {
    margin: 4.8rem auto 0;
    padding-bottom: .2rem;
    width: 6.75rem;
    background: linear-gradient(#eaffef, #c3fce3);
    border: .02rem #4AFFFF solid;
    border-radius: .2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.itemTopTitle {
    margin-top: -.3rem;
    margin-left: .15rem;
    font-family: 'NewEras', sans-serif;
    font-size: .32rem;
    justify-content: flex-start;
    align-items: flex-end;
    color: #008069;
}

.itemTopTitle img {
    margin-right: .12rem;
    width: .87rem;
}

.itemTopTitle .text {
    text-transform: uppercase;
    font-weight: bold;
}

.download .downloadContent {
    margin: .1rem auto 0;
    padding: .2rem 0 .1rem;
    width: 6.32rem;
    background: #bef3dc;
    font-family: 'NewEras', sans-serif;
    border-radius: .15rem;
    overflow: hidden;
    box-sizing: border-box;
}

/* Left & Right Mascot Backgrounds inside Download Panel */
.download .downloadContent::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 1.58rem;
    height: 2.3rem;
    background: url("https://www.topbos.com/images/website/new2025/bg_download_after_01.png") no-repeat;
    background-size: 100% 100%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.download .downloadContent::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 2.04rem;
    height: 1.89rem;
    background: url("https://www.topbos.com/images/website/new2025/bg_download_after_02.png") no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}

/* Google Play Button Styling */
.download .btnDownloadGoogle {
    margin: 0 .2rem .3rem;
    border-bottom: .02rem #89E1BF solid;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
}

.download .btnDownloadGoogle a {
    display: block;
    margin: 0 auto;
    width: 3.04rem;
    height: 1.02rem;
    background-image: url(https://www.topbos.com/images/website/new2025/button/btn_google_download.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform 0.15s;
}

.download .btnDownloadGoogle a:hover {
    transform: scale(1.03);
}

.download .itemDetail p span,
.download .btnDownloadGoogle span {
    display: block;
    text-align: center;
    font-size: .22rem;
    margin-top: .05rem;
    margin-bottom: .05rem;
    color: #008a73;
    font-weight: bold;
}

/* APK Buttons Layout */
.download .itemDetail {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.download .itemDetail.btnTwo p {
    position: relative;
    width: 2.81rem;
    margin: 0 0.15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download .btnTwo .btnDownload a {
    display: block;
    margin: 0 auto;
    width: 2.79rem;
    height: .93rem;
    background-image: url(assets/btn_download_original_user.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform 0.15s;
}

.download .btnTwo .btnDownloadS a {
    display: block;
    margin: 0 auto;
    width: 2.79rem;
    height: .93rem;
    background-image: url(assets/btn_download_x100_user.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform 0.15s;
}

.download .btnTwo .btnDownload a:hover,
.download .btnTwo .btnDownloadS a:hover {
    transform: scale(1.03);
}

.download .btnTwo .btnDownload a:active,
.download .btnTwo .btnDownloadS a:active {
    transform: scale(0.98);
}

/* Shield Icon badge on top-right of Domino-S (Speeder) button */
.download .btnDownloadS .ico-shield {
    position: absolute;
    top: -.16rem;
    right: -.16rem;
    width: .57rem;
    height: .59rem;
    background: url(https://www.topbos.com/images/gw/ico_shield.png) no-repeat;
    background-size: 100% 100%;
    z-index: 3;
    pointer-events: none;
}

/* Glowing animation for the speeder button */
.speeder-pulse-active {
    animation: speeder-glow 2s infinite ease-in-out;
}

@keyframes speeder-glow {
    0% {
        filter: drop-shadow(0 0.02rem 0.04rem rgba(255, 160, 0, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 0.08rem #ffe082);
    }
    100% {
        filter: drop-shadow(0 0.02rem 0.04rem rgba(255, 160, 0, 0.4));
    }
}

/* Keuntungan (Benefit Rules) styling */
.download .downloadRule {
    margin: .25rem .3rem 0;
    font-size: .26rem;
    line-height: 1;
    padding-top: .05rem;
}

.download .downloadRule .itemTitle {
    text-align: center;
    font-size: .26rem;
    margin-bottom: .15rem;
    width: auto;
    font-family: 'NewEras', sans-serif;
    position: relative;
    font-weight: bold;
    color: #008069;
}

.download .downloadRule .itemTitle::before,
.download .downloadRule .itemTitle::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 1.63rem;
    height: .16rem;
    background: url("https://www.topbos.com/images/website/new2025/download_title_before.png") no-repeat;
    background-size: 100% 100%;
    transform: translateY(-50%);
}

.download .downloadRule .itemTitle::before {
    left: .3rem;
}

.download .downloadRule .itemTitle::after {
    right: .3rem;
    transform: rotate(180deg) translateY(50%);
}

.download .downloadRule .ruleContent {
    padding: .2rem;
    background: #A2F1D4;
    border-radius: .15rem;
    box-sizing: border-box;
}

.download .downloadRule .itemText {
    position: relative;
    font-size: .2rem;
    border-bottom: .02rem #88E8C9 solid;
    justify-content: flex-start;
    align-items: flex-start;
    padding-bottom: .1rem;
    margin-bottom: .1rem;
    gap: 0.12rem;
}

.download .downloadRule .itemText:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.download .downloadRule .itemText span {
    margin-right: .1rem;
    flex-shrink: 0;
    width: .34rem;
    height: .33rem;
    background-image: url(https://www.topbos.com/images/website/new2025/ico_n.png);
    display: inline-block;
}

.download .downloadRule .itemText .icoShield {
    height: .38rem;
    background-image: url(https://www.topbos.com/images/website/new2025/ico_shield_02.png);
}

.download .downloadRule .itemText p {
    font-size: 0.22rem;
    line-height: 1.3;
    color: #006e5d;
    font-weight: 500;
}

/* WhatsApp Community Button Section */
.btn-enter-media {
    display: block;
    margin: .2rem auto .6rem;
    width: 5.72rem;
    height: 1.26rem;
    background: url("https://www.topbos.com/images/website/new2025/button/btn_join_light.png") no-repeat;
    background-size: 100% 100%;
    text-decoration: none;
    position: relative;
    transition: transform 0.2s;
}

.btn-enter-media:hover {
    transform: scale(1.02);
}

.ico-enter-media {
    display: none;
}

.enter-tips {
    position: absolute;
    top: 1.4rem;
    left: 0;
    width: 100%;
    font-size: .24rem;
    color: #006761;
    font-weight: bold;
    text-align: center;
}

/* Image Carousel Bottom Section (Slide right-to-left) */
.banner {
    position: relative;
    margin: .4rem auto 0;
    width: 7.02rem;
    height: 4.17rem;
    background-image: url("https://www.topbos.com/images/website/new2025/bg_swiper.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-container {
    width: 6.63rem;
    height: 3.77rem;
    border-radius: .16rem;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.swiper-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    border-radius: .16rem;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: .16rem;
}

.swiper-pagination {
    position: absolute;
    bottom: -.45rem;
    left: 0;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 0.15rem;
}

.swiper-pagination-bullet {
    width: .28rem;
    height: .28rem;
    background: url(https://www.topbos.com/images/website/new2025/ico_list.png) no-repeat;
    background-size: 100% 100%;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s;
}

.swiper-pagination-bullet.active {
    background-image: url(https://www.topbos.com/images/website/new2025/ico_listOn.png);
}

/* News Section (under carousel) */
.news {
    box-sizing: border-box;
    margin: .7rem auto .2rem;
    width: 6.98rem;
    height: 3.91rem;
    background-image: url("https://www.topbos.com/images/website/new2025/bg_news.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border: 1px transparent solid;
}

.news .news-list {
    margin: 0 auto;
    width: 6.32rem;
    background: rgba(29, 197, 152, .2);
    border-radius: .16rem;
    list-style: none;
}

.news li {
    position: relative;
    margin: 0 auto;
    padding: .1rem 0 .05rem .4rem;
    width: 95%;
    height: .58rem;
    border-bottom: .01rem #95EACC solid;
    font-size: .24rem;
    line-height: 1;
    box-sizing: border-box;
}

.news li::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: .3rem;
    height: .24rem;
    background: url("https://www.topbos.com/images/website/new2025/ico_news.png") no-repeat;
    background-size: 100% 100%;
    transform: translateY(-50%);
}

.news li .news-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 4.3rem;
    display: inline-block;
    font-size: 0.22rem;
    color: #008a73;
}

.news li span {
    float: right;
    font-size: 0.2rem;
    color: #008a73;
    opacity: 0.8;
}

.news li:last-child {
    border: 0;
}

.news li a {
    display: flex;
    color: #008a73;
    width: 100%;
    height: 100%;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

/* Web Footer Section */
.footer-new {
    margin-top: .4rem;
    background: #008080;
    border-top: .02rem #1AA9B4 solid;
    padding: .2rem 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.ico-media-list {
    display: flex;
    width: 100%;
    gap: .3rem;
    justify-content: center;
}

.ico-media-list .ico-enter-media {
    margin: 0;
    width: .55rem;
    height: .55rem;
    transition: transform 0.2s;
}

.ico-media-list .ico-enter-media:hover {
    transform: translateY(-2px);
}

.footer-new .mail-detail {
    margin: .2rem auto 0;
    clear: both;
    display: flex;
    width: 92%;
    align-items: center;
    justify-content: space-between;
}

.footer-new .mail-detail .con-left {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.footer-new .icoMail {
    display: block;
    width: .62rem;
    height: .63rem;
    background: url(https://www.topbos.com/images/website/new2025/ico_mail.png) no-repeat;
    background-size: 100% 100%;
}

.footer-new .mail-detail .text {
    color: #45b7bb;
    font-size: .2rem;
    word-wrap: normal;
    word-break: break-word;
    line-height: 1.3;
}

.footer-new .con-right {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.footer-new .icoAge {
    width: .58rem;
    height: .58rem;
    background: url("https://www.topbos.com/images/website/new2025/ico_age_18+.png") no-repeat;
    background-size: 100% 100%;
}

.footer-new .icoTop {
    width: .58rem;
    height: .58rem;
    background: url(https://www.topbos.com/images/website/ico_top.png) no-repeat;
    background-size: 100% 100%;
    cursor: pointer;
    transition: transform 0.2s;
}

.footer-new .icoTop:hover {
    transform: translateY(-2px);
}

.footer-new .href-list {
    display: flex;
    width: 100%;
    padding: .15rem 0;
    background: #006A6F;
    color: #00b5a9;
    font-size: .18rem;
    justify-content: space-around;
    align-items: center;
    margin-top: 0.2rem;
}

.footer-new .href-list a {
    color: #00b5a9;
    text-decoration: underline;
}
