@charset "UTF-8";

/* index gamenav */
.gamenav {
    margin-bottom: 32px;
}

.game-swiper-wrapper {
    aspect-ratio: 1360 / 425;
    width: 100%;
}

.swiper {
    width: 100%;
    height: auto;
    margin-bottom: 32px;
}

.index_tith2 {
    display: flex;
    margin-bottom: 10px;
}

.index_con_icon {
    width: 20px;
    margin-right: 10px;
}

.swiper>.index_tith2>h2 {
    font-size: 1.1rem;
    color: var(--color-w100);
    font-weight: bold;
    display: flex;
    gap: 4px;
    align-items: center;
    margin: 2px 0 0 0;
}

.swiper>h2>img {
    max-width: 22px;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--color-w65) !important;
}

.swiper-slide {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide>a {
    display: block;
    position: relative;
}

.swiper-slide img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 3px 3px 3px 0px #00000070;
    filter: brightness(100%);
    transition: filter 0.3s ease-in-out;
    -webkit-user-drag: none;
    /* 禁止拖曳 (適用於 WebKit 瀏覽器：Chrome, Safari, Edge) */
    user-drag: none;
    /* 標準屬性 (部分瀏覽器支援) */
    -webkit-user-select: none;
    /* 禁止選取 (Chrome, Safari, Edge) */
    -moz-user-select: none;
    /* 禁止選取 (Firefox) */
    -ms-user-select: none;
    /* 禁止選取 (IE/Edge) */
    user-select: none;
    /* 標準屬性 */
}

.swiper-slide img:hover {
    filter: brightness(115%);
}

.game-name {
    width: 100%;
    position: absolute;
    bottom: 5px;
}

.game-name>h3 {
    color: var(--color-w100);
    font-size: 0.9rem;
    font-weight: 900;
}

.game-name>h4 {
    color: var(--color-w100);
    font-size: 0.7rem;
    font-weight: 200;
    margin: 0;
}

.aspect {
    aspect-ratio: 160 / 227;
}

.aspect img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* hide-mobile */
.mobile_wrapper,
.sm-tpage,
#btmnav {
    display: none;
}

/* mail-notification 
.notification {
    text-decoration: none;
    position: relative;
    display: inline-block;
}*/


/* 0915add */
/* help-text style */
/* .steptext {
    width: 100%;
    height: auto;
    padding-top: 1rem;
    box-sizing: border-box;
    text-align: center;
    color: #8c8c8c;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.09rem;
} 

.about-title2 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 6px;
    padding-bottom: 3px;
    color: #776663;
    border-bottom: 1px solid #e6dbdb;
}*/

/* 合作廠商 */
/* .gamelogo-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.gamelogo-box>img {
    margin: 0.89rem 0.5rem;
} */

/* 遊戲商logo */
.slider {
    width: 100%;
    padding: 10px;
}

.slide-track {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: brightness(60%);
    transition: filter 0.3s ease;
}

.slide img:hover {
    filter: brightness(100%);
}

@media (min-width: 768px) {
    .slide-track {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* 優惠規則 & 隱私政策 */
ul.promotion-notice>li {
    margin: 0.2rem 0;
}

*/
/* 常見問題 
ul.qa-box>li {
    margin: 0.8rem 0;
}*/

/* 關於我們 
ul.about-noya>li {
    line-height: 2rem;
    letter-spacing: 0;
}

ul.about-noya>img {
    width: 35%;
    margin: 0 auto 0.5rem auto;
}*/

/* promotion */
.ac_wrapper::-webkit-scrollbar {
    display: none;
}

.ac_wrapper {
    width: 60%;
    height: auto;
    margin: 16px auto 32px auto;
}

.ac_box {
    display: flex;
    gap: 16px;
    align-items: stretch;
    flex-wrap: nowrap;
    justify-content: space-between;
    flex-direction: column;
}

ul.ac_box>li {
    width: 100%;
}

ul.ac_box>li>div,
ul.ac_box>li>div>div {
    height: 100%;
}

ul.ac_box>li>div .image-w {
    height: 100%;
}

.promotion-text {
    width: 100%;
    padding: 1rem;
    position: absolute;
    display: inline-grid;
    z-index: 1;
}

.offer-page {
    display: table;
    margin: 0px auto 20px auto;
    cursor: default;
    color: #FF230A;
    border-bottom: 3px solid #fff;
    line-height: 35px;
    font-size: 18px;
    text-align: center;
    font-size: 16px;
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 700;
}


.promotion-text>h2 {
    color: var(--color-w100);
    margin-top: 4px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.2);
}

.promotion-text>h3 {
    color: var(--color-w100);
    margin-top: 4px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.2);
}

