/* ============================================================
   展示型版面(後台「🎨 首頁版面」切換)
   只在 <html data-style="showcase"> 時生效,原本樣式完全不受影響
   所有光暈都用 color-mix(var(--gold)) 計算 → 換主色自動跟著變
   ============================================================ */

[data-style="showcase"] {
  --glow:   color-mix(in srgb, var(--gold) 55%, transparent);
  --glow-s: color-mix(in srgb, var(--gold) 22%, transparent);
  --glow-xs:color-mix(in srgb, var(--gold) 10%, transparent);
  --wrap: 1200px;
}
[data-style="showcase"] body {
  overflow-x: clip;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 40% at 85% -5%, var(--glow-xs), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 85%, var(--gold) 4%) 0%, var(--bg) 40%, var(--bg-deep) 100%);
  background-attachment: fixed;
}
[data-style="showcase"] .container { max-width: var(--wrap); }

/* ---------- 共用元件換成主色光暈 ---------- */
[data-style="showcase"] .btn.primary {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-dim));
  color: var(--gold-ink); border: 1px solid var(--gold-hi);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 22px -6px var(--glow);
}
[data-style="showcase"] .btn.primary:hover {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: var(--gold-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 28px -6px var(--glow);
}
[data-style="showcase"] input:focus, [data-style="showcase"] select:focus, [data-style="showcase"] textarea:focus {
  box-shadow: 0 0 0 3px var(--glow-s);
}
[data-style="showcase"] .flash { background: linear-gradient(90deg, var(--glow-s), var(--glow-xs)); color: var(--text); }
[data-style="showcase"] .chat-fab { color: var(--gold-ink); box-shadow: 0 6px 22px -4px rgba(0,0,0,.5), 0 0 22px -4px var(--glow); }
[data-style="showcase"] .marquee-wrap { background: linear-gradient(90deg, var(--glow-xs), color-mix(in srgb, var(--surface) 60%, transparent)); }
[data-style="showcase"] .section-title { color: var(--text); }
[data-style="showcase"] .section-title::before {
  content: ''; width: 4px; height: 1em; background: var(--gold); border-radius: 2px;
  box-shadow: 0 0 10px var(--glow); margin-right: -.4rem;
}
[data-style="showcase"] .game-card { background: color-mix(in srgb, var(--surface) 88%, transparent); }
[data-style="showcase"] .game-card:hover {
  border-color: var(--gold);
  box-shadow: var(--glass), var(--sh-3), 0 0 26px -6px var(--glow);
}

/* ---------- 導覽列 ---------- */
[data-style="showcase"] .nav {
  padding: .7rem max(1.1rem, calc((100% - var(--wrap)) / 2 + 1.1rem));
  background: color-mix(in srgb, var(--bg-deep) 86%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand-sc { display: flex; align-items: center; gap: .6rem; }
.brand-sc .brand-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.brand-sc .brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; margin: 0;
  border-radius: 10px; font-size: 1.15rem; color: var(--gold);
  background: radial-gradient(circle at 50% 40%, var(--glow-s), transparent 70%), var(--surface2);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.08rem; font-weight: 800; color: var(--text); }
.brand-sub {
  font-family: 'Chakra Petch', ui-monospace, monospace; font-size: .64rem;
  letter-spacing: .22em; color: var(--muted); font-weight: 600; text-transform: uppercase;
}
[data-style="showcase"] .nav-links { gap: 1.05rem; }
[data-style="showcase"] .nav-links a, [data-style="showcase"] .nav-links .link-btn { font-size: .9rem; }
[data-style="showcase"] .nav-links a.accent { color: var(--gold); }

.nav-line-btn {
  display: inline-flex !important; align-items: center; gap: .4rem;
  background: #06C755; color: #fff !important; font-weight: 700 !important;
  padding: .42rem .95rem; border-radius: 999px;
  box-shadow: 0 2px 14px -4px rgba(6,199,85,.6);
}
.nav-line-btn:hover { background: #05B34C; }

.nav-search { display: flex; align-items: center; position: relative; }
.nav-search input {
  width: 180px; padding: .45rem 2.2rem .45rem .85rem; font-size: .86rem;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--line); border-radius: 8px;
}
.nav-search button {
  position: absolute; right: .35rem; background: none; border: 0; color: var(--muted);
  cursor: pointer; padding: .25rem; display: grid; place-items: center;
}
.nav-search button:hover { color: var(--gold); }

@media (min-width: 901px) {
  /* 桌機:購物車改成右側圖示按鈕,文字連結收起 */
  [data-style="showcase"] .nav-quick { display: flex; order: 3; }
  [data-style="showcase"] .nav-quick .cart-btn { border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); }
  [data-style="showcase"] .nav-links { order: 2; margin-left: auto; }
  [data-style="showcase"] .nav-links .nav-cart-text { display: none; }
  [data-style="showcase"] .nav-links a[href="/search"] { display: none; }
}
@media (max-width: 900px) {
  .nav-search { width: 100%; padding: .6rem 0 .2rem; }
  .nav-search input { width: 100%; }
  .nav-line-btn { justify-content: center; margin: .5rem 0; border-bottom: 0 !important; }
}

/* ---------- Hero 主視覺 ---------- */
.sc-hero {
  position: relative; isolation: isolate;
  width: 100vw; margin-left: calc(50% - 50vw);
  min-height: clamp(420px, 40vw, 540px);
  display: flex; align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  box-shadow: 0 1px 24px -6px var(--glow);
  overflow: hidden;
  background:
    linear-gradient(115deg, transparent 0 40%, var(--glow-xs) 40% 40.2%, transparent 40.2%),
    radial-gradient(ellipse 50% 70% at 10% 50%, color-mix(in srgb, var(--gold) 6%, transparent), transparent 70%),
    var(--bg-deep);
}
.sc-hero-art { position: absolute; inset: 0 0 0 38%; z-index: -1; }
.sc-hero-art .hero-media {
  width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
          mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
.sc-hero-art::after {   /* 上下壓暗,讓文字與導覽列更清楚 */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-deep) 35%, transparent), transparent 25%, transparent 75%, color-mix(in srgb, var(--bg-deep) 55%, transparent));
}
/* 沒上傳圖片時的裝飾光束 */
.sc-hero-deco { position: absolute; inset: 0; overflow: hidden; }
.sc-hero-deco::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 62% 50%, var(--glow-s), transparent 45%),
    repeating-linear-gradient(60deg, transparent 0 46px, color-mix(in srgb, var(--gold) 7%, transparent) 46px 47px),
    repeating-linear-gradient(-60deg, transparent 0 46px, color-mix(in srgb, var(--gold) 7%, transparent) 46px 47px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%);
          mask-image: linear-gradient(90deg, transparent, #000 35%);
}
.sc-hero-deco span {
  position: absolute; height: 2px; border-radius: 2px; right: -10%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 18px var(--glow); transform: rotate(-24deg); opacity: .75;
  animation: sc-beam 6s ease-in-out infinite;
}
.sc-hero-deco span:nth-child(1) { top: 30%; width: 70%; }
.sc-hero-deco span:nth-child(2) { top: 55%; width: 55%; animation-delay: -2s; opacity: .5; }
.sc-hero-deco span:nth-child(3) { top: 78%; width: 80%; animation-delay: -4s; opacity: .35; }
@keyframes sc-beam { 0%,100% { transform: translateX(0) rotate(-24deg); } 50% { transform: translateX(-6%) rotate(-24deg); } }

.sc-hero-inner {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: 3.2rem 1.1rem 3rem;
}
.sc-hero-inner > * { max-width: 600px; }
.sc-eyebrow {
  font-family: 'Chakra Petch', ui-monospace, monospace; font-size: .78rem;
  letter-spacing: .32em; color: var(--gold); text-transform: uppercase; margin-bottom: .9rem;
}
.sc-title {
  margin: 0 0 1.2rem; font-weight: 900; letter-spacing: .01em; line-height: 1.12;
  font-size: clamp(2.3rem, 5.6vw, 4.1rem); color: var(--text);
  text-shadow: 0 2px 18px rgba(0,0,0,.5);
}
.sc-line { display: block; }
.sc-title .hl, .sc-sub .hl, .sc-note .hl {
  font-style: normal; color: var(--gold);
  text-shadow: 0 0 22px var(--glow);
}
.sc-sub { color: var(--text); font-size: 1.02rem; margin: 0 0 1rem; opacity: .92; }
.sc-tags {
  list-style: none; padding: 0; margin: 0 0 1.7rem;
  display: flex; flex-wrap: wrap; gap: .45rem 1.3rem;
  font-size: .84rem; color: var(--text-dim);
}
.sc-tags li { display: flex; align-items: center; gap: .5rem; }
.sc-tags li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--glow); }
.sc-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.3rem; }
.sc-btn { padding: .85rem 1.5rem; font-size: .98rem; border-radius: 4px; }
.sc-btn.ghost {
  background: color-mix(in srgb, var(--bg-deep) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 30%, transparent);
}
.sc-btn.ghost:hover { border-color: var(--gold); background: var(--glow-xs); }
.sc-note { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------- 統計列 ---------- */
.sc-stats {
  display: grid; grid-template-columns: repeat(var(--n, 4), 1fr);
  margin: 1.8rem 0 1.4rem;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--glass), var(--sh-2); overflow: hidden;
}
.sc-stat { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.2rem; min-width: 0; }
.sc-stat + .sc-stat { border-left: 1px solid var(--line); }
.sc-stat-ic {
  flex: 0 0 auto; width: 50px; height: 50px; border-radius: 12px;
  display: grid; place-items: center; color: var(--gold);
  background: radial-gradient(circle at 50% 35%, var(--glow-s), transparent 75%), var(--surface2);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line));
  box-shadow: 0 0 18px -6px var(--glow);
}
.sc-stat-ic svg { width: 24px; height: 24px; }
.sc-stat-num {
  font-family: 'Chakra Petch', -apple-system, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1.15; white-space: nowrap;
}
.sc-stat-num small { font-size: .74rem; color: var(--muted); margin-left: .25rem; font-weight: 500; }
.sc-stat-label { font-size: .88rem; font-weight: 700; color: var(--text); margin-top: .15rem; }
.sc-stat-sub { font-size: .74rem; color: var(--muted); }

/* ---------- 大入口卡 ---------- */
.sc-entries { position: relative; margin: 2.4rem 0 2.2rem; display: flex; justify-content: center; align-items: flex-end; }
.sc-entry-row {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 320px));
  gap: 1.8rem; justify-content: center; width: 100%;
}
.sc-side {
  position: absolute; bottom: 0; z-index: 1; height: 112%; max-height: 420px; width: auto;
  pointer-events: none; filter: drop-shadow(0 0 22px var(--glow-s));
  -webkit-mask-image: linear-gradient(0deg, transparent, #000 18%);
          mask-image: linear-gradient(0deg, transparent, #000 18%);
}
.sc-side.left  { right: calc(50% + (var(--n, 2) * 320px + (var(--n, 2) - 1) * 1.8rem) / 2 - 3rem); }
.sc-side.right { left:  calc(50% + (var(--n, 2) * 320px + (var(--n, 2) - 1) * 1.8rem) / 2 - 3rem); }

.sc-entry { display: block; color: var(--text); text-decoration: none; --cut: 18px; }
.sc-entry-frame {
  position: relative; isolation: isolate; height: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 1rem 1rem 1.2rem;
  /* 外層 = 霓虹外框的顏色,內層 ::after = 卡片底色,內縮 2px 形成等寬斜角邊框 */
  background: linear-gradient(160deg, var(--gold-hi), var(--gold) 30%, var(--gold-deep) 60%, var(--gold) 100%);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  transition: transform .25s var(--ease);
}
.sc-entry-frame::after {
  content: ''; position: absolute; inset: 2px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 45% at 50% 20%, var(--glow-s), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--gold) 8%), var(--bg-deep));
  --c2: calc(var(--cut) - 1px);
  clip-path: polygon(var(--c2) 0, calc(100% - var(--c2)) 0, 100% var(--c2), 100% calc(100% - var(--c2)), calc(100% - var(--c2)) 100%, var(--c2) 100%, 0 calc(100% - var(--c2)), 0 var(--c2));
}
.sc-entry { filter: drop-shadow(0 0 14px var(--glow-s)); transition: filter .25s; }
.sc-entry:hover { filter: drop-shadow(0 0 22px var(--glow)); }
.sc-entry:hover .sc-entry-frame { transform: translateY(-4px); }

.sc-entry-art {
  width: 100%; aspect-ratio: 16 / 10; display: grid; place-items: center;
  overflow: hidden; border-radius: 6px; margin-bottom: .9rem;
}
.sc-entry-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.sc-entry:hover .sc-entry-art img { transform: scale(1.04); }
.sc-entry-ic {
  width: 96px; height: 96px; display: grid; place-items: center; color: var(--gold-hi);
  border-radius: 24px; border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
  background: radial-gradient(circle, var(--glow-s), transparent 70%);
  box-shadow: 0 0 40px -6px var(--glow), inset 0 0 22px -8px var(--glow);
}
.sc-entry-ic svg { width: 48px; height: 48px; filter: drop-shadow(0 0 8px var(--glow)); }

.sc-entry-plate {
  position: relative; text-align: center; padding: .45rem 2.2rem .4rem; margin-bottom: .7rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-deep) 70%, var(--gold) 6%), var(--bg-deep));
  border: 1px solid color-mix(in srgb, var(--gold) 70%, transparent);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
}
.sc-entry-title { font-size: 1.65rem; font-weight: 900; letter-spacing: .06em; line-height: 1.25; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.sc-entry-en {
  font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-style: italic;
  font-size: .78rem; letter-spacing: .2em; color: var(--gold); text-transform: uppercase;
}
.sc-entry-desc { font-size: .86rem; color: var(--text-dim); margin-bottom: .8rem; text-align: center; }
.sc-entry-btn {
  margin-top: auto; width: 100%; text-align: center;
  padding: .7rem 1rem; font-size: 1.05rem; font-weight: 800; letter-spacing: .12em;
  color: var(--gold-ink); border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, var(--gold-dim));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 18px -4px var(--glow);
}
.sc-entry-btn b { margin-left: .4rem; }

.sc-anchor { position: relative; top: -80px; }
.sc-games-title {
  display: flex; align-items: center; gap: .7rem;
  font-size: 1.2rem; font-weight: 800; margin: 2.2rem 0 .4rem; color: var(--text);
}
.sc-games-title::before { content: ''; width: 4px; height: 1.1em; border-radius: 2px; background: var(--gold); box-shadow: 0 0 10px var(--glow); }

/* 桌機有導覽列搜尋框,首頁那條搜尋列就收起來 */
@media (min-width: 901px) {
  [data-style="showcase"] .home-search { display: none !important; }
}

/* ---------- 頁尾 ---------- */
[data-style="showcase"] .footer {
  border-top: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line));
  background: color-mix(in srgb, var(--bg-deep) 80%, transparent);
}

/* ---------- 開場動畫 ---------- */
.anim .sc-hero-inner > *, .anim .sc-stats, .anim .sc-entry {
  opacity: 0; animation: rise .8s cubic-bezier(.16,.84,.32,1) forwards;
}
.anim .sc-hero-inner > :nth-child(1) { animation-delay: .1s; }
.anim .sc-hero-inner > :nth-child(2) { animation-delay: .2s; }
.anim .sc-hero-inner > :nth-child(3) { animation-delay: .3s; }
.anim .sc-hero-inner > :nth-child(4) { animation-delay: .38s; }
.anim .sc-hero-inner > :nth-child(5) { animation-delay: .46s; }
.anim .sc-hero-inner > :nth-child(6) { animation-delay: .54s; }
.anim .sc-stats { animation-delay: .6s; }
.anim .sc-entry { animation-delay: .72s; }
.anim .sc-entry + .sc-entry { animation-delay: .82s; }
@media (prefers-reduced-motion: reduce) {
  .anim .sc-hero-inner > *, .anim .sc-stats, .anim .sc-entry { opacity: 1; animation: none; }
  .sc-hero-deco span { animation: none; }
}

/* ---------- 平板 / 手機 ---------- */
@media (max-width: 1100px) {
  .sc-side { display: none; }
}
@media (max-width: 900px) {
  .sc-stats { grid-template-columns: repeat(2, 1fr); }
  .sc-stat:nth-child(3) { border-left: 0; }
  .sc-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sc-entry-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}
@media (max-width: 700px) {
  .sc-hero { min-height: 0; align-items: flex-end; }
  .sc-hero.has-art { min-height: 560px; }
  .sc-hero-art { inset: 0; }
  .sc-hero-art .hero-media {
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
            mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
    opacity: .85;
  }
  .sc-hero-deco::before { -webkit-mask-image: none; mask-image: none; opacity: .6; }
  .sc-hero-inner { padding: 2.4rem 1.1rem 2rem; }
  .sc-hero.has-art .sc-hero-inner { padding-top: 14rem; }
  .sc-sub { font-size: .94rem; }
  .sc-actions .sc-btn { flex: 1 1 auto; }
  .sc-stat { padding: 1rem .8rem; gap: .65rem; }
  .sc-stat-ic { width: 40px; height: 40px; border-radius: 10px; }
  .sc-stat-ic svg { width: 20px; height: 20px; }
  .sc-stat-num { font-size: 1.15rem; }
  .sc-stat-label { font-size: .8rem; }
  .sc-stat-sub { display: none; }
}
@media (max-width: 520px) {
  /* 手機:入口卡兩欄並排、縮小,不要一張就佔滿一整個螢幕 */
  .sc-entries { margin: 1.4rem 0 1.4rem; }
  .sc-entry-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .sc-entry-row:has(> :only-child) { grid-template-columns: minmax(0, 300px); }
  .sc-entry { --cut: 12px; }
  .sc-entry-frame { padding: .7rem .6rem .8rem; }
  .sc-entry-art { aspect-ratio: 4 / 3; margin-bottom: .55rem; }
  .sc-entry-ic { width: 60px; height: 60px; border-radius: 16px; }
  .sc-entry-ic svg { width: 30px; height: 30px; }
  .sc-entry-plate { padding: .3rem 1.1rem .25rem; margin-bottom: .45rem; clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 9px 100%, 0 50%); }
  .sc-entry-title { font-size: 1.12rem; letter-spacing: .03em; }
  .sc-entry-en { font-size: .6rem; letter-spacing: .14em; }
  .sc-entry-desc { font-size: .72rem; margin-bottom: .55rem; line-height: 1.45; }
  .sc-entry-btn { padding: .5rem .4rem; font-size: .86rem; letter-spacing: .06em; }
  .sc-title { font-size: clamp(2.1rem, 10vw, 2.6rem); }
  .sc-tags { gap: .35rem 1rem; font-size: .8rem; margin-bottom: 1.3rem; }
  .sc-actions { gap: .6rem; }
  .sc-btn { padding: .78rem 1rem; font-size: .92rem; }
  .sc-stats { margin: 1.2rem 0 1rem; }
  .brand-sub { letter-spacing: .14em; font-size: .58rem; }
}
@media (max-width: 370px) {
  .sc-stat-num { font-size: 1rem; }
  .sc-stat-num small { display: none; }
  .sc-entry-title { font-size: 1rem; }
}
/* 手機上客服浮動鈕縮小一點,不擋內容 */
@media (max-width: 700px) {
  [data-style="showcase"] .chat-fab { width: 48px; height: 48px; right: .9rem; bottom: .9rem; font-size: 1.2rem; }
}

/* 後台若選「側邊欄」版型:主視覺不做滿版,改成貼齊內容區 */
@media (min-width: 861px) {
  [data-layout="sidebar"] .sc-hero { width: auto; margin-left: 0; border-radius: 0 0 14px 14px; }
}
@media (max-width: 700px) {
  .sc-stat > div { min-width: 0; }
  .sc-stat-num { white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
}

/* ============================================================
   動態背景 .bgfx(原本版面也能用)
   粒子類由 /js/bgfx.js 畫在 canvas;極光/網格/光束為純 CSS
   ============================================================ */
.bgfx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bgfx canvas { position: absolute; inset: 0; display: block; }
/* 飄落類 + 火星:浮在內容前面(不擋點擊、在導覽列之下),才看得到從圖片前飄過 */
.bgfx[data-fx="snow"], .bgfx[data-fx="leaves"], .bgfx[data-fx="feathers"], .bgfx[data-fx="petals"], .bgfx[data-fx="embers"] { z-index: 35; }
.bgfx[data-fx="snow"] canvas, .bgfx[data-fx="leaves"] canvas, .bgfx[data-fx="feathers"] canvas, .bgfx[data-fx="petals"] canvas { opacity: .85; }
.bgfx > i { display: none; }

/* 有動態背景時,大區塊底色改半透明,讓效果透出來 */
[data-fx] body { background-attachment: scroll; }
[data-fx] .sc-hero { background: color-mix(in srgb, var(--bg-deep) 55%, transparent); }
[data-fx] .hc-hero.no-art, [data-fx] .hn-banner.no-art, [data-fx] .hb-hero.no-art { background: color-mix(in srgb, var(--bg-deep) 45%, transparent); }
[data-fx] .sc-stats, [data-fx] .game-card { backdrop-filter: blur(6px); }

/* --- 極光流動 --- */
.bgfx[data-fx="aurora"] > i {
  display: block; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(90px); opacity: .32; mix-blend-mode: screen; will-change: transform;
  animation: fx-aurora 26s ease-in-out infinite alternate;
}
.bgfx[data-fx="aurora"] > i:nth-child(1) { left: -15vmax; top: -20vmax; background: var(--gold); }
.bgfx[data-fx="aurora"] > i:nth-child(2) { right: -20vmax; top: 10vh; background: color-mix(in srgb, var(--gold) 50%, #6a3cff); animation-duration: 32s; animation-delay: -8s; }
.bgfx[data-fx="aurora"] > i:nth-child(3) { left: 20vw; bottom: -30vmax; background: color-mix(in srgb, var(--gold) 45%, #00c2ff); animation-duration: 38s; animation-delay: -15s; opacity: .22; }
.bgfx[data-fx="aurora"] > i:nth-child(4) { right: 10vw; bottom: -10vmax; width: 35vmax; height: 35vmax; background: color-mix(in srgb, var(--gold) 70%, #fff); animation-duration: 22s; opacity: .14; }
.bgfx[data-fx="aurora"][data-level="low"] > i { opacity: .18; }
.bgfx[data-fx="aurora"][data-level="high"] > i { opacity: .45; }
@keyframes fx-aurora {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(12vw, 8vh) scale(1.15); }
  66%  { transform: translate(-6vw, 14vh) scale(.9); }
  100% { transform: translate(8vw, -6vh) scale(1.08); }
}

/* --- 霓虹網格 --- */
.bgfx[data-fx="grid"]::before {
  content: ''; position: absolute; left: -50%; right: -50%; bottom: -10%; height: 70%;
  background-image:
    linear-gradient(color-mix(in srgb, var(--gold) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--gold) 55%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(420px) rotateX(62deg); transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%);
          mask-image: linear-gradient(180deg, transparent, #000 45%);
  opacity: .35; animation: fx-grid 2.4s linear infinite;
}
.bgfx[data-fx="grid"]::after {   /* 地平線光暈 */
  content: ''; position: absolute; left: 0; right: 0; bottom: 52%; height: 30%;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, color-mix(in srgb, var(--gold) 28%, transparent), transparent 70%);
}
.bgfx[data-fx="grid"][data-level="low"]::before { opacity: .2; animation-duration: 4s; }
.bgfx[data-fx="grid"][data-level="high"]::before { opacity: .5; animation-duration: 1.6s; }
@keyframes fx-grid { from { background-position: 0 0; } to { background-position: 0 64px; } }

/* --- 光束掃描 --- */
.bgfx[data-fx="beams"] > i {
  display: block; position: absolute; top: -20%; height: 140%; width: 2px; left: -10%;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 24px 4px color-mix(in srgb, var(--gold) 40%, transparent);
  transform: rotate(28deg); opacity: .55; will-change: transform;
  animation: fx-beam 9s cubic-bezier(.45,.05,.55,.95) infinite;
}
.bgfx[data-fx="beams"] > i:nth-child(2) { animation-delay: -3s; animation-duration: 12s; opacity: .35; width: 1px; }
.bgfx[data-fx="beams"] > i:nth-child(3) { animation-delay: -6s; animation-duration: 10s; opacity: .45; }
.bgfx[data-fx="beams"] > i:nth-child(4) { animation-delay: -1.5s; animation-duration: 15s; opacity: .25; width: 60px; box-shadow: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--gold) 18%, transparent), transparent); }
.bgfx[data-fx="beams"][data-level="low"] > i:nth-child(n+3) { display: none; }
@keyframes fx-beam { 0% { transform: translateX(0) rotate(28deg); } 100% { transform: translateX(130vw) rotate(28deg); } }

@media (prefers-reduced-motion: reduce) {
  .bgfx > i, .bgfx::before { animation: none !important; }
}

/* ============================================================
   共用:滿版背景媒體
   ============================================================ */
.hero-media { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-hero, .hn-banner { width: 100vw; margin-left: calc(50% - 50vw); }
@media (min-width: 861px) {
  [data-layout="sidebar"] .hc-hero, [data-layout="sidebar"] .hn-banner { width: auto; margin-left: 0; }
}

/* ============================================================
   版型:滿版大圖 center
   ============================================================ */
.hc-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(480px, 78vh, 760px);
  display: grid; place-items: center; text-align: center;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}
.hc-hero.no-art {
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, var(--glow-s), transparent 70%),
    var(--bg-deep);
}
.hc-bg { position: absolute; inset: 0; z-index: -1; }
.hc-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, color-mix(in srgb, var(--bg-deep) 55%, transparent), color-mix(in srgb, var(--bg-deep) 20%, transparent) 75%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-deep) 50%, transparent), transparent 30%, transparent 60%, var(--bg));
}
.hc-inner { width: 100%; max-width: 860px; padding: 4rem 1.2rem 6rem; }
.hc-inner > * { margin-left: auto !important; margin-right: auto !important; }
.hc-hero .sc-title { font-size: clamp(2.5rem, 7vw, 5.2rem); }
.hc-hero .sc-sub { max-width: 640px; }
.hc-hero .sc-tags, .hc-hero .sc-actions { justify-content: center; }
.hc-scroll {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px; border: 2px solid color-mix(in srgb, var(--text) 45%, transparent);
}
.hc-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: hc-scroll 1.8s ease-in-out infinite; }
@keyframes hc-scroll { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
.hc-hero:has(+ .hc-stats.overlap) { border-bottom: 0; }
.hc-hero:has(+ .hc-stats.overlap) .hc-scroll { bottom: 4.6rem; }
.hc-stats.overlap { position: relative; z-index: 2; margin-top: -3.4rem; backdrop-filter: blur(10px); background: color-mix(in srgb, var(--surface) 82%, transparent); }

.hc-banners:has(> :only-child) { grid-template-columns: minmax(0, 640px); justify-content: center; }
.hc-banners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin: 2rem 0 1.5rem; }
.hc-banner {
  display: flex; min-height: 150px; color: var(--text); overflow: hidden;
  border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(110deg, color-mix(in srgb, var(--surface) 92%, var(--gold) 8%), var(--surface));
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.hc-banner:hover { color: var(--text); border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 10px 30px -10px var(--glow); }
.hc-banner-art { flex: 0 0 42%; position: relative; display: grid; place-items: center; background: radial-gradient(circle, var(--glow-s), transparent 70%); }
.hc-banner-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); }
.hc-banner-ic svg { width: 54px; height: 54px; color: var(--gold-hi); filter: drop-shadow(0 0 10px var(--glow)); }
.hc-banner-body { flex: 1; padding: 1.2rem 1.3rem; display: flex; flex-direction: column; justify-content: center; gap: .2rem; min-width: 0; }
.hc-banner-en { font-family: 'Chakra Petch', sans-serif; font-size: .7rem; letter-spacing: .24em; color: var(--gold); text-transform: uppercase; }
.hc-banner-title { font-size: 1.45rem; font-weight: 900; line-height: 1.25; }
.hc-banner-desc { font-size: .84rem; color: var(--muted); }
.hc-banner-btn { margin-top: .55rem; font-weight: 700; font-size: .88rem; color: var(--gold); }
.hc-banner:hover .hc-banner-btn { color: var(--gold-hi); }

@media (max-width: 700px) {
  .hc-hero { min-height: 82svh; }
  .hc-inner { padding: 3rem 1.1rem 5rem; }
  .hc-hero .sc-title { font-size: clamp(2.2rem, 11vw, 3rem); }
  .hc-hero .sc-tags { font-size: .78rem; gap: .3rem .9rem; }
  .hc-hero .sc-actions .sc-btn { flex: 1 1 40%; }
  .hc-stats.overlap { margin-top: -2.6rem; }
  .hc-hero:has(+ .hc-stats.overlap) .hc-scroll { bottom: 3.6rem; }
  .hc-banners { grid-template-columns: 1fr; gap: .75rem; margin-top: 1.4rem; }
  .hc-banner { min-height: 108px; }
  .hc-banner-art { flex-basis: 36%; }
  .hc-banner-ic svg { width: 40px; height: 40px; }
  .hc-banner-body { padding: .85rem 1rem; }
  .hc-banner-title { font-size: 1.15rem; }
  .hc-banner-btn { margin-top: .3rem; font-size: .82rem; }
}

/* ============================================================
   版型:雜誌分割 magazine
   ============================================================ */
.hm-hero { overflow-x: clip; overflow-y: visible; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; padding: 3.5rem 0 2rem; }
.hm-text > * { max-width: 560px; }
.hm-hero .sc-title { font-size: clamp(2.4rem, 5vw, 4rem); }
.hm-frame { position: relative; }
.hm-frame-in {
  position: relative; aspect-ratio: 4 / 5; max-height: 600px; width: 100%;
  border-radius: 28px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.7), 0 0 50px -18px var(--glow);
  background: radial-gradient(circle at 50% 40%, var(--glow-s), transparent 65%), var(--surface);
  transform: rotate(1.5deg);
}
.hm-frame-in::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 8px color-mix(in srgb, var(--bg) 60%, transparent); pointer-events: none; }
.hm-frame::before {   /* 後方錯位色塊 */
  content: ''; position: absolute; inset: 6% -4% -4% 8%; border-radius: 28px; z-index: -1;
  background: linear-gradient(140deg, var(--gold), var(--gold-deep)); opacity: .5; transform: rotate(-3deg);
}
.hm-frame-deco { position: absolute; inset: 0; display: grid; place-items: center; }
.hm-orb { width: 42%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold) 45%, var(--gold-deep)); box-shadow: 0 0 80px var(--glow); }
.hm-ring { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); animation: hm-spin 30s linear infinite; border-top-color: var(--gold-hi); }
.hm-ring.r2 { width: 90%; animation-duration: 45s; animation-direction: reverse; opacity: .5; }
@keyframes hm-spin { to { transform: rotate(360deg); } }
.hm-badge {
  position: absolute; left: -1.6rem; bottom: 2.2rem; display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.1rem .75rem .75rem; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px);
  border: 1px solid var(--line); box-shadow: var(--sh-3);
}
.hm-badge .sc-stat-ic { width: 44px; height: 44px; }
.hm-badge b { display: block; font-family: 'Chakra Petch', sans-serif; font-size: 1.35rem; line-height: 1.1; }
.hm-badge b small { font-size: .7rem; color: var(--muted); margin-left: .2rem; }
.hm-badge span:not(.sc-stat-ic) { font-size: .78rem; color: var(--muted); }
.hm-stats { display: flex; flex-wrap: wrap; gap: .6rem; margin: .6rem 0 1.6rem; }
.hm-pill {
  display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 1rem .5rem .5rem;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .84rem; color: var(--muted);
}
.hm-pill b { color: var(--text); font-family: 'Chakra Petch', -apple-system, 'PingFang TC', sans-serif; font-size: 1rem; }
.hm-pill b small { font-size: .7rem; color: var(--muted); margin-left: .15rem; }
.hm-pill-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: var(--glow-xs); }
.hm-pill-ic svg { width: 16px; height: 16px; }
.hm-tiles { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 1.5rem; }
.hm-tile {
  position: relative; overflow: hidden; aspect-ratio: var(--ar, 4 / 5); border-radius: 20px; color: #fff;
  display: flex; align-items: flex-end; border: 1px solid var(--line);
  background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 35%, var(--surface)), var(--bg-deep));
  transition: transform .3s var(--ease), box-shadow .3s;
}
.hm-tile:hover { color: #fff; transform: translateY(-5px); box-shadow: 0 18px 40px -16px var(--glow); }
.hm-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hm-tile:hover img { transform: scale(1.06); }
.hm-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.82)); }
.hm-tile-ic { position: absolute; top: 18%; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.9); }
.hm-tile-ic svg { width: 72px; height: 72px; filter: drop-shadow(0 0 16px var(--glow)); }
.hm-tile-cap { position: relative; z-index: 1; padding: 1.1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .1rem; }
.hm-tile-en { font-family: 'Chakra Petch', sans-serif; font-size: .68rem; letter-spacing: .22em; color: var(--gold-hi); }
.hm-tile-title { font-size: 1.4rem; font-weight: 900; }
.hm-tile-desc { font-size: .8rem; opacity: .8; }
.hm-tile-go {
  position: absolute; top: .9rem; right: .9rem; z-index: 1; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); transition: background .2s;
}
.hm-tile:hover .hm-tile-go { background: var(--gold); color: var(--gold-ink); }
@media (max-width: 900px) {
  .hm-hero { grid-template-columns: 1fr; gap: 1.6rem; padding: 1.6rem 0 1rem; }
  .hm-frame { order: -1; max-width: 520px; width: 100%; margin: 0 auto; }
  .hm-frame-in { aspect-ratio: 16 / 11; transform: none; border-radius: 22px; }
  .hm-frame::before { inset: 8% -2.5% -3% 4%; border-radius: 22px; }
  .hm-badge { left: .8rem; bottom: -1.2rem; padding: .5rem .9rem .5rem .5rem; }
  .hm-badge .sc-stat-ic { width: 36px; height: 36px; }
  .hm-badge b { font-size: 1.1rem; }
  .hm-text { padding-top: .8rem; }
  .hm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .hm-tiles:has(> :only-child) { grid-template-columns: 1fr; }
  .hm-tile { aspect-ratio: 3 / 4; border-radius: 16px; }
  .hm-tiles:has(> :only-child) .hm-tile { aspect-ratio: 16 / 9; }
  .hm-tile-cap { padding: .8rem; }
  .hm-tile-title { font-size: 1.1rem; }
  .hm-tile-desc { font-size: .72rem; line-height: 1.4; }
  .hm-tile-ic svg { width: 52px; height: 52px; }
  .hm-tile-go { width: 30px; height: 30px; top: .6rem; right: .6rem; }
}
@media (max-width: 520px) {
  .hm-hero .sc-title { font-size: clamp(2.1rem, 10vw, 2.6rem); }
  .hm-stats { gap: .4rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 0 1rem; }
  .hm-stats::-webkit-scrollbar { display: none; }
  .hm-pill { flex: 0 0 auto; font-size: .78rem; }
}

/* ============================================================
   版型:便當格 bento
   ============================================================ */
.hb-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto);
  grid-auto-flow: dense; gap: .9rem; margin: 1.6rem 0 1.6rem;
}
.hb-cell {
  position: relative; overflow: hidden; border-radius: 20px; padding: 1.2rem;
  background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--line);
  box-shadow: var(--glass);
}
.hb-hero { grid-column: span 3; grid-row: span 2; display: flex; align-items: flex-end; padding: 2rem; min-height: 380px;
  border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.hb-hero.no-art { background: radial-gradient(ellipse 70% 80% at 85% 20%, var(--glow-s), transparent 60%), var(--surface); }
.hb-bg { position: absolute; inset: 0; }
.hb-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bg-deep) 88%, transparent) 15%, transparent 75%), linear-gradient(0deg, color-mix(in srgb, var(--bg-deep) 60%, transparent), transparent 50%); }
.hb-hero-in { position: relative; max-width: 560px; }
.hb-hero .sc-title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.hb-hero .sc-actions { margin-bottom: 0; }
.hb-stat { display: flex; flex-direction: column; justify-content: space-between; gap: .3rem; }
.hb-stat .sc-stat-ic { width: 42px; height: 42px; margin-bottom: auto; }
.hb-stat-num { font-family: 'Chakra Petch', -apple-system, 'PingFang TC', sans-serif; font-size: 1.7rem; font-weight: 700; line-height: 1.1; margin-top: .8rem; }
.hb-stat-num small { font-size: .74rem; color: var(--muted); margin-left: .2rem; }
.hb-stat-label { font-weight: 700; font-size: .9rem; }
.hb-stat-sub { font-size: .74rem; color: var(--muted); }
.hb-card { grid-column: span 2; min-height: 170px; display: flex; align-items: flex-end; color: #fff; padding: 0; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.hb-card.no-img { background: radial-gradient(circle at 85% 30%, var(--glow-s), transparent 55%), linear-gradient(135deg, color-mix(in srgb, var(--gold) 22%, var(--surface)), var(--surface)); color: var(--text); }
.hb-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 14px 34px -14px var(--glow); color: inherit; }
.hb-card.has-img:hover { color: #fff; }
.hb-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hb-card.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.8)); }
.hb-card-ic { position: absolute; right: 1.2rem; top: 1.2rem; color: var(--gold); opacity: .9; }
.hb-card-ic svg { width: 56px; height: 56px; filter: drop-shadow(0 0 12px var(--glow)); }
.hb-card-cap { position: relative; z-index: 1; padding: 1.2rem 1.3rem; display: flex; flex-direction: column; }
.hb-card-en { font-family: 'Chakra Petch', sans-serif; font-size: .68rem; letter-spacing: .22em; color: var(--gold-hi); }
.hb-card.no-img .hb-card-en { color: var(--gold); }
.hb-card-title { font-size: 1.35rem; font-weight: 900; }
.hb-card-title b { color: var(--gold); transition: margin .2s; }
.hb-card:hover .hb-card-title b { margin-left: .3rem; }
.hb-card-desc { font-size: .8rem; opacity: .75; }
.hb-tags { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; }
.hb-tags .sc-tags { margin-bottom: .6rem; }
@media (max-width: 900px) {
  .hb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; grid-auto-rows: minmax(120px, auto); margin-top: 1rem; }
  .hb-hero { grid-column: span 2; grid-row: span 1; min-height: 420px; padding: 1.4rem; border-radius: 18px; }
  .hb-bg::after { background: linear-gradient(0deg, color-mix(in srgb, var(--bg-deep) 92%, transparent) 25%, transparent 80%); }
  .hb-cell { border-radius: 16px; }
  .hb-stat { padding: .9rem; }
  .hb-stat .sc-stat-ic { width: 36px; height: 36px; border-radius: 10px; }
  .hb-stat .sc-stat-ic svg { width: 18px; height: 18px; }
  .hb-stat-num { font-size: 1.2rem; margin-top: .5rem; overflow-wrap: anywhere; }
  .hb-stat-label { font-size: .82rem; }
  .hb-stat-sub { display: none; }
  .hb-card { grid-column: span 1; min-height: 150px; }
  .hb-card-cap { padding: .85rem; }
  .hb-card-title { font-size: 1.05rem; }
  .hb-card-desc { font-size: .72rem; line-height: 1.4; }
  .hb-card-ic { right: .8rem; top: .8rem; }
  .hb-card-ic svg { width: 38px; height: 38px; }
  .hb-tags { grid-column: span 2; padding: 1rem; }
}
@media (max-width: 520px) {
  .hb-hero { min-height: 380px; }
  .hb-hero .sc-title { font-size: clamp(2rem, 9.5vw, 2.5rem); }
  .hb-hero .sc-sub { font-size: .9rem; }
  .hb-hero .sc-actions .sc-btn { flex: 1 1 auto; }
}

/* ============================================================
   版型:極簡快選 minimal
   ============================================================ */
.hn-banner {
  position: relative; isolation: isolate; overflow: hidden; min-height: 260px;
  display: flex; align-items: center; border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}
.hn-banner.no-art { background: linear-gradient(100deg, var(--bg-deep) 40%, color-mix(in srgb, var(--gold) 18%, var(--bg-deep))); }
.hn-bg { position: absolute; inset: 0 0 0 35%; z-index: -1; }
.hn-bg .hero-media { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.hn-in { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 2.2rem 1.1rem; }
.hn-in > * { max-width: 620px; }
.hn-banner .sc-eyebrow { margin-bottom: .5rem; }
.hn-banner .sc-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: .6rem; }
.hn-banner .sc-line { display: inline; }
.hn-banner .sc-line + .sc-line::before { content: ' '; }
.hn-banner .sc-sub { font-size: .92rem; margin-bottom: 1rem; color: var(--text-dim); }
.hn-banner .sc-actions { margin-bottom: 0; }
.hn-banner .sc-btn { padding: .65rem 1.2rem; font-size: .9rem; }
.hn-stats { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 1rem 0 .4rem; font-size: .82rem; color: var(--muted); }
.hn-stats span { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.hn-stats i { color: var(--gold); display: grid; }
.hn-stats i svg { width: 15px; height: 15px; }
.hn-stats b { color: var(--text); font-weight: 700; }
.hn-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; margin: 1rem 0 .6rem; }
.hn-chip {
  display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color .15s, background .15s;
}
.hn-chip:hover { border-color: var(--gold); color: var(--text); background: color-mix(in srgb, var(--surface) 90%, var(--gold) 10%); }
.hn-chip-ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; color: var(--gold); background: var(--glow-xs); }
.hn-chip-ic img { width: 100%; height: 100%; object-fit: cover; }
.hn-chip-ic svg { width: 22px; height: 22px; }
.hn-chip-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.hn-chip-t b { font-size: .95rem; }
.hn-chip-t small { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-chip-go { color: var(--muted); font-size: 1.4rem; line-height: 1; }
@media (max-width: 700px) {
  .hn-banner { min-height: 0; }
  .hn-bg { inset: 0; }
  .hn-bg .hero-media { -webkit-mask-image: none; mask-image: none; opacity: .38; }
  .hn-in { padding: 1.6rem 1.1rem 1.4rem; }
  .hn-banner .sc-title { font-size: clamp(1.6rem, 8vw, 2rem); }
  .hn-banner .sc-sub { font-size: .84rem; }
  .hn-banner .sc-actions .sc-btn { flex: 1 1 auto; }
  .hn-stats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: .8rem calc(50% - 50vw) .2rem; padding: 0 1rem; }
  .hn-stats::-webkit-scrollbar { display: none; }
  /* 快捷入口:手機改成可橫向滑動的一排 */
  .hn-quick { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 1rem; scrollbar-width: none; margin: .8rem calc(50% - 50vw) .4rem; padding: 0 1rem .2rem; }
  .hn-quick::-webkit-scrollbar { display: none; }
  .hn-chip { flex: 0 0 72%; max-width: 280px; scroll-snap-align: start; }
}

/* 開場動畫(新版型) */
.anim .hc-inner > *, .anim .hm-text > *, .anim .hm-frame, .anim .hb-cell, .anim .hn-in > *, .anim .hc-banner, .anim .hm-tile, .anim .hn-chip {
  opacity: 0; animation: rise .8s cubic-bezier(.16,.84,.32,1) forwards;
}
.anim .hc-inner > :nth-child(2), .anim .hm-text > :nth-child(2), .anim .hn-in > :nth-child(2) { animation-delay: .12s; }
.anim .hc-inner > :nth-child(3), .anim .hm-text > :nth-child(3), .anim .hn-in > :nth-child(3) { animation-delay: .22s; }
.anim .hc-inner > :nth-child(n+4), .anim .hm-text > :nth-child(n+4), .anim .hn-in > :nth-child(n+4) { animation-delay: .32s; }
.anim .hm-frame { animation-delay: .2s; }
.anim .hb-cell:nth-child(2) { animation-delay: .1s; } .anim .hb-cell:nth-child(3) { animation-delay: .16s; }
.anim .hb-cell:nth-child(4) { animation-delay: .22s; } .anim .hb-cell:nth-child(n+5) { animation-delay: .3s; }
.anim .hc-banner, .anim .hm-tile, .anim .hn-chip { animation-delay: .45s; }
@media (prefers-reduced-motion: reduce) {
  .anim .hc-inner > *, .anim .hm-text > *, .anim .hm-frame, .anim .hb-cell, .anim .hn-in > *, .anim .hc-banner, .anim .hm-tile, .anim .hn-chip { opacity: 1; animation: none; }
  .hm-ring, .hc-scroll span { animation: none; }
}
