/*!
 * core-site.css — AUTO-GENERATED by scripts/build-css.js
 * 來源（依序）: all.css + components/navbar.css + index_navbar.css + index_content.css
 * 勿直接改此檔；請改原始檔後重跑 build-css.js
 */

/* ===== all.css ===== */
@charset "UTF-8";
/* @import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css); */

/* CSS Document */
/* allpage */
/* all */
:root {
    --type-a: linear-gradient(to bottom, #fff5ef 0%, #fff4f4 50%, #fff8f4 50%, #ffe2d3 51%, #fff5f2 100%);
    --texture-1: linear-gradient(315deg, transparent, transparent 14%, rgba(255, 255, 255, 0.7) 34%, transparent 0, hsla(0, 0%, 100%, 0.7) 56%, transparent 0, hsla(0, 0%, 100%, 0.7));
    --gradient-4: linear-gradient(0deg, #ffe0ce, #ffcbb4);
    --border: linear-gradient(to bottom, #ffeee0 0%, #ffded1 11%, #ffbea3 25%, #ffbda5 38%, #ffb999 50%, #ffaa8c 51%, #f9c8b1 83%, #ffe8e0 100%);
    --box-shadow-1: 0 2px 4px 0 #d7c5bd;
    /* --color-bg:#0F0F14; */
    --color-bg: #16161c;
    --color-nav: #1A1A22;
    --color-btn: #ff230acc;
    --color-w100: #ffffff;
    --color-w65: #ffffffc7;
    --color-w25: #ffffff40;
    --color-w23: #ffffff3b;
    --color-w18: #ffffff2e;
    --color-w10: #ffffff1a;
    --color-b19: #00000030;
    --color-b44: #00000070;
    --color-r19: #ff000030;
    --color-r67: #ff0000ab;
}

/* option test */
.form-control option {
  background-color: #222; /* 深色背景 */
  color: #fff;            /* 白色文字 */
  border: 1px solid #555; /* 邊框顏色可自行調整 */
}

#Slot,#Casino,#Sport,#Keno,#Chess {
  scroll-margin-top: 72px;
}

*:hover {
    transition: 0.3s;
}

/* body.no-scroll {
    overflow: hidden; 
  } */

html {
    height: 100svh;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    overflow: auto;
    height: 100svh;
    caret-color: auto;
    /* 預設由瀏覽器處理 */
     overscroll-behavior: contain; /* ✅ 阻止滾動穿透 + 橡皮筋 */
  -webkit-overflow-scrolling: touch; /* ✅ 手機正常滑動但不彈性 */
  touch-action: pan-y; /* ✅ 只允許垂直拖動 */
}

/* 移除非輸入類元件的焦點邊框 */
*:not(input):not(textarea):not([contenteditable]) {
    outline: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

::-webkit-scrollbar {
    display: none;
    /*隱藏滾輪*/
}

/* 移除自動帶入樣式 */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    box-shadow: 0 0 0px 1000px white inset !important;
    background-color: white !important;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

input {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0d0d0d;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    user-select: none;
    /* 無法選取 */
    pointer-events: none;
    /* 點擊事件穿透遮罩 */
}

#loadOut {
    display: none;
}

.loading-page {
    background: #0d0d0d;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-page .counter {
    text-align: center;
}

.loading-page .counter span {
    color: white;
    font-size: 1.3rem;
    margin-top: -4px;
}

.loading-page .counter hr {
    background: var(--color-btn);
    border: none;
    height: 1px;
}

.loading-page .counter {
    position: relative;
    width: 200px;
}

.counter>.logo-size {
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    font-family: 'Noto Sans TC', sans-serif;
    box-sizing: border-box;
    letter-spacing: 0.05rem;
    background-color: var(--color-bg) !important;
    color: var(--color-w100);
}

div {
    box-sizing: border-box;
}

ul {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

li {
    list-style: none;
}

a {
    text-decoration-line: none;
    cursor: pointer;
}

button {
    border: none;
    padding: 0;
}

input::placeholder {
    color: var(--color-w65);
}

.hide {
    display: none;
}

.block {
    display: block;
}

.disabled {
    cursor: not-allowed;
}

.red {
    color: var(--color-btn);
}

.white {
    color: var(--color-w100);
}

.green {
    color: #00d500;
}

.margin-T8 {
    margin-top: 8px;
}

.margin-B16 {
    margin-bottom: 16px;
}

.margin-right {
    margin-right: 4px;
}

.btn {
    width: auto;
    height: 40px;
    cursor: pointer;
    background-color: transparent;
    padding: 0 0.8rem;
}

.highlight-t {
    font-size: larger;
    font-weight: bold;
}

.promo-popup td,
.promo-popup th {
    padding: 5px;
}



#registerModal2 input:-webkit-autofill,
#loginModal2 input:-webkit-autofill {
    box-shadow: 0 0 0px 1000px var(--color-nav) inset !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--color-nav) inset !important;
    -webkit-text-fill-color: #fff !important;
    /* 保持文字顏色 */
    border-color: #777 !important;
    /* 保持邊框顏色 */
    transition: background-color 5000s ease-in-out 0s;
}

@media screen and (max-width:767px) {
    html {
        font-size: 15px;
    }
}

/* ===== components/navbar.css ===== */
/* 頂部導航：消息未讀 badge（原 navbar.ejs inline） */
.profile-news-unread-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff3b30;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
}


/* ===== index_navbar.css ===== */
@charset "UTF-8";



/* CSS Document */
.header {
    width: 100%;
    height: auto;
    position: fixed;
    top: 0;
    z-index: 10;
}

.header .tophd {
    width: 100%;
    height: auto;
    min-height: 60px;
    box-shadow: 0px 0px 8.4px 5px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    padding: 0.3% 0px;
    backdrop-filter: blur(0.5rem);
    background-color: #000000a3;
    border-bottom: 1px solid #ffffff75;
}

/* 導航左欄 */
.navbar-L {
    color: beige;
    display: flex;
    align-items: center;
    width: 60%;
}

.logo-size {
    width: 100%;
    max-width: 18rem;
    padding-left: 16px;
}

@keyframes line {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 導航右欄 */
.navbar-R {
    width: 40%;
    z-index: 101;
}

.navbar-R>div,
.navbar-R>div>div {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding-right: 16px;
}

.navbar-R .btn {
    /* width: 40%; */
    /* max-width: 80px; */
}

.normal-btn {
    border: 1px solid var(--color-w65) !important;
    color: var(--color-w65);
}

.normal-btn:hover {
    border: 1px solid var(--color-w100) !important;
    color: var(--color-w100) !important;
}

.btn.red-btn {
    background-color: var(--color-btn);
    color: var(--color-w100);
}

.btn.red-btn:hover {
    box-shadow: 1px 0px 8px 1px inset #8d0f01;
    color: var(--color-w100) !important;
}

.bell {
    width: 40px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.mycash {
    width: auto;
    min-width: 112px;
    display: flex !important;
    align-items: center;
    gap: 4px;
    justify-content: space-evenly;
}

.mycash>span {
    display: flex;
}

/* 導航菜單 */
.centerbox {
    margin: 0 auto;
    width: 70%;
    height: 100%;
    max-width: 1280px;
}

.logo {
    float: left;
    width: 15%;
    height: 100%;
    text-align: right;
    line-height: 55px;
}

.logo>a>img {
    width: 100%;
    vertical-align: middle;
}


.content_all {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    height: auto;
    padding-top: 92px;
}

/* login/register */
.modal {
    backdrop-filter: blur(0.5rem);
    background-color: var(--color-b19);
}

.modal-style-2 {}

.modal-style-2 .modal-login {
    width: 350px;
    margin: 80px auto 0 auto;
}

.modal-style-2 .modal-login a {
    text-decoration: none !important;
}

.modal-style-2 .modal-login .modal-content {
    padding: 20px;
    border-radius: 5px;
    border: none;
}

.modal-style-2 .modal-login .modal-header {
    border-bottom: none;
    position: relative;
    justify-content: center;
}

.modal-style-2 .modal-login .close {
    position: absolute;
    top: -10px;
    right: 0px;
}

.modal-style-2 .close:focus,
.modal-style-2 .close:active {
    outline: none !important;
    box-shadow: none;
}

.modal-style-2 .modal-login h4 {
    color: var(--style-2-color);
    text-align: center;
    font-size: 18px;
    margin-top: 0;
    border-bottom: 0;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 3px;
    font-weight: bold;
}

.modal-style-2 .modal-login .modal-content {
    color: #999;
    margin-bottom: 15px;
    background: #fff;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
    padding: 25px;
}

.modal-style-2 .modal-login .form-group {
    margin: 16px 0;
}

.modal-style-2 .modal-login label {
    font-weight: normal;
    font-size: 13px;
    margin-top: 16px;
}

.modal-style-2 .modal-login .modal-body {
    padding: 0;
}

.modal-style-2 .modal-login .form-control {
    min-height: 38px;
    padding-left: 5px;
    box-shadow: none !important;
    border-width: 0 0 1px 0;
    border-radius: 0;
    font-size: 13px
}

.modal-style-2 .modal-login .form-control:focus {
    border-color: #ccc;
}

.modal-style-2 .modal-login .input-group-addon {
    min-width: 22px;
    max-width: 42px;
    text-align: center;
    background: none;
    border-width: 0 0 1px 0;
    padding-left: 5px;
    border-radius: 0;
    margin-right: 10px;
    padding-top: 15px;
}

.modal-style-2 .modal-login .btn {
    font-size: 15px;
    font-weight: bold;
    background: var(--color-btn);
    color: var(--color-w100);
    border-radius: 25px;
    border: none;
    min-width: 140px;
    margin: 0 auto;
    padding: 10px;
    outline: none !important;
}

/* .modal-style-2 .modal-login .btn:hover,
.modal-style-2 .modal-login .btn:focus {
    background: var(--style-2-color);
} */
.modal-style-2 input:-internal-autofill-selected {
    background-color: transparent !important;
}

.modal-style-2 .modal-login .hint-text {
    text-align: center;
    padding: 16px 0;
    font-size: 13px;
}

.modal-style-2 .modal-login .modal-footer {
    color: #999;
    border-color: #dee4e7;
    text-align: center;
    margin: 0 -25px -25px;
    font-size: 13px;
    justify-content: center;
}

.modal-style-2 .modal-login a {
    color: #fff;
    text-decoration: underline;
}

.modal-style-2 .modal-login a:hover {
    text-decoration: none;
}

.modal-style-2 .modal-login a {
    color: var(--color-w100);
    text-decoration: none;
}

.modal-style-2 .modal-login a:hover {
    text-decoration: underline;
}

.modal-style-2 .modal-login .fa {
    font-size: 16px;
}

.dark.modal-style-2 .modal-content {
    background: var(--color-nav);
    color: #fff !important;
}

.dark.modal-style-2 .close,
.modal-style-2.dark .modal-login h4 {
    color: #fff !important;
}

.dark.modal-style-2 .modal-login .form-control {
    background: transparent !important;
    color: #fff;
    border-color: #777;
    /* background-color: var(--color-nav); */
}

.dark.modal-style-2 .modal-login .input-group-addon {
    color: #9E9E9E;
}

.dark.modal-style-2 .modal-login .modal-footer {
    border: none;
}

/* .dark.modal-style-2 .modal-login .btn{
    background: #70807e;
} */
.dark .text-danger {
    color: #777 !important;
}

.show-password,
.check-terms {
    display: flex;
    align-items: center;
    gap: 4px;
}

.check-terms {
    gap: 8px;
}

.check-terms a {
    color: var(--color-btn) !important;
}

@media only screen and (max-width: 360px) {
    .modal-style-2 .modal-login {
        width: 100%;
        margin: 5px;
    }

    .modal-style-2 .modal-login form {
        width: 100%;
    }
}

/* footer */
.footer_wrapper {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.decoration-line {
    width: 100%;
    color: var(--color-w65);
}

.footer-nav-box {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    height: auto;
    color: var(--color-w65);
}

.footer-nav-box>p {
    font-size: 0.8rem;
}

/* footer 第一行：logo + 連結列（兩端對齊） */
.footer-top-bar {
    width: 100%;
    max-width: 1600px;
    margin: 12px auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.footer-brand img,
.footer-brand .logo-size {
    height: 40px !important;
    width: auto !important;
    max-width: 220px;
    padding: 0 !important;
    object-fit: contain;
    display: block;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--color-w65);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.18s ease, background 0.18s ease;
}

.footer-links a:hover {
    color: var(--color-w100);
    background: var(--color-w10);
}

.footer-links a i {
    color: var(--color-btn);
    font-size: 0.82rem;
}

.footer-link-divider {
    color: var(--color-w18);
    font-size: 0.85rem;
    user-select: none;
}

/* footer 描述區 */
.footer-desc-box {
    flex-direction: column;
    padding: 0 16px;
}

.footer-desc-box .footer-desc-title {
    color: var(--color-w100);
    font-size: 1rem;
    font-weight: 600;
    margin: 12px 0 10px;
    letter-spacing: 0.3px;
}

.footer-desc-box p {
    color: var(--color-w65);
    font-size: 0.82rem;
    line-height: 1.85;
    margin: 0 0 10px;
}

.footer-copyright {
    margin-top: 8px !important;
    padding-top: 12px;
    border-top: 1px solid var(--color-w10);
    color: var(--color-w65) !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.4px;
    text-align: center;
}

@media screen and (max-width: 767px) {
    .footer-top-bar {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media screen and (max-width: 575px) {
    .footer-link-divider {
        display: none;
    }
}

/* footer */
/* footer # */

@media screen and (max-width:767px) {
    .content_all {
        padding-top: 75px;
    }

    .h5hide {
        display: none !important;
    }

    .logo-size {
        width: 100%;
        height: auto;
        max-width: 10rem;
    }

    .footer_wrapper {
        padding-bottom: 60px;
    }

    .footer-nav-box>div {
        width: 100%;
    }

    .footer-nav-item {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .footer-nav-item>div:first-child {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }

    .footer_wrapper>.footer-nav-box:last-child {
        padding: 0 16px;
    }
}

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

    .banner,
    .gamenav,
    .footer_wrapper {
        width: 98svw;
        margin: 0 auto;
    }

    .footer-nav-item>div:first-child {
        width: 25%;
    }

    .footer-nav-item>div:last-child {
        width: 75%;
    }

    .footer_wrapper {
        padding-bottom: 80px;
    }
}

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

/* ============================================================ */
/* [MODIFIED START] auth-modal 新版登入/註冊彈窗樣式             */
/* 參照 登入註冊窗口.html 設計                                   */
/* Bootstrap Modal 結構完整保留，CSS 只覆蓋視覺，不覆蓋 display  */
/* ============================================================ */

/* --- 遮罩：只加 backdrop blur，不動 Bootstrap display/position --- */
.modal-style-2.dark.modal {
    backdrop-filter: blur(6px);
}

/* --- 對話框：寬度上限 + 垂直置中 --- */
.auth-modal-dialog {
    width: 100%;
    max-width: 420px;
    margin: 2.5rem auto;
    animation: authFadeIn 0.25s ease-out;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 卡片本體：覆蓋 Bootstrap .modal-content 視覺 --- */
.auth-modal-inner.modal-content {
    background: rgba(26, 26, 26, 0.55) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 14px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6) !important;
    overflow: hidden;
    padding: 0;
}

/* --- 頂部標題列 --- */
.auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgb(15 15 15 / 30%);
}

.auth-modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.03em;
}

.auth-modal-close {
    background: transparent;
    border: none;
    color: var(--color-w65);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    transition: color 0.15s;
}

.auth-modal-close:hover {
    color: var(--color-w100);
}

/* --- 主體內容 --- */
.auth-modal-body {
    padding: 22px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-modal-body form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- 通用輸入欄位包裝 --- */
.auth-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-field-icon {
    position: absolute;
    left: 12px;
    color: var(--color-w65);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 1;
}

.auth-field {
    width: 100%;
    background-color: transparent;
    border: 1px solid var(--color-w25);
    border-width: 0 0 1px 0;
    /* border-radius: 8px; */
    padding: 10px 12px 10px 36px;
    color: var(--color-w100);
    font-size: 0.875rem;
    transition: border-color 0.2s, background-color 0.2s;
    outline: none;
}

.auth-field::placeholder {
    color: var(--color-w25);
}

.auth-field:focus {
    border-color: rgba(230, 46, 5, 0.5);
    /* background-color: #2f2f2f; */
}

.auth-field:read-only {
    /* background-color: #1a1a1a; */
    color: var(--color-w100);
    border-color: var(--color-w25);
    cursor: not-allowed;
}

/* select 特殊處理 */
.auth-field option {
    background: #2a2a2a;
    color: #e2e8f0;
}

/* --- 密碼顯示切換按鈕 --- */
.auth-field-eye {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--color-w65);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s;
    z-index: 1;
}

.auth-field-eye:hover {
    color: var(--color-w100);
}

/* --- 驗證碼行 (input + 圖片並排) --- */
.auth-captcha-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.auth-captcha-input {
    flex: 1;
    padding-left: 12px;
    /* 驗證碼不需圖示縮進 */
}

.auth-captcha-img {
    width: 112px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

/* --- 記住我 / 忘記密碼 列 --- */
.auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0;
}

.auth-remember-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.auth-checkbox {
    width: 15px;
    height: 15px;
    accent-color: var(--color-btn, #e62e05);
    cursor: pointer;
    flex-shrink: 0;
}

.auth-forget-link {
    font-size: 0.75rem;
    color: var(--color-w65);
    text-decoration: none !important;
    transition: color 0.15s;
}

.auth-forget-link:hover {
    color: var(--color-btn, #e62e05);
}

/* --- 主按鈕 (紅色) --- */
.auth-btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    background-color: var(--color-btn, #e62e05);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
    letter-spacing: 0.02em;
}

.auth-btn-primary:hover {
    background-color: #ff3407;
    box-shadow: 0 4px 16px rgba(230, 46, 5, 0.30);
}

.auth-btn-primary:active {
    transform: scale(0.98);
}

/* --- 分隔線 --- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 0;
}

.auth-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-divider-text {
    font-size: 0.65rem;
    color: var(--color-w25);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

/* --- Google 按鈕 --- */
.auth-btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background-color: #ffffff;
    color: #1e293b;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.auth-btn-google:hover {
    background-color: #f1f5f9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.auth-btn-google:active {
    transform: scale(0.98);
}

.auth-google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* --- 手機欄 (國碼 + 號碼) --- */
.auth-phone-row {
    display: flex;
    gap: 8px;
}

.auth-phone-code {
    width: 90px;
    flex-shrink: 0;
    padding-left: 10px;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
}

.auth-phone-input {
    flex: 1;
    padding-left: 12px;
}

/* --- 簡訊驗證碼列 --- */
.auth-sms-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.auth-sms-row .auth-field {
    flex: 1;
    padding-left: 12px;
}

.auth-btn-sms {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    background-color: var(--color-btn, #e62e05);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.auth-btn-sms:hover {
    background-color: #ff3407;
}

/* --- 條款列 --- */
.auth-terms-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--color-w65);
}

.auth-terms-row label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

/* --- 推廣碼鎖圖示 --- */
.auth-promo-lock {
    position: absolute;
    right: 10px;
    color: #475569;
    font-size: 0.78rem;
    pointer-events: none;
}

/* --- 底部換頁列 --- */
.auth-modal-footer {
    padding: 14px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    color: var(--color-w65);
}

.auth-modal-footer p {
    margin: 0;
}

.auth-switch-link {
    color: #f1f5f9 !important;
    font-weight: 700;
    text-decoration: none !important;
    margin-left: 4px;
    transition: color 0.15s;
}

.auth-switch-link:hover {
    color: var(--color-btn, #e62e05) !important;
}

/* --- 品牌條 --- */
.auth-modal-brand {
    padding: 10px 20px;
    background: rgba(10, 10, 10, 0.45);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.auth-modal-brand span {
    font-size: 0.6rem;
    color: var(--color-w25);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* --- 密碼顯示切換輔助函式 (CSS 無法做，JS 在 EJS 端處理) --- */

/* --- RWD 小螢幕 --- */
@media screen and (max-width: 767px) {
    .auth-modal-dialog {
        max-width: 350px;
    }

    .auth-modal-body {
        padding: 16px 14px 12px;
    }

    .auth-captcha-img {
        width: 90px;
    }

    .auth-phone-code {
        width: 76px;
    }
}

/* ============================================================ */
/* [MODIFIED END] auth-modal 新版登入/註冊彈窗樣式               */
/* ============================================================ */

/* ===== index_content.css ===== */
@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;
    }
}