.promotion-btn-box {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 32px;
}


.promotion-btn-box>button {
    width: 50%;
}

.promotion-btn {
    margin: 0;
    background-color: #0000005e;
    border: 1px solid var(--color-w65) !important;
    color: var(--color-w100);
}

.promotion-btn:hover {
    color: var(--color-w65) !important;
    background-color: #1a1a22d9;
}

/* 活動內文 */
.modal-content {
    width: 100%;
    height: auto;
    padding: 15px;
    background-color: var(--color-b44) !important;
    backdrop-filter: blur(0.5rem);
    border: 1px solid var(--color-w23) !important;
}

.promo-popup table {
    border-collapse: collapse;
    width: 100%;
}

.promo-popup table,
.promo-popup th,
.promo-popup td {
    border: 1px solid #6d6d6d;
}

/* .modal-content table {
    width: 100%;
}

.modal-content table th {
    padding: 5px;
} */

.dis-con-title h4 {
    color: #FFD700;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    border-left: 5px solid #FF230A;
    padding-left: 10px;
}

.dis-con-title h5 {
    color: #FFD700;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 10px;
}

.dis-con-title ul {
    padding-left: 1.5em;
    margin-bottom: 1em;
    list-style: none;
}

.dis-con-title li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 8px;
    color: #ddd;
    font-size: 15px;
    line-height: 1.6;
}

.dis-con-title li::before {
    content: "⭐";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 14px;
    line-height: 1;
}

/* .sm-actitle {
    display: none;
} 

.promotion-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100%;
    color: var(--color-w100);
}

.promotion-title>h1 {
    letter-spacing: 0.3rem;
    font-size: 2.7rem;
}

.promotion-title>h2 {
    color: var(--color-w65);
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.2rem;
}

.promotion-title>h1:after {
    border: 3px solid var(--color-btn);
    width: 100px;
    height: auto;
    display: block;
    content: "";
    margin: 32px auto 0 auto;
}*/

