@charset 'utf-8';

/*
 * Theme 3 — super 設計稿
 * 白底亮色系：主色橘 #f46200（漸層 #ffbd7b→#f46200）、
 * 輔色紫 #8e6bf8、黃 #ffde7b、文字 #505052
 * 單位使用 rem（桌機 1rem = 18px，≤1000px 隨 html vw 自動縮放）
 */

:root {
    /* === 全站背景（設計稿為淡藍紫底 + 左上大圖） === */
    --color-bg: #eff2fc;

    /* === 公告藍（最新公告標題 / 更多鈕） === */
    --color-notice-blue: #2b57e8;
    --color-notice-cyan: #5aecff;

    /* === 文字主色 === */
    --color-text: #505052;

    /* === 主色：橘 === */
    --color-primary: #f46200;
    --grad-primary: linear-gradient(180deg, #ffbd7b 0%, #f46200 100%);

    /* === 輔色：紫（機種切換、卷軸、PLAY 按鈕、hover） === */
    --color-purple: #8e6bf8;

    /* === 輔色：黃（榜區切換） === */
    --color-yellow: #ffde7b;
    --color-yellow-border: #f8d366;
    --grad-yellow-pill: linear-gradient(180deg, #fffad6 0%, #fed67f 100%);

    /* === 導覽列黃漸層 === */
    --grad-nav: linear-gradient(180deg, #fff2c2 0%, #fbc535 100%);

    /* === 表格 === */
    --color-table-head: #e6e6e6;
    --color-table-zebra: #f6f6f6;

    /* === 淡橘 hover 背景 === */
    --color-hover-bg: #fff3e5;

    /* === JP 金額金色漸層字（設計稿 98:1091）+ 下方實心投影 === */
    --grad-gold-text: linear-gradient(180deg, #fdf971 0%, #fdf971 44.23%, #ff9d00 53.85%, #ffd884 79.81%);
    --color-jp-amount-shadow: #901f00;

    /* === 強調色（舊變數對應，維持其他頁面可用） === */
    --color-accent: #f46200;
    --color-accent2: #f9a825;
    --color-btn-action: #f46200;
    --color-card-dark: #ffffff;
    --color-input-bg: #ffffff;
    --color-tab-active-bg: #f46200;
    --color-info: #f46200;
    --color-highlight: #f46200;
    --color-news-bg: #ffffff;
    --color-pagination: #efefef;
    --color-pagination-active: #f46200;
    --color-danger: #ff4d4f;
    --color-success: #00b542;
    --color-service-shadow: #c24e00;
}

/* ===================================================
   全域：白底深字
   =================================================== */

body {
    background-color: var(--color-bg) !important;
    color: var(--color-text);
}

.wrapper {
    background: var(--color-bg) !important;
    color: var(--color-text);
}

/* 首頁：設計稿的左上大圖底紋（1920x1200，不重複） */
.index .wrapper {
    background:
        url('../images/index/page_bg.webp') left top / 1920px 1200px no-repeat,
        var(--color-bg) !important;
}

/* ===== 卷軸：紫色（設計稿表格卷軸） ===== */
::-webkit-scrollbar-track {
    background: #d9d9d9;
}

::-webkit-scrollbar-thumb {
    background: var(--color-purple) !important;
    border-radius: 999px;
}

/* ===================================================
   首頁：跑馬燈（淡藍色圓角列，位於 banner 上方）
   =================================================== */
/* 設計稿：跑馬燈在 banner 下方，上下各留 15px */
.index .sub_text {
    margin: 0.833rem 0 0;
}

/* Component 2：1335x40 圓角膠囊、淡藍底圖、#c6fbff 細框 */
.index .marquee_tip_index {
    display: flex;
    align-items: center;
    height: 2.222rem;
    line-height: 2.222rem;
    padding: 0 0.833rem;
    background: url('../images/index/marquee_bg.webp') center / 100% 100% no-repeat;
    border: 1px solid #c6fbff;
    border-radius: 999px;
    color: #363636;
    font-size: 1rem;
}

.index .marquee_tip_index i {
    flex-shrink: 0;
    width: 1.889rem;
    height: 1.889rem;
    margin-right: 0.556rem;
    background: url('../images/common/speaker.webp') center / contain no-repeat;
}

.index .marquee_tip_action {
    color: var(--color-text);
}

/* ===================================================
   首頁：banner + 最新公告側欄
   =================================================== */
/* 設計稿 98:1035：banner 佔滿容器寬（1335x504），右側公告面板已移除 */
.index .banner>.container {
    display: block;
}

.index .banner .slider .item img {
    border-radius: 0.556rem;
}

/* 輪播箭頭（設計稿 Group 90/91）：鈕 56.54x94.21、外側直角內側 radius 8、
   白 60%、外陰影 blur 4；chevron 18.85x31.34、線寬 6、圓端點。
   直接用設計稿的 SVG 當底圖，chevron 比例與線寬才會一致（字型 icon 湊不出來）。
   SVG 畫布 64.54x102.21 四周各含 4px 陰影留白，所以要外推 4px 讓鈕貼齊 banner 邊緣。 */
.index .banner .slick-prev,
.index .banner .slick-next {
    width: 3.586rem;
    height: 5.678rem;
    background: url('../images/index/banner_arrow.svg') center / contain no-repeat;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: filter 0.15s;
}

.index .banner .slick-prev {
    left: -0.222rem;
    right: auto;
    /* 設計稿是同一張圖水平鏡射（-scale-x-100），保留 slick 的垂直置中 */
    transform: translateY(-50%) scaleX(-1);
}

.index .banner .slick-next {
    right: -0.222rem;
    left: auto;
}

.index .banner .slick-prev:hover,
.index .banner .slick-next:hover {
    /* 重寫整組 background，避免被其他 hover 規則的 background 簡寫蓋掉箭頭圖 */
    background: url('../images/index/banner_arrow.svg') center / contain no-repeat;
    opacity: 1;
    visibility: visible;
    filter: brightness(1.12);
}

/* chevron 已包含在 SVG 內，隱藏原本的字型 icon */
.index .banner .slick-prev .v-icon,
.index .banner .slick-next .v-icon {
    display: none;
}

/* 側欄公告面板（設計稿 81:1493：470x325、radius 18、藍色系） */
.banner_side_notice {
    flex: 0 0 35.2%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 1rem;
    padding: 0 0 0.556rem;
    box-shadow: 0 2px 4px rgba(39, 60, 158, 0.1);
}

/* 標題列：中央裝飾圖（圖層 11）+ 深藍粗體字 */
.bsn_title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.222rem;
    font-size: 1.111rem;
    font-weight: 700;
    color: var(--color-notice-blue);
    background: url('../images/index/notice_title_deco.webp') center top / 83.83% 2.222rem no-repeat;
}

.bsn_title svg,
.bsn_title i {
    display: none;
}

.bsn_list {
    flex: 1;
    overflow: hidden;
}

.bsn_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.667rem;
    height: 2.778rem;
    padding: 0 0.833rem;
    font-size: 1rem;
    color: var(--color-text);
}

.bsn_row:hover {
    background: #e4faff;
}

.bsn_row .bsn_num {
    flex-shrink: 0;
    width: 1.833rem;
}

.bsn_row .bsn_name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bsn_row .bsn_date {
    flex-shrink: 0;
    color: var(--color-text);
}

/* 更多：80x29 淺藍細框膠囊（Group 153） */
.bsn_more {
    display: block;
    width: 4.444rem;
    margin: 0.556rem auto 0;
    line-height: 1.611rem;
    text-align: center;
    background: transparent;
    border: 1px solid var(--color-notice-cyan);
    border-radius: 999px;
    color: var(--color-notice-cyan);
    font-size: 0.889rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.bsn_more:hover {
    background: var(--color-notice-cyan);
    color: #ffffff;
}

/* ===================================================
   首頁：資訊區（JACKPOT / 大獎資訊 / 榮耀榜單）
   =================================================== */
.index .home_info_section {
    position: relative;
    margin-top: 1.556rem;
    padding-bottom: 0.556rem;
}

/* 舊版滿版白色背景帶已不需要（面板改成 1336 置中卡），
   殘留的 100vw 空元素會撐出水平捲軸 */
.index .home_info_section::before {
    display: none;
}

.index .home_info_section>* {
    position: relative;
    z-index: 1;
}

/* 三顆切換鈕：199x56 圖片造型鈕（btn_on / btn_off），左右帶裝飾光條（圖層 10） */
.index .home_info_nav {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.944rem;
    height: 3.111rem;
}

.index .home_info_nav::before,
.index .home_info_nav::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 16.389rem;
    height: 0.944rem;
    margin-top: -0.472rem;
    background: url('../images/index/tab_deco.webp') center / 100% 100% no-repeat;
    opacity: 0.7;
    pointer-events: none;
}

.index .home_info_nav::before {
    left: 0;
    transform: scaleX(-1);
}

.index .home_info_nav::after {
    right: 0;
}

.index .home_info_nav_btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.278rem;
    /* index.css 的 flex:1 + max-width:320px 會把鈕撐大，需鎖回設計稿 199x56 */
    flex: 0 0 auto;
    max-width: none;
    width: 11.056rem;
    height: 3.111rem;
    border: none;
    border-radius: 0;
    background: url('../images/index/tab_off.webp') center / 100% 100% no-repeat;
    color: var(--color-text);
    /* 22px（Frame 162） */
    font-size: 1.222rem;
    font-weight: 700;
    text-decoration: none;
}

/* 頁籤 icon 換成設計稿的 fluent:news / boxicons:medal-star / material-symbols:crown。
   blade 的內嵌 svg 是 theme 2 的圖形（空心方框 / 獎盃 / 長條圖），
   這裡把 svg 元素本身當成遮罩容器換圖，仍保留未選中灰、選中白的變色能力 */
.index .home_info_nav_btn svg {
    width: 1.833rem;
    height: 1.833rem;
    flex-shrink: 0;
    background: linear-gradient(180deg, #505052 0%, #828285 50%, #505052 100%);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* 蓋掉 theme 2 原本的圖形 */
.index .home_info_nav_btn svg path,
.index .home_info_nav_btn svg g {
    display: none;
}

/* 最新公告：fluent:news-24-filled 36px */
.index .home_info_nav_btn[data-target="home_notice"] svg {
    width: 2rem;
    height: 2rem;
    -webkit-mask-image: url('../images/common/tab_news.svg');
    mask-image: url('../images/common/tab_news.svg');
}

/* 大獎資訊：boxicons:medal-star-filled 32.9px */
.index .home_info_nav_btn[data-target="home_record"] svg {
    -webkit-mask-image: url('../images/common/tab_medal.svg');
    mask-image: url('../images/common/tab_medal.svg');
}

/* 榮耀榜單：material-symbols:crown-rounded 32.1px */
.index .home_info_nav_btn[data-target="home_jackpot"] svg {
    width: 1.778rem;
    height: 1.778rem;
    -webkit-mask-image: url('../images/common/tab_crown.svg');
    mask-image: url('../images/common/tab_crown.svg');
}

/* index.css 的 .home_info_nav_btn.active 用 background 簡寫、同權重且後載入，
   會把 background-size 蓋回 auto（圖以原尺寸被裁 → 破圖），這裡要一起寫回來 */
.index .home_info_nav_btn.active {
    background: url('../images/index/tab_on.webp') center / 100% 100% no-repeat;
    color: #ffffff;
    font-weight: 500;
}

.index .home_info_nav_btn.active svg {
    background: #ffffff;
}

/* 移除 index.css 深色主題殘留的底線與分隔線 */
.index .home_info_nav_btn.active::after {
    display: none;
}

.index .home_info_nav_btn+.home_info_nav_btn::before {
    display: none;
}

.index .home_info_panel {
    display: none;
    padding: 1.111rem 0 0.333rem;
}

.index .home_info_panel.active {
    display: block;
}

/* ===== JACKPOT 面板（Frame 101：滿版帶 + 三顆 JP 同排） ===== */
/* JACKPOT 面板：banner 下方獨立區塊（設計稿 736..1101，下方離頁籤 40px） */
.index .home_jppool_section {
    margin: 0.833rem 0 2.222rem;
}

/* 設計稿 81:1522：1336x365 置中面板（非滿版），內部元素以 % 定位 */
.jp3_banner {
    position: relative;
    width: 100%;
    aspect-ratio: 1336 / 365;
    overflow: hidden;
    border-radius: 1rem;
}

.jp3_banner .jp3_bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center top;
}

/* 新版設計稿（98:1508）左右角色已畫進底圖，不再有獨立角色圖層 */
.jp3_banner .jp3_char {
    display: none;
}

.jp3_content {
    position: absolute;
    inset: 0;
    z-index: 2;
    max-width: none;
    margin: 0;
    padding: 0;
    display: block;
}

/* 標題「钢珠JACKPOT」604x132 @ (363,18)（設計稿 110:1578） */
.jp3_title {
    position: absolute;
    left: 27.17%;
    top: 4.93%;
    width: 45.21%;
    max-width: none;
    display: block;
}

.jp3_items {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    margin: 0;
}

.jp3_item {
    position: absolute;
    width: 29.94%;
    max-width: none;
}

.jp3_item1 {
    left: 2.54%;
    top: 41.1%;
}

.jp3_item2 {
    left: 34.88%;
    top: 38.9%;
}

.jp3_item3 {
    left: 67.22%;
    top: 38.9%;
}

.jp3_item img {
    width: 100%;
    display: block;
}

/* 金額：金色漸層字 + 下方實心投影（Nunito Bold 40px，設計稿 98:1091）
   新版沒有描邊，改成 text-shadow，第一層疊字不再需要 */
.jp3_item .jp3_amount {
    position: absolute;
    left: 50%;
    top: 72%;
    transform: translate(-50%, -50%);
    display: block;
    font-size: 2.222rem;
    font-weight: 700;
    white-space: nowrap;
}

.jp3_item .jp3_amount>span {
    display: block;
}

/* 下層：整圈深色外框（含下方加厚），字面透明 */
.jp3_item .jp3_amount>span:first-child {
    position: absolute;
    inset: 0;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.389rem var(--color-jp-amount-shadow);
    text-shadow: 0 0.167rem 0 var(--color-jp-amount-shadow);
}

/* 上層：金色漸層字面疊在外框之上 */
.jp3_item .jp3_amount>span:last-child {
    position: relative;
    z-index: 2;
    background: var(--grad-gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* 滾動數字（Odometer，數字欄位尺寸見 index.css .jp_odometer）：
   行高放寬到 1.4，描邊與下方加厚才不會被數字欄的 overflow 切掉；
   數字會上下位移，漸層掛在外層 clip 不到，要下在每個數字上 */
/* 絕對定位＋left:50% 只剩一半寬度，float 數字會折行（小數被切掉），寬度改 max-content */
.jp3_item .jp3_amount.jp_odometer,
.jp3_item .jp3_amount.jp_odometer .number-animate {
    width: max-content;
}

.jp3_item .jp3_amount.jp_odometer {
    --jp-odo-lh: 1.4;
}

.jp3_item .jp3_amount.jp_odometer>span:last-child {
    background: none;
}

.jp3_item .jp3_amount.jp_odometer>span:last-child .number-animate span {
    background: var(--grad-gold-text);
    -webkit-background-clip: text;
    background-clip: text;
}

/* ===== 大獎資訊 / 榮耀榜單：移除 index.css 深色主題殘留 ===== */
/* 深藍滿版漸層帶 */
.index #home_record::before,
.index #home_jackpot::before {
    display: none;
}

/* index.css 以 ID 選擇器設 padding: 0.3rem 0，需同權重蓋回 */
.index #home_record,
.index #home_jackpot {
    padding: 1.111rem 0 0.333rem;
}

/* 藍框圓角深底容器 */
.index .home_record {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

/* 奇數列深藍底（zebra 改為偶數列灰底，見下方表格區） */
.index .record_body .tr:nth-child(odd),
.index .jackpot_record_body .tr:nth-child(odd) {
    background: transparent;
}

/* 資料尚未載入時（JS 動態塞入），空的機種列不顯示紫框 */
.index .home_record_nav:not(:has(.home_record_btn)) {
    display: none;
}

/* ===== 大獎資訊 / 榮耀榜單：機種切換（紫色膠囊 46px） ===== */
.index .home_record_nav {
    display: flex;
    width: 100%;
    background: #ffffff;
    border: 2px solid var(--color-purple);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.556rem;
}

.index .home_record_btn {
    flex: 1;
    height: 2.333rem;
    border: none;
    background: transparent;
    border-radius: 999px;
    color: var(--color-text);
    font-size: 1.111rem;
    cursor: pointer;
    position: relative;
}

.index .home_record_btn .btn-stroke {
    display: none;
}

.index .home_record_btn .btn-fill {
    position: static;
    color: inherit;
    -webkit-text-stroke: 0;
}

.index .home_record_btn.active {
    background: var(--color-purple);
    color: #ffffff;
    font-weight: 700;
}

/* 榜區切換（比1~3榜 / 比4~10榜：黃色膠囊 432x46）
   共用 index.css 用 #home_rank_range_nav（ID 權重）設了橫向捲動與藍色卷軸，
   且後於 theme.css 載入，所以這裡一律帶 .index + ID 前綴才蓋得過去。 */
.index .home_rank_range_nav,
.index #home_rank_range_nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    margin: 0.556rem auto;
    /* 設計稿 432x46；榜區名稱較長時讓膠囊自己撐寬，不要裁字 */
    width: fit-content;
    min-width: 24rem;
    max-width: 100%;
    background: #fff7e6;
    border: 2px solid var(--color-yellow-border);
    border-radius: 999px;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: 0;
    scrollbar-width: none;
}

.index #home_rank_range_nav::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
}

.index .home_rank_range_nav button,
.index .home_rank_range_nav a,
.index #home_rank_range_nav .home_rank_range_btn {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 2.556rem;
    line-height: 2.556rem;
    padding: 0 0.889rem;
    border: none;
    background: transparent;
    border-radius: 999px;
    color: var(--color-text);
    font-size: 1.111rem;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}

