/*!
 * core-site.css — rebuilt from source CSS
 */

/* ===== all.css ===== */
/* 檔案以 UTF-8 提供（伺服器 header 已指定）；@charset 需位於檔案最頂端否則被忽略，串接後已無效故移除 */
/* @import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css); */

/* CSS Document */
/* allpage */
/* all */
/* Brand tokens live in theme-blue-gold.css (single source of truth).
   Load that file via head_theme_override / head_auth — do not redefine :root here. */

/* 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: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    user-select: none;
    /* 無法選取 */
    pointer-events: none;
    /* 點擊事件穿透遮罩 */
}

#loadOut {
    display: none;
}

.loading-page {
    background: var(--color-bg);
    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;
}

/* 優惠詳情內的表格（後台 HTML，欄數／內容長度不固定）：
   由 promotion.js 外掛 .promo-table-wrap 捲動容器；表格依內容自然撐開、最小滿版，溢出時只橫滑表格 */
.promo-popup .promo-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.promo-popup .promo-table-wrap > table {
    /* 後台內容常帶 inline width，需覆蓋才能自然撐開 */
    width: max-content !important;
    min-width: 100% !important;
    max-width: none !important;
}

/* 長段文字仍在單格內折行，避免整張表被一句話拉到極寬 */
.promo-popup .promo-table-wrap > table td,
.promo-popup .promo-table-wrap > table th {
    max-width: 22rem;
    overflow-wrap: break-word;
}



/* 登入／註冊彈窗的欄位是透明底線樣式，用 --color-nav 當 inset 底色會蓋成整塊色塊。
   改讓 Chrome 的自動填入底色只裁切到文字，欄位維持透明。 */
#registerModal2 input:-webkit-autofill,
#registerModal2 input:-webkit-autofill:hover,
#registerModal2 input:-webkit-autofill:focus,
#registerModal2 input:-webkit-autofill:active,
#loginModal2 input:-webkit-autofill,
#loginModal2 input:-webkit-autofill:hover,
#loginModal2 input:-webkit-autofill:focus,
#loginModal2 input:-webkit-autofill:active {
    -webkit-background-clip: text !important;
    background-clip: text !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    background-color: transparent !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    border-color: #777 !important;
    transition: background-color 600000s 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: #d7b16a;
    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 ===== */
/* 注意：navbar.css 已於上方「components/navbar.css」區塊內嵌，原檔頭的 @charset / @import 為串接殘留，放在檔案中段會被瀏覽器忽略並報錯，故移除 */

/* 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;
}

#footer .decoration-line,
#footer .footer-site-links-divider {
    display: none !important;
    margin: 0;
    border: none;
}

.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 20px;
}

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


@media screen and (min-width: 768px) {
    .sm-profile-site-links {
        display: none !important;
    }
}

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

/* footer */
/* footer # */


@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(8px);
    background-color: rgba(6, 15, 34, 0.55) !important;
}

/* --- 對話框：寬度上限 + 垂直置中 --- */
.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: linear-gradient(165deg, rgba(14, 26, 48, 0.98) 0%, rgba(8, 16, 34, 0.99) 100%) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(199, 164, 95, 0.28) !important;
    border-radius: 14px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset !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(199, 164, 95, 0.18);
    background: linear-gradient(180deg, rgba(10, 20, 40, 0.72) 0%, rgba(8, 16, 34, 0.45) 100%);
}

.auth-modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f0ddb0;
    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(202, 163, 90, 0.65);
}

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

/* select 特殊處理 */
.auth-field option {
    background: #0f1c36;
    color: #e8d6b0;
}

/* --- 密碼顯示切換按鈕 --- */
.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: #caa35a;
    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: #f0ddb0;
}

/* --- 主按鈕 (金藍主題) --- */
.auth-btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    background: linear-gradient(135deg, #dcc288 0%, #b88d45 100%);
    color: #0d1f3d;
    border: 1px solid rgba(241, 214, 153, 0.42);
    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;
    box-shadow: 0 6px 18px rgba(181, 140, 66, 0.34);
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, #ead9a8 0%, #c49a52 100%);
    box-shadow: 0 10px 24px rgba(191, 149, 74, 0.45);
}