/* leaderboard 
.rank-board {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.leaderboard {
    width: 24%;
}

.leaderboard h3 {
    font-size: 18px;
    color: #e1e1e1;
    padding: 12px 13px 18px;
    background-color: var(--color-nav);
    margin-bottom: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.leaderboard h3 i {
    font-size: 1.7rem;
    margin-right: 8px;
}

.leaderboard ol {
    counter-reset: leaderboard;
    padding: 0;
    margin-top: 0;
}

.leaderboard ol li {
    position: relative;
    z-index: 1;
    font-size: 14px;
    counter-increment: leaderboard;
    padding: 18px 10px 18px 50px;
    cursor: pointer;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0) scale(1, 1);
    list-style: none;
}

.leaderboard ol li::before {
    content: counter(leaderboard);
    position: absolute;
    z-index: 2;
    top: 15px;
    left: 15px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    color: #c24448;
    background: #fff;
    border-radius: 20px;
    text-align: center;
}

.leaderboard ol li mark {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 18px 10px 18px 50px;
    margin: 0;
    background: none;
    color: #fff;
}

.leaderboard ol li mark::before,
.leaderboard ol li mark::after {
    content: "";
    position: absolute;
    z-index: 1;
    bottom: -11px;
    left: -9px;
    border-top: 10px solid #c24448;
    border-left: 10px solid transparent;
    transition: all 0.1s ease-in-out;
    opacity: 0;
}

.leaderboard ol li mark::after {
    left: auto;
    right: -9px;
    border-left: none;
    border-right: 10px solid transparent;
}

.leaderboard ol li small {
    position: relative;
    z-index: 2;
    display: block;
    text-align: right;
}

.leaderboard ol li::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fa6855;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
    opacity: 0;
}

.leaderboard ol li:nth-child(1) {
    background: #fa6855;
}

.leaderboard ol li:nth-child(1)::after {
    background: #fa6855;
}

.leaderboard ol li:nth-child(2) {
    background: #e0574f;
}

.leaderboard ol li:nth-child(2)::after {
    background: #e0574f;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.leaderboard ol li:nth-child(2) mark::before,
.leaderboard ol li:nth-child(2) mark::after {
    border-top: 6px solid #ba4741;
    bottom: -7px;
}

.leaderboard ol li:nth-child(3) {
    background: #d7514d;
}

.leaderboard ol li:nth-child(3)::after {
    background: #d7514d;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.11);
}

.leaderboard ol li:nth-child(3) mark::before,
.leaderboard ol li:nth-child(3) mark::after {
    border-top: 2px solid #b0433f;
    bottom: -3px;
}

.leaderboard ol li:nth-child(4) {
    background: #cd4b4b;
}

.leaderboard ol li:nth-child(4)::after {
    background: #cd4b4b;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.leaderboard ol li:nth-child(4) mark::before,
.leaderboard ol li:nth-child(4) mark::after {
    top: -7px;
    bottom: auto;
    border-top: none;
    border-bottom: 6px solid #a63d3d;
}

.leaderboard ol li:nth-child(5) {
    background: #c24448;
    border-radius: 0 0 10px 10px;
}

.leaderboard ol li:nth-child(5)::after {
    background: #c24448;
    box-shadow: 0 -2.5px 0 rgba(0, 0, 0, 0.12);
    border-radius: 0 0 10px 10px;
}

.leaderboard ol li:nth-child(5) mark::before,
.leaderboard ol li:nth-child(5) mark::after {
    top: -9px;
    bottom: auto;
    border-top: none;
    border-bottom: 8px solid #993639;
}

.leaderboard ol li:hover {
    z-index: 2;
    overflow: visible;
}

.leaderboard ol li:hover::after {
    opacity: 1;
    transform: scaleX(1.06) scaleY(1.03);
}

.leaderboard ol li:hover mark::before,
.leaderboard ol li:hover mark::after {
    opacity: 1;
    transition: all 0.35s ease-in-out;
}*/

.lobby-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-b44);
    padding: 8px;
    border-radius: 50px;
    box-shadow: -1px 0px 1px #ff00008f;
    border: 1px solid var(--color-r19);
}

.icon-gamelobby {
    color: var(--color-btn);
}

.lobby-title {
    font-size: 1.2rem;
    padding-left: 4px;
}

.wallet {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4px 12px;
    box-shadow: 2px 4px 4px var(--color-bg);
    border: 1px solid var(--color-w10);
    margin-bottom: 0 !important;
}

.wallet span {
    font-size: 1.1rem;
}

.icon-refresh {
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--color-r67);
    padding: 3px;
    border-radius: 100%;
    box-shadow: 0px 1px 4px var(--color-bg);
}

.icon-refresh:hover {
    color: var(--color-b44);
    transform: rotate(90deg);
}

.lobby-box {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.lobby-box>.swiper-slide {
    width: calc(100% / 8 - 8px) !important;
}

/* 404 maintain */
.promotion-title {
    text-align: center;
}

.single-page .btn {
    margin: 32px auto;
}

.single-page p {
    margin-top: 14px;
    color: var(--color-w65);
    padding: 0 24px;
    font-size: 0.9rem;
    text-align: center;
}

/* 首頁跑馬燈 */
.marquee-container {
    width: 100%;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    padding: 5px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
}

.marquee-container i.fa-bullhorn {
    color: #898989;
    margin-right: 10px;
    flex-shrink: 0;
    font-size: 16px;
}

.marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
    white-space: nowrap;
}

.marquee-content li {
    display: inline-block;
    list-style: none;
    margin-right: 50px;
}

.marquee-content a {
    text-decoration: none;
    color: #e5e5e5;
    font-size: 15px;
    font-weight: 400;
}

.marquee-content a:hover {
    color: #ff5555;
}