.index .home_rank_range_nav .active,
.index #home_rank_range_nav .home_rank_range_btn.active {
    background: var(--grad-yellow-pill);
    color: var(--color-text);
    font-weight: 700;
}

/* ===== 表格 ===== */
.index .record_header {
    display: flex;
    align-items: center;
    height: 2.556rem;
    background: var(--color-table-head);
    color: var(--color-text);
    font-size: 1.111rem;
}

.index .record_header .th {
    flex: 1;
    text-align: center;
}

.index .record_body .tr,
.index #honor_items_container .tr {
    display: flex;
    align-items: center;
    min-height: 2.778rem;
    font-size: 1rem;
    color: var(--color-text);
}

.index .record_body .tr:nth-child(even),
.index #honor_items_container .tr:nth-child(even) {
    background: var(--color-table-zebra);
}

.index .record_body .tr .td,
.index #honor_items_container .tr .td {
    flex: 1;
    text-align: center;
}

/* 名次數字：橘色粗體 */
.index #honor_items_container .tr .td.prize_rank,
.index #honor_items_container .tr .td:first-child {
    color: var(--color-primary);
    font-weight: 700;
}

/* 表身可捲動 + 紫色細卷軸（設計稿 8px） */
.index .record_body,
.index .jackpot_record_body {
    max-height: 15.111rem;
    overflow-y: auto;
}

.index .record_body::-webkit-scrollbar,
.index .jackpot_record_body::-webkit-scrollbar {
    width: 0.444rem;
}

.index .record_body::-webkit-scrollbar-track,
.index .jackpot_record_body::-webkit-scrollbar-track {
    background: #d9d9d9;
    border-radius: 999px;
}

.index .record_body::-webkit-scrollbar-thumb,
.index .jackpot_record_body::-webkit-scrollbar-thumb {
    background: var(--color-purple) !important;
    border-radius: 999px;
}

/* 收合按鈕 */
.index .home_info_toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.333rem;
    margin: 0.667rem auto 0;
    padding: 0.333rem 1.222rem;
    background: #efefef;
    border: none;
    border-radius: 999px;
    color: var(--color-text);
    cursor: pointer;
}

.index .home_info_toggle .home_info_toggle_text {
    color: var(--color-text);
}

.index .home_info_toggle svg path {
    stroke: var(--color-text);
}

/* ===================================================
   首頁：遊戲分類標題 + 卡片（白卡、紫 PLAY）
   =================================================== */
/* 共用 index.css 的 .game_item_full 兩側各外推 1.5rem（給卡片陰影留空間），
   視窗寬度接近容器寬時會撐出水平捲軸，這裡裁掉水平溢出（clip 不會變成捲動容器） */
.index .game_warpper {
    overflow-x: clip;
}

/* 手機版：遊戲列表左右箭頭要往外突出，game_warpper 不能裁，
   改由 body 裁掉水平溢出（一樣不會出現水平捲軸） */
@media screen and (max-width: 1000px) {
    body.index {
        overflow-x: clip;
    }

    .index .game_warpper {
        overflow-x: visible;
    }
}

/* Component 3~8：750x76，水墨橫幅底 + 英文水印 + 置中 icon/中文 */
.index .game_title {
    position: relative;
    display: block;
    height: 4.222rem;
    margin: 0.6rem 0 0;
    padding: 0;
    text-align: center;
    line-height: normal;
}

.index .game_title .icon {
    display: none;
}

/* 水墨橫幅（huaban）：寬 750、top 24、opacity .69 */
.index .game_title::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 1.333rem;
    transform: translateX(-50%);
    width: 41.667rem;
    max-width: 100%;
    height: 2.889rem;
    background: url('../images/index/sec_line.webp') center / 100% 100% no-repeat;
    opacity: 0.69;
    pointer-events: none;
}

/* 英文水印：36px 空心描邊字（雙層疊字，寫法同 theme 2 的 .home_jp_num）
   下層做白色筆畫、上層填白色漸層 */
.index .game_title .game_title_en {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    display: block;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
    white-space: nowrap;
    pointer-events: none;
}

.index .game_title .game_title_en span {
    display: block;
}

.index .game_title .game_title_en span:first-child {
    position: absolute;
    inset: 0;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px #9fedff;
}

.index .game_title .game_title_en span:last-child {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.12) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.index .game_title .title {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.278rem;
    margin-top: 1.222rem;
    padding-left: 0;
}

.index .game_title .title::before {
    content: '';
    flex-shrink: 0;
    width: 1.889rem;
    height: 1.889rem;
    background: center / contain no-repeat;
}

.index #index1 .title::before {
    background-image: url('../images/common/nav_1_h.webp');
}

.index #index5 .title::before {
    background-image: url('../images/common/nav_2_h.webp');
}

.index #index8 .title::before {
    background-image: url('../images/common/nav_3_h.webp');
}

.index #index6 .title::before {
    background-image: url('../images/common/nav_4_h.webp');
}

.index #index7 .title::before {
    background-image: url('../images/common/nav_5_h.webp');
}

.index #index_sport .title::before {
    background-image: url('../images/common/nav_6_h.webp');
}

.index .game_title .title .tit {
    color: #363636;
    font-size: 1.222rem;
    font-weight: 700;
}

/* 卡片：白底圓角 20px、陰影（Group 125） */
.index .game_list .item:before {
    background: #ffffff;
    border: none;
    border-radius: 1.111rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
    top: 6%;
}

.index .game_list .item .pic img {
    border-radius: 1.111rem;
}

/* 名稱列：icon 左、名稱中、PLAY 右（白色漸層壓底） */
.index .game_list .item .text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.444rem 0.444rem 0.556rem;
    color: var(--color-text);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 50%);
    border-radius: 0 0 1.111rem 1.111rem;
}

.index .game_list .name {
    margin-top: 0;
    font-size: 1rem;
    font-weight: 700;
    gap: 0.333rem;
    min-width: 0;
}

.index .game_list .name .name_text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 取消深色描邊文字（雙 span 疊字），名稱為黑色粗體 */
.index .game_list .name .name_text span:first-child {
    display: none;
}

.index .game_list .name .name_text span+span {
    color: #000000;
}

.index .game_list .text img {
    width: 2.222rem;
    background-color: #E8E8E8;
    border-radius: 50%;
}

/* PLAY 鈕：紫色膠囊 46x28 */
.index .game_list .item .text:after {
    content: 'PLAY';
    flex-shrink: 0;
    width: 2.556rem;
    line-height: 1.556rem;
    margin-top: 0;
    background: var(--color-purple);
    color: #ffffff;
    font-size: 0.833rem;
    font-weight: 400;
    border-radius: 999px;
}

/* 桌機：一列 5 張卡（設計稿 220px / 1336px） */
@media screen and (min-width: 1000px) {
    .index .game_warpper .game_list .item {
        min-width: 18.34%;
        width: 18.34%;
        margin: 0 0.83% 0.667rem;
    }
}

/* APP：卡片只有約 165px 寬，拿掉 PLAY 鈕把空間讓給名稱
   用 549px：剛好 550px 時 rem 還是 PAD 的 2vw，空間足夠 */
@media screen and (max-width: 549px) {
    .index .game_list .item .text:after {
        display: none;
    }

    /* icon 30px（設計稿 APP_1 156:2051） */
    .index .game_list .text img {
        width: 1.633rem;
    }

    /* 名稱列變矮，卡片底部留白跟著縮（共用版固定 40px）：
       icon 1.633 + 下緣 0.278 ≈ 1.9rem，icon 上緣剛好貼齊圖片底 */
    .index .game_list .item .text {
        padding-bottom: 0.278rem;
    }

    .index .game_warpper .game_item_full .item {
        padding-bottom: 1.8rem;
    }
}

/* ===================================================
   底部導航（手機）：白底、灰字、橘色 active
   =================================================== */
.bottom_btn {
    background: #ffffff;
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.10);
}

.bottom_btn a {
    color: #9aa5b4;
}

.bottom_btn3_page .bottom_btn3 i svg path {
    fill: var(--color-primary) !important;
}

.bottom_btn3_page .bottom_btn3 {
    color: var(--color-primary);
}

.bottom_btn2_page .bottom_btn2 i svg path {
    fill: var(--color-primary) !important;
}

.bottom_btn2_page .bottom_btn2 {
    color: var(--color-primary);
}

.bottom_btn4_page .bottom_btn4 i svg path,
.bottom_btn4_page .bottom_btn4 i svg rect {
    fill: var(--color-primary) !important;
}

.bottom_btn4_page .bottom_btn4 {
    color: var(--color-primary);
}

.bottom_btn5_page .bottom_btn5 i svg path {
    fill: var(--color-primary) !important;
}

.bottom_btn5_page .bottom_btn5 {
    color: var(--color-primary);
}

/* ===== 側滑選單：白底深字 ===== */
.menu_box {
    background: #f7f7f7;
}

.menu_box .menu li a {
    background: #ffffff;
    color: var(--color-text);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.menu_box .menu>li:last-child a {
    color: var(--color-danger);
}

/* ===== 首頁 top_btn 卡片項目 ===== */
.top_btn .item {
    color: #444;
}

/* ===== 公告彈窗 news_box（theme 1：白卡 + 橘標題列，內容比照內頁灰列） ===== */
.news_box .bottom {
    background: #ffffff !important;
    /* 共用版是 4px 實心橘外框，內頁沒有這種厚框，改用淡藍紫陰影 */
    border: 0 !important;
    border-radius: 1rem;
    box-shadow: 0 0.222rem 0.667rem rgba(39, 60, 158, 0.18);
    padding-bottom: 0.556rem;
}

.news_box .news_box_tit {
    background: #414141 !important;
    color: #ffffff;
    font-size: 1.333rem;
    padding: 0.667rem 0;
}

/* 頁籤：共用版是 8px 粗底線 + #747474 深灰分隔線，改細線 */
.news_box .member_menu2 {
    border-bottom: 1px solid #ececec;
    padding: 0.667rem 1.111rem 0;
}

.news_box .member_menu2 li a {
    color: #8a8a8c;
    font-size: 1rem;
    border-bottom: 3px solid transparent;
}

.news_box .member_menu2 li.ui-tabs-active a {
    color: var(--color-primary) !important;
    border-bottom: 3px solid var(--color-primary) !important;
}

/* 列：改用內頁同一組灰底，標題深灰（原本整排橘字） */
.news_box .news_list_box {
    background: var(--color-table-zebra);
    border-radius: 0.556rem;
    padding: 0.556rem 0.889rem;
}

.news_box .news_tit_title {
    color: #363636 !important;
    font-size: 1.222rem;
}

.news_box .news_tit_title::before {
    color: var(--color-primary) !important;
}

.news_box .news_tit_date {
    color: #8a8a8c;
    font-size: 1rem;
}

.news_box .news_content {
    color: var(--color-text);
    font-size: 1.167rem;
}

/* 更多：紫色膠囊（原本實心橘、6.94rem 寬過大） */
.news_box .news_tit .news_tag {
    background: var(--color-purple) !important;
    width: 4.444rem;
    line-height: 1.778rem;
    font-size: 0.889rem;
}

.news_box .news_tag_icon {
    width: 0.889rem;
}

/* 今日不再顯示：共用版 #eee 是給深底用的，白底上看不見 */
.news_box .box_check {
    color: #8a8a8c;
    font-size: 1rem;
}

.news_box .box_check input {
    accent-color: var(--color-purple);
}

/* 確認：共用版紅漸層 + 重陰影，改成紫色 */
.news_box .btn-news,
.btn-news {
    background: var(--color-purple) !important;
    box-shadow: 0 0.111rem 0.333rem rgba(142, 107, 248, 0.3);
    line-height: 2.444rem;
    font-size: 1.111rem;
    width: 10rem;
}

/* ===== 推薦 QR Code 彈窗 #qrcode_modal（比照公告彈窗：白卡 + 深灰標題列） =====
   共用版 .leave_box 是深綠底 + 黃/藍/紅立體邊框的擬真樣式，theme 1 全部拆掉。 */
#qrcode_modal {
    padding: 0;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 0.222rem 0.667rem rgba(39, 60, 158, 0.18);
    color: var(--color-text);
    overflow: hidden;
}

#qrcode_modal .leave-tit {
    position: relative;
    height: 2.667rem;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #414141;
}

/* 公告彈窗的標題列沒有左側圖示，這裡也拿掉，讓標題真正置中 */
#qrcode_modal .leave-tit .tit-left {
    display: none;
}

#qrcode_modal .leave-tit .tit-center {
    background: none;
    box-shadow: none;
    color: #ffffff;
    font-size: 1.333rem;
    font-weight: 700;
    text-shadow: none;
}

#qrcode_modal .leave-tit .tit-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 2.667rem;
    height: 100%;
    background: none;
    box-shadow: none;
    text-shadow: none;
}

#qrcode_modal .leave-tit .tit-right .v-icon__svg {
    width: 1.111rem;
    height: 1.111rem;
    fill: #ffffff;
}

#qrcode_modal .content_box {
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
}

/* ===== 分頁 =====
   內頁的互動色系是紫（新增／洗碼／推廣按鈕、語系膠囊、左側選單都是 --color-purple），
   所以頁碼選中改紫、hover 用左側選單同一組淡紫底 #f0e9f7 + 紫字。
   註：.disabled 要排在 :hover 後面，兩者權重相同（0,2,2），順序決定勝負。 */
.pagination>li>a {
    background-color: var(--color-pagination);
    color: #505052;
}

.pagination>li>a:hover {
    background-color: #f0e9f7;
    color: var(--color-purple);
}

.pagination>li>a.active,
.pagination>li>a.active:hover {
    background-color: var(--color-purple);
    color: #ffffff;
}

.pagination>li>a.disabled,
.pagination>li>a.disabled:hover {
    background-color: #f5f5f5;
    color: #c9c9c9;
}

/* ===== 遊戲轉點彈窗 gamePopBox（樣式集中在檔尾的區塊） ===== */

/* ===== 會員 Tab ===== */
.member_tab .active .v-tab {
    background-color: var(--color-tab-active-bg) !important;
    color: #ffffff;
}

.member_conternt .border-box {
    background: linear-gradient(to bottom, #ffe6cd 0%, #ffcf9e 100%);
    border: solid 1px var(--color-primary);
    color: var(--color-text);
}

/* ===== 各類按鈕 ===== */
.btn.btn-member1 {
    background-color: var(--color-primary) !important;
    color: #ffffff;
}

.btn.btn-member2 {
    background-color: #ffe4cb;
    color: var(--color-primary);
}

.btn-store {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.bank-list li a {
    background: var(--color-primary);
    color: #ffffff;
}

.bank-list li a.active {
    background: #c95100;
}

.bottom-box .btn {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.bottom-box .btn:nth-child(2) {
    background-color: #c95100;
    border-color: #c95100;
}

/* ===== 固定客服按鈕 ===== */
.fixed_chat {
    background: var(--color-accent2) !important;
}

/* ===== 訊息提示框 ===== */
.black_box {
    background: #ffffff;
    color: var(--color-text);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

/* ===== 框架 (accordion) ===== */
.frame {
    border-color: #f0dfc8;
}

.frame dt {
    color: #444;
}

.frame.active {
    border-color: var(--color-primary);
}

.frame.active dt {
    color: var(--color-primary);
}

dd.content {
    color: #333;
}

/* ===== 頁尾 ===== */
.site-footer {
    color: #888;
}

/* ===== 會員中心 ===== */
.member_conternt {
    color: var(--color-text);
}

.m_li .m_txt,
.m_li .line,
.m_li #url {
    color: #666;
}

/* ===== 大螢幕子選單 ===== */
@media screen and (min-width: 550px) {
    .fix_header {
        background: var(--grad-primary);
    }
}

/* ===================================================
   響應式：版面結構調整（尺寸縮放交給 rem）
   =================================================== */
@media screen and (max-width: 1000px) {

    /* 平板／手機版輪播箭頭縮小 */
    .index .banner .slick-prev,
    .index .banner .slick-next {
        width: 2.586rem;
        height: 3.678rem;
    }

    /* 公告面板移到 banner 下方全寬 */
    .index .banner>.container {
        flex-direction: column;
    }

    .banner_side_notice {
        flex-basis: auto;
        width: 100%;
    }

    .index .home_info_nav {
        gap: 0.667rem;
    }

    /* 寬度不足，收起左右裝飾光條 */
    .index .home_info_nav::before,
    .index .home_info_nav::after {
        display: none;
    }

    .index .home_info_nav {
        height: auto;
    }

    .index .home_info_nav_btn {
        width: auto;
        flex: 1;
        max-width: 11.056rem;
        /* 寬度改為彈性，高度要跟著等比，否則造型圖會被壓扁 */
        height: auto;
        aspect-ratio: 199 / 56;
        /* index.css 的上下 padding 會把高度撐過等比值，這裡歸零 */
        padding: 0 0.444rem;
        /* PAD / APP 設計稿（Group 170）：字 20px、icon 25px */
        font-size: 1.111rem;
    }

    .index .home_info_nav_btn svg {
        width: 1.389rem;
        height: 1.389rem;
    }
}

/* APP：JP 改三角排列（設計稿 APP_首頁 81:2616，面板 529x244） */
@media screen and (max-width: 550px) {

    /* 榮耀榜單表格：欄位等寬塞不下，改依內容多寡分配（表頭與表身用同一組 flex 才會對齊）。
       名次欄縮到最小，空間讓給玩家／機台；長文字改換行不再省略。 */
    .index #jackpot_prize_table .record_header,
    .index #honor_items_container .tr {
        padding: 0 0.222rem;
    }

    .index #jackpot_prize_table .record_header {
        font-size: 0.889rem;
        line-height: 1.2;
    }

    .index #honor_items_container .tr {
        font-size: 0.833rem;
        line-height: 1.3;
        padding-top: 0.333rem;
        padding-bottom: 0.333rem;
    }

    .index #jackpot_prize_table .record_header .th,
    .index #honor_items_container .tr .td {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 0.111rem;
    }

    /* 名次 */
    .index #jackpot_prize_table .record_header .th:nth-child(1),
    .index #honor_items_container .tr .td:nth-child(1) {
        flex-grow: 0.55;
        font-size: 0.833rem;
    }

    /* 榜金 */
    .index #jackpot_prize_table .record_header .th:nth-child(2),
    .index #honor_items_container .tr .td:nth-child(2) {
        flex-grow: 1.25;
    }

    /* 玩家 */
    .index #jackpot_prize_table .record_header .th:nth-child(3),
    .index #honor_items_container .tr .td:nth-child(3) {
        flex-grow: 1.9;
    }

    /* 機台：名稱與編號／倍率兩行，空間最大 */
    .index #jackpot_prize_table .record_header .th:nth-child(4),
    .index #honor_items_container .tr .td:nth-child(4) {
        flex-grow: 2.4;
    }

    /* 一擊榜分 */
    .index #jackpot_prize_table .record_header .th:nth-child(5),
    .index #honor_items_container .tr .td:nth-child(5) {
        flex-grow: 1.35;
    }

    /* 日期 */
    .index #jackpot_prize_table .record_header .th:nth-child(6),
    .index #honor_items_container .tr .td:nth-child(6) {
        flex-grow: 1.7;
    }

    /* 內容換行顯示完整（index.css 預設 nowrap + 省略號）；玩家名遮罩 *** 無空格，需允許斷字 */
    .index #honor_items_container .tr .td {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: break-all;
    }

    /* 機台名稱以詞為單位換行較好讀，編號／倍率那行再斷字 */
    .index #honor_items_container .tr .td:nth-child(4) {
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .jp3_banner {
        aspect-ratio: 529 / 180;
    }

    .jp3_banner .jp3_char_left {
        left: 0;
        top: 0;
        width: 62.76%;
    }

    .jp3_banner .jp3_char_right {
        right: 0;
        top: 0;
        width: 58.79%;
    }

    /* APP 設計稿沒有 JACKPOT 標題圖 */

    .jp3_item {
        width: 31.37%;
    }

    .jp3_item1 {
        left: 0;
        right: 0;
        top: 27%;
        margin: auto;
    }

    .jp3_item2 {
        left: 12.84%;
        top: 55.49%;
    }

    .jp3_item3 {
        left: 55.12%;
        top: 55.49%;
    }

    .jp3_item .jp3_amount {
        font-size: 1.333rem;
    }
}

/* ===================================================
   遊戲轉點彈窗 gamePopBox：改成 theme 1 亮色系
   主圖去除深色漸層遮罩，改為浮在白卡上方（參考設計圖）
   關閉鈕位置與內容結構維持共用版
   =================================================== */
.gamePopBox {
    border-radius: 1.111rem;
    overflow: visible;
    /* 共用版 top:2rem + bottom:0 是靠上對齊，主圖會頂到 header；
       改成垂直置中（與共用版 ≤550px 同一套寫法，動畫的 translateY 也吃這個變數） */
    top: 50%;
    bottom: auto;
    --gpb-translateY: -50%;
}

.gamePopBox .game-pop-img {
    min-height: 0;
}

/* 設計不需要主圖下方的深色漸層 */
.gamePopBox .game-pop-img:before {
    display: none;
}

.gamePopBox .game-pop-img img {
    width: 62%;
    margin: 0 auto;
}

/* 白卡上移壓住主圖下緣（主圖浮在卡片上方） */
.gamePopBox .game-transfer {
    margin-top: -2.222rem;
    padding: 3.333rem 1.667rem 1.111rem;
    background-color: #ffffff !important;
    border-radius: 1.111rem;
    box-shadow: 0 4px 16px rgba(39, 60, 158, 0.18);
}

.gamePopBox .pop-wallet-label {
    color: #8a8a8c;
    font-size: 0.889rem;
}

.gamePopBox .pop-wallet-amount {
    color: var(--color-primary) !important;
    font-size: 1.333rem;
}

.gamePopBox .center .form-control {
    background: #ffffff !important;
    border: 1px solid #d9d9d9;
    border-radius: 0.556rem;
    color: var(--color-text) !important;
}

.gamePopBox .bottom .number_btn {
    color: var(--color-primary) !important;
    background: var(--color-hover-bg) !important;
    box-shadow: 0 2px 4px rgba(244, 98, 0, 0.15);
}

.gamePopBox .center .form-control::placeholder {
    color: #b1b1b1;
}

/* 主要動作：紫色；次要動作：灰底、hover 加深 */
.gamePopBox .pop-btn-row .btn,
.gamePopBox .btn.btn-pop-enter {
    background: var(--color-purple) !important;
    color: #ffffff !important;
}

.gamePopBox .pop-btn-row .btn:hover,
.gamePopBox .btn.btn-pop-enter:hover {
    background: #7a55e8 !important;
}

.gamePopBox .pop-btn-row .btn-pop-return,
.gamePopBox .btn-pop-return {
    background: #e6e6e6 !important;
    color: var(--color-text) !important;
}

.gamePopBox .pop-btn-row .btn-pop-return:hover,
.gamePopBox .btn-pop-return:hover {
    background: #d9d9d9 !important;
    color: var(--color-text) !important;
}

/* --- 尺寸與排列：轉入／轉回等寬並排，高度與輸入框、進入遊戲一致 --- */
.gamePopBox .center .form-control {
    height: 2.444rem;
    line-height: 2.444rem;
    padding: 0 0.889rem;
    font-size: 1rem;
}

.gamePopBox .pop-btn-row {
    gap: 0.667rem;
}

/* 共用版是 width:auto + padding，兩顆鈕只佔左半邊、右側留一大塊空白 */
.gamePopBox .pop-btn-row .btn,
.gamePopBox .pop-btn-row .btn-pop-return {
    flex: 1;
    width: auto;
    padding: 0;
    line-height: 2.444rem;
    font-size: 1rem;
    border-radius: 999px;
}

.gamePopBox .btn.btn-pop-enter,
.gamePopBox .game-transfer>.btn-pop-return {
    line-height: 2.444rem;
    font-size: 1rem;
    border-radius: 999px;
    margin: 0.444rem 0 0;
}

/* 關閉鈕：共用版是深藍圓形點陣圖，換成淺灰圓底 + 深灰叉，hover 轉紫 */
.gamePopBox .btn-close {
    top: 0.889rem;
    right: 0.889rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.778rem;
    height: 1.778rem;
    background: #efefef;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.gamePopBox .btn-close img {
    display: none;
}

.gamePopBox .btn-close::before {
    content: '\00d7';
    color: #505052;
    font-size: 1.444rem;
    line-height: 1;
}

.gamePopBox .btn-close:hover {
    background: var(--color-purple);
}

.gamePopBox .btn-close:hover::before {
    color: #ffffff;
}

/* 轉點彈窗跳出時，整頁背景壓一層半透明遮罩。
   用 #gamePopBox 自己的 ::after 做（z-index:-1 墊在彈窗內容後方），
   遮罩會跟著彈窗的 show / fadeOut 一起出現消失，不必改 JS。
   注意：彈窗本身有 transform，fixed 子元素的定位基準會變成彈窗而非視窗，
   所以用 300vw × 300vh 往外撐開，確保整個視窗都被蓋住。
   只鎖 id，避免影響 fancybox 類（自帶遮罩）的 .gamePopBox */
#gamePopBox::after {
    content: '';
    position: fixed;
    top: -100vh;
    left: -100vw;
    width: 300vw;
    height: 300vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}


/* ===================================================
   首頁：最新公告面板（設計稿 98:1063）
   白卡 radius 18、列高 50、偶數列 #f6f6f6、右側紫色捲軸
   =================================================== */
/* 頁籤底 1197 → 公告卡頂 1225，留 28px */
.index #home_notice {
    padding: 1.556rem 0 0.333rem;
}

/* 共用 index.css 的深藍滿版底色帶不需要 */
.index #home_notice::before {
    display: none;
}

.index .home_notice_wrapper {
    /* 設計稿固定 252 高（5 列 x 50） */
    min-height: 14rem;
    max-height: 14rem;
    padding: 0.111rem 0;
    background: #ffffff;
    border-radius: 1rem;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(39, 60, 158, 0.1);
}

.index .notice_row {
    height: 2.778rem;
    padding: 0 2.222rem;
    line-height: normal;
    gap: 0.556rem;
    background: transparent;
    color: #363636;
    font-size: 1.3rem;
    font-weight: 400;
}

.index .notice_row:nth-child(even) {
    background: #f6f6f6;
}

.index .notice_row:hover {
    box-shadow: inset 0 0 0 100vw rgba(142, 107, 248, 0.08);
}

.index .notice_num {
    min-width: 1.111rem;
    color: #363636;
}

.index .notice_title {
    flex: 0 1 auto;
    color: #363636;
}

.index .notice_date {
    margin-left: auto;
    color: #363636;
}

.index .notice_empty {
    padding: 2.222rem;
    color: var(--color-text);
}

/* 捲軸：8px 紫色圓角（設計稿 98:1067/1068） */
.index .home_notice_wrapper::-webkit-scrollbar {
    width: 0.444rem;
}

.index .home_notice_wrapper::-webkit-scrollbar-track {
    background: #d9d9d9;
    border-radius: 999px;
}

.index .home_notice_wrapper::-webkit-scrollbar-thumb {
    background: var(--color-purple) !important;
    border-radius: 999px;
}

/* 公告列左右內距：設計稿標題起於容器內 201px、日期止於右側 206px */
.index .notice_row {
    padding: 0 2.222rem;
}

/* 遊戲區：設計稿 Component 9 寬 1196 置中（比容器窄） */
.index .game_warpper {
    max-width: 66.444rem;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================================
   首頁：對齊設計稿 98:1023 的容器與垂直間距
   =================================================== */
/* 內容容器：設計稿 293..1628（1335 寬），max-width = 1335 + 左右 15 內距 */
.index .banner>.container,
.index .index_content>.container {
    max-width: 75.833rem;
}

/* 黃色分類列底 147 → banner 頂 162（只加在最外層 .banner，
   include_banner 內還有一層同名 .banner，選到會加兩次） */
.index .content>.banner {
    padding-top: 0.778rem;
}

/* 公告卡底 1477 → 第一個分類標題頂 1517，設計稿間距 40 */
.index .home_info_section {
    padding-bottom: 0;
}

.index .game_warpper .game_item:first-child .game_title {
    margin-top: 0;
}

/* ===================================================
   彩金榜彈窗 #jackpot_pool_box（設計稿 216:1365，1000x900）
   共用 index.css 在 theme.css 之後載入，所以一律加 .index 前綴提高權重。
   做法：DOM 沿用 theme 2 的結構（僅描邊字多包一層 span），圖片一律改用 CSS 背景替換，
   版面用「固定 1000x900 比例的容器 + 百分比絕對定位」，字級用 rem（設計稿 px ÷ 18）。

   描邊字一律用「疊兩層」：第一層只畫描邊、第二層疊字面。
   單層 -webkit-text-stroke 會把描邊畫在字面上方（paint-order 在 HTML 文字無效），字會變細、糊。

   字級補正：彈窗寬度是 min(55.55rem, 96vw)。
   ≥1001px：1rem=18px、彈窗 1000px，rem 與設計稿 px 1:1。
   551~1000px：rem=2vw 但彈窗被 96vw 卡住，rem 相對彈窗大 1.157 倍 → 字級 ×0.864。
   ≤550px：rem=3.3333vw，大 1.929 倍 → 字級 ×0.518。
   兩段倍率在各自區間內都是定值，所以用兩個 media query 補正即可。
   =================================================== */
.index .jackpot_pool_box {
    padding: 0;
    color: #ffffff;
}

.index .jackpot_pool_inner {
    position: relative;
    aspect-ratio: 1000 / 900;
    overflow: hidden;
    border-radius: 1.111rem;
    background:
        url('../images/index/jp_pop_girl_left.webp') left bottom / 25% 46.22% no-repeat,
        url('../images/index/jp_pop_girl_right.webp') right bottom / 25% 47.78% no-repeat,
        url('../images/index/jp_pop_bg_top.webp') center top / 100% 46.11% no-repeat,
        url('../images/index/jp_pop_bg_bottom.webp') center bottom / 100% 37.56% no-repeat,
        linear-gradient(180deg, #ddccff 0%, #edd4ff 100%);
}

/* theme 2 的背景／裝飾／人物 <img> 一律不顯示，改由上面的背景圖呈現 */
.index .jackpot_pool_bg,
.index .jackpot_pool_deco,
.index .jackpot_pool_side_deco,
.index .jackpot_pool_girl {
    display: none;
}

.index .jackpot_pool_content {
    position: absolute;
    inset: 0;
    padding: 0;
}

/* 標題：設計稿 x198 y18 604x132 */
.index .jackpot_pool_title {
    position: absolute;
    left: 19.8%;
    top: 2%;
    width: 60.4%;
    height: 14.67%;
    margin: 0;
    background: url('../images/index/jp_pop_title.webp') center / contain no-repeat;
}

.index .jackpot_pool_title img {
    display: none;
}

/* JP1~JP4：2x2，欄 x62 / x542（寬 400），列 y132 / y325 */
.index .jackpot_pool_grid {
    position: static;
    display: block;
    gap: 0;
    margin: 0;
}

.index .jackpot_pool_item {
    position: absolute;
    width: 40%;
    height: 22%;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% auto;
}

.index .jackpot_pool_item1 {
    left: 6.2%;
    top: 14.67%;
    background-image: url('../images/index/jp_pop_1.webp');
}

.index .jackpot_pool_item2 {
    left: 54.2%;
    top: 14.67%;
    background-image: url('../images/index/jp_pop_2.webp');
}

.index .jackpot_pool_item3 {
    left: 6.2%;
    top: 36.11%;
    background-image: url('../images/index/jp_pop_3.webp');
}

.index .jackpot_pool_item4 {
    left: 54.2%;
    top: 36.11%;
    background-image: url('../images/index/jp_pop_4.webp');
}

.index .jackpot_pool_item_bg {
    display: none;
}

/* 膠囊內一行：7万珠（左）／金額（中）／次數（右），垂直置中在膠囊上 */
.index .jackpot_pool_tier,
.index .jackpot_pool_amount,
.index .jackpot_pool_times {
    position: absolute;
    top: 71%;
    transform: translateY(-50%);
    line-height: 1.4;
    white-space: nowrap;
}

.index .jackpot_pool_tier {
    left: 5.8%;
    right: auto;
    font-size: 1.167rem;
    font-weight: 700;
}

.index .jackpot_pool_times {
    right: 6.2%;
    left: auto;
    font-size: 1.111rem;
    font-weight: 700;
}

/* 珠數門檻／中獎次數：白字 + 深紅描邊（疊兩層） */
.index .jackpot_pool_tier>span:first-child,
.index .jackpot_pool_times>span:first-child {
    position: absolute;
    inset: 0;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.194rem #530000;
}

.index .jackpot_pool_tier>span+span,
.index .jackpot_pool_times>span+span {
    position: relative;
    z-index: 2;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.index .jackpot_pool_amount {
    left: 25.75%;
    width: 53%;
    text-align: center;
}

/* 金額：金色漸層字 + 深橘描邊（疊兩層） */
.index .jackpot_pool_amount .home_jp_num {
    position: relative;
    display: inline-block;
    font-size: 2.222rem;
    font-weight: 700;
    line-height: 1.4;
}

.index .jackpot_pool_amount .home_jp_num>span:first-child {
    position: absolute;
    inset: 0;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.344rem #a74000;
}

.index .jackpot_pool_amount .home_jp_num>span+span {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, #fcf971 0%, #fcc12b 55%, #fc8e5b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.index .jackpot_pool_amount .home_jp_num.jp_odometer {
    --jp-odo-lh: 1.4;
}

.index .jackpot_pool_amount .home_jp_num.jp_odometer>span+span .number-animate span {
    background: linear-gradient(180deg, #fcf971 0%, #fcc12b 55%, #fc8e5b 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* 下半部：本月大獎次數 */
.index .jackpot_pool_bottom {
    position: static;
    display: block;
}

.index .jackpot_pool_month {
    position: absolute;
    inset: 0;
    width: auto;
    max-width: none;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

/* 標題改用設計稿的金色徽章圖（x359 y578 282x94） */
.index .jackpot_pool_month_title {
    position: absolute;
    left: 35.9%;
    top: 61%;
    width: 28.2%;
    height: 9.5%;
    margin: 0;
    letter-spacing: normal;
    background: url('../images/index/jp_pop_month_title.webp') center / contain no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

/* 四列：4萬 / 3萬 / 2萬 / 1萬，x338 寬 325 */
.index .jackpot_pool_month_list {
    position: static;
    display: block;
    width: auto;
    gap: 0;
    margin: 0;
}

.index .jackpot_pool_month_row {
    position: absolute;
    left: 33.8%;
    width: 32.5%;
    height: 5.2%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    /* 這裡不能用 %：絕對定位元素的 padding 百分比是對「包含區塊」1000px 算，
       會變成左右各 135px 左右，把文字擠成直排。 */
    padding: 0 2.5rem 0 2.444rem;
    background: #5439a5;
    border-radius: 999px;
}

.index .jackpot_pool_month_row:nth-child(1) {
    top: 71.8%;
}

.index .jackpot_pool_month_row:nth-child(2) {
    top: 78.4%;
}

.index .jackpot_pool_month_row:nth-child(3) {
    top: 85.0%;
}

.index .jackpot_pool_month_row:nth-child(4) {
    top: 91.6%;
}

/* 珠數：金色漸層字 + 白色描邊（疊兩層） */
.index .jackpot_pool_month_row .tier {
    position: relative;
    display: inline-block;
    font-size: 1.278rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.index .jackpot_pool_month_row .tier>span:first-child {
    position: absolute;
    inset: 0;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.2rem #af4c00;
    text-shadow: 0 0.096rem 0 #901f00;
}

.index .jackpot_pool_month_row .tier>span+span {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, #FDF971 0%, #FDF971 44.23%, #FF9D00 53.85%, #FFD884 79.81%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* 次數：設計稿沒有描邊，維持單層純色 */
.index .jackpot_pool_month_row .count {
    font-size: 1.778rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffea31;
}

.index .jackpot_pool_month_row .unit {
    font-size: 1.444rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
}

/* 關閉鈕：縮在卡片右上角內側 */
.index .jackpot_pool_close {
    top: 1.5%;
    right: 1.5%;
    width: 2.222rem;
    height: 2.222rem;
    z-index: 5;
}

.index .jackpot_pool_close img {
    width: 100%;
    height: 100%;
}

/* PAD（551~1000px）：彈窗被 96vw 卡住、rem 卻是 2vw，字級統一 ×0.864 */
@media screen and (max-width: 1000px) and (min-width: 551px) {
    .index .jackpot_pool_tier {
        font-size: 1.008rem;
    }

    .index .jackpot_pool_times {
        font-size: 0.96rem;
    }

    .index .jackpot_pool_tier>span:first-child,
    .index .jackpot_pool_times>span:first-child {
        -webkit-text-stroke-width: 0.168rem;
    }

    .index .jackpot_pool_amount .home_jp_num {
        font-size: 1.92rem;
    }

    .index .jackpot_pool_amount .home_jp_num>span:first-child {
        -webkit-text-stroke-width: 0.297rem;
    }

    .index .jackpot_pool_month_row {
        padding: 0 2.16rem 0 2.112rem;
    }

    .index .jackpot_pool_month_row .tier {
        font-size: 1.104rem;
    }

    .index .jackpot_pool_month_row .tier>span:first-child {
        -webkit-text-stroke-width: 0.173rem;
        text-shadow: 0 0.083rem 0 #901f00;
    }

    .index .jackpot_pool_month_row .count {
        font-size: 1.536rem;
    }

    .index .jackpot_pool_month_row .unit {
        font-size: 1.248rem;
    }
}

/* 手機（≤550px）：rem 是 3.3333vw，字級統一 ×0.518 */
@media screen and (max-width: 550px) {
    .index .jackpot_pool_tier {
        font-size: 0.9rem;
    }

    .index .jackpot_pool_times {
        font-size: 0.9rem;
    }

    .index .jackpot_pool_tier>span:first-child,
    .index .jackpot_pool_times>span:first-child {
        -webkit-text-stroke-width: 0.1rem;
    }

    .index .jackpot_pool_amount .home_jp_num {
        font-size: 1.1rem;
    }

    .index .jackpot_pool_amount .home_jp_num>span:first-child {
        -webkit-text-stroke-width: 0.178rem;
    }

    .index .jackpot_pool_month_row {
        padding: 0 1.295rem 0 1.266rem;
    }

    .index .jackpot_pool_month_row .tier {
        font-size: 1rem;
    }

    .index .jackpot_pool_month_row .tier>span:first-child {
        -webkit-text-stroke-width: 0.104rem;
        text-shadow: 0 0.05rem 0 #901f00;
    }

    .index .jackpot_pool_month_row .count {
        font-size: 1rem;
    }

    .index .jackpot_pool_month_row .unit {
        font-size: 0.9rem;
    }

    .index .jackpot_pool_close {
        width: 1.6rem;
        height: 1.6rem;
    }
}

/* ===================================================
   首頁：遊戲列表左右滑動箭頭（白底 + 橘漸層圓鈕，配 PLAY 紫色光暈）
   =================================================== */
.index .game_warpper .game_item_full .game_arrow {
    color: #ffffff;
    background: var(--grad-primary);
    border: 2px solid #ffffff;
    box-shadow: 0 3px 10px rgba(244, 98, 0, 0.35), 0 0 0 3px rgba(142, 107, 248, 0.18);
}

.index .game_warpper .game_item_full .game_arrow svg {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}