@charset "UTF-8";
:root {
  --brand: #ff8a00;
  --text: #e9edf1;
  --bg: #14142B;
  --panel: #14142B;
  --panel-2: #0f1622;
  --muted: #97a0ad;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --rad: 14px;
}

/* ===== 基本樣式 ===== */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
}

.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* ===== 側邊欄 (桌機) ===== */
.sidebar {
  background: #14142B;
  padding: 20px 20px 40px 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 260px;
  height: 100vh;
  overflow-y: auto;
  /* 如果內容超出就滾動 */
}

.sidebar .nav {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-top: 0px;
}

.brand {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 8px 0;
}

.brand img {
  height: 40px;
  width: auto;
  display: block;
}

/* nav 項目排版：圖示在左，文字在右 */
.nav a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 8px;
  padding: 10px;
  color: var(--text);
  text-decoration: none;
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
  font-size: 20px;
  line-height: 48px;
}

/* Hover / Active 狀態文字 & icon 一起變色 */
.nav a:hover {
  color: #FFCC00;
}

/* mask 版本（可跟著 color 變色） */
.nav .mask-icon {
  width: 30px;
  height: 30px;
  background-color: currentColor;
  -webkit-mask: var(--icon) center/contain no-repeat;
  mask: var(--icon) center/contain no-repeat;
  display: block;
}

/* fallback 版本（純 img）預設隱藏 */
.nav .img-fallback {
  width: 20px;
  height: 20px;
  display: none;
}

/* 若不支援 mask，自動用 <img> */
@supports not (-webkit-mask: url("")) {
  .nav .mask-icon {
    display: none;
  }
  .nav .img-fallback {
    display: block;
  }
}
/* 指定每個選單項目的 icon 路徑 */
.nav .s1 {
  --icon: url("../../images/icon_hot.svg");
}

.nav .s2 {
  --icon: url("../../images/icon_new.svg");
}

.nav .s3 {
  --icon: url("../../images/icon_slot4.svg");
}

.nav .s4 {
  --icon: url("../../images/icon-fish.svg");
}

.nav .s5 {
  --icon: url("../../images/icon_table2.svg");
}

.nav .s6 {
  --icon: url("../../images/icon_bingo2.svg");
}

.nav .s7 {
  --icon: url("../../images/icon_casino.svg");
}

/* ===== Wallet 區塊 ===== */
.wallet {
  margin-top: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 10px;
}

.amount {
  background: #FFCC00;
  color: #111;
  padding: 8px 10px;
  border-radius: 20px;
  text-align: center;
  font-weight: bold;
  margin-bottom: 10px;
  margin: 0 8px 0 8px;
}

/* ===== User 區塊 ===== */
.user {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  margin-left: auto;
}

.user_tools {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  margin: auto;
}

.user-group {
  gap: 9px;
  padding: 5px 5px;
  text-align: center;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #555;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 30px;
          flex: 0 0 30px;
}

.userinfo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.welcome-text {
  color: #97a0ad;
  text-align: center;
  /* 灰色 */
  font-size: 15px;
}

.username {
  color: #ffd36a;
  font-size: 16px;
  max-width: 320px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 15px;
}

.drawer {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2001 !important;
}

/* 手機抽屜內縮小字級 */
.drawer .welcome-text {
  font-size: 16px;
}

.drawer .username {
  font-size: 17px;
}

/* 避免抽屜開啟時 topbar 還攔截點擊（保險用） */
body.no-scroll .topbar {
  pointer-events: none;
}

/* ===== 主內容 ===== */
.main {
  padding: 0px 30px 20px 40px;
  padding-top: 30px;
  /* 預留 topbar 高度 */
}
@media (max-width: 768px) {
  .main {
    padding: 0px;
    padding-top: 70px;
    /* 預留 topbar 高度 */
  }
}

:root {
  --banner-gap: 16px;
  --banner-radius: 20px;
}

.prev-section {
  padding-bottom: 1px;
  margin-bottom: calc(var(--banner-top-gap) - 1px);
}

.banner {
  border-radius: var(--banner-radius);
  background: none !important;
  height: auto !important;
  width: 100%;
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
}