.announcement-date {
    color: #ccc;
    font-size: 14px;
    margin-right: 6px;
}

.announcement-text {
    color: #e5e5e5;
}

@media screen and (max-width:767px) {
    .gamenav {
        padding: 0 10px;
    }

    .vertical-tab {
        flex-direction: column;
    }

    .mobile_wrapper,
    #btmnav {
        display: block;
        display: flex;
        flex-direction: column;

    }


    .hotgame-title {
        display: none;
    }

    .sm-box {
        width: 100%;
        height: auto;
        margin: 5px 0;
        padding: 0 20px 60px 20px;
    }

    #sm-unlogin {
        display: none;
    }

    .sm-name {
        display: flex;
        flex-direction: row;
        align-items: center;
        color: #8c8c8c;
    }

    .sm-gologin {
        width: 4.5em;
        height: 2.3rem;
        margin: 0 0.2rem;
        display: flex;
        border-radius: 6px;
        background: linear-gradient(to top right, #FFA67F, #fff, #FFDEC3, #F6B094);
        justify-content: center;
        align-items: center;
        box-shadow: 2px 2px 9px #b5a29f;
    }

    .sm-gologin>a {
        color: var(--color-w100);
    }

    .sm-nav {
        display: flex;
        justify-content: space-around;
        width: 100%;
        height: 100%;
    }

    ul.sm-nav>li {
        width: 3rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .sm-navitem {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--color-w100);
        gap: 4px;
    }

    .highlight>i {
        font-size: 1rem !important;
    }

    ul.sm-nav>li>a {
        font-size: 0.8rem;
    }

    .sm-navitem>i {
        color: var(--color-btn);
        font-size: 1.05rem;
    }

    .nav-highlight {
        background: var(--color-btn);
        border-radius: 50%;
        height: 40px;
        margin-top: -20px;
        width: 40px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: var(--color-w100) !important;
    }

    .bottom-nav {
        width: 100%;
        height: 60px;
        border-top-left-radius: 7px;
        border-top-right-radius: 7px;
        position: fixed;
        bottom: 0;
        background-color: #000000a3;
        z-index: 2;
        backdrop-filter: blur(0.5rem);
        border-top: 1px solid #ffffff75;
    }

    /* clear-mobile-activecss */
    .bottom-nav>ul.sm-nav>li>.sm-navitem {
        -webkit-tap-highlight-color: transparent;
    }

    .sm-tpage {
        display: flex;
        padding: 8px 0 16px 8px;
        color: var(--color-w65);
        font-size: 1.1rem;
    }

    .sm-tpage>div:first-child {
        z-index: 97;
    }

    .sm-pagetitle {
        width: 100%;
        text-align: center;
    }

    /* help */
    .hotgame {
        width: 95%;
        height: 100vh;
        overflow-y: scroll;
        padding-bottom: 100px;
    }

    .profile_content_box {
        box-shadow: none !important;
    }


    /* cooperation */

    /* about-noya */

    /* promotion */

    .ac_wrapper {
        width: 90%;
        height: auto;
        padding-top: 20px;
    }

    .ac_box {
        gap: 0.4rem;
    }

    .modal-content>img {
        width: 100%;
    }

    ul.ac_box>li {
        width: 100%;
    }

    .img>img {
        width: 100%;
    }

    .promotion-title>h1 {
        font-size: 1.8rem;
    }

    .promotion-title>h1:after {
        margin: 16px auto 0 auto;
    }

    .promotion-title>h2 {
        font-size: 1rem;
        margin-top: 10px;
    }

    .lobby-box>.swiper-slide {
        width: calc(100% / 4 - 8px) !important;
    }

    /*活動內文*/
    .modal-content {
        font-size: 14px;
        padding: 0;
    }

    /* 404 maintain */
    .single-page {
        margin: 80px 0;
    }

    .single-page p {
        margin-top: 20px;
    }

    .promotion-text>h2 {
        font-size: 1.4rem;
    }

    .promotion-text>h3 {
        font-size: 1.2rem;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {

    /* for table */
    .sm-box {
        width: 100%;
        height: auto;
        margin: 5px 0;
        padding: 0 20px 24px 20px;
    }

    .sm-gamenav {
        width: 90%;
        margin: 0 auto;
        height: 420px;
    }

    .mobile_wrapper,
    #btmnav {
        display: block;
        display: flex;
        flex-direction: column;
    }


    .hotgame-title {
        display: none;
    }

    .sm-nav {
        display: flex;
        justify-content: space-around;
        width: 100%;
        height: 100%;
    }

    ul.sm-nav>li {
        width: 3rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .sm-navitem {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--color-w100);
        gap: 4px;
    }

    .highlight>i {
        font-size: 1rem !important;
    }

    ul.sm-nav>li>a {
        font-size: 0.8rem;
    }

    .sm-navitem>i {
        color: var(--color-btn);
        font-size: 1.05rem;
    }

    .nav-highlight {
        background: var(--color-btn);
        border-radius: 50%;
        height: 40px;
        margin-top: -20px;
        width: 40px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: var(--color-w100) !important;
    }

    .bottom-nav {
        width: 100%;
        height: 60px;
        border-top-left-radius: 7px;
        border-top-right-radius: 7px;
        position: fixed;
        bottom: 0;
        background-color: #000000a3;
        z-index: 2;
        backdrop-filter: blur(0.5rem);
        border-top: 1px solid #ffffff75;
    }

    /* clear-mobile-activecss */
    .bottom-nav>ul.sm-nav>li>.sm-navitem {
        -webkit-tap-highlight-color: transparent;
    }

    .sm-tpage {
        display: none;
    }

    .sm-pagetitle {
        width: 100%;
        text-align: center;
    }

    /* livesport+movie */

    /* 帳戶page */
    #sm-unlogin>.sm-nav {
        justify-content: space-evenly;
        width: 80%;
        margin: 0 auto;
    }

    /* help */
    .hotgame {
        width: 95%;
        height: 100vh;
        overflow-y: scroll;
        padding-bottom: 100px;
    }

    .profile_content_box {
        box-shadow: none !important;
    }

    /* help-stepimg */

    /* promotion */

    .ac_wrapper {
        width: 90%;
        height: 100%;
        padding-top: 0;
        overflow-y: scroll;
    }

    .ac_box {
        gap: 0.9rem;
    }

    .modal-content>img {
        width: 100%;
    }

    ul.ac_box>li {
        width: 48%;
    }

    .img>img {
        width: 100%;
    }

    .promotion-title>h1 {
        font-size: 1.8rem;
    }

    .promotion-title>h1:after {
        margin: 16px auto 0 auto;
    }

    .promotion-title>h2 {
        font-size: 1rem;
        margin-top: 10px;
    }
}