.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: linear-gradient(135deg, #dcc288 0%, #b88d45 100%);
    color: #0d1f3d;
    border: 1px solid rgba(241, 214, 153, 0.35);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.auth-btn-sms:hover {
    background: linear-gradient(135deg, #ead9a8 0%, #c49a52 100%);
    box-shadow: 0 4px 14px rgba(181, 140, 66, 0.3);
}

/* --- 條款列 --- */
.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: #f0ddb0 !important;
    font-weight: 700;
    text-decoration: none !important;
    margin-left: 4px;
    transition: color 0.15s;
}

.auth-switch-link:hover {
    color: #dcc288 !important;
}

/* --- 品牌條 --- */
.auth-modal-brand {
    padding: 10px 20px;
    background: linear-gradient(180deg, rgba(8, 16, 34, 0.55) 0%, rgba(6, 12, 26, 0.72) 100%);
    text-align: center;
    border-top: 1px solid rgba(199, 164, 95, 0.12);
}

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

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

/* --- RWD 小螢幕 --- */


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

/* ============================================================ */
/* Homepage Facelift v1 (rzu-like, UI only)                    */
/* ============================================================ */

.header {
    backdrop-filter: blur(10px);
    background: linear-gradient(180deg, rgba(10, 11, 16, 0.96) 0%, rgba(10, 11, 16, 0.78) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.header .tophd {
    min-height: 72px;
    padding: 0.2% 0;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.header .navbar-L .logo-size {
    max-width: 12rem;
    width: auto;
    height: auto;
    padding-left: 12px;
    filter: drop-shadow(0 2px 8px rgba(212, 176, 101, 0.3));
}

.navbar-R>div,
.navbar-R>div>div {
    gap: 10px;
}

.navbar-R .btn {
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.normal-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

.btn.red-btn {
    background: linear-gradient(135deg, #dcc288 0%, #b88d45 100%);
    border: 1px solid rgba(241, 214, 153, 0.42) !important;
    color: #0d1f3d;
    box-shadow: 0 6px 18px rgba(181, 140, 66, 0.34);
}

.btn.red-btn:hover {
    box-shadow: 0 10px 24px rgba(191, 149, 74, 0.45);
}

.content_all {
    max-width: 1320px;
    padding-top: 52px;
}

.footer-nav-box {
    max-width: 1320px;
}

.footer-top-bar,
.footer-desc-box,
.footer-vendor-logos {
    max-width: 1320px;
}

.footer-vendor-logos {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
}

.footer-top-bar {
    border-top: none;
    border-bottom: none;
    padding-top: 16px;
    padding-bottom: 14px;
}

.footer-brand img,
.footer-brand .logo-size {
    opacity: 0.92;
}

.footer-links a {
    border: 1px solid transparent;
}

.footer-links a:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

@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;
    }

/* 手機：站點連結僅在 sm-profile_model 內容區顯示 */

#footer .footer-site-links, #footer .footer-site-links-divider {
        display: none !important;
    }

#footer .footer-site-intro .footer-desc-title,
    #footer .footer-site-intro > p,
    #footer .footer-copyright,
    .footer-copyright {
        display: none !important;
    }

#footer .footer-site-intro {
        padding-top: 8px;
    }

.sm-profile-site-links {
        display: block;
        margin: 20px 12px 8px;
        padding: 16px 12px;
        border-radius: 12px;
        background: linear-gradient(160deg, rgba(28, 38, 62, 0.55) 0%, rgba(12, 20, 38, 0.72) 100%);
        border: 1px solid rgba(199, 164, 95, 0.22);
    }

.sm-profile-site-links .footer-top-bar {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin: 0;
        padding: 0;
        border: none;
    }

.sm-profile-site-links .footer-links {
        justify-content: center;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

.sm-profile-site-links .footer-links a {
        width: 100%;
        justify-content: center;
        padding: 10px 12px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.04);
    }

.sm-profile-site-links .footer-link-divider {
        display: none;
    }

.header {
    display: none !important;
}

.content_all {
    padding-top: max(10px, env(safe-area-inset-top, 0px)) !important;
}

.content_all.home-rzu-shell {
    padding-top: max(8px, env(safe-area-inset-top, 0px)) !important;
}

.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;
    }

.auth-modal-dialog {
        max-width: 350px;
    }

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

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

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

/* ===== index_content.css ===== */
/* 注意：原檔頭 @charset 為串接殘留，放在檔案中段會被忽略並報錯，故移除 */

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

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

/*
  .swiper 站內覆寫說明：
  - swiper-bundle.min.css：套件必需（position / overflow / z-index…），不可拿掉
  - 這裡只補站內版型（寬高、下間距、標題與縮圖皮膚），不要再於檔尾重複寫一遍
*/
.swiper {
    width: 100%;
    height: auto;
    margin-bottom: 26px;
}

/* 首頁輪播：避免用 inline style 蓋掉上面的間距 */
.swiper.swiper-banner.home-top-banner {
    margin-bottom: 14px;
    padding: 0;
}

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

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

.swiper > .index_tith2 > h2 {
    font-size: 1.06rem;
    letter-spacing: 0.04em;
    color: #fff8f6;
    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: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    filter: brightness(100%);
    transition: filter 0.3s ease-in-out;
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

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

.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;
}

.footer-vendor-logos {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
}

.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%);
}


/* 優惠規則 & 隱私政策 */
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: #e8d6b0;
    border-bottom: 3px solid rgba(215, 177, 106, 0.55);
    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: linear-gradient(135deg, rgba(28, 38, 62, 0.88) 0%, rgba(12, 20, 38, 0.94) 100%);
    border: 1px solid rgba(199, 164, 95, 0.45) !important;
    color: #f0ddb0;
}

.promotion-btn:hover {
    color: #fff8f0 !important;
    background: linear-gradient(135deg, rgba(38, 50, 78, 0.95) 0%, rgba(18, 30, 52, 0.98) 100%);
    border-color: rgba(215, 177, 106, 0.6) !important;
}

/* 活動內文 */
.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: #f0ddb0;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    border-left: 5px solid #caa35a;
    padding-left: 10px;
}

.dis-con-title h5 {
    color: #e8d6b0;
    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 rgba(199, 164, 95, 0.35);
    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: #d7b16a;
}

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

.announcement-text {
    color: #e5e5e5;
}


@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: 8px;
    }

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

    ul.sm-nav>li>a {
        font-size: 0.9rem;
        font-weight: 700;
    }

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

    .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);
    }
}

/* 手機版：一行一張 */


/* ============================================================ */
/* Homepage layout plan - rzu style structure                  */
/* ============================================================ */

.home-rzu-shell {
    max-width: 1360px;
}

/* 首頁：覆蓋全站 content_all 上內距，讓分類列貼齊頂部導航下方 */


.home-rzu-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(13, 26, 51, 0.9) 0%, rgba(8, 18, 37, 0.96) 100%);
    border: 1px solid rgba(206, 170, 96, 0.32);
    overflow: hidden;
}

.home-rzu-toolbar-marquee {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid rgba(206, 170, 96, 0.24);
    background: rgba(6, 15, 30, 0.48);
}

.home-rzu-toolbar-marquee i.fa-bullhorn {
    color: #d7b16a;
    flex-shrink: 0;
}

.home-rzu-toolbar-marquee .marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.home-rzu-toolbar-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

/* 桌機預設隱藏，僅手機顯示 */


.home-rzu-auth-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
}

.home-rzu-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.home-rzu-auth-login {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.05);
}

.home-rzu-auth-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0d2348;
    border: 1px solid rgba(248, 225, 172, 0.45);
    background: linear-gradient(135deg, #ddc38a 0%, #b48943 100%);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.28);
}

.home-rzu-auth-wallet {
    min-width: 118px;
    max-width: 172px;
    height: 32px;
    padding: 0 10px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.05);
    font-weight: 700;
}

.home-rzu-auth-wallet i {
    color: #d7b16a;
    font-size: 0.78rem;
    line-height: 1;
    flex: 0 0 auto;
}

.home-rzu-auth-wallet-value {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
    font-size: 0.98rem;
    line-height: 1;
    color: #f5e4b3;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.home-rzu-auth-register {
    min-width: 64px;
}

.home-rzu-toolbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.home-rzu-quick-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    gap: 2px;
    color: #e5d5b2;
    font-size: 0.66rem;
    line-height: 1.1;
}

.home-rzu-quick-item i {
    color: #c8aa71;
    font-size: 0.92rem;
}

.preserved-feature.is-hidden-main {
    display: none !important;
}

/* 桌機：左側選單改為頂部橫排（對齊參考站位置） */


@media screen and (min-width:1024px) and (max-width:1140px) {
    .home-rzu-shell .vertical-tab .nav-tabs > li > a {
        padding: 16px 0;
        font-size: 1.05rem;
    }

    .home-rzu-shell .vertical-tab .nav-tabs .nav-sub {
        font-size: 1.05rem;
    }
}


/* ============================================================ */
/* Homepage Facelift v1 - content area skin                    */
/* ============================================================ */

.marquee-container {
    background: linear-gradient(90deg, rgba(38, 39, 50, 0.82) 0%, rgba(21, 22, 31, 0.82) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    padding: 9px 14px;
    margin-bottom: 18px;
}

.marquee-container i.fa-bullhorn {
    color: #d7b16a;
}

.marquee-content a {
    font-size: 0.9rem;
}

.lobby-header {
    border-radius: 14px;
    padding: 10px 12px;
    background: linear-gradient(130deg, rgba(35, 48, 78, 0.78) 0%, rgba(12, 24, 47, 0.88) 100%);
    border: 1px solid rgba(199, 164, 95, 0.35);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.lobby-title {
    font-size: 1.08rem;
}

.wallet {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.lobby-box {
    gap: 12px;
}

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

.mod-ga-slide {
    margin-bottom: 12px;
}

.mod-ga-slide__track {
    gap: 12px;
}

.mod-ga-slide__item img {
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}


/* ============================================================ */
/* Game entry — panel switch + CSS grid (rzu-style)            */
/* ============================================================ */

.game-entry-shell {
    width: 100%;
}

.game-entry-panel {
    display: none !important;
}

.game-entry-panel.is-active {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
}

.game-entry-shell .index_tith2 {
    margin-bottom: 12px;
}

.game-entry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.game-entry-card {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(28, 38, 62, 0.92) 0%, rgba(12, 20, 38, 0.96) 100%);
    border: 1px solid rgba(199, 164, 95, 0.22);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.game-entry-card:hover {
    transform: translateY(-2px);
    border-color: rgba(215, 177, 106, 0.45);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

.game-entry-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.game-entry-thumb picture,
.game-entry-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-entry-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 26px 8px 10px;
    text-align: center;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(6, 14, 28, 0.35) 40%,
        rgba(6, 14, 28, 0.82) 100%
    );
}

.game-entry-name h3 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-w100);
    line-height: 1.25;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.game-entry-name h4 {
    margin: 2px 0 0;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-w65);
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.home-topgames-desktop {
    display: none;
}

.home-service-desktop {
    display: none;
}

.home-faq-desktop {
    display: none;
}

@media screen and (max-width: 1023px) {
    .home-topgames-desktop {
        display: none !important;
    }

    .home-service-desktop {
        display: none !important;
    }

    .home-faq-desktop {
        display: none !important;
    }
}


@media screen and (max-width: 767px) {
.footer-vendor-logos {
        display: none !important;
    }

.gamenav {
    padding: 0 10px;
    margin-bottom: 0;
}

.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: rgba(255, 255, 255, 0.74);
    gap: 8px;
}

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

ul.sm-nav>li>a {
        font-size: 0.9rem;
        font-weight: 700;
    }

.sm-navitem>i {
    color: rgba(215, 177, 102, 0.95);
    font-size: 1.6rem;
}

.nav-highlight {
    background: linear-gradient(135deg, #ddc38a 0%, #b48943 100%);
    border-radius: 50%;
    height: 44px;
    margin-top: -24px;
    width: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #0b1a35 !important;
    box-shadow: 0 6px 14px rgba(176, 136, 63, 0.44);
}

.bottom-nav {
    width: 100%;
    height: 64px;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    position: fixed;
    bottom: 0;
    background-color: #000000a3;
    z-index: 2;
    backdrop-filter: blur(0.5rem);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(16, 17, 24, 0.98) 0%, rgba(9, 9, 14, 0.98) 100%);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

/* 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;
    }

.mod-ga-slide__item {
        flex: 0 0 100%;
    }

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

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

.home-rzu-toolbar {
    display: flex;
    padding: 6px 8px;
    border-radius: 10px;
    gap: 6px;
    margin-bottom: 8px;
}

.desktop-only-marquee {
        display: none;
    }

.content_all.home-rzu-shell {
        padding-top: max(8px, env(safe-area-inset-top, 0px)) !important;
    }

.home-rzu-auth-actions {
        gap: 4px;
        flex: 1 1 auto;
        min-width: 0;
    }

.home-rzu-toolbar-main {
        gap: 8px;
        align-items: center;
        justify-content: flex-start;
        min-width: 0;
    }

/* 對齊 rzu index-aside .btnBox */

.home-rzu-auth-btn {
        min-width: 44px;
        height: auto;
        padding: 4px 8px;
        font-size: 13px;
        line-height: 1.2;
        letter-spacing: 0;
        flex: 0 0 auto;
    }

.home-rzu-auth-login,
.home-rzu-auth-register {
        min-width: 72px;
        height: 34px;
        padding: 0 18px;
        font-size: 15px;
    }

.home-rzu-auth-wallet {
        min-width: 0;
        max-width: 100%;
        flex: 1 1 auto;
        height: 30px;
        padding: 0 6px;
        gap: 4px;
    }

.home-rzu-auth-wallet i {
        font-size: 14px;
    }

.home-rzu-auth-wallet-value {
        font-size: 14px;
    }

.home-rzu-toolbar-right {
        flex: 0 0 auto;
        margin-left: auto;
        min-width: 0;
        gap: 0;
        justify-content: flex-end;
    }

/* 對齊 rzu asideUserTools：ico28 24px + title .8rem */

.home-rzu-quick-item {
        flex: 0 0 auto;
        width: 44px;
        min-width: 44px;
        max-width: 44px;
        gap: 3px;
        font-size: 12px;
        line-height: 1.1;
    }

.home-rzu-quick-item i {
        font-size: 16px;
        line-height: 1;
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

.home-rzu-quick-item span {
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0;
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
    }

/* 手機：主區維持左欄選單 + 右側內容（grid，避免 % + gap 換行破版） */

.home-rzu-shell .vertical-tab {
        --home-nav-count: 7;
        --home-nav-gap: 3px;
        --home-nav-item-max: 72px;
        /*
          CSS 保底（JS 未跑／量測前）：用 svh 近似可視高。
          實際高度由 index-game-panels.js 以「工具列底→底欄頂」實測覆寫。
          不在此再扣 safe-area-bottom，避免底欄上方多出空白。
        */
        --home-games-avail: calc(
            100svh
            - env(safe-area-inset-top, 0px)
            - 8px
            - 120px
            - 78px
            - 16px
            - 64px
            - 2px
        );
        /* 不再用 447px 上限卡住；矮機縮、高機拉滿剩餘空間 */
        --home-games-row-h: max(220px, var(--home-games-avail));
        /* 六鈕均分綠框高度，上限 72px（較高時靠 space-between 撐滿） */
        --home-nav-item-h: min(
            var(--home-nav-item-max),
            calc(
                (var(--home-games-row-h) - (var(--home-nav-count) - 1) * var(--home-nav-gap))
                / var(--home-nav-count)
            )
        );
        --home-nav-col-w: var(--home-nav-item-h);
        /* 圖示／字跟著格子邊長縮，勿用 rem／vw（字級或寬度變了格子對不上） */
        --home-nav-icon: clamp(14px, calc(var(--home-nav-item-h) * 0.36), 26px);
        --home-nav-text: clamp(11px, calc(var(--home-nav-item-h) * 0.22), 15px);
        --home-nav-label-gap: clamp(2px, calc(var(--home-nav-item-h) * 0.08), 6px);
        display: grid;
        grid-template-columns: var(--home-nav-col-w) minmax(0, 1fr);
        grid-template-rows: auto auto var(--home-games-row-h);
        grid-template-areas:
            "banner banner"
            "toolbar toolbar"
            "nav games";
        column-gap: 8px;
        row-gap: 8px;
        align-items: stretch;
    }

.home-rzu-shell .home-top-banner {
        grid-area: banner;
        width: 100%;
        max-width: 100%;
        min-width: 0; /* 避免 Swiper loop 幻燈片把 grid 撐破寬度 */
        overflow: hidden;
        order: unset;
        margin-bottom: 0 !important;
    }

.home-rzu-shell .home-rzu-toolbar {
        grid-area: toolbar;
        width: auto;
        max-width: none;
        order: unset;
        margin-bottom: 0 !important;
    }

/* 手機：wrapper 不參與排版，讓 ul.nav-tabs 直接進 grid */

.home-rzu-shell .home-rzu-category-bar {
        display: contents;
    }

    /*
      綠框（nav|games）高度固定；
      左欄 6 類全顯不滾；右欄（紅框）超出只在內滾
    */

.home-rzu-shell .vertical-tab .nav-tabs > li.game-nav-item--mobile-hidden {
        display: none !important;
    }

.home-rzu-shell .vertical-tab .nav-tabs {
    grid-area: nav;
    order: unset;
    display: flex !important;
    flex: none !important;
    width: var(--home-nav-col-w) !important;
    min-width: var(--home-nav-col-w) !important;
    max-width: var(--home-nav-col-w) !important;
    padding: 0;
    border-radius: 0;
    aspect-ratio: auto !important;
    /* 與右欄同高（綠框固定列高） */
    height: var(--home-games-row-h) !important;
    max-height: var(--home-games-row-h) !important;
    min-height: 0;
    overflow: hidden;
    position: relative;
    top: auto;
    align-self: start;
    border: none;
    background: transparent !important;
    box-shadow: none !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: var(--home-nav-gap);
    scrollbar-width: none;
}

/* 分類鈕：垂直圖示＋名稱（小正方形）
   —— 手機版(≤767px)的按鈕級樣式（li / li>a / i / .nav-sub / is-active / hover）
      已改由 home-mobile-luxury.css 以 .game-nav-item 更高權重完整接管，
      原本這裡的通用 `> li`/`> li>a` 規則在首頁被完全覆蓋（死碼），故移除以消除重複。
      容器 .nav-tabs 與下方 nav-quick-extra / tab-content 仍保留於此。 */

/* 遊戲分類下方：吸附快捷項目 */

.home-rzu-shell .nav-tabs br.nav-quick-extra {
        display: none;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li.nav-quick-extra {
        margin-top: 6px;
        background: linear-gradient(135deg, rgba(22, 36, 68, 0.96) 0%, rgba(12, 24, 48, 0.98) 100%);
        border: 1px solid rgba(199, 164, 95, 0.38);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
    }

.home-rzu-shell .vertical-tab .nav-tabs > li.nav-quick-extra:first-of-type {
        margin-top: 10px;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li.nav-quick-extra > a, .home-rzu-shell .vertical-tab .nav-tabs > li.nav-quick-extra .nav-sub {
        color: #e8d5ad;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li.nav-quick-extra > a i {
        color: #d7b16a;
        width: 1.25rem;
        height: 1.25rem;
        min-width: 1.25rem;
        font-size: 1.25rem;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li.nav-quick-extra .nav-sub {
        font-size: 0.75rem;
        line-height: 1.1;
    }

.home-rzu-shell .vertical-tab .tab-content {
        /* 桌機區塊已個別隱藏；整欄勿佔手機右欄位置 */
        display: none !important;
    }

/* 手機維持舊邏輯：左欄點選、右欄顯示遊戲入口 */

/* 右欄：高度固定；內容超出只在此框內滾動 */
.home-rzu-shell .vertical-tab .game-entry-shell {
        grid-area: games;
        order: unset;
        flex: none;
        width: auto !important;
        min-width: 0;
        min-height: 0;
        height: var(--home-games-row-h) !important;
        max-height: var(--home-games-row-h) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        margin: 0 !important;
        padding: 0 2px 0 0;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        align-self: start;
        scrollbar-width: thin;
    }

.home-rzu-shell .vertical-tab .game-entry-panel {
        width: 100%;
        padding: 0;
        /* 讓高度跟著內容長，由外層 shell 裁切滾動 */
        height: auto;
    }

.home-rzu-shell .vertical-tab .game-entry-grid {
        margin-bottom: 0;
    }

.home-rzu-shell .vertical-tab .tab-content .swiper-banner {
        margin-bottom: 10px !important;
    }

.marquee-container {
        border-radius: 10px;
        margin-bottom: 12px;
        padding: 8px 10px;
    }

.marquee-content a {
        font-size: 0.82rem;
    }

.lobby-header {
        border-radius: 10px;
        padding: 9px;
    }

.lobby-box {
        gap: 8px;
    }

.home-rzu-shell .game-entry-shell .index_tith2 {
        display: none !important;
    }

.home-rzu-shell .game-entry-grid {
        margin-bottom: 12px;
    }
}


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

}

.home-rzu-toolbar {
    display: none;

}

.desktop-only-marquee {
    display: flex;

}

.game-entry-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;

}

.game-entry-name h3 {
    font-size: 0.88rem;

}
}


/* 分類列出現「推薦」之後（≥769px），熱門面板只留熱門遊戲 */
@media screen and (min-width: 769px) {
.game-entry-mobile-only {
    display: none !important;

}
}


/* ============================================================ */
/* Promotion page — blue-gold theme alignment                  */
/* ============================================================ */

.page-promotion .ac_wrapper {
    width: min(960px, 94%);
    margin: 16px auto 32px;
}

.page-promotion .image-w .promotion-text {
    border: 1px solid rgba(199, 164, 95, 0.18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.page-promotion .modal-content.dis-con-title {
    background: linear-gradient(165deg, rgba(14, 26, 48, 0.98) 0%, rgba(8, 16, 34, 0.99) 100%) !important;
    border: 1px solid rgba(199, 164, 95, 0.24) !important;
    color: #e8d6b0;
}

.page-promotion .modal-content.dis-con-title .modal-header {
    border-bottom: 1px solid rgba(199, 164, 95, 0.18);
}

.page-promotion .modal-content.dis-con-title .modal-title {
    color: #f0ddb0;
}

.page-promotion .promo-popup,
.page-promotion .promo-popup td,
.page-promotion .promo-popup th {
    color: #e5d5b2;
    border-color: rgba(199, 164, 95, 0.22) !important;
}

/* 首頁分類列：壓過 sm-gamenav 舊樣式 */
@media screen and (min-width: 1024px) {
.content_all.home-rzu-shell {
        padding-top: 74px !important;
    }

.home-rzu-shell .vertical-tab {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    position: relative;
}

.home-rzu-shell .home-top-banner {
        order: 2;
        width: 100%;
    }

.home-rzu-shell .home-rzu-category-bar {
        order: 1;
        position: relative;
        left: 50%;
        right: 50%;
        width: 100vw;
        max-width: 100vw;
        margin-left: -50vw;
        margin-right: -50vw;
        background: linear-gradient(180deg, rgba(8, 13, 27, 0.98) 0%, rgba(8, 13, 27, 0.9) 100%);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    }

.content_all.home-rzu-shell, .home-rzu-shell .gamenav, .home-rzu-shell .vertical-tab {
        overflow-x: visible;
    }

.home-rzu-shell .home-rzu-category-bar .nav-tabs {
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        min-width: 0;
        aspect-ratio: auto;
        flex: none;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-around;
        align-items: stretch;
        gap: 0;
        padding: 0;
        min-height: 82px;
        border-radius: 0;
        border: none;
        background: transparent !important;
        box-shadow: none;
    }

.home-rzu-shell .gamenav {
        width: 100%;
        max-width: none;
        overflow: visible;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li {
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
        border-radius: 0;
        min-height: auto;
        display: flex;
        align-items: stretch;
        background: transparent;
        border: none;
        box-shadow: none;
        text-align: center;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li > a {
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 25px 0;
        white-space: nowrap;
        font-size: 1.2rem;
        color: var(--color-w100);
        opacity: 0.95;
    }

.home-rzu-shell .vertical-tab .nav-tabs .nav-sub {
        margin: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        color: var(--color-w100);
    }

/* 桌機：分類選單顯示 FontAwesome icon */

.home-rzu-shell .vertical-tab .nav-tabs > li > a i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.05em;
        line-height: 1;
        color: inherit;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li:not(.no-hover):hover {
        transform: none;
        background: transparent;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li:not(.no-hover):hover > a,
.home-rzu-shell .vertical-tab .nav-tabs > li:not(.no-hover):hover > a .nav-sub,
.home-rzu-shell .vertical-tab .nav-tabs > li:not(.no-hover):hover > a i {
        color: #f4e4bf;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li.game-nav-item.is-active > a,
.home-rzu-shell .vertical-tab .nav-tabs > li.game-nav-item.is-active > a .nav-sub,
.home-rzu-shell .vertical-tab .nav-tabs > li.game-nav-item.is-active > a i {
        color: #f4e4bf;
    }

.home-rzu-shell .vertical-tab .nav-tabs br {
        display: none;
    }

.home-rzu-shell .vertical-tab .tab-content {
        order: 3;
        width: 100%;
    }

.home-topgames-desktop {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 18px;
        padding: 32px 24px;
        box-sizing: border-box;
        border-radius: 16px;
        border: 1px solid rgba(215, 177, 106, 0.28);
        background: linear-gradient(180deg, rgba(12, 24, 48, 0.96) 0%, rgba(8, 16, 34, 0.98) 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 20px rgba(0, 0, 0, 0.25);
    }

.home-topgames-title {
        text-align: center;
        margin-bottom: 10px;
        color: #d7b16a;
    }

.home-topgames-title h2 {
        margin: 0;
        font-size: 2.1rem;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0.04em;
        margin-bottom: 8px;
    }

.home-topgames-title p {
        margin: 4px 0 0;
        font-size: 1.75rem;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0.08em;
        color: rgba(229, 213, 178, 0.78);
    }

.home-topgames-tabs {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0;
        padding: 6px;
        border: 1px solid rgba(215, 177, 106, 0.34);
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(14, 28, 54, 0.95) 0%, rgba(10, 20, 40, 0.94) 100%);
        box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.22);
        margin-bottom: 16px;
    }

.home-topgames-tabs button {
        border: none;
        border-radius: 999px;
        background: transparent;
        color: rgba(229, 213, 178, 0.86);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        font-size: 1rem;
        font-weight: 700;
        padding: 10px 0;
        cursor: pointer;
        transition: all 0.18s ease;
    }

.home-topgames-tabs button i {
        font-size: 1.05em;
        line-height: 1;
    }

.home-topgames-tabs button.is-active {
        background: linear-gradient(135deg, #ddc38a 0%, #b48943 100%);
        box-shadow: 0 2px 7px rgba(0, 0, 0, 0.28);
        color: #0d2348;
    }

.home-topgames-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 38%;
        gap: 16px;
        align-items: stretch;
    }

.home-topgames-left {
        min-width: 0;
        padding: 16px 10px 6px 6px;
    }

.home-topgames-left .desktop-game-panel {
        display: none;
    }

.home-topgames-left .desktop-game-panel.is-active {
        display: block;
    }

.home-topgames-left .home-topgames-panel h3 {
        margin: 0;
        color: #d7b16a;
        font-size: 4rem;
        line-height: 1;
        letter-spacing: 0.02em;
        font-weight: 800;
    }

.home-topgames-left .home-topgames-panel p {
        margin: 18px 0 22px;
        color: rgba(229, 213, 178, 0.84);
        font-size: 1rem;
        line-height: 1.65;
    }

.home-topgames-game-row {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 16px;
    }

.home-topgames-game-item {
        width: 86px;
        height: 86px;
        text-align: center;
        cursor: pointer;
        border-radius: 50%;
        border: 1px solid rgba(242, 218, 165, 0.6);
        background:
            radial-gradient(circle at 35% 30%, rgba(31, 63, 112, 0.98) 0%, rgba(12, 28, 58, 0.98) 55%, rgba(7, 18, 40, 1) 100%);
        box-shadow:
            0 0 0 2px rgba(181, 141, 69, 0.22) inset,
            0 6px 12px rgba(0, 0, 0, 0.35),
            0 0 14px rgba(190, 148, 70, 0.22);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    }

.home-topgames-game-item:hover {
        transform: translateY(-2px) scale(1.03);
        border-color: rgba(250, 229, 177, 0.84);
        box-shadow:
            0 0 0 2px rgba(214, 173, 100, 0.28) inset,
            0 10px 16px rgba(0, 0, 0, 0.42),
            0 0 18px rgba(219, 180, 107, 0.3);
    }

.home-topgames-game-logo {
        display: none !important;
    }

.home-topgames-game-name {
        display: block;
        color: #f4e8cc;
        font-size: 0.86rem;
        font-weight: 700;
        line-height: 1.15;
        text-align: center;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    }

.home-topgames-right {
        height: 420px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

.home-topgames-right .desktop-game-panel {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 420px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.22s ease, visibility 0.22s ease;
    }

.home-topgames-right .desktop-game-panel.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.home-topgames-right .home-topgames-hero .git-group-img {
        width: 540px;
        max-width: 100%;
        height: 420px;
        display: block;
        position: relative;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100%;
        filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
    }

.home-topgames-right .home-topgames-hero .git-group-img::before, .home-topgames-right .home-topgames-hero .git-group-img::after {
        content: "";
        position: absolute;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100%;
        opacity: 1;
        pointer-events: none;
        filter: drop-shadow(2px 2px 1px #444);
        height: 100%;
    }

/* Live: 1 張底圖 + 2 漂浮物（與參考站一致） */

.home-topgames-right .home-topgames-hero .git_group_img_live {
        background-image: url("../img/pc-gamesub/live-bg2.webp");
    }

.home-topgames-right .home-topgames-hero .git_group_img_live::before {
        background-image: url("../img/pc-gamesub/live-1.webp");
        width: 100px;
        top: 136px;
        left: 35px;
        animation: topgamesFloatUp 4s linear infinite;
    }

.home-topgames-right .home-topgames-hero .git_group_img_live::after {
        background-image: url("../img/pc-gamesub/live-2.webp");
        width: 66px;
        top: 58px;
        right: 40px;
        animation: topgamesFloatDown 2.5s linear infinite;
    }

/* Sport: 1 張底圖 + 2 漂浮物 */

.home-topgames-right .home-topgames-hero .git_group_img_sport {
        background-image: url("../img/pc-gamesub/sport-bg.webp");
    }

.home-topgames-right .home-topgames-hero .git_group_img_sport::before {
        background-image: url("../img/pc-gamesub/sport-1.webp");
        width: 60px;
        top: -31px;
        left: 58px;
        animation: topgamesFloatUp 5s linear infinite;
    }

.home-topgames-right .home-topgames-hero .git_group_img_sport::after {
        background-image: url("../img/pc-gamesub/sport-2.webp");
        width: 50px;
        top: 121px;
        right: 65px;
        animation: topgamesFloatDown 2.5s linear infinite;
    }

/* Slot: 1 張底圖 + 1 漂浮物 */

.home-topgames-right .home-topgames-hero .git_group_img_slot {
        background-image: url("../img/pc-gamesub/slot-bg.webp");
    }

.home-topgames-right .home-topgames-hero .git_group_img_slot::before {
        background-image: url("../img/pc-gamesub/slot-1.webp");
        width: 170px;
        top: 145px;
        left: 10px;
        animation: topgamesFloatUp 2.5s linear infinite;
    }

.home-topgames-right .home-topgames-hero .git_group_img_slot::after {
        content: none;
    }

/* Lottery: 1 張底圖 + 1 漂浮物 */

.home-topgames-right .home-topgames-hero .git_group_img_keno {
        background-image: url("../img/pc-gamesub/keno-bg.webp");
    }

.home-topgames-right .home-topgames-hero .git_group_img_keno::before {
        content: none;
    }

.home-topgames-right .home-topgames-hero .git_group_img_keno::after {
        background-image: url("../img/pc-gamesub/keno-1.webp");
        width: 73px;
        top: 74px;
        right:33px;
        animation: topgamesFloatUp 2.5s linear infinite;
    }

/* Chess: 1 張底圖 + 1 漂浮物 */

.home-topgames-right .home-topgames-hero .git_group_img_chess {
        background-image: url("../img/pc-gamesub/chess-bg.webp");
    }

.home-topgames-right .home-topgames-hero .git_group_img_chess::before {
        content: none;
    }

.home-topgames-right .home-topgames-hero .git_group_img_chess::after {
        background-image: url("../img/pc-gamesub/chess-1.webp");
        width: 140px;
        top: 132px;
        left: 25px;
        animation: topgamesFloatUp 2.5s linear infinite;
    }

/* Fish: 1 張底圖 + 1 漂浮物 */

.home-topgames-right .home-topgames-hero .git_group_img_fish {
        background-image: url("../img/pc-gamesub/fish-bg.webp");
    }

.home-topgames-right .home-topgames-hero .git_group_img_fish::before {
        background-image: url("../img/pc-gamesub/fish-1.webp");
        width: 180px;
        top: 130px;
        right: 25px;
        animation: topgamesFloatUp 2.5s linear infinite;
    }

.home-topgames-right .home-topgames-hero .git_group_img_fish::after {
        content: none;
    }

@media screen and (max-width: 1200px) {
        .home-topgames-right {
            height: 360px;
        }

        .home-topgames-right .desktop-game-panel {
            height: 360px;
        }

        .home-topgames-right .home-topgames-hero .git-group-img {
            width: 460px;
            height: 360px;
        }
    }

@keyframes topgamesFloatUp {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }

@keyframes topgamesFloatDown {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(10px); }
    }

.home-service-desktop {
        display: block;
        width: 100%;
        margin: 40px 0;
        padding: 6px 0 0;
    }

.home-service-title {
        text-align: center;
        margin-bottom: 24px;
    }

.home-service-title h2 {
        margin: 0;
        color: #d7b16a;
        font-size: 2rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        line-height: 1;
        margin-bottom: 8px;
    }

.home-service-title p {
        margin: 4px 0 0;
        color: rgba(229, 213, 178, 0.8);
        font-size: 1.05rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        line-height: 1;
    }

.home-service-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

.home-service-card {
        min-height: 246px;
        padding: 18px 16px 16px;
        border-radius: 14px;
        border: 1px solid rgba(215, 177, 106, 0.25);
        background: linear-gradient(180deg, rgba(12, 24, 48, 0.95) 0%, rgba(8, 16, 34, 0.98) 100%);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.26);
        text-align: center;
    }

.home-service-icon {
        width: 76px;
        height: 76px;
        margin: 0 auto 12px;
        border-radius: 50%;
        border: 1px solid rgba(242, 218, 165, 0.5);
        background: radial-gradient(circle at 35% 30%, rgba(31, 63, 112, 0.98) 0%, rgba(12, 28, 58, 0.98) 55%, rgba(7, 18, 40, 1) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 0 2px rgba(181, 141, 69, 0.2) inset;
    }

.home-service-icon i {
        color: #dfbe7f;
        font-size: 1.8rem;
    }

.home-service-card h3 {
        margin: 0 0 8px;
        color: #f4e8cc;
        font-size: 1.18rem;
        font-weight: 800;
    }

.home-service-card p {
        margin: 0;
        color: rgba(229, 213, 178, 0.85);
        font-size: 0.9rem;
        line-height: 1.65;
        text-align: left;
    }

.home-faq-desktop {
        display: block;
        width: 100%;
        margin: 10px auto 22px;
    }

.home-faq-title {
        text-align: center;
        margin-bottom: 24px;
    }

.home-faq-title h2 {
        margin: 0;
        color: #d7b16a;
        font-size: 2rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        line-height: 1;
        margin-bottom: 8px;
    }

.home-faq-title p {
        margin: 4px 0 0;
        color: rgba(229, 213, 178, 0.8);
        font-size: 1.05rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        line-height: 1;
    }

.home-faq-accordion {
        border-radius: 12px;
        border: 1px solid rgba(215, 177, 106, 0.2);
        background: linear-gradient(180deg, rgba(10, 22, 44, 0.88) 0%, rgba(7, 16, 33, 0.92) 100%);
        overflow: hidden;
    }

.home-faq-item + .home-faq-item {
        border-top: 1px solid rgba(215, 177, 106, 0.14);
    }

.home-faq-question {
        width: 100%;
        padding: 14px 16px;
        background: transparent;
        border: 0;
        color: #f4e8cc;
        font-size: 1.08rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        cursor: pointer;
    }

.home-faq-question h3 {
        margin: 0;
        font: inherit;
        color: inherit;
        line-height: inherit;
    }

.home-faq-question i {
        color: #d7b16a;
        transition: transform 0.2s ease;
    }

.home-faq-item.is-open .home-faq-question i {
        transform: rotate(45deg);
    }

.home-faq-answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.24s ease;
    }

.home-faq-item.is-open .home-faq-answer {
        max-height: 140px;
    }

.home-faq-answer p {
        margin: 0;
        padding: 0 16px 14px;
        color: rgba(229, 213, 178, 0.86);
        font-size: 0.94rem;
        line-height: 1.7;
    }

.home-rzu-shell .game-entry-shell {
        position: absolute;
        top: 82px;
        left: 50%;
        width: 100vw;
        max-width: 100vw;
        margin-left: -50vw;
        margin-right: -50vw;
        padding: 14px 0 12px;
        z-index: 65;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
        background: linear-gradient(180deg, rgba(9, 17, 35, 0.975) 0%, rgba(7, 13, 27, 0.985) 100%);
        border-top: 1px solid rgba(215, 177, 106, 0.28);
        border-bottom: 1px solid rgba(215, 177, 106, 0.2);
        box-shadow: 0 14px 26px rgba(0, 0, 0, 0.42);
    }

.home-rzu-shell .game-entry-shell.is-dropdown-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

.home-rzu-shell .vertical-tab:not(.is-dropdown-open) .game-entry-shell {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
    }

.home-rzu-shell .game-entry-panel {
        margin: 0 auto;
        width: min(1400px, calc(100% - 24px));
        padding: 0 12px;
    }

.home-rzu-shell .game-entry-shell .index_tith2 {
        display: none;
    }

.game-entry-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 14px;
        margin-bottom: 0;
    }

.game-entry-name h3 {
        font-size: 0.9rem;
    }

.home-rzu-shell .vertical-tab .home-rzu-category-bar .nav-tabs {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: none !important;
        aspect-ratio: auto !important;
        display: flex !important;
        gap: 1.5% !important;
        justify-content: center !important;
        background: transparent !important;
        border-radius: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

.home-rzu-shell .vertical-tab .home-rzu-category-bar .nav-tabs > li {
        flex: 0 0 auto !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
}