.banner-track {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  overflow: hidden;
  gap: var(--banner-gap);
  scroll-padding-right: var(--banner-gap);
  -ms-scroll-snap-type: x mandatory;
      scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.banner-slide {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 50%;
          flex: 0 0 50%;
  /* 桌機一次 2 張 */
  scroll-snap-align: start;
  background-image: var(--bg);
  background-position: center;
  background-size: cover;
  border-radius: 12px;
  overflow: hidden;
  background-repeat: no-repeat;
  position: relative;
}

/* 1920x600 比例盒（600/1920 = 31.25%） */
.banner-slide::before {
  content: "";
  display: block;
  padding-top: 31.25%;
}

/* 3) 保持整數卡寬：桌機兩張、手機一張 */
@media (min-width: 1025px) {
  .banner-slide {
    -webkit-box-flex: 0 !important;
        -ms-flex: 0 0 50% !important;
            flex: 0 0 50% !important;
  }
}
@media (max-width: 1024px) {
  .banner-slide {
    -webkit-box-flex: 0 !important;
        -ms-flex: 0 0 100% !important;
            flex: 0 0 100% !important;
  }
}
@media (max-width: 1024px) {
  .banner-track {
    padding-left: 0 !important;
    padding-right: 0 !important;
    scroll-padding-left: 0 !important;
    /* snap 從最左開始 */
    gap: 0 !important;
    /* 只有一張時不需要間距 */
  }
  .banner-slide {
    -ms-flex-preferred-size: 100% !important;
        flex-basis: 100% !important;
  }
}
/* 容器 */
.search {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .search {
    padding: 0 10px;
  }
}

.search .btn-submit {
  padding: 0 12px;
  border-radius: var(--rad);
  border: 1px solid #444;
  background: var(--panel);
  color: var(--text);
}

/* 內部包一層，放左右 icon */
.search-box {
  position: relative;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}

/* 輸入框：為了放左右 icon，要預留 padding */
.search-box input {
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  padding: 10px 40px 10px 40px;
  /* 左右各留 42px */
  border-radius: 50px;
  border: 2px solid #444;
  background: var(--panel);
  color: var(--text);
}

/* 通用 icon 尺寸 */
.search-box .icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* 左側放大鏡（mask 可跟 color 變色） */
.search-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  background-color: var(--muted);
  -webkit-mask: url("../../images/icon_search.svg") center/contain no-repeat;
  mask: url("../../images/icon_search.svg") center/contain no-repeat;
}

.search-box input:focus {
  outline: none;
  border-color: #FFCC00;
  -webkit-box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06) inset;
          box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06) inset;
}

/* 右側清除鍵（X） */
.btn-clear {
  position: absolute;
  /* 固定在輸入框內，不參與排版 */
  right: 6px;
  /* 與右邊距離 */
  top: 50%;
  /* 垂直置中 */
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.btn-clear .icon-clear,
.btn-clear img {
  width: 32px;
  height: 32px;
}

/* Chrome / Safari / 新版 Edge (Blink/WebKit) */
input[type=search]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
  /* 隱藏內建 X */
}

input[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
  /* 移除預設搜尋裝飾 */
}

/* 舊版 Edge / IE */
input[type=search]::-ms-clear,
input[type=search]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
@media (max-width: 768px) {
  .grid {
    padding: 0px 15px;
  }
}

.card {
  background: var(--panel);
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  overflow: hidden;
  border-radius: 20px;
}

.thumb {
  aspect-ratio: 16/11;
  background: #555;
}

.meta {
  padding: 10px;
}

/* ===== 手機 topbar ===== */
.topbar {
  position: fixed;
  /* 固定在畫面 */
  top: 0;
  /* 距離上方 0 */
  left: 0;
  /* 靠左 */
  right: 0;
  /* 靠右 */
  z-index: 999;
  /* 在最上層 */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 10px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar .brand {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.topbar .brand img {
  height: 32px;
  width: auto;
}

/* 漢堡：桌機隱藏、手機顯示 */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

.icon-btn {
  background: transparent;
  border: none;
  color: #e9edf1;
  font-size: 20px;
  cursor: pointer;
}

/* ===== 手機抽屜 (側邊選單) ===== */
.drawer {
  display: none;
  position: fixed;
  inset: 0;
}

.drawer.active {
  display: block;
}

.drawer .mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.drawer .close {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
}

.drawer .close:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 8px;
}

.drawer .close {
  margin-left: auto;
}

.drawer .close::before {
  content: none !important;
}

.drawer .close {
  width: 48px;
  height: 48px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 48px 48px;
  margin-left: 0;
  border: 0;
  cursor: pointer;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

@supports (image-set: url("x") 1x) {
  .drawer .close {
    background-image: -webkit-image-set(url("../../images/icon_close2.png") 1x, url("../../images/icon_close2@2x.png") 2x, url("../../images/icon_close2@3x.png") 3x);
    background-image: image-set(url("../../images/icon_close2.png") 1x, url("../../images/icon_close2@2x.png") 2x, url("../../images/icon_close2@3x.png") 3x);
  }
}
.bn-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.bn-item svg {
  width: 24px;
  height: 24px;
}

.bn-item.active {
  color: #ffd36a;
}

/* 熱門遊戲：黃字 */
.bn-item:not(.active) {
  color: #fff;
  opacity: 0.9;
}

/* 右側：金額膠囊 + 兩個圖示 */
.bn-right {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  gap: 6px;
  margin-top: -90px;
}

.bn-right .icons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  /* 紀錄、我的之間的間距 */
}

.games-fab {
  justify-self: center;
}

.wallet-chip {
  background: #FFCC00;
  color: #111;
  padding: 6px 10px;
  border-radius: 20px;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
}

.icon-tile {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  color: #cfd6df;
  text-decoration: none;
}

.icon-tile.round {
  border-radius: 50%;
}

.icon-tile svg {
  width: 24px;
  height: 24px;
}

/* 中央浮起 FAB：黑底大圓，置中且蓋住導覽列上緣 */
.games-fab {
  position: absolute;
  left: 50%;
  bottom: 28px;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #000;
  margin-bottom: 20px;
  color: #fff;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 8px;
  -webkit-box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
          box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  z-index: 31;
  pointer-events: auto;
  background: linear-gradient(#000, #000) padding-box, linear-gradient(45deg, #ff8a00, #ffcc00) border-box;
  /* 邊框漸層 */
  border: 2px solid transparent;
  /* 這樣才能露出 border-box 背景 */
}

.games-fab strong {
  font-size: 18px;
  letter-spacing: 0.3px;
}

/* =========================
手機底部導覽（新版）
   ========================= */
.bottom-nav {
  position: fixed;
  inset: auto 0 0 0;
  background: #24263A;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  /* 左右兩區，中央 FAB 置絕對 */
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0px 10px 30px 10px;
  z-index: 30;
  height: 80px;
}

.bn-btn {
  display: none !important;
}

.bn-left {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0 0 0 6px;
  gap: 14px;
  height: 100px;
}

/* 其他：白色 */
.icon-tile {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  color: #cfd6df;
  text-decoration: none;
}

.icon-tile.round {
  border-radius: 50%;
}

.icon-tile svg {
  width: 24px;
  height: 24px;
}

/* iOS 安全區域 */
@supports (padding: max(0px)) {
  .bottom-nav {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .games-fab {
    bottom: calc(28px + env(safe-area-inset-bottom));
  }
}
/* 只在手機顯示底部導覽 */
@media (max-width: 1024px) {
  .bottom-nav {
    display: block;
  }
}
@media (min-width: 1025px) {
  .bottom-nav {
    display: none !important;
  }
}
/* =========================
Radial 彈出選單（對齊 FAB）
   ========================= */
/* 只在手機使用 radial（桌機完全不顯示） */
@media (min-width: 1025px) {
  .radial {
    display: none !important;
  }
}
/* 手機：radial 位置與層級 */
@media (max-width: 1024px) {
  .radial {
    position: fixed;
    left: 50%;
    bottom: 88px;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    width: 100vw;
    height: 68vw;
    overflow: visible;
    pointer-events: none;
    z-index: 10;
    --arc-w: 380px;
  }
  /* 半圓底：預設隱藏（未開啟不顯示） */
  .radial::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100vw;
    /* 半圓滿版 */
    height: 50vw;
    -webkit-transform: translateX(-50%) scaleY(0);
            transform: translateX(-50%) scaleY(0);
    /* 收起 */
    -webkit-transform-origin: center bottom;
            transform-origin: center bottom;
    opacity: 0;
    background: rgba(24, 32, 46, 0.9);
    /* 半透明底色 */
    border-top-left-radius: 100vw;
    /* 做出完整半圓弧度 */
    border-top-right-radius: 100vw;
    z-index: 0;
    -webkit-transition: opacity 0.25s ease, -webkit-transform 0.28s ease;
    transition: opacity 0.25s ease, -webkit-transform 0.28s ease;
    transition: opacity 0.25s ease, transform 0.28s ease;
    transition: opacity 0.25s ease, transform 0.28s ease, -webkit-transform 0.28s ease;
    /* 選配：毛玻璃 */
    /* backdrop-filter: blur(4px); */
  }
  /* 開啟圓形選單時才顯示半圓底 */
  .radial.open::before {
    -webkit-transform: translateX(-50%) scaleY(1);
            transform: translateX(-50%) scaleY(1);
    opacity: 1;
  }
  /* 圓形按鈕一律在半圓底之上且可點擊 */
  .radial .item {
    position: absolute;
    z-index: 1;
    pointer-events: auto;
  }
  /* 小螢幕微調半圓大小 */
}
@media (max-width: 1024px) and (max-width: 380px) {
  .radial {
    --arc-w: 320px;
  }
}
/* 基本造型 + 動畫基線 */
.radial .item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 75px;
  height: 75px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  -webkit-box-shadow: var(--shadow, 0 10px 30px rgba(0, 0, 0, 0.35));
          box-shadow: var(--shadow, 0 10px 30px rgba(0, 0, 0, 0.35));
  color: var(--text, #ffffff);
  -webkit-transform: translate(-50%, -50%) scale(0.6);
          transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.24s ease, background 0.2s ease, border-color 0.2s ease, -webkit-transform 0.36s cubic-bezier(0.2, 0.9, 0.2, 1.2), -webkit-box-shadow 0.2s ease;
  transition: opacity 0.24s ease, background 0.2s ease, border-color 0.2s ease, -webkit-transform 0.36s cubic-bezier(0.2, 0.9, 0.2, 1.2), -webkit-box-shadow 0.2s ease;
  transition: transform 0.36s cubic-bezier(0.2, 0.9, 0.2, 1.2), opacity 0.24s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  transition: transform 0.36s cubic-bezier(0.2, 0.9, 0.2, 1.2), opacity 0.24s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, -webkit-transform 0.36s cubic-bezier(0.2, 0.9, 0.2, 1.2), -webkit-box-shadow 0.2s ease;
}

.radial .item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: rgb 255, 255, 255 f1;
  /* 預設 icon + 文字顏色 */
}

.radial .item .icon {
  width: 28px;
  height: 28px;
  background-color: currentColor;
  -webkit-mask: var(--icon) center/contain no-repeat;
  mask: var(--icon) center/contain no-repeat;
  display: block;
}

/* —— fallback 版本（純 img） —— */
.radial .item .img-fallback {
  width: 28px;
  height: 28px;
  display: none;
  /* 預設隱藏 */
}

/* 如果不支援 mask，就顯示 img */
@supports not (-webkit-mask: url("")) {
  .radial .item .mask-icon {
    display: none;
  }
  .radial .item .img-fallback {
    display: block;
  }
}
/* Hover / Active 狀態可以改色（mask 版本有效） */
.radial .item:hover {
  color: #ffd36a;
}

.radial .item:active {
  color: #ffb84d;
}

.radial.open .item {
  opacity: 1;
  pointer-events: auto;
}

/* 開啟時可互動 */
.radial .item:hover {
  background: #1f2736;
  border-color: rgba(255, 255, 255, 0.25);
  -webkit-box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
          box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

/* —— 固定位移（半圓排布：上、左上、右上、最左、最右） —— */
/* 開啟時的位置（可依需求微調像素來「拉開」或「貼邊」） */
.radial.open .item.s1 {
  -webkit-transform: translate(-50%, 50%) translateY(-90px) scale(1);
          transform: translate(-50%, 50%) translateY(-90px) scale(1);
  -webkit-transition-delay: 40ms;
          transition-delay: 40ms;
}

/* 上 */
.radial.open .item.s5 {
  -webkit-transform: translate(-30%, -40%) translate(-90px, 20px) scale(1);
          transform: translate(-30%, -40%) translate(-90px, 20px) scale(1);
  -webkit-transition-delay: 120ms;
          transition-delay: 120ms;
}

/* 左上 */
.radial.open .item.s2 {
  -webkit-transform: translate(-70%, -40%) translate(90px, 20px) scale(1);
          transform: translate(-70%, -40%) translate(90px, 20px) scale(1);
  -webkit-transition-delay: 80ms;
          transition-delay: 80ms;
}

/* 右上 */
.radial.open .item.s3 {
  -webkit-transform: translate(-50%, -50%) translateX(-140px) translateY(80px) scale(1);
          transform: translate(-50%, -50%) translateX(-140px) translateY(80px) scale(1);
  -webkit-transition-delay: 200ms;
          transition-delay: 200ms;
}

/* 最左 */
.radial.open .item.s4 {
  -webkit-transform: translate(-50%, -50%) translateX(140px) translateY(80px) scale(1);
          transform: translate(-50%, -50%) translateX(140px) translateY(80px) scale(1);
  -webkit-transition-delay: 160ms;
          transition-delay: 160ms;
}

/* 最右 */
/* 關閉時取消延遲，較快收回 */
.radial:not(.open) .item {
  -webkit-transition-delay: 0ms;
          transition-delay: 0ms;
}

/* 小螢幕(<=380px)略縮半徑，避免出框 */
@media (max-width: 380px) {
  .radial {
    width: 230px;
    height: 230px;
  }
  .radial.open .item.s1 {
    -webkit-transform: translate(-50%, -50%) translateY(-110px) scale(1);
            transform: translate(-50%, -50%) translateY(-110px) scale(1);
  }
  .radial.open .item.s5 {
    -webkit-transform: translate(-50%, -50%) translate(-100px, -60px) scale(1);
            transform: translate(-50%, -50%) translate(-100px, -60px) scale(1);
  }
  .radial.open .item.s2 {
    -webkit-transform: translate(-50%, -50%) translate(100px, -60px) scale(1);
            transform: translate(-50%, -50%) translate(100px, -60px) scale(1);
  }
  .radial.open .item.s3 {
    -webkit-transform: translate(-50%, -50%) translateX(-140px) scale(1);
            transform: translate(-50%, -50%) translateX(-140px) scale(1);
  }
  .radial.open .item.s4 {
    -webkit-transform: translate(-50%, -50%) translateX(140px) scale(1);
            transform: translate(-50%, -50%) translateX(140px) scale(1);
  }
}
/* 動畫減量支援 */
@media (prefers-reduced-motion: reduce) {
  .radial .item,
  .radial.open .item {
    -webkit-transition: none !important;
    transition: none !important;
  }
  .radial .item {
    -webkit-transform: translate(-50%, -50%) !important;
            transform: translate(-50%, -50%) !important;
    opacity: 0;
  }
  .radial.open .item {
    opacity: 1;
    pointer-events: auto;
  }
}
@media (min-width: 1025px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    /* 只跟視窗一樣高 */
    overflow-y: auto;
    /* 內容超出可自滾 */
    z-index: 900;
  }
  /* 固定後 sidebar 脫離文流，右側內容預留空間 */
  .main {
    margin-left: 260px;
    /* 預留與 sidebar 同寬 */
  }
  /* 原本 .app 用 grid 的第一欄位就不需要了，改成單欄 */
  .app {
    grid-template-columns: 1fr;
    /* 取消 260px 1fr 的雙欄 */
  }
}
/* ===== 響應式 ===== */
@media (max-width: 1024px) {
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bottom-nav {
    display: block;
  }
  .mobile-only {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
  /* 確保手機上顯示 topbar */
  .hamburger {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-only {
    display: none !important;
  }
  .drawer,
  .bottom-nav {
    display: none !important;
  }
}
/* 手機 topbar 一定要顯示 */
@media (max-width: 1024px) {
  .mobile-only {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
  }
  .mobile-only .hamburger {
    display: block !important;
  }
}
/* 桌機隱藏手機 topbar/抽屜/底部導覽 */
@media (min-width: 1025px) {
  .mobile-only {
    display: none !important;
  }
  .drawer,
  .bottom-nav {
    display: none !important;
  }
}
/* 五顆按鈕各自的 icon 路徑 */
.radial .s1 {
  --icon: url("../../images/icon_slot4.svg");
}

.radial .s2 {
  --icon: url("../../images/icon-fish.svg");
}

.radial .s3 {
  --icon: url("../../images/icon_table2.svg");
}

.radial .s4 {
  --icon: url("../../images/icon_bingo2.svg");
}

.radial .s5 {
  --icon: url("../../images/icon_casino.svg");
}

/* Wallet 置底 */
.sidebar .wallet {
  margin-top: auto;
  margin-bottom: 50px;
}

.drawer .wallet {
  margin-top: auto;
  padding-bottom: 20px;
  /* 給額外空間 */
}

/* 抽屜：初始在畫面外、滑入動畫 */
.drawer {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 200;
}

.drawer .mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  -webkit-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
}

.drawer .panel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: min(78vw, 260px);
  background: var(--panel-2);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-transform: translateX(-100%);
          transform: translateX(-100%);
  /* 起始在左邊畫面外 */
  -webkit-transition: -webkit-transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
  transition: -webkit-transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1), -webkit-transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: transform;
  padding: 0px 20px 0px 20px;
}

/* 開啟狀態：滑入 + 淡入 */
.drawer.active {
  display: block;
}

.drawer.active .panel {
  -webkit-transform: translateX(0);
          transform: translateX(0);
}

.drawer.active .mask {
  opacity: 1;
}

/* 開啟時鎖住背景捲動（JS 會在 <body> 加 .no-scroll） */
body.no-scroll {
  overflow: hidden;
}

/* 1) 手機一定顯示 topbar 與漢堡；桌機隱藏 */
@media (max-width: 1024px) {
  .mobile-only {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
  .mobile-only .hamburger {
    display: -webkit-inline-box !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
  }
}
@media (min-width: 1025px) {
  .mobile-only {
    display: none !important;
  }
}
/* 手機版漢堡按鈕 */
.hamburger {
  position: relative;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--text);
}

/* 三條線 */
.hamburger span,
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  -webkit-transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
  transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transition: transform 0.25s ease, opacity 0.25s ease, -webkit-transform 0.25s ease;
}

.hamburger span {
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

.hamburger::before {
  top: 12px;
}

.hamburger::after {
  bottom: 12px;
}

.icon-btn.avatar {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.icon-btn.avatar img {
  width: 40px;
  height: 40px;
  display: block;
  -webkit-filter: brightness(0) saturate(100%) invert(30%) sepia(10%) saturate(269%) hue-rotate(196deg) brightness(152%) contrast(150%);
          filter: brightness(0) saturate(100%) invert(30%) sepia(10%) saturate(269%) hue-rotate(196deg) brightness(152%) contrast(150%);
  padding: 0 0 0 6px;
  -webkit-transition: -webkit-filter 0.25s ease;
  transition: -webkit-filter 0.25s ease;
  transition: filter 0.25s ease;
  transition: filter 0.25s ease, -webkit-filter 0.25s ease;
}

.icon-btn.report {
  background: #242445;
  border: none;
  padding: 7px 38px;
  cursor: pointer;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 10px;
  -webkit-transition: background 0.25s ease;
  transition: background 0.25s ease;
}

.icon-btn.report:hover {
  background: #3c3263;
}

.icon-btn.report img {
  width: 40px;
  height: 40px;
  display: block;
  -webkit-filter: brightness(0) saturate(100%) invert(30%) sepia(10%) saturate(269%) hue-rotate(196deg) brightness(152%) contrast(150%);
          filter: brightness(0) saturate(100%) invert(30%) sepia(10%) saturate(269%) hue-rotate(196deg) brightness(152%) contrast(150%);
  -webkit-transition: -webkit-filter 0.25s ease;
  transition: -webkit-filter 0.25s ease;
  transition: filter 0.25s ease;
  transition: filter 0.25s ease, -webkit-filter 0.25s ease;
}

.icon-btn.report:hover img {
  -webkit-filter: brightness(0) saturate(100%) invert(73%) sepia(96%) saturate(749%) hue-rotate(359deg) brightness(103%) contrast(106%);
          filter: brightness(0) saturate(100%) invert(73%) sepia(96%) saturate(749%) hue-rotate(359deg) brightness(103%) contrast(106%);
}

.icon-btn.arrow {
  background: #242445;
  border: none;
  padding: 7px 38px;
  cursor: pointer;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 10px;
  -webkit-transition: background 0.25s ease;
  transition: background 0.25s ease;
}

.icon-btn.arrow:hover {
  background: #3c3263;
}

.icon-btn.arrow img {
  width: 40px;
  height: 40px;
  display: block;
  -webkit-filter: brightness(0) saturate(100%) invert(30%) sepia(10%) saturate(269%) hue-rotate(196deg) brightness(152%) contrast(150%);
          filter: brightness(0) saturate(100%) invert(30%) sepia(10%) saturate(269%) hue-rotate(196deg) brightness(152%) contrast(150%);
  -webkit-transition: -webkit-filter 0.25s ease;
  transition: -webkit-filter 0.25s ease;
  transition: filter 0.25s ease;
  transition: filter 0.25s ease, -webkit-filter 0.25s ease;
}

.icon-btn.arrow:hover img {
  -webkit-filter: brightness(0) saturate(100%) invert(73%) sepia(96%) saturate(749%) hue-rotate(359deg) brightness(103%) contrast(106%);
          filter: brightness(0) saturate(100%) invert(73%) sepia(96%) saturate(749%) hue-rotate(359deg) brightness(103%) contrast(106%);
}

.bn-left .bn-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  /* 預設色（icon + 文字） */
  font-weight: 700;
  font-size: 16px;
  -webkit-transition: color 0.2s ease, opacity 0.2s ease;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.bn-left .bn-item.active {
  color: #ffcc00;
}

/* 當前頁：黃 */
.bn-left .bn-item:hover {
  color: #ffcc00;
}

/* hover 更亮 */
.bn-left .bn-item:active {
  color: #ffcc00;
}

/* 點擊色 */
/* ICON：優先用 mask（跟著 color 變色） */
.bn-left .bn-icon {
  width: 32px;
  height: 32px;
  display: block;
}

.bn-left .mask-icon {
  background-color: currentColor;
  -webkit-mask: var(--icon) center/contain no-repeat;
  mask: var(--icon) center/contain no-repeat;
}

.bn-left .img-fallback {
  display: none;
  width: 24px;
  height: 24px;
}

/* 不支援 mask → 顯示 <img> 後備 */
@supports not (-webkit-mask: url("")) {
  .bn-left .mask-icon {
    display: none;
  }
  .bn-left .img-fallback {
    display: block;
  }
}
/* 文字 */
.bn-left .bn-label {
  line-height: 1;
}

/* 指定各項目的外部 SVG 路徑（可依實際檔名調整） */
.bn-left .s-hot {
  --icon: url("../../images/icon_hot.svg");
}

.bn-left .s-new {
  --icon: url("../../images/icon_new.svg");
}

/* 小尺寸可微調 icon 與字級 */
@media (max-width: 380px) {
  .bn-left .bn-icon {
    width: 22px;
    height: 22px;
  }
  .bn-left .bn-item {
    font-size: 11px;
  }
}
.section-title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  /* icon 與文字間距 */
  font-size: 20px;
  color: #FFCC00;
  font-weight: 500;
}
@media (max-width: 768px) {
  .section-title {
    padding: 0 10px;
  }
}

/* 通用 icon 大小 */
.section-title .icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  background-color: currentColor;
  /* 跟文字同色 */
}

/* 這裡放你的 SVG 檔 */
.section-title .icon.hot {
  -webkit-mask: url("../../images/icon_hot.svg") center/contain no-repeat;
  mask: url("../../images/icon_hot.svg") center/contain no-repeat;
}

.section-title .icon.new {
  -webkit-mask: url("../../images/icon_new.svg") center/contain no-repeat;
  mask: url("../../images/icon_new.svg") center/contain no-repeat;
}

.section-title .icon.slot {
  -webkit-mask: url("../../images/icon_slot4.svg") center/contain no-repeat;
  mask: url("../../images/icon_slot4.svg") center/contain no-repeat;
}

.section-title .icon.fish {
  -webkit-mask: url("../../images/icon-fish.svg") center/contain no-repeat;
  mask: url("../../images/icon-fish.svg") center/contain no-repeat;
}

.section-title .icon.table {
  -webkit-mask: url("../../images/icon_table2.svg") center/contain no-repeat;
  mask: url("../../images/icon_table2.svg") center/contain no-repeat;
}

.section-title .icon.bingo {
  -webkit-mask: url("../../images/icon_bingo2.svg") center/contain no-repeat;
  mask: url("../../images/icon_bingo2.svg") center/contain no-repeat;
}

.section-title .icon.casino {
  -webkit-mask: url("../../images/icon_casino.svg") center/contain no-repeat;
  mask: url("../../images/icon_casino.svg") center/contain no-repeat;
}


/* 選單底色卡片（桌機、手機抽屜皆可套用） */
.nav-panel {
  background: #242445;
  border-radius: 10px;
  padding: 14px 20px;
  margin: 20px 6px;
  height: 100%;
  -webkit-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
          box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
@media (max-width: 768px) {
  .nav-panel {
    margin: 60px 4px 20px;
  }
}

/* 讓 nav 項目在卡片內排版漂亮一些（可保留你原有的） */
.nav-panel .nav a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 10px;
  /* 每個項目也可有小圓角 */
}

.nav-panel .nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* 抽屜內若需要更緊湊可以微調 */
.drawer .nav-panel {
  padding: 12px 12px;
  border-radius: 14px;
}

/* GRID：桌機8欄；手機兩欄 */
.grid.gamelist {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 16px;
}

/* 卡片與縮圖 */
.gamelist .card {
  aspect-ratio: 13/19;
  background: #0b0f18;
  overflow: hidden;
  position: relative;
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  border-radius: 20px;
  max-height: 260px;
}

.gamelist .card::before {
  content: none;
}

/* 可選：手機降低高度 */
@media (max-width: 1024px) {
  .gamelist .card {
    width: 44vw;
    max-width: 160px;
  }
}
@media (max-width: 1024px) {
  .grid.gamelist {
    grid-template-columns: repeat(2, auto);
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 16px; /* 想更緊就改 8 */
  }
}
@media (max-width: 1024px) {
  .gamelist .card.featured {
    width: calc(88vw + 12px); /* 2*44vw + gap */
    aspect-ratio: 26/19;
    max-width: 340px;
  }
}
.gamelist .thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* ============ 第一張：只跨兩欄，與其它卡同高 ============ */
.gamelist .card.featured {
  grid-column: span 2;
  aspect-ratio: 28/19;
}

/* Hover 遮罩 + 置中按鈕區 */
.gamelist .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  /* 上下排列 PLAY / DEMO */
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 10px;
  opacity: 0;
  -webkit-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
}

.gamelist .card:hover .overlay {
  opacity: 1;
}

/* 右上角分類標籤 */
.gamelist .tag {
  position: absolute;
  top: 0px;
  right: 0px;
  padding: 8px 10px 6px 24px;
  border-radius: 20px 0px 0px 20px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #fff;
  -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
          box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
  .gamelist .tag {
    font-size: 14px;
  }
}

.gamelist .tag.new {
  background: #00B931;
}

.gamelist .tag.hot {
  background: #FF0000;
}

.gamelist .tag.promo {
  background: #0036E6;
}

.gamelist .tag.exclusive {
  background: #B000F5;
}

/* 滑入行為：出現 PLAY/DEMO，並略暗背景 */
.gamelist .actions {
  position: absolute;
  inset: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 12px;
  background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.8)), to(rgba(0, 0, 0, 0.15)));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.15));
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
}

.gamelist .card:hover .actions {
  opacity: 1;
  pointer-events: auto;
}

.gamelist .card:hover .thumb {
  -webkit-transform: scale(1.03);
          transform: scale(1.03);
  -webkit-filter: brightness(0.9);
          filter: brightness(0.9);
}

/* 兩顆按鈕造型 */
/* 容器改成垂直排列 */
.gamelist .actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  /* ✅ 改為上下 */
  gap: 8px;
  /* 上下間距 */
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  /* 水平置中 */
  margin-top: 10px;
}

.gamelist .btn {
  min-width: 140px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 6px;
  cursor: pointer;
  color: #fff;
  -webkit-transition: background 0.2s ease, -webkit-transform 0.15s ease;
  transition: background 0.2s ease, -webkit-transform 0.15s ease;
  transition: background 0.2s ease, transform 0.15s ease;
  transition: background 0.2s ease, transform 0.15s ease, -webkit-transform 0.15s ease;
}

.gamelist .btn .mask-icon {
  width: 30px;
  height: 30px;
  background-color: currentColor;
  /* 跟文字同色 */
  -webkit-mask: var(--icon) center/contain no-repeat;
  mask: var(--icon) center/contain no-repeat;
  display: block;
}

/* PLAY */
.gamelist .btn.play {
  background: #ffcc00;
  color: #111;
  font-size: 20px;
  font-weight: 600;
  /* 黑字 */
}

.gamelist .btn.play:hover {
  background: #ffdb4d;
}

/* DEMO */
.gamelist .btn.demo {
  background: #222;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.gamelist .btn.demo:hover {
  background: #333;
}

/* 各自的 icon */
.play-ico {
  --icon: url("../../images/icon_play.svg");
}

.demo-ico {
  --icon: url("../../images/icon_eye.svg");
}

/* 觸控裝置可改為點一下顯示（選擇性） */
@media (hover: none) {
  .gamelist .card:active .actions {
    opacity: 1;
    pointer-events: none;
  }
  .gamelist .card:active .actions.hover-active{
    opacity: 1;
    pointer-events: auto;
  }
}
/* 新增：bottom-nav 高度變數 */
:root {
  --bn-h: 80px;
}

/* 手機：預留底部導覽的空間，避免內容被遮到 */
@media (max-width: 1024px) {
  .main {
    padding-bottom: calc(var(--bn-h) + 30px);
  }
}
/* iOS 安全區域補強 */
@supports (padding: max(0px)) {
  @media (max-width: 1024px) {
    .main {
      padding-bottom: calc(var(--bn-h) + max(30px, env(safe-area-inset-bottom)));
    }
  }
}

.popup {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.75);
  display: none;
}

.popup.active {
  display: block;
}

.popup .close {
  display: block;
  width: 40px;
  height: 40px;
  position: absolute;
  right: -25px;
  top: -25px;
  text-align: center;
  border-radius: 20px;
  background: #ffc107;
}

.popup .close::before {
  content: '\f00d';
  font-family: fontAwesome;
  font-size: 30px;
  width: 30px;
  height: 30px;
  line-height: 40px;
  color: #fff;
}

.popup .reportPage {
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
          transform: translateX(-50%) translateY(-50%);
  position: absolute;
}

.popup .reportPage iframe {
  width: 100%;
  height: 100%;
  background-color: #fff;
}

.icon-mobile-btn.report {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.icon-mobile-btn.report img {
  width: 40px;
  height: 40px;
  display: block;
  -webkit-filter: brightness(0) saturate(100%) invert(30%) sepia(10%) saturate(269%) hue-rotate(196deg) brightness(152%) contrast(150%);
          filter: brightness(0) saturate(100%) invert(30%) sepia(10%) saturate(269%) hue-rotate(196deg) brightness(152%) contrast(150%);
  padding: 0 0 0 6px;
  -webkit-transition: -webkit-filter 0.25s ease;
  transition: -webkit-filter 0.25s ease;
  transition: filter 0.25s ease;
  transition: filter 0.25s ease, -webkit-filter 0.25s ease;
}