/* === custom-slider 手機/桌機通用樣式 === */
.mod-ga-slide {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 5px;
    /* ✅ 新增左右內距，避免圖片切邊 */
    margin-bottom: 16px;
}


.mod-ga-slide__track {
    display: flex;
    gap: 10px;
    /* 圖與圖的間距 */
}

.mod-ga-slide__item {
    flex: 0 0 50%;
    /* 電腦版：一行兩張 */
    scroll-snap-align: start;
    box-sizing: border-box;
}

.mod-ga-slide__item img {
    width: 100%;
    display: block;
    border-radius: 8px;

    /* 防止選取與拖拉 */
    user-select: none;
    -webkit-user-drag: none;
}

.mod-ga-slide__item img {
    width: 100%;
    display: block;
    border-radius: 8px;
    user-select: none;
    -webkit-user-drag: none;

    /* 預設變暗 */
    filter: brightness(0.7);
    transition: filter 0.3s ease;
}

/* 只有在滑鼠裝置上才啟用 hover 效果（避免手機觸發） */
@media (hover: hover) {
    .mod-ga-slide__item img:hover {
        filter: brightness(1);
    }
}

/* 手機版：一行一張 */
@media screen and (max-width: 767px) {
    .mod-ga-slide__item {
        flex: 0 0 100%;
    }

    .mod-ga-slide {
        padding: 0 0px;
    }

    .mod-ga-slide__item img {
        filter: inherit;
    }
}