@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;600;700&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

/* ══════════════════════════════════════
   全域變數 & 重置
══════════════════════════════════════ */
:root {
  --gold:          #c9a96e;
  --gold-light:    #e7c98a;
  --gold-dark:     #9a7040;
  --crimson:       #8b1a1a;
  --crimson-dim:   #5a0f0f;
  --bg:            #0d0b08;
  --bg2:           #141210;
  --bg3:           #1c1810;
  --bg4:           #231f17;
  --border:        rgba(201,169,110,0.25);
  --border-bright: rgba(201,169,110,0.65);
  --text:          #d4c4a0;
  --text-dim:      #7a6e5a;
  --text-link:     #c9bc94;   /* 導覽列／下拉／頁尾連結用：清楚好讀，hover/作用中仍以金色+底線區分 */
  --text-muted:    #4a4035;
  --white:         #f0e8d8;
  --nav-h:         56px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ══════════════════════════════════════
   頂部導覽列
══════════════════════════════════════ */
#top-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: linear-gradient(180deg, rgba(10,8,5,0.97) 0%, rgba(10,8,5,0.88) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
  flex-shrink: 0;
}
.logo-icon { font-size: 18px; }
.logo-img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border: 1px solid rgba(201,169,110,0.38);
  box-shadow: 0 0 14px rgba(201,169,110,0.18);
}
.logo-text {
  font-family: 'Noto Serif TC', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  white-space: nowrap;
}
.logo-divider {
  width: 1px; height: 20px;
  background: var(--border);
  margin: 0 16px;
  flex-shrink: 0;
}

/* 主導覽 */
#main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  height: var(--nav-h);
  overflow: visible;
}
.nav-item {
  position: relative;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.nav-link-top {
  color: var(--text-link);
  font-size: 13px;
  padding: 0 13px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  border: none;
  background: none;
  font-family: 'Noto Sans TC', sans-serif;
}
.nav-link-top::after {
  content: '';
  position: absolute;
  bottom: 0; left: 13px; right: 13px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.22s;
}
.nav-link-top:hover, .nav-link-top.active { color: var(--gold); }
.nav-link-top:hover::after, .nav-link-top.active::after { transform: scaleX(1); }
.nav-arrow { font-size: 8px; opacity: 0.55; transition: transform 0.2s; }
.nav-item:hover .nav-arrow,
.nav-item.open .nav-arrow { transform: rotate(90deg); }

/* 下拉選單 */
.nav-dropdown {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  min-width: 195px;
  background: rgba(16,12,8,0.97);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  padding: 6px 0;
  max-height: calc(100vh - var(--nav-h) - 14px);
  overflow-y: auto;
  z-index: 1000;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown { display: block; }
.nav-item.open > .nav-link-top { color: var(--gold); }
.nav-item.open > .nav-link-top::after { transform: scaleX(1); }
.nav-dropdown a {
  display: block;
  padding: 8px 18px;
  font-size: 12.5px;
  color: var(--text-link);
  letter-spacing: 0.5px;
  transition: all 0.16s;
  white-space: nowrap;
}
.nav-dropdown a:hover {
  color: var(--gold);
  background: rgba(201,169,110,0.06);
  padding-left: 24px;
}
.nav-dd-divider { height: 1px; background: var(--border); margin: 5px 12px; }
.nav-dd-label {
  padding: 6px 18px 3px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold-dark);
  text-transform: uppercase;
}

/* 右側按鈕 */
.header-right {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  flex-shrink: 0;
}
.btn-line-o, .btn-line-c {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 2px;
  font-weight: 500;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-line-o { background: #06c755; color: #fff; }
.btn-line-c { background: #00b900; color: #fff; }
.btn-line-o:hover, .btn-line-c:hover { opacity: 0.82; }
.btn-register {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg);
  font-family: 'Noto Serif TC', serif;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  letter-spacing: 1px;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-register:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  transform: translateY(-1px);
}
.btn-admin {
  background: transparent;
  border: 1px solid rgba(201,169,110,0.35);
  color: var(--gold);
  font-size: 12px;
  padding: 5px 12px;
  cursor: pointer;
  font-family: 'Noto Sans TC', sans-serif;
  white-space: nowrap;
}
.btn-admin:hover { border-color: var(--gold); background: rgba(201,169,110,0.08); }

/* 漢堡 */
.btn-hamburger {
  display: none;
  width: 38px;
  height: 38px;
  background: rgba(201,169,110,0.08);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.btn-hamburger:hover { border-color: var(--gold); background: rgba(201,169,110,0.14); }

/* 行動版選單 */
#mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10,8,5,0.98);
  border-bottom: 1px solid var(--border);
  z-index: 890;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  padding: 8px 0 20px;
}
#mobile-menu.open { display: block; }
.mob-link {
  display: block;
  padding: 10px 28px;
  color: var(--text-link);
  font-size: 13px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(201,169,110,0.05);
  transition: color 0.18s;
}
.mob-link:hover { color: var(--gold); }
.mob-section {
  padding: 10px 28px 3px;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold-dark);
  text-transform: uppercase;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}
.mob-sub { padding-left: 44px; font-size: 12px; }

/* ══════════════════════════════════════
   頁面主體
══════════════════════════════════════ */
#main-wrap {
  padding-top: var(--nav-h);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#page-content {
  flex: 1;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* 內頁標題 */
.page-hdr {
  position: relative;
  text-align: center;
  padding: 48px 0 34px;
  border-bottom: none;
  margin-bottom: 30px;
}
.page-hdr::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(460px, 74vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.18), var(--gold), rgba(201,169,110,0.18), transparent);
}
.page-hdr h1 {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 5px;
  line-height: 1.3;
  margin-bottom: 10px;
  text-shadow: 0 4px 26px rgba(0,0,0,0.74), 0 0 22px rgba(201,169,110,0.16);
}
.page-hdr p {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 4px;
  text-transform: uppercase;
}
.page-hdr-line {
  width: 52px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 15px auto 0;
}

/* ══════════════════════════════════════
   首頁 Hero
══════════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg-layer {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,4,3,0.95) 0%, rgba(11,8,5,0.72) 42%, rgba(6,4,3,0.38) 70%, rgba(7,4,3,0.8) 100%),
    linear-gradient(180deg, rgba(13,11,8,0.22) 0%, rgba(13,11,8,0.6) 62%, rgba(13,11,8,1) 100%),
    radial-gradient(ellipse 900px 520px at 28% 44%, rgba(201,169,110,0.16) 0%, transparent 70%),
    radial-gradient(ellipse 600px 700px at 78% 56%, rgba(139,26,26,0.16) 0%, transparent 70%),
    linear-gradient(135deg, #1a1008 0%, #0d0b08 50%, #12080a 100%);
  background-size: cover;
  background-position: center;
}
.hero-bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(13,11,8,0.1) 50%, var(--bg) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 120px);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(1.04) contrast(1.05) brightness(0.74);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, 100%);
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 18px;
  padding: 64px 42px 34px;
}
.hero-copy { position: relative; z-index: 2; }
.hero-brand-logo {
  width: min(260px, 38vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(231,201,138,0.46);
  box-shadow: 0 24px 58px rgba(0,0,0,0.55), 0 0 34px rgba(201,169,110,0.16);
  margin: 0 0 18px;
}
.hero-eyebrow {
  display: inline-block;
  border: 1px solid rgba(231,201,138,0.45);
  color: var(--gold-light);
  background: rgba(12,8,4,0.52);
  font-size: 11px;
  letter-spacing: 2px;
  padding: 6px 18px;
  margin-bottom: 20px;
  box-shadow: 0 0 26px rgba(201,169,110,0.12);
}
.hero-title {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(46px, 6vw, 82px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.06;
  margin-bottom: 14px;
  text-shadow: 0 4px 32px rgba(0,0,0,0.86), 0 0 34px rgba(201,169,110,0.2);
}
.hero-title span {
  color: var(--gold);
  display: block;
  font-size: 0.68em;
  margin-top: 4px;
}
.hero-tagline {
  font-size: 17px;
  color: var(--text);
  letter-spacing: 2px;
  margin-bottom: 24px;
  opacity: 0.92;
}
.hero-divider {
  width: 180px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 0 0 24px;
}
.hero-stats {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 28px;
}
.hero-stat { text-align: left; padding: 0 22px 0 0; }
.hero-stat-val {
  font-family: 'Noto Serif TC', serif;
  font-size: 25px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label { font-size: 11px; color: var(--text-dim); letter-spacing: 1px; margin-top: 5px; }
.hero-stat-sep { width: 1px; height: 36px; background: var(--border); margin: 0 22px 0 0; }
.hero-btns { display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; }
.hero-character {
  justify-self: end;
  width: min(670px, 52vw);
  max-height: calc(100vh - 80px);
  object-fit: contain;
  filter: drop-shadow(0 34px 42px rgba(0,0,0,0.72)) drop-shadow(0 0 22px rgba(201,169,110,0.15));
  transform: translateY(34px);
  pointer-events: none;
}
.hero-youtube-card {
  position: absolute;
  right: 0;
  bottom: clamp(40px, 5vh, 70px);
  width: clamp(520px, 38vw, 820px);
  z-index: 3;
  border: 1px solid rgba(231,201,138,0.54);
  background: rgba(9,7,5,0.78);
  box-shadow: 0 26px 58px rgba(0,0,0,0.62), 0 0 26px rgba(201,169,110,0.16);
}
.hero-youtube-card::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-youtube-frame {
  aspect-ratio: 16 / 9;
  background: #050403;
  overflow: hidden;
}
.hero-youtube-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg);
  font-family: 'Noto Serif TC', serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 13px 34px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-block;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,169,110,0.3);
  color: var(--bg);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  font-family: 'Noto Serif TC', serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 12px 34px;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all 0.25s;
  display: inline-block;
}
.btn-outline:hover { background: rgba(201,169,110,0.1); transform: translateY(-2px); }
.hero-scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  color: var(--text-muted);
  font-size: 10px; letter-spacing: 2px;
}
.hero-scroll-line {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
}
@keyframes scroll-anim {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (min-width: 1600px) {
  .hero-youtube-card {
    left: auto;
    right: 0;
    bottom: 36px;
    width: min(44vw, 860px);
  }
}

/* ══════════════════════════════════════
   首頁 Section
══════════════════════════════════════ */
.section { padding: 68px 0; position: relative; overflow: hidden; }
.section-alt { background: var(--bg2); }
.section-bg-quick,
.section-bg-server {
  background-color: var(--bg2);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 150px rgba(0,0,0,0.58);
}
/* 快速目錄：影片背景 + 原本的金色暗化漸層覆蓋（文字內容在 .container，z-index:1 之上）*/
.section-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.section-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,11,8,0.46), rgba(13,11,8,0.68)),
    radial-gradient(ellipse 860px 360px at 50% 18%, rgba(201,169,110,0.24), transparent 68%);
  box-shadow: inset 0 0 150px rgba(0,0,0,0.58);
}
.section-bg-server {
  background-image:
    linear-gradient(180deg, rgba(13,11,8,0.44), rgba(13,11,8,0.7)),
    radial-gradient(ellipse 920px 420px at 50% 35%, rgba(201,169,110,0.22), transparent 70%),
    url('../media/server-info-bg.jpg');
  border-top: 1px solid rgba(201,169,110,0.1);
  border-bottom: 1px solid rgba(201,169,110,0.08);
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 44px; }
.section-eyebrow {
  font-size: 10px; letter-spacing: 5px;
  color: var(--gold); opacity: 0.75;
  margin-bottom: 10px; text-transform: uppercase;
}
.section-title {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(20px, 3vw, 27px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 4px;
}
.section-line {
  width: 46px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 13px auto 0;
}

/* 公告卡片 */
.ann-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.ann-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), transparent),
    radial-gradient(circle at 15% 0%, rgba(201,169,110,0.08), transparent 45%),
    var(--bg3);
  border: 1px solid var(--border);
  padding: 20px 22px;
  transition: all 0.24s;
  display: block;
  min-height: 168px;
  position: relative;
  overflow: hidden;
}
.ann-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.75), transparent);
  transform: scaleX(0);
  transition: transform 0.24s;
}
.ann-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.ann-card:hover::after { transform: scaleX(1); }
.ann-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ann-tag { font-size: 10px; letter-spacing: 1px; padding: 2px 8px; border: 1px solid; }
.tag-sys    { border-color: var(--crimson); color: #e87070; }
.tag-event  { border-color: var(--gold);    color: var(--gold); }
.tag-update { border-color: #4a90d9;        color: #4a90d9; }
.tag-new    { border-color: #50c878;        color: #50c878; }
.ann-date   { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; }
.ann-card-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 14.5px; color: var(--white);
  line-height: 1.5; margin-bottom: 7px;
}
.ann-card-excerpt {
  font-size: 12px; color: var(--text-dim); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.ann-card-more { font-size: 11px; color: var(--gold); margin-top: 11px; letter-spacing: 1px; }

/* 目錄格子 */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.dir-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), transparent),
    rgba(28,24,16,0.78);
  border: 1px solid var(--border);
  padding: 24px 14px;
  text-align: center;
  transition: all 0.26s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.dir-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.28s;
}
.dir-card:hover {
  border-color: var(--border-bright);
  background: rgba(35,31,23,0.9);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.dir-card:hover::before { transform: scaleX(1); }
.dir-card.highlight {
  border-color: rgba(201,169,110,0.45);
  background: linear-gradient(135deg, rgba(139,26,26,0.28), rgba(201,169,110,0.12)), rgba(28,24,16,0.76);
}
.dir-icon { font-size: 30px; filter: drop-shadow(0 0 8px rgba(201,169,110,0.28)); }
.dir-name { font-family: 'Noto Serif TC', serif; font-size: 13px; font-weight: 700; color: var(--gold-light); letter-spacing: 2px; }
.dir-desc { font-size: 11px; color: var(--text-dim); letter-spacing: 0.5px; }
.category-menu-grid { margin-top: 28px; }

/* 更新列表 */
.update-list { display: flex; flex-direction: column; gap: 10px; }
.update-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 14px 18px;
  transition: border-color 0.2s;
}
.update-item:hover { border-color: var(--border-bright); }
.update-date { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; white-space: nowrap; padding-top: 2px; min-width: 78px; }
.update-tag { font-size: 10px; letter-spacing: 1px; padding: 2px 7px; border: 1px solid var(--gold); color: var(--gold); white-space: nowrap; align-self: flex-start; margin-top: 1px; }
.update-content { font-size: 13px; color: var(--text); line-height: 1.7; }

/* 伺服器資訊 */
.server-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.server-card { background: rgba(28,24,16,0.78); border: 1px solid var(--border); padding: 26px; position: relative; }
.server-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.server-card-name { font-family: 'Noto Serif TC', serif; font-size: 17px; font-weight: 700; color: var(--gold); letter-spacing: 3px; margin-bottom: 3px; }
.server-card-sub { font-size: 11px; color: var(--text-muted); letter-spacing: 2px; margin-bottom: 18px; }
.server-info-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(201,169,110,0.1); font-size: 13px; }
.server-info-row:last-child { border-bottom: none; }
.server-info-key { color: var(--text-dim); }
.server-info-val { color: var(--white); font-weight: 500; max-width: 62%; text-align: right; }
.server-info-val.hl { color: var(--gold); font-family: 'Noto Serif TC', serif; font-weight: 700; }

/* 職業介紹輪播 */
.class-carousel-section {
  position: relative;
  padding: 64px 0 0;
  background: #06080b;
  border-top: 1px solid rgba(201,169,110,0.14);
  border-bottom: 1px solid rgba(201,169,110,0.14);
  overflow: hidden;
}
.class-section-header {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}
.class-carousel {
  position: relative;
  height: min(760px, calc(100vh - var(--nav-h)));
  min-height: 610px;
  margin-top: 28px;
  overflow: hidden;
  background: #050608;
}
.class-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(.2,.78,.22,1);
  will-change: transform;
}
.class-slide {
  position: relative;
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  padding: 78px 120px 138px;
  overflow: hidden;
  background-image: var(--class-bg);   /* 影片載入前/失敗時的後備靜態圖 */
  background-position: var(--class-bg-position, center);
  background-size: cover;
  background-repeat: no-repeat;
}
/* 職業動畫背景（只有目前這張會播放，其餘暫停）*/
.class-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--class-bg-position, center);  /* 沿用每張投影片的取景，妖精=center top 才不會切到臉 */
  z-index: 0;
}
/* 影片上層的金色暗化覆蓋，確保文字清楚 */
.class-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3,5,7,0.16), rgba(3,5,7,0.26) 28%, rgba(3,5,7,0.18) 50%, rgba(3,5,7,0.28) 72%, rgba(3,5,7,0.14)),
    linear-gradient(180deg, rgba(5,6,8,0.18), rgba(5,6,8,0.4) 74%, rgba(5,6,8,0.72));
}
.class-slide::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  z-index: 0;
  background: linear-gradient(180deg, transparent, rgba(5,6,8,0.86));
  pointer-events: none;
}
.class-copy {
  position: relative;
  z-index: 1;
  width: min(690px, 64vw);
  text-align: center;
  color: rgba(240,232,216,0.88);
  text-shadow: 0 2px 18px rgba(0,0,0,0.76);
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.52s ease, opacity 0.52s ease;
}
.class-slide.is-active .class-copy {
  transform: translateY(0);
  opacity: 1;
}
.class-kicker {
  display: block;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 6px;
  margin-bottom: 10px;
}
.class-copy h3 {
  font-family: 'Noto Serif TC', serif;
  color: var(--white);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.15;
  letter-spacing: 8px;
  margin-bottom: 18px;
}
.class-copy h3::after {
  content: '';
  display: block;
  width: 86px;
  height: 1px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.class-copy p {
  margin: 8px auto;
  color: rgba(212,196,160,0.9);
  font-size: 14px;
  line-height: 2;
  letter-spacing: 1px;
}
.class-copy .class-lead {
  color: rgba(240,232,216,0.92);
  font-size: 16px;
  margin-bottom: 14px;
}
.class-copy blockquote {
  margin-top: 18px;
  color: var(--gold-light);
  font-family: 'Noto Serif TC', serif;
  font-size: 16px;
  letter-spacing: 2px;
}
.class-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 74px;
  height: 118px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
}
.class-nav::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  border-top: 2px solid rgba(240,232,216,0.9);
  border-left: 2px solid rgba(240,232,216,0.9);
  transition: border-color 0.2s, transform 0.2s;
}
.class-prev { left: 40px; }
.class-next { right: 40px; }
.class-prev::before { transform: translate(-30%, -50%) rotate(-45deg); }
.class-next::before { transform: translate(-70%, -50%) rotate(135deg); }
.class-nav:hover::before { border-color: var(--gold-light); }
.class-prev:hover::before { transform: translate(-38%, -50%) rotate(-45deg); }
.class-next:hover::before { transform: translate(-62%, -50%) rotate(135deg); }
.class-thumbs {
  position: absolute;
  left: 50%;
  bottom: 48px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: calc(100vw - 180px);
}
.class-thumb {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(201,169,110,0.24);
  background:
    linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.28)),
    var(--thumb-bg);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  opacity: 0.54;
  filter: grayscale(0.85);
  transition: opacity 0.2s, filter 0.2s, transform 0.2s, border-color 0.2s;
}
.class-thumb span {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  overflow: hidden;
}
.class-thumb:hover,
.class-thumb.is-active {
  opacity: 1;
  filter: grayscale(0);
  border-color: var(--gold-light);
  transform: translateY(-3px);
}

/* ══════════════════════════════════════
   內頁通用元件
══════════════════════════════════════ */
.content-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 26px 30px;
  margin-bottom: 18px;
  position: relative;
}
.content-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}
.content-card h2 { font-family: 'Noto Serif TC', serif; font-size: 16px; color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.content-card h3 { font-family: 'Noto Serif TC', serif; font-size: 13.5px; color: var(--gold-light); letter-spacing: 2px; margin: 18px 0 9px; }
.content-card p { margin-bottom: 11px; font-size: 13.5px; color: var(--text); line-height: 1.9; }
.content-card ul, .content-card ol { padding-left: 20px; margin-bottom: 13px; font-size: 13.5px; color: var(--text); line-height: 2.1; }
.content-card li::marker { color: var(--gold); }
.content-card strong { color: var(--white); }
.content-card table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
.content-card th { background: rgba(201,169,110,0.1); color: var(--gold); font-family: 'Noto Serif TC', serif; font-weight: 600; letter-spacing: 1px; padding: 10px 13px; border: 1px solid var(--border); text-align: left; }
.content-card td { padding: 8px 13px; border: 1px solid rgba(201,169,110,0.1); color: var(--text); }
.content-card tr:hover td { background: rgba(201,169,110,0.04); }
.content-empty { text-align: center; padding: 58px 24px; }
.content-empty-icon { font-size: 42px; line-height: 1; margin-bottom: 18px; filter: drop-shadow(0 0 18px rgba(201,169,110,0.22)); }
.content-empty h2 { border-bottom: 0; margin-bottom: 10px; padding-bottom: 0; font-size: 22px; letter-spacing: 4px; }
.content-empty p { max-width: 520px; margin: 0 auto; color: var(--text-muted); }

/* 武器 / 防具導覽與強化說明 */
.equipment-menu-page .content-card,
.weapon-enhance-page .content-card,
.armor-protect-page .content-card,
.anti-magic-armor-page .content-card,
.einhasad-belt-page .content-card,
.level-badge-page .content-card,
.accessory-enhance-page .content-card,
.snapper-ring-page .content-card,
.roomtis-earring-page .content-card,
.stat-shirt-page .content-card,
.stat-boots-page .content-card,
.special-shield-page .content-card { margin-bottom: 22px; }
.equipment-menu-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(201,169,110,0.22), transparent 32%),
    linear-gradient(135deg, rgba(139,26,26,0.16), rgba(28,24,16,0.92)),
    var(--bg3);
}
.equipment-menu-hero.armor {
  background:
    radial-gradient(circle at 14% 12%, rgba(117,184,240,0.18), transparent 32%),
    linear-gradient(135deg, rgba(24,35,46,0.5), rgba(28,24,16,0.92)),
    var(--bg3);
}
.equipment-menu-hero h2,
.enhance-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.equipment-menu-hero p,
.enhance-hero p { max-width: 820px; color: rgba(232,222,202,0.92); }
.equipment-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.equipment-menu-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(201,169,110,0.28);
  background:
    linear-gradient(135deg, rgba(201,169,110,0.08), rgba(8,7,5,0.2)),
    var(--bg3);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.equipment-menu-card.primary {
  border-color: rgba(201,169,110,0.55);
  background:
    radial-gradient(circle at 20% 8%, rgba(201,169,110,0.18), transparent 40%),
    var(--bg3);
}
.equipment-menu-card.primary.armor {
  border-color: rgba(117,184,240,0.42);
  background:
    radial-gradient(circle at 20% 8%, rgba(117,184,240,0.15), transparent 40%),
    var(--bg3);
}
.equipment-menu-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background:
    linear-gradient(135deg, rgba(201,169,110,0.14), rgba(8,7,5,0.22)),
    var(--bg3);
}
.equipment-menu-card span {
  font-size: 34px;
  filter: drop-shadow(0 0 14px rgba(201,169,110,0.22));
}
.equipment-menu-card strong {
  color: var(--gold-light);
  font-family: 'Noto Serif TC', serif;
  font-size: 20px;
  letter-spacing: 3px;
}
.equipment-menu-card em {
  color: var(--text-muted);
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.8;
}
.enhance-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,95,64,0.16), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(201,169,110,0.18), transparent 34%),
    linear-gradient(135deg, rgba(42,18,12,0.88), rgba(28,24,16,0.92)),
    var(--bg3);
}
.enhance-callout {
  border: 1px solid rgba(201,169,110,0.24);
  border-left: 4px solid var(--gold);
  background: rgba(8,7,5,0.3);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.enhance-callout strong {
  display: block;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.enhance-callout p { margin-bottom: 0; }
.enhance-callout.blue { border-left-color: #75b8f0; }
.enhance-callout.blue strong { color: #9fc8f0; }
.enhance-callout.red { border-left-color: #ef7b73; }
.enhance-callout.red strong { color: #ef9a92; }
.enhance-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(201,169,110,0.2);
  background: rgba(8,7,5,0.36);
}
.enhance-table {
  min-width: 760px;
  margin: 0 !important;
}
.enhance-table.compact { min-width: 520px; }
.enhance-table.attribute { min-width: 860px; text-align: center; }
.enhance-table td,
.enhance-table th { vertical-align: middle; }
.enhance-table td:nth-child(1) { font-weight: 700; color: var(--gold-light); }
.enhance-table td:nth-child(2) strong { color: var(--gold-light); }
.enhance-table .top td {
  background: rgba(201,169,110,0.14);
  color: var(--gold-light);
  font-weight: 800;
}
.enhance-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  padding: 4px 12px;
  border: 1px solid rgba(201,169,110,0.34);
  color: var(--gold-light);
  background: rgba(8,7,5,0.34);
}
.enhance-badge.safe { color: #8ee0a2; }
.enhance-badge.rare { color: #9fc8f0; }
.enhance-badge.epic { color: #cda5ff; }
.enhance-badge.legend { color: #ef9a92; }
.armor-protect-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(142,224,162,0.16), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(201,169,110,0.16), transparent 34%),
    linear-gradient(135deg, rgba(17,46,32,0.72), rgba(28,24,16,0.92)),
    var(--bg3);
}
.armor-protect-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.armor-protect-hero p { max-width: 760px; color: rgba(232,222,202,0.92); }
.enhance-callout.armor-drop { border-left-color: #e8c16a; }
.enhance-callout.armor-drop strong { color: var(--gold-light); }
.anti-magic-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(239,123,115,0.18), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(201,169,110,0.18), transparent 34%),
    linear-gradient(135deg, rgba(58,18,12,0.76), rgba(28,24,16,0.92)),
    var(--bg3);
}
.anti-magic-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.anti-magic-hero p { max-width: 800px; color: rgba(232,222,202,0.92); }
.einhasad-belt-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(232,193,106,0.24), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(117,184,240,0.12), transparent 34%),
    linear-gradient(135deg, rgba(62,45,14,0.76), rgba(28,24,16,0.92)),
    var(--bg3);
}
.einhasad-belt-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.einhasad-belt-hero p { max-width: 840px; color: rgba(232,222,202,0.92); }
.level-badge-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(232,193,106,0.2), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(239,123,115,0.14), transparent 34%),
    linear-gradient(135deg, rgba(42,32,12,0.78), rgba(28,24,16,0.92)),
    var(--bg3);
}
.level-badge-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.level-badge-hero p { max-width: 860px; color: rgba(232,222,202,0.92); }
.armor-protect-table {
  text-align: center;
}
.armor-protect-table th,
.armor-protect-table td {
  text-align: center;
}
.protect-basic { color: #d5c9b5; }
.protect-mid { color: #9fc8f0; }
.protect-high { color: var(--gold-light); }
.protect-danger { color: #ef9a92 !important; }
.protect-warning { color: #e8c16a !important; }
.protect-safe { color: #8ee0a2 !important; }
.anti-magic-table {
  min-width: 720px;
  text-align: center;
}
.anti-magic-table th,
.anti-magic-table td {
  text-align: center;
}
.anti-magic-table td:nth-child(2) {
  text-align: left;
  color: rgba(232,222,202,0.92);
}
.anti-magic-recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.anti-magic-recipe-card {
  border: 1px solid rgba(201,169,110,0.24);
  border-left: 4px solid #cda5ff;
  background:
    radial-gradient(circle at 0 0, rgba(205,165,255,0.12), transparent 34%),
    rgba(8,7,5,0.32);
  padding: 18px 20px;
}
.anti-magic-recipe-card.blue {
  border-left-color: #75b8f0;
  background:
    radial-gradient(circle at 0 0, rgba(117,184,240,0.12), transparent 34%),
    rgba(8,7,5,0.32);
}
.anti-magic-recipe-card h3 {
  margin-top: 0;
  color: var(--gold-light);
}
.anti-magic-recipe-card ul {
  margin-bottom: 0;
}
.einhasad-material-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}
.einhasad-material-list span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(201,169,110,0.24);
  background: rgba(201,169,110,0.07);
  color: var(--gold-light);
  font-size: 13px;
  line-height: 1.5;
}
.einhasad-belt-table {
  min-width: 620px;
  text-align: center;
}
.einhasad-belt-table th,
.einhasad-belt-table td {
  text-align: center;
}
.einhasad-belt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.einhasad-belt-card {
  border: 1px solid rgba(201,169,110,0.22);
  border-top: 3px solid var(--gold);
  background:
    radial-gradient(circle at 16% 0, rgba(201,169,110,0.13), transparent 38%),
    rgba(8,7,5,0.34);
  padding: 18px 20px;
}
.einhasad-belt-card h3 {
  margin: 0 0 12px;
  color: var(--gold-light);
  letter-spacing: 2px;
}
.einhasad-belt-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.einhasad-belt-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(201,169,110,0.12);
  padding: 6px 0;
  color: rgba(232,222,202,0.9);
}
.einhasad-belt-card li:last-child {
  border-bottom: 0;
}
.einhasad-belt-card b {
  color: var(--white);
}
.einhasad-belt-card.str { border-top-color: #ef9a92; }
.einhasad-belt-card.dex { border-top-color: #8ee0a2; }
.einhasad-belt-card.int { border-top-color: #d6b7ff; }
.einhasad-belt-card.cha { border-top-color: #9fc8f0; }
.einhasad-belt-card.con { border-top-color: #efb174; }
.einhasad-belt-card.wis { border-top-color: #d5c9b5; }
.level-badge-table {
  min-width: 1060px;
}
.level-badge-table th,
.level-badge-table td {
  text-align: center;
}
.level-badge-table td:nth-child(3),
.level-badge-table td:nth-child(4) {
  text-align: left;
}
.level-badge-table td:nth-child(5) {
  color: var(--gold-light);
  font-weight: 800;
}
.snapper-ring-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(201,169,110,0.22), transparent 32%),
    radial-gradient(circle at 86% 4%, rgba(205,165,255,0.14), transparent 34%),
    linear-gradient(135deg, rgba(54,34,24,0.72), rgba(28,24,16,0.92)),
    var(--bg3);
}
.snapper-ring-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.snapper-ring-hero p { max-width: 820px; color: rgba(232,222,202,0.92); }
.roomtis-earring-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(117,184,240,0.18), transparent 32%),
    radial-gradient(circle at 86% 4%, rgba(205,165,255,0.14), transparent 34%),
    linear-gradient(135deg, rgba(18,36,48,0.72), rgba(28,24,16,0.92)),
    var(--bg3);
}
.roomtis-earring-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.roomtis-earring-hero p { max-width: 840px; color: rgba(232,222,202,0.92); }
.accessory-enhance-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(201,169,110,0.2), transparent 32%),
    radial-gradient(circle at 86% 4%, rgba(205,165,255,0.14), transparent 34%),
    linear-gradient(135deg, rgba(52,35,18,0.76), rgba(28,24,16,0.92)),
    var(--bg3);
}
.accessory-enhance-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.accessory-enhance-hero p { max-width: 840px; color: rgba(232,222,202,0.92); }
.stat-shirt-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(117,184,240,0.18), transparent 32%),
    radial-gradient(circle at 86% 4%, rgba(142,224,162,0.14), transparent 34%),
    linear-gradient(135deg, rgba(18,42,48,0.72), rgba(28,24,16,0.92)),
    var(--bg3);
}
.stat-shirt-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.stat-shirt-hero p { max-width: 820px; color: rgba(232,222,202,0.92); }
.stat-boots-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(239,123,115,0.16), transparent 32%),
    radial-gradient(circle at 86% 4%, rgba(201,169,110,0.16), transparent 34%),
    linear-gradient(135deg, rgba(48,28,18,0.72), rgba(28,24,16,0.92)),
    var(--bg3);
}
.stat-boots-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.stat-boots-hero p { max-width: 820px; color: rgba(232,222,202,0.92); }
.snapper-rate-table,
.accessory-rate-table,
.snapper-ability-table {
  text-align: center;
}
.snapper-rate-table th,
.snapper-rate-table td,
.accessory-rate-table th,
.accessory-rate-table td,
.snapper-ability-table th,
.snapper-ability-table td {
  text-align: center;
  vertical-align: middle;
}
.snapper-ability-table {
  min-width: 820px;
}
.snapper-ability-table th:first-child,
.snapper-ability-table td:first-child {
  width: 110px;
  color: var(--gold-light);
  font-weight: 800;
}
.snapper-ability-table td:nth-child(2) {
  text-align: left;
}
.snapper-ability-table.wisdom td:nth-child(2) { color: #d6b7ff; }
.snapper-ability-table.guard td:nth-child(2) { color: #9fc8f0; }
.snapper-ability-table.hero td:nth-child(2) { color: #ef9a92; }
.snapper-ability-table.roomtis.purple td:nth-child(2) { color: #d6b7ff; }
.snapper-ability-table.roomtis.black td:nth-child(2) { color: #d5c9b5; }
.snapper-ability-table.roomtis.red td:nth-child(2) { color: #ef9a92; }
.snapper-ability-table.roomtis.blue td:nth-child(2) { color: #9fc8f0; }
.snapper-ability-table .top td {
  background: rgba(201,169,110,0.15);
  color: var(--gold-light) !important;
  font-weight: 800;
}
.accessory-ability-table {
  min-width: 720px;
  text-align: center;
}
.accessory-ability-table th,
.accessory-ability-table td {
  text-align: center;
  vertical-align: middle;
}
.accessory-ability-table th:first-child,
.accessory-ability-table td:first-child {
  width: 110px;
  color: var(--gold-light);
  font-weight: 800;
}
.accessory-ability-table td:nth-child(2) {
  text-align: left;
}
.accessory-ability-table.str td:nth-child(2) { color: #ef9a92; }
.accessory-ability-table.dex td:nth-child(2) { color: #8ee0a2; }
.accessory-ability-table.int td:nth-child(2) { color: #d6b7ff; }
.accessory-ability-table.con td:nth-child(2) { color: #efb174; }
.accessory-ability-table.wis td:nth-child(2) { color: #d5c9b5; }
.accessory-ability-table.cha td:nth-child(2) { color: #9fc8f0; }
.accessory-ability-table.mr td:nth-child(2) { color: #cda5ff; }
.accessory-ability-table.attr td:nth-child(2) { color: #e8c16a; }
.accessory-ability-table .top td {
  background: rgba(201,169,110,0.15);
  color: var(--gold-light) !important;
  font-weight: 800;
}
.rate-safe { color: #8ee0a2 !important; }
.rate-warn { color: #e8c16a !important; }
.rate-mid { color: #efb174 !important; }
.rate-danger { color: #ef9a92 !important; }
.rate-deep { color: #d56d66 !important; }
.stat-shirt-table {
  text-align: center;
}
.stat-shirt-table th,
.stat-shirt-table td {
  text-align: center;
  vertical-align: middle;
}
.stat-shirt-table.special { min-width: 840px; }
.stat-boots-table.special { min-width: 760px; }
.stat-shirt-table td:first-child {
  color: var(--gold-light);
  font-weight: 800;
}
.stat-str { color: #ef9a92 !important; }
.stat-dex { color: #8ee0a2 !important; }
.stat-int { color: #d6b7ff !important; }
.stat-cha { color: #9fc8f0 !important; }
.stat-con { color: #efb174 !important; }
.stat-wis { color: #d5c9b5 !important; }

.special-shield-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(117,184,240,0.18), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(201,169,110,0.18), transparent 34%),
    linear-gradient(135deg, rgba(16,28,40,0.72), rgba(28,24,16,0.92)),
    var(--bg3);
}
.special-shield-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.special-shield-hero p { max-width: 760px; color: rgba(232,222,202,0.92); }
.special-shield-callout {
  border: 1px solid rgba(239,123,115,0.28);
  border-left: 4px solid #ef7b73;
  background:
    radial-gradient(circle at 0 0, rgba(239,123,115,0.16), transparent 34%),
    rgba(8,7,5,0.34);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.special-shield-callout strong {
  display: block;
  color: #ef9a92;
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.special-shield-callout p { margin-bottom: 0; }
.special-shield-callout b { color: var(--gold-light); }
.special-shield-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(201,169,110,0.22);
  background: rgba(8,7,5,0.36);
}
.special-shield-table {
  min-width: 920px;
  margin: 0 !important;
}
.special-shield-table.compact { min-width: 720px; }
.special-shield-table th,
.special-shield-table td {
  vertical-align: middle;
}
.special-shield-table th {
  text-align: center;
  white-space: nowrap;
}
.special-shield-table th span {
  color: var(--text-muted);
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
}
.special-shield-table td {
  line-height: 1.8;
}
.special-shield-table td:first-child {
  text-align: center;
  min-width: 150px;
}
.special-shield-table td b { color: var(--gold-light); }
.shield-name {
  display: block;
  color: var(--gold-light);
  font-family: 'Noto Serif TC', serif;
  font-size: 14px;
  letter-spacing: 1px;
}
.shield-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  padding: 2px 9px;
  border: 1px solid rgba(201,169,110,0.24);
  color: var(--text-muted);
  background: rgba(8,7,5,0.28);
  font-size: 11px;
  letter-spacing: 1px;
}
.shield-stage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.shield-stage-list span {
  display: block;
  border: 1px solid rgba(201,169,110,0.18);
  background: rgba(201,169,110,0.06);
  padding: 6px 9px;
  color: rgba(232,222,202,0.9);
}
.shield-name.melee,
.shield-name.fire { color: #ef9a92; }
.shield-name.ranged,
.shield-name.wind { color: #9fc8f0; }
.shield-name.earth { color: #8ee0a2; }
.shield-name.sand { color: #e8c16a; }
.shield-name.water { color: #75b8f0; }
.shield-name.guard { color: #d5c9b5; }
.shield-name.mage { color: #cda5ff; }

/* 新手引導 */
.newbie-guide-page .content-card { margin-bottom: 22px; }
.guide-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(201,169,110,0.2), transparent 32%),
    linear-gradient(135deg, rgba(139,26,26,0.2), rgba(28,24,16,0.9)),
    var(--bg3);
}
.guide-kicker {
  display: block;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 6px;
  margin-bottom: 10px;
}
.guide-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.guide-hero p { max-width: 820px; color: rgba(232,222,202,0.9); }
.guide-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}
.guide-nav a,
.guide-actions a {
  border: 1px solid rgba(201,169,110,0.34);
  background: rgba(20,16,10,0.72);
  color: var(--gold-light);
  text-align: center;
  padding: 11px 14px;
  font-family: 'Noto Serif TC', serif;
  font-size: 12px;
  letter-spacing: 2px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.guide-nav a:hover,
.guide-actions a:hover {
  border-color: var(--gold);
  background: rgba(201,169,110,0.12);
  transform: translateY(-2px);
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.guide-grid.compact { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.guide-panel {
  border: 1px solid rgba(201,169,110,0.2);
  background: rgba(8,7,5,0.28);
  padding: 18px;
}
.guide-panel h3 { margin-top: 0; }
.guide-panel p:last-child,
.guide-section p:last-child { margin-bottom: 0; }
.guide-route-list,
.guide-resource-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guide-route {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: start;
  border: 1px solid rgba(201,169,110,0.18);
  background: rgba(8,7,5,0.26);
  padding: 16px;
}
.guide-route h3,
.guide-route p { margin-bottom: 6px; }
.guide-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Noto Serif TC', serif;
  font-size: 12px;
  letter-spacing: 1px;
  background: rgba(201,169,110,0.08);
}
.guide-alert {
  border: 1px solid rgba(201,169,110,0.42);
  background: linear-gradient(90deg, rgba(139,26,26,0.24), rgba(201,169,110,0.1));
  color: var(--white);
  padding: 13px 16px;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}
.guide-daily-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.guide-daily-grid > div,
.guide-resource-list > div {
  border-left: 2px solid var(--gold-dark);
  background: rgba(8,7,5,0.24);
  padding: 14px 16px;
}
.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.guide-actions a { min-width: 150px; }
.guide-finale {
  text-align: center;
  background:
    linear-gradient(135deg, rgba(201,169,110,0.12), rgba(139,26,26,0.18)),
    var(--bg3);
}
.guide-finale h2 { border-bottom: 0; padding-bottom: 0; }
.guide-finale p { max-width: 760px; margin-left: auto; margin-right: auto; }

/* 每日任務 */
.daily-quest-page .content-card { margin-bottom: 22px; }
.daily-quest-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(117,184,240,0.16), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(201,169,110,0.22), transparent 34%),
    linear-gradient(135deg, rgba(8,13,20,0.94), rgba(31,25,16,0.9)),
    var(--bg3);
}
.daily-quest-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.daily-quest-hero p { max-width: 840px; color: rgba(232,222,202,0.92); }
.daily-quest-alert {
  border-color: rgba(104,208,138,0.45);
  background:
    linear-gradient(135deg, rgba(104,208,138,0.12), rgba(201,169,110,0.08)),
    var(--bg3);
}
.daily-quest-alert h2 {
  border-bottom: 0;
  padding-bottom: 0;
  color: #68d08a;
}
.daily-quest-alert p { margin-bottom: 0; color: var(--white); }
.daily-quest-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.daily-quest-rule-card {
  background:
    linear-gradient(135deg, rgba(201,169,110,0.08), rgba(8,7,5,0.12)),
    var(--bg3);
}
.daily-quest-rule-card.reset {
  background:
    linear-gradient(135deg, rgba(242,162,92,0.12), rgba(8,7,5,0.12)),
    var(--bg3);
}
.daily-quest-rule-card p { margin-bottom: 0; }
.daily-quest-table {
  min-width: 720px;
  table-layout: fixed;
}
.daily-quest-table th:nth-child(1),
.daily-quest-table td:nth-child(1) { width: 28%; }
.daily-quest-table th:nth-child(2),
.daily-quest-table td:nth-child(2) { width: 44%; }
.daily-quest-table th:nth-child(3),
.daily-quest-table td:nth-child(3) {
  width: 28%;
  text-align: center;
}
.daily-quest-table td strong {
  color: var(--gold-light);
  font-family: 'Noto Serif TC', serif;
  letter-spacing: 1px;
}
.quest-reward {
  display: inline-block;
  border: 1px solid rgba(117,184,240,0.48);
  background: rgba(117,184,240,0.08);
  color: #75b8f0;
  padding: 3px 10px;
  font-size: 12px;
  letter-spacing: 1px;
}
.quest-reward.high {
  border-color: rgba(239,123,115,0.55);
  background: rgba(139,26,26,0.16);
  color: #ef7b73;
  font-weight: 800;
}
.daily-quest-highlight td { background: rgba(201,169,110,0.08); }
.daily-quest-reminder {
  text-align: center;
  background:
    linear-gradient(135deg, rgba(201,169,110,0.12), rgba(139,26,26,0.12)),
    var(--bg3);
}
.daily-quest-reminder h2 {
  border-bottom: 0;
  padding-bottom: 0;
}
.daily-quest-reminder p { max-width: 760px; margin-left: auto; margin-right: auto; }

/* 無限大戰 */
.infinite-battle-page .content-card { margin-bottom: 22px; }
.infinite-battle-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(239,123,115,0.22), transparent 32%),
    radial-gradient(circle at 86% 8%, rgba(242,208,107,0.2), transparent 34%),
    linear-gradient(135deg, rgba(31,8,8,0.94), rgba(31,25,16,0.9)),
    var(--bg3);
}
.infinite-battle-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.infinite-battle-hero p { max-width: 840px; color: rgba(232,222,202,0.92); }
.infinite-battle-treasure {
  border-color: rgba(242,208,107,0.52);
  background:
    linear-gradient(135deg, rgba(242,208,107,0.14), rgba(8,7,5,0.12)),
    var(--bg3);
}
.infinite-battle-treasure h2,
.infinite-battle-badge h2,
.infinite-battle-reward h2,
.infinite-battle-card h2 {
  border-bottom: 0;
  padding-bottom: 0;
}
.infinite-battle-treasure strong,
.infinite-battle-badge strong,
.infinite-battle-card strong,
.infinite-battle-reward strong { color: var(--gold-light); }
.infinite-battle-treasure p,
.infinite-battle-badge p,
.infinite-battle-card p,
.infinite-battle-reward p { margin-bottom: 0; }
.infinite-battle-badge {
  background:
    linear-gradient(135deg, rgba(201,169,110,0.1), rgba(139,26,26,0.12)),
    var(--bg3);
}
.infinite-battle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.infinite-battle-card {
  background:
    linear-gradient(135deg, rgba(239,123,115,0.1), rgba(8,7,5,0.14)),
    var(--bg3);
}
.infinite-battle-card.rule {
  background:
    linear-gradient(135deg, rgba(117,184,240,0.1), rgba(8,7,5,0.14)),
    var(--bg3);
}
.infinite-battle-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border: 1px solid rgba(201,169,110,0.34);
  background: rgba(8,7,5,0.3);
  color: var(--gold);
  font-size: 30px;
  filter: drop-shadow(0 0 16px rgba(201,169,110,0.22));
}
.infinite-battle-card ul {
  margin: 0;
  padding-left: 20px;
}
.infinite-battle-card li { margin-bottom: 8px; }
.infinite-battle-card li:last-child { margin-bottom: 0; }
.infinite-battle-reward {
  text-align: center;
  border-style: dashed;
  background:
    radial-gradient(circle at 50% 0%, rgba(201,169,110,0.16), transparent 42%),
    var(--bg3);
}

/* 世界 BOSS 時刻表 */
.boss-schedule-page .content-card { margin-bottom: 22px; }
.boss-schedule-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 12%, rgba(239,123,115,0.18), transparent 32%),
    radial-gradient(circle at 86% 10%, rgba(201,169,110,0.22), transparent 34%),
    linear-gradient(135deg, rgba(31,8,8,0.94), rgba(31,25,16,0.9)),
    var(--bg3);
}
.boss-schedule-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.boss-schedule-hero p { max-width: 850px; color: rgba(232,222,202,0.92); }
.boss-schedule-notice {
  border-color: rgba(239,123,115,0.46);
  background:
    linear-gradient(135deg, rgba(139,26,26,0.2), rgba(201,169,110,0.08)),
    var(--bg3);
}
.boss-schedule-notice h2 {
  border-bottom: 0;
  padding-bottom: 0;
  color: #ef7b73;
}
.boss-schedule-notice p { margin-bottom: 0; color: var(--white); }
.boss-time-list {
  display: grid;
  gap: 14px;
}
.boss-time-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  border: 1px solid rgba(201,169,110,0.24);
  background:
    linear-gradient(90deg, rgba(201,169,110,0.08), rgba(8,7,5,0.16)),
    rgba(8,7,5,0.24);
  overflow: hidden;
}
.boss-time {
  display: grid;
  place-items: center;
  min-height: 92px;
  color: var(--bg);
  background: linear-gradient(135deg, var(--boss-color, var(--gold-dark)), var(--boss-color-light, var(--gold-light)));
  font-family: 'Noto Serif TC', serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}
.boss-time-info {
  padding: 18px 22px;
}
.boss-time-info h3 {
  margin-top: 0;
  color: var(--boss-color-light, var(--gold-light));
  font-size: 18px;
}
.boss-time-info p { margin-bottom: 0; }
.boss-time-card.sandworm {
  --boss-color: #d18442;
  --boss-color-light: #f2a25c;
}
.boss-time-card.queen {
  --boss-color: #8e5cc7;
  --boss-color-light: #c68cff;
}
.boss-time-card.king {
  --boss-color: #a93530;
  --boss-color-light: #ef7b73;
}
.boss-dragon-section {
  background:
    radial-gradient(circle at 90% 0%, rgba(139,26,26,0.2), transparent 34%),
    linear-gradient(135deg, rgba(4,4,4,0.88), rgba(24,18,10,0.94)),
    var(--bg3);
}
.boss-dragon-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.boss-dragon-head h2 {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 4px;
}
.boss-dragon-head p { margin-bottom: 0; color: var(--text-muted); }
.boss-dragon-head > span {
  flex: 0 0 auto;
  border: 1px solid rgba(239,123,115,0.54);
  background: rgba(139,26,26,0.28);
  color: #ef7b73;
  padding: 7px 12px;
  font-family: 'Noto Serif TC', serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}
.boss-dragon-alert {
  border: 1px solid rgba(201,169,110,0.26);
  background: rgba(201,169,110,0.08);
  color: var(--gold-light);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  letter-spacing: 1px;
}
.boss-dragon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.boss-dragon-card {
  border-left: 3px solid var(--dragon-color, var(--gold));
  background: rgba(255,255,255,0.04);
  padding: 14px 16px;
}
.boss-dragon-card strong {
  display: block;
  color: var(--white);
  font-family: 'Noto Serif TC', serif;
  letter-spacing: 2px;
  margin-bottom: 5px;
}
.boss-dragon-card span {
  color: var(--text);
  font-size: 13px;
}
.boss-dragon-card.earth { --dragon-color: #68d08a; }
.boss-dragon-card.water { --dragon-color: #75b8f0; }
.boss-dragon-card.fire { --dragon-color: #ef7b73; }
.boss-dragon-card.wind { --dragon-color: #f2d06b; }
.boss-raid-guide {
  text-align: center;
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(201,169,110,0.12), rgba(8,7,5,0.12)),
    var(--bg3);
}
.boss-raid-guide h2 {
  border-bottom: 0;
  padding-bottom: 0;
}
.boss-raid-guide p { max-width: 760px; margin-left: auto; margin-right: auto; }

/* 活動金幣 */
.event-coin-page .content-card { margin-bottom: 22px; }
.event-coin-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(198,140,255,0.18), transparent 32%),
    radial-gradient(circle at 84% 8%, rgba(242,208,107,0.24), transparent 34%),
    linear-gradient(135deg, rgba(22,12,30,0.94), rgba(31,25,16,0.9)),
    var(--bg3);
}
.event-coin-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.event-coin-hero p { max-width: 840px; color: rgba(232,222,202,0.92); }
.event-coin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.event-coin-card {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(198,140,255,0.12), rgba(8,7,5,0.12)),
    var(--bg3);
}
.event-coin-card.key {
  background:
    linear-gradient(135deg, rgba(242,208,107,0.13), rgba(8,7,5,0.12)),
    var(--bg3);
}
.event-coin-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border: 1px solid rgba(201,169,110,0.34);
  background: rgba(8,7,5,0.32);
  color: var(--gold);
  font-size: 30px;
  filter: drop-shadow(0 0 16px rgba(201,169,110,0.2));
}
.event-coin-card h2 {
  border-bottom: 0;
  padding-bottom: 0;
}
.event-coin-card p { margin-bottom: 0; }
.event-coin-summary {
  text-align: center;
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(201,169,110,0.12), rgba(198,140,255,0.12)),
    var(--bg3);
}
.event-coin-summary h2 {
  border-bottom: 0;
  padding-bottom: 0;
}
.event-coin-summary p { max-width: 760px; margin-left: auto; margin-right: auto; }

/* 商城介紹 */
.shop-page .content-card { margin-bottom: 22px; }
.shop-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(232,193,106,0.24), transparent 32%),
    radial-gradient(circle at 86% 8%, rgba(117,184,240,0.16), transparent 34%),
    linear-gradient(135deg, rgba(42,26,8,0.94), rgba(31,25,16,0.9)),
    var(--bg3);
}
.shop-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.shop-hero p { max-width: 840px; color: rgba(232,222,202,0.92); }
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.shop-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0, rgba(201,169,110,0.12), transparent 38%),
    var(--bg3);
}
.shop-card.blue { border-left: 4px solid #75b8f0; }
.shop-card.gray { border-left: 4px solid #d5c9b5; }
.shop-card.gold { border-left: 4px solid var(--gold); }
.shop-card h2 {
  border-bottom: 0;
  padding-bottom: 0;
}
.shop-card p { margin-bottom: 0; }
.shop-card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border: 1px solid rgba(201,169,110,0.34);
  background: rgba(8,7,5,0.32);
  color: var(--gold);
  font-size: 30px;
  filter: drop-shadow(0 0 16px rgba(201,169,110,0.2));
}
.shop-box-grid,
.shop-random-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.shop-box,
.shop-random-box {
  border: 1px solid rgba(201,169,110,0.24);
  border-left: 4px solid var(--gold);
  background:
    radial-gradient(circle at 0 0, rgba(201,169,110,0.11), transparent 36%),
    rgba(8,7,5,0.32);
  padding: 18px 20px;
}
.shop-box h3,
.shop-random-box h3 {
  margin-top: 0;
  color: var(--gold-light);
}
.shop-box p,
.shop-random-box p {
  color: var(--text-muted);
  margin-bottom: 12px;
}
.shop-box.purple { border-left-color: #cda5ff; }
.shop-box.orange { border-left-color: #efb174; }
.shop-box.green { border-left-color: #8ee0a2; }
.shop-box.dark { border-left-color: #d5c9b5; }
.shop-random-box.weapon { border-left-color: #ef9a92; }
.shop-random-box.armor { border-left-color: #75b8f0; }
.shop-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.shop-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(201,169,110,0.22);
  background: rgba(201,169,110,0.07);
  color: rgba(232,222,202,0.92);
  font-size: 12.5px;
  line-height: 1.4;
}
.shop-scroll-table {
  text-align: center;
}
.shop-scroll-table th,
.shop-scroll-table td {
  text-align: center;
}
.scroll-blessed { color: #ef9a92 !important; }
.scroll-cursed { color: #cda5ff !important; }

/* 地圖介紹 / 屬性監獄 / 夢幻之島 / 專屬練功地圖 */
.map-index-page .content-card,
.elemental-prison-page .content-card,
.dream-island-page .content-card,
.training-map-page .content-card { margin-bottom: 22px; }
.map-index-hero,
.elemental-hero,
.dream-island-hero,
.training-map-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(104,208,138,0.18), transparent 32%),
    radial-gradient(circle at 86% 8%, rgba(117,184,240,0.18), transparent 34%),
    linear-gradient(135deg, rgba(7,22,14,0.94), rgba(31,25,16,0.9)),
    var(--bg3);
}
.map-index-hero h2,
.elemental-hero h2,
.dream-island-hero h2,
.training-map-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.map-index-hero p,
.elemental-hero p,
.dream-island-hero p,
.training-map-hero p { max-width: 850px; color: rgba(232,222,202,0.92); }
.training-map-hero {
  background:
    radial-gradient(circle at 15% 8%, rgba(117,184,240,0.2), transparent 32%),
    radial-gradient(circle at 82% 6%, rgba(242,208,107,0.18), transparent 34%),
    linear-gradient(135deg, rgba(7,16,24,0.94), rgba(31,25,16,0.9)),
    var(--bg3);
}
.dream-island-hero {
  background:
    radial-gradient(circle at 12% 10%, rgba(198,140,255,0.22), transparent 32%),
    radial-gradient(circle at 82% 4%, rgba(242,208,107,0.2), transparent 34%),
    radial-gradient(circle at 64% 86%, rgba(104,208,138,0.14), transparent 34%),
    linear-gradient(135deg, rgba(18,10,22,0.94), rgba(31,25,16,0.9)),
    var(--bg3);
}
.elemental-time-alert {
  border-color: rgba(242,208,107,0.48);
  background:
    linear-gradient(135deg, rgba(242,208,107,0.14), rgba(8,7,5,0.12)),
    var(--bg3);
}
.elemental-time-alert h2 {
  border-bottom: 0;
  padding-bottom: 0;
  color: #f2d06b;
}
.elemental-time-alert p { margin-bottom: 0; color: var(--white); }
.elemental-drop-table {
  min-width: 760px;
  table-layout: fixed;
}
.elemental-drop-table th:nth-child(1),
.elemental-drop-table td:nth-child(1) { width: 30%; }
.elemental-drop-table th:nth-child(2),
.elemental-drop-table td:nth-child(2),
.elemental-drop-table th:nth-child(3),
.elemental-drop-table td:nth-child(3) { width: 35%; }
.elemental-drop-table td span {
  color: var(--element-color, var(--gold-light));
  font-family: 'Noto Serif TC', serif;
  font-weight: 800;
  letter-spacing: 1px;
}
.elemental-drop-table tr.wind { --element-color: #f2d06b; }
.elemental-drop-table tr.earth { --element-color: #68d08a; }
.elemental-drop-table tr.water { --element-color: #75b8f0; }
.elemental-drop-table tr.fire { --element-color: #ef7b73; }
.elemental-box-grid,
.elemental-system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.elemental-box-option {
  border: 1px solid rgba(201,169,110,0.22);
  background: rgba(8,7,5,0.26);
  padding: 18px;
}
.elemental-box-option.key {
  border-color: rgba(242,208,107,0.48);
  background: linear-gradient(135deg, rgba(242,208,107,0.12), rgba(8,7,5,0.2));
}
.elemental-box-option > span {
  display: block;
  margin-bottom: 10px;
  font-size: 30px;
  filter: drop-shadow(0 0 14px rgba(201,169,110,0.22));
}
.elemental-box-option h3 { margin-top: 0; }
.elemental-box-option p { margin-bottom: 0; }
.elemental-system-card {
  background:
    linear-gradient(135deg, rgba(104,208,138,0.1), rgba(8,7,5,0.12)),
    var(--bg3);
}
.elemental-system-card.mark {
  background:
    linear-gradient(135deg, rgba(198,140,255,0.12), rgba(8,7,5,0.12)),
    var(--bg3);
}
.elemental-system-card ul { margin-bottom: 0; }
.dream-island-time-alert {
  border-color: rgba(242,208,107,0.5);
  background:
    linear-gradient(135deg, rgba(242,208,107,0.14), rgba(139,26,26,0.1)),
    var(--bg3);
}
.dream-island-time-alert h2,
.dream-island-final-card h2 {
  border-bottom: 0;
  padding-bottom: 0;
  color: var(--gold-light);
}
.dream-island-time-alert p,
.dream-island-final-card p { margin-bottom: 0; color: var(--white); }
.dream-island-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.dream-island-feature-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(201,169,110,0.1), rgba(8,7,5,0.18)),
    var(--bg3);
}
.dream-island-feature-card.treasure {
  background:
    linear-gradient(135deg, rgba(104,208,138,0.12), rgba(198,140,255,0.08)),
    var(--bg3);
}
.dream-island-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border: 1px solid rgba(201,169,110,0.34);
  background: rgba(8,7,5,0.3);
  color: var(--gold);
  font-size: 30px;
  filter: drop-shadow(0 0 16px rgba(201,169,110,0.22));
}
.dream-island-feature-card h2,
.dream-island-guide-card h2 {
  border-bottom: 0;
  padding-bottom: 0;
}
.dream-island-feature-card p { margin-bottom: 0; }
.dream-island-feature-card strong { color: var(--gold-light); }
.dream-island-guide-card {
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(201,169,110,0.1), rgba(198,140,255,0.08)),
    var(--bg3);
}
.dream-island-guide-card ul {
  margin: 0;
  padding-left: 20px;
}
.dream-island-guide-card li { margin-bottom: 10px; }
.dream-island-guide-card li:last-child { margin-bottom: 0; }
.dream-island-guide-card strong { color: var(--gold-light); }
.dream-island-final-card {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(242,208,107,0.16), transparent 42%),
    var(--bg3);
}
.training-map-alert {
  border-color: rgba(239,123,115,0.5);
  background:
    linear-gradient(135deg, rgba(139,26,26,0.18), rgba(201,169,110,0.08)),
    var(--bg3);
}
.training-map-alert h2,
.training-map-summary h2 {
  border-bottom: 0;
  padding-bottom: 0;
  color: var(--gold-light);
}
.training-map-alert p,
.training-map-summary p { margin-bottom: 0; color: var(--white); }
.training-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.training-map-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(117,184,240,0.12), rgba(8,7,5,0.18)),
    var(--bg3);
}
.training-map-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--map-accent, var(--gold));
}
.training-map-card.newbie { --map-accent: #68d08a; }
.training-map-card.event { --map-accent: #f2d06b; }
.training-map-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border: 1px solid rgba(201,169,110,0.34);
  background: rgba(8,7,5,0.3);
  color: var(--gold);
  font-size: 30px;
  filter: drop-shadow(0 0 16px rgba(201,169,110,0.22));
}
.training-map-card h2,
.training-map-entry h3 {
  border-bottom: 0;
  padding-bottom: 0;
}
.training-map-card ul {
  margin: 0 0 16px;
  padding-left: 20px;
}
.training-map-card li { margin-bottom: 8px; }
.training-map-card strong,
.training-map-entry strong { color: var(--gold-light); }
.training-map-entry {
  border: 1px dashed rgba(201,169,110,0.32);
  background: rgba(8,7,5,0.28);
  padding: 16px;
}
.training-map-entry p { margin-bottom: 0; }
.training-map-summary {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(117,184,240,0.15), transparent 42%),
    var(--bg3);
}

/* 赫卡特 */
.hecate-page .content-card { margin-bottom: 22px; }
.hecate-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 10%, rgba(198,140,255,0.2), transparent 34%),
    radial-gradient(circle at 86% 6%, rgba(242,208,107,0.18), transparent 32%),
    linear-gradient(135deg, rgba(16,9,28,0.94), rgba(31,25,16,0.9)),
    var(--bg3);
}
.hecate-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.hecate-hero p { max-width: 860px; color: rgba(232,222,202,0.92); }
.hecate-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.hecate-info-card {
  background:
    linear-gradient(135deg, rgba(198,140,255,0.1), rgba(8,7,5,0.18)),
    var(--bg3);
}
.hecate-info-card.warning {
  border-color: rgba(239,123,115,0.46);
  background:
    linear-gradient(135deg, rgba(139,26,26,0.16), rgba(8,7,5,0.2)),
    var(--bg3);
}
.hecate-info-card.safe {
  border-color: rgba(104,208,138,0.42);
  background:
    linear-gradient(135deg, rgba(104,208,138,0.1), rgba(8,7,5,0.2)),
    var(--bg3);
}
.hecate-info-card.gold {
  border-color: rgba(242,208,107,0.46);
  background:
    linear-gradient(135deg, rgba(242,208,107,0.12), rgba(8,7,5,0.2)),
    var(--bg3);
}
.hecate-info-card span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border: 1px solid rgba(201,169,110,0.3);
  background: rgba(8,7,5,0.28);
  font-size: 26px;
}
.hecate-info-card h2,
.hecate-rate-card h2,
.hecate-equipment-card h2,
.hecate-tip-card h2 {
  border-bottom: 0;
  padding-bottom: 0;
}
.hecate-info-card p { margin-bottom: 0; }
.hecate-info-card strong,
.hecate-tip-card strong { color: var(--gold-light); }
.hecate-rate-card,
.hecate-tip-card {
  background:
    linear-gradient(135deg, rgba(201,169,110,0.12), rgba(8,7,5,0.18)),
    var(--bg3);
}
.hecate-rate-table {
  min-width: 760px;
  table-layout: fixed;
}
.hecate-rate-table th,
.hecate-rate-table td {
  text-align: center;
  vertical-align: middle;
}
.hecate-rate-table th:first-child,
.hecate-rate-table td:first-child,
.hecate-rate-table th:nth-child(3),
.hecate-rate-table td:nth-child(3) {
  width: 25%;
  text-align: center;
  color: var(--gold-light);
  font-family: 'Noto Serif TC', serif;
  font-weight: 800;
  letter-spacing: 1px;
}
.hecate-rate-table .rate-high { color: #68d08a; }
.hecate-rate-table .rate-mid { color: #f2d06b; }
.hecate-rate-table .rate-low { color: #f0b08c; }
.hecate-rate-table .rate-rare { color: #ef7b73; }
.hecate-rate-table .rate-top { color: #d86aa3; }
.hecate-rate-table tr.top td {
  background: rgba(201,169,110,0.14);
  color: var(--gold-light);
  font-weight: 800;
}
.hecate-equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.hecate-equipment-card {
  --hecate-accent: var(--gold-light);
  background:
    linear-gradient(135deg, rgba(201,169,110,0.08), rgba(8,7,5,0.18)),
    var(--bg3);
}
.hecate-equipment-card.defense {
  --hecate-accent: #75b8f0;
  border-color: rgba(117,184,240,0.4);
}
.hecate-equipment-card.attack {
  --hecate-accent: #ef7b73;
  border-color: rgba(239,123,115,0.42);
}
.hecate-equipment-card h2 { color: var(--hecate-accent); }
.hecate-equipment-card p { color: var(--text-muted); }
.hecate-equipment-table {
  min-width: 620px;
  table-layout: fixed;
}
.hecate-equipment-table th,
.hecate-equipment-table td {
  vertical-align: middle;
}
.hecate-equipment-table th:first-child,
.hecate-equipment-table td:first-child {
  width: 22%;
  text-align: center;
  color: var(--gold-light);
  font-family: 'Noto Serif TC', serif;
  font-weight: 800;
  letter-spacing: 1px;
}
.hecate-equipment-table th:nth-child(2),
.hecate-equipment-table td:nth-child(2) {
  text-align: left;
  color: var(--hecate-accent);
  font-weight: 700;
  line-height: 1.8;
}
.hecate-equipment-table tr.top td {
  background: rgba(201,169,110,0.14);
  color: var(--gold-light);
  font-weight: 900;
}
.hecate-tip-card {
  text-align: center;
  border-color: rgba(242,208,107,0.42);
}
.hecate-tip-card p {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* 龍之呢喃 */
.dragon-whisper-page .content-card { margin-bottom: 22px; }
.dragon-whisper-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(201,169,110,0.22), transparent 34%),
    radial-gradient(circle at 16% 0%, rgba(139,26,26,0.22), transparent 28%),
    linear-gradient(135deg, rgba(18,10,7,0.94), rgba(31,25,16,0.9)),
    var(--bg3);
}
.dragon-whisper-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.dragon-whisper-hero p { max-width: 820px; color: rgba(232,222,202,0.92); }
.dragon-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.dragon-note {
  background:
    linear-gradient(135deg, rgba(201,169,110,0.08), rgba(8,7,5,0.12)),
    var(--bg3);
}
.dragon-note.warning {
  background:
    linear-gradient(135deg, rgba(139,26,26,0.16), rgba(201,169,110,0.08)),
    var(--bg3);
}
.feature-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(201,169,110,0.2);
  background: rgba(8,7,5,0.36);
}
.feature-table {
  min-width: 760px;
  width: 100%;
  margin: 0 !important;
  table-layout: fixed;
}
.feature-table th,
.feature-table td {
  text-align: center;
  vertical-align: middle;
}
.feature-table th:first-child,
.feature-table td:first-child {
  text-align: left;
  width: 42%;
}
.feature-table .table-section-row td {
  background: rgba(201,169,110,0.14);
  color: var(--gold-light);
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: left;
}
.dragon-enchant-table .weapon-value {
  color: #f0b08c;
  font-weight: 700;
}
.dragon-enchant-table .armor-value {
  color: #9fc8f0;
  font-weight: 700;
}
.dragon-enchant-table .empty-value {
  color: var(--text-muted);
}
.dragon-tip-card {
  text-align: center;
  background:
    linear-gradient(135deg, rgba(201,169,110,0.1), rgba(139,26,26,0.12)),
    var(--bg3);
}
.dragon-tip-card h2 { border-bottom: 0; padding-bottom: 0; }
.dragon-tip-card p { max-width: 820px; margin-left: auto; margin-right: auto; }

/* 變身卡合成 */
.transform-fusion-page .content-card { margin-bottom: 22px; }
.transform-fusion-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(142,68,173,0.22), transparent 32%),
    radial-gradient(circle at 86% 8%, rgba(201,169,110,0.18), transparent 34%),
    linear-gradient(135deg, rgba(14,10,18,0.94), rgba(30,24,16,0.9)),
    var(--bg3);
}
.transform-fusion-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.transform-fusion-hero p { max-width: 840px; color: rgba(232,222,202,0.92); }
.transform-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.transform-flow-step {
  border: 1px solid rgba(201,169,110,0.24);
  background: rgba(28,24,16,0.78);
  padding: 18px;
  position: relative;
}
.transform-flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border: 1px solid rgba(201,169,110,0.48);
  color: var(--gold);
  font-family: 'Noto Serif TC', serif;
  letter-spacing: 1px;
  background: rgba(201,169,110,0.08);
}
.transform-flow-step strong {
  display: block;
  color: var(--gold-light);
  font-family: 'Noto Serif TC', serif;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.transform-flow-step p {
  color: var(--text);
  font-size: 13px;
  line-height: 1.85;
  margin: 0;
}
.transform-rarity-table th:first-child,
.transform-rarity-table td:first-child,
.transform-rarity-table th:last-child,
.transform-rarity-table td:last-child {
  width: 50%;
  text-align: left;
}
.rarity-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  margin-right: 8px;
  padding: 2px 8px;
  border: 1px solid currentColor;
  font-size: 11px;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.04);
}
.rarity-normal { color: #b9b4a8; }
.rarity-high { color: #68d08a; }
.rarity-rare { color: #75b8f0; }
.rarity-hero { color: #ef7b73; }
.rarity-legend { color: #c68cff; }
.rarity-myth { color: #f2d06b; }
.transform-guarantee {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px dashed rgba(201,169,110,0.52);
  background: rgba(201,169,110,0.06);
  padding: 18px;
  margin-top: 14px;
}
.guarantee-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(201,169,110,0.38);
  background: radial-gradient(circle, rgba(142,68,173,0.28), rgba(20,16,10,0.7));
  font-size: 34px;
}
.transform-guarantee h3 { margin-top: 0; }
.transform-card-note {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: center;
  border-left: 2px solid var(--gold);
  background: rgba(8,7,5,0.26);
  padding: 14px 16px;
  margin-top: 14px;
}
.transform-card-note span {
  color: var(--gold);
  font-family: 'Noto Serif TC', serif;
  letter-spacing: 2px;
}
.transform-card-note p { margin: 0; }
.transform-finale {
  text-align: center;
  background:
    linear-gradient(135deg, rgba(142,68,173,0.14), rgba(201,169,110,0.1)),
    var(--bg3);
}
.transform-finale h2 { border-bottom: 0; padding-bottom: 0; }
.transform-finale p { max-width: 820px; margin-left: auto; margin-right: auto; }

/* 魔法娃娃介紹 */
.doll-guide-page .content-card { margin-bottom: 22px; }
.doll-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(201,169,110,0.2), transparent 30%),
    radial-gradient(circle at 84% 8%, rgba(117,184,240,0.12), transparent 34%),
    linear-gradient(135deg, rgba(21,18,12,0.95), rgba(30,24,16,0.9)),
    var(--bg3);
}
.doll-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.doll-hero p { max-width: 840px; color: rgba(232,222,202,0.92); }
.doll-note {
  background:
    linear-gradient(135deg, rgba(201,169,110,0.1), rgba(8,7,5,0.12)),
    var(--bg3);
}
.doll-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.doll-card {
  --doll-accent: var(--gold);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201,169,110,0.22);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--doll-accent) 10%, transparent), transparent 62%),
    rgba(28,24,16,0.82);
  padding: 20px;
}
.doll-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--doll-accent), transparent);
}
.doll-card-head {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.doll-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid color-mix(in srgb, var(--doll-accent) 54%, transparent);
  background: rgba(8,7,5,0.34);
  font-size: 28px;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--doll-accent) 28%, transparent));
}
.doll-card h2 {
  margin: 0 0 4px;
  color: var(--gold-light);
  font-family: 'Noto Serif TC', serif;
  font-size: 16px;
  letter-spacing: 2px;
}
.doll-card-head p {
  margin: 0;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 1px;
}
.doll-table {
  min-width: 460px;
  table-layout: auto;
}
.doll-table th:first-child,
.doll-table td:first-child {
  width: 32%;
  text-align: center;
  white-space: nowrap;
}
.doll-table th:last-child,
.doll-table td:last-child {
  text-align: left;
}
.doll-table .doll-top-row td {
  background: color-mix(in srgb, var(--doll-accent) 15%, rgba(8,7,5,0.62));
  color: var(--gold-light);
  font-weight: 700;
}
.doll-red { --doll-accent: #ef7b73; }
.doll-purple { --doll-accent: #c68cff; }
.doll-orange { --doll-accent: #f2a25c; }
.doll-teal { --doll-accent: #5fc4b0; }
.doll-blue { --doll-accent: #75b8f0; }
.doll-green { --doll-accent: #68d08a; }
.doll-brown { --doll-accent: #c89463; }
.doll-slate { --doll-accent: #b9b4a8; }
.doll-stone { --doll-accent: #aeb6bf; }
.doll-ice { --doll-accent: #9fd2ff; }
.doll-gold { --doll-accent: #f2d06b; }

/* 寵物介紹 */
.pet-guide-page .content-card { margin-bottom: 22px; }
.pet-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 13% 10%, rgba(104,208,138,0.18), transparent 30%),
    radial-gradient(circle at 84% 8%, rgba(201,169,110,0.2), transparent 34%),
    linear-gradient(135deg, rgba(13,20,13,0.95), rgba(30,24,16,0.9)),
    var(--bg3);
}
.pet-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.pet-hero p { max-width: 840px; color: rgba(232,222,202,0.92); }
.pet-charm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.pet-charm-card {
  border: 1px solid rgba(201,169,110,0.22);
  background: rgba(8,7,5,0.28);
  padding: 16px 12px;
  text-align: center;
}
.pet-charm-card span {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}
.pet-charm-card strong {
  display: block;
  color: var(--gold-light);
  font-family: 'Noto Serif TC', serif;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.pet-charm-card em {
  color: var(--gold);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 1px;
}
.pet-charm-card.highlight {
  border-color: rgba(104,208,138,0.46);
  background: linear-gradient(135deg, rgba(104,208,138,0.12), rgba(8,7,5,0.22));
}
.pet-charm-card.muted { opacity: 0.78; }
.pet-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.pet-evo-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(201,169,110,0.22);
  background: rgba(8,7,5,0.28);
  padding: 14px;
  margin-bottom: 12px;
}
.pet-evo-card:last-child { margin-bottom: 0; }
.pet-evo-mark {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid rgba(104,208,138,0.52);
  color: #68d08a;
  font-family: 'Noto Serif TC', serif;
  letter-spacing: 1px;
}
.pet-evo-card.gold .pet-evo-mark {
  border-color: rgba(242,208,107,0.58);
  color: #f2d06b;
}
.pet-evo-card h3,
.pet-evo-card p,
.pet-limit-list p { margin-bottom: 0; }
.pet-limit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pet-limit-list > div {
  border-left: 2px solid var(--gold-dark);
  background: rgba(8,7,5,0.24);
  padding: 12px 14px;
}
.pet-limit-list strong {
  display: block;
  color: var(--gold-light);
  margin-bottom: 7px;
}
.pet-callout {
  border: 1px solid rgba(201,169,110,0.34);
  background: linear-gradient(90deg, rgba(201,169,110,0.12), rgba(8,7,5,0.2));
  padding: 16px;
  margin-bottom: 16px;
}
.pet-callout strong {
  display: block;
  color: var(--white);
  margin-bottom: 4px;
}
.pet-callout span { color: var(--text); font-size: 13px; line-height: 1.8; }
.pet-food-table th:first-child,
.pet-food-table td:first-child {
  width: 30%;
  text-align: left;
}
.pet-food-tag {
  display: inline-block;
  border: 1px solid #75b8f0;
  color: #75b8f0;
  background: rgba(117,184,240,0.08);
  padding: 2px 9px;
  font-size: 12px;
  letter-spacing: 1px;
}
.pet-food-tag.carrot {
  border-color: #ef7b73;
  color: #ef7b73;
  background: rgba(239,123,115,0.08);
}
.pet-food-tag.special {
  border-color: #f2d06b;
  color: #f2d06b;
  background: rgba(242,208,107,0.08);
}
.pet-equipment-table th,
.pet-equipment-table td { text-align: center; }
.pet-equipment-table th:first-child,
.pet-equipment-table td:first-child {
  width: 30%;
  text-align: left;
}
.pet-equipment-table .pet-rare-row td {
  background: rgba(201,169,110,0.12);
  color: var(--gold-light);
  font-weight: 700;
}
.pet-warning-card {
  text-align: center;
  border-color: rgba(239,123,115,0.55);
  background:
    linear-gradient(135deg, rgba(139,26,26,0.22), rgba(201,169,110,0.08)),
    var(--bg3);
}
.pet-warning-card h2 {
  border-bottom: 0;
  padding-bottom: 0;
  color: #ef7b73;
}
.pet-warning-card p { max-width: 760px; margin-left: auto; margin-right: auto; }

/* 裝備收集圖鑑 */
.collection-page .content-card { margin-bottom: 24px; }
.collection-intro p { max-width: 820px; }
.collection-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.collection-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(201,169,110,0.2);
  background: rgba(8,7,5,0.36);
}
.collection-table {
  min-width: 820px;
  margin: 0 !important;
  table-layout: fixed;
}
.collection-table th:nth-child(1),
.collection-table td:nth-child(1) { width: 20%; }
.collection-table th:nth-child(2),
.collection-table td:nth-child(2) { width: 25%; }
.collection-table th:nth-child(3),
.collection-table td:nth-child(3) { width: 55%; }
.collection-table td {
  vertical-align: middle;
  text-align: center;
}
.collection-table .collection-item {
  color: var(--gold-light);
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  letter-spacing: 1px;
  background: rgba(201,169,110,0.06);
}
.collection-table .collection-ability {
  color: var(--gold-light);
  font-weight: 700;
}
.collection-table .collection-required {
  text-align: left;
}
.collection-level {
  display: inline-block;
  min-width: 42px;
  margin-right: 8px;
  padding: 2px 10px;
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  border: 1px solid rgba(231,201,138,0.62);
  font-weight: 800;
  text-align: center;
}

/* 傲慢寶石 */
.arrogance-gem-page .content-card { margin-bottom: 22px; }
.arrogance-gem-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(198,140,255,0.22), transparent 32%),
    radial-gradient(circle at 86% 8%, rgba(242,208,107,0.18), transparent 34%),
    linear-gradient(135deg, rgba(22,12,30,0.94), rgba(31,25,16,0.9)),
    var(--bg3);
}
.arrogance-gem-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.arrogance-gem-hero p { max-width: 860px; color: rgba(232,222,202,0.92); }
.arrogance-gem-recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.arrogance-gem-recipe-card {
  background:
    linear-gradient(135deg, rgba(198,140,255,0.12), rgba(8,7,5,0.12)),
    var(--bg3);
}
.arrogance-gem-recipe-card.stone {
  background:
    linear-gradient(135deg, rgba(117,184,240,0.12), rgba(8,7,5,0.12)),
    var(--bg3);
}
.arrogance-gem-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border: 1px solid rgba(201,169,110,0.34);
  background: rgba(8,7,5,0.32);
  color: var(--gold);
  font-size: 30px;
  filter: drop-shadow(0 0 16px rgba(201,169,110,0.2));
}
.arrogance-gem-recipe-card h2,
.arrogance-gem-alert h2,
.arrogance-gem-table-card h2 {
  border-bottom: 0;
  padding-bottom: 0;
}
.arrogance-gem-recipe-card p { margin-bottom: 10px; }
.arrogance-gem-recipe-card ul {
  margin-bottom: 0;
  padding-left: 20px;
}
.arrogance-gem-alert {
  border-color: rgba(104,208,138,0.48);
  background:
    linear-gradient(135deg, rgba(104,208,138,0.14), rgba(201,169,110,0.08)),
    var(--bg3);
}
.arrogance-gem-alert p { margin-bottom: 0; color: var(--white); }
.arrogance-gem-alert strong,
.arrogance-gem-recipe-card strong { color: var(--gold-light); }
.arrogance-gem-table-card {
  --gem-color: var(--gold-light);
  background:
    linear-gradient(135deg, rgba(201,169,110,0.08), rgba(8,7,5,0.14)),
    var(--bg3);
}
.arrogance-gem-table-card h2 { color: var(--gem-color); }
.arrogance-gem-table-card p { color: var(--text-muted); }
.arrogance-gem-king { --gem-color: #f0b08c; }
.arrogance-gem-twist { --gem-color: #68d08a; }
.arrogance-gem-magic { --gem-color: #c68cff; }
.arrogance-gem-undead { --gem-color: #9fc8f0; }
.arrogance-gem-table {
  min-width: 720px;
  table-layout: fixed;
}
.arrogance-gem-table th:first-child,
.arrogance-gem-table td:first-child {
  width: 22%;
  text-align: center;
}
.arrogance-gem-table th:nth-child(2),
.arrogance-gem-table td:nth-child(2) {
  text-align: left;
}
.arrogance-gem-table td:nth-child(2) {
  color: var(--gem-color);
  font-weight: 600;
}
.arrogance-gem-table tr.top td {
  background: rgba(201,169,110,0.14);
  color: var(--gold-light);
  font-weight: 800;
}

/* 勇者徽章 */
.hero-badge-page .content-card { margin-bottom: 22px; }
.hero-badge-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(117,184,240,0.22), transparent 32%),
    radial-gradient(circle at 86% 8%, rgba(242,208,107,0.2), transparent 34%),
    linear-gradient(135deg, rgba(8,14,24,0.94), rgba(31,25,16,0.9)),
    var(--bg3);
}
.hero-badge-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.hero-badge-hero p { max-width: 860px; color: rgba(232,222,202,0.92); }
.hero-badge-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.hero-badge-step {
  background:
    linear-gradient(135deg, rgba(117,184,240,0.1), rgba(8,7,5,0.14)),
    var(--bg3);
}
.hero-badge-step span {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border: 1px solid rgba(201,169,110,0.34);
  background: rgba(8,7,5,0.3);
  font-size: 28px;
  filter: drop-shadow(0 0 16px rgba(201,169,110,0.2));
}
.hero-badge-step h2,
.hero-badge-alert h2,
.hero-badge-upgrade h2,
.hero-badge-table-card h2 {
  border-bottom: 0;
  padding-bottom: 0;
}
.hero-badge-step p,
.hero-badge-alert p { margin-bottom: 0; }
.hero-badge-step strong,
.hero-badge-alert strong,
.hero-badge-upgrade strong { color: var(--gold-light); }
.hero-badge-alert {
  border-color: rgba(242,208,107,0.5);
  background:
    linear-gradient(135deg, rgba(242,208,107,0.14), rgba(8,7,5,0.12)),
    var(--bg3);
}
.hero-badge-upgrade {
  background:
    linear-gradient(135deg, rgba(201,169,110,0.1), rgba(239,123,115,0.09)),
    var(--bg3);
}
.hero-badge-upgrade-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.hero-badge-upgrade-list > div {
  border: 1px dashed rgba(201,169,110,0.3);
  background: rgba(8,7,5,0.24);
  padding: 14px;
}
.hero-badge-upgrade-list strong,
.hero-badge-upgrade-list span {
  display: block;
}
.hero-badge-upgrade-list span {
  margin-top: 7px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
}
.hero-badge-table-card {
  background:
    linear-gradient(135deg, rgba(117,184,240,0.08), rgba(201,169,110,0.08)),
    var(--bg3);
}
.hero-badge-table {
  min-width: 980px;
  table-layout: fixed;
}
.hero-badge-table th,
.hero-badge-table td {
  text-align: center;
  vertical-align: middle;
}
.hero-badge-table th:first-child,
.hero-badge-table td:first-child {
  width: 17%;
  color: var(--gold-light);
  font-family: 'Noto Serif TC', serif;
  font-weight: 800;
  letter-spacing: 1px;
}
.hero-badge-table td:last-child {
  color: var(--gold-light);
  background: rgba(201,169,110,0.1);
  font-weight: 800;
}
.hero-badge-table small {
  color: var(--text-muted);
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

/* 釣魚護符 */
.fishing-talisman-page .content-card { margin-bottom: 22px; }
.fishing-talisman-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(117,184,240,0.22), transparent 32%),
    radial-gradient(circle at 86% 8%, rgba(104,208,138,0.18), transparent 34%),
    linear-gradient(135deg, rgba(7,20,26,0.94), rgba(31,25,16,0.9)),
    var(--bg3);
}
.fishing-talisman-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.fishing-talisman-hero p { max-width: 860px; color: rgba(232,222,202,0.92); }
.fishing-talisman-alert {
  border-color: rgba(242,208,107,0.5);
  background:
    linear-gradient(135deg, rgba(242,208,107,0.14), rgba(8,7,5,0.12)),
    var(--bg3);
  text-align: center;
}
.fishing-talisman-alert h2,
.fishing-talisman-location h2,
.fishing-talisman-recipe h2,
.fishing-talisman-warning h2,
.fishing-talisman-fusion h2,
.fishing-talisman-table-card h2 {
  border-bottom: 0;
  padding-bottom: 0;
}
.fishing-talisman-alert p,
.fishing-talisman-location p,
.fishing-talisman-recipe p { margin-bottom: 0; }
.fishing-talisman-alert strong,
.fishing-talisman-location strong,
.fishing-talisman-recipe strong,
.fishing-talisman-warning strong,
.fishing-talisman-fusion strong { color: var(--gold-light); }
.fishing-talisman-location-grid,
.fishing-talisman-recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.fishing-talisman-location,
.fishing-talisman-recipe {
  background:
    linear-gradient(135deg, rgba(117,184,240,0.1), rgba(8,7,5,0.14)),
    var(--bg3);
}
.fishing-talisman-location.grandma,
.fishing-talisman-recipe.turtle {
  background:
    linear-gradient(135deg, rgba(104,208,138,0.1), rgba(8,7,5,0.14)),
    var(--bg3);
}
.fishing-talisman-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border: 1px solid rgba(201,169,110,0.34);
  background: rgba(8,7,5,0.3);
  color: var(--gold);
  font-size: 30px;
  filter: drop-shadow(0 0 16px rgba(201,169,110,0.22));
}
.fishing-talisman-recipe ul,
.fishing-talisman-warning ul {
  margin: 0;
  padding-left: 20px;
}
.fishing-talisman-warning {
  border-color: rgba(239,123,115,0.5);
  background:
    linear-gradient(135deg, rgba(139,26,26,0.18), rgba(201,169,110,0.08)),
    var(--bg3);
}
.fishing-talisman-warning li { margin-bottom: 8px; }
.fishing-talisman-warning li:last-child { margin-bottom: 0; }
.fishing-talisman-fusion {
  background:
    linear-gradient(135deg, rgba(117,184,240,0.1), rgba(201,169,110,0.08)),
    var(--bg3);
}
.fishing-talisman-fusion-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.fishing-talisman-fusion-list > div {
  border: 1px dashed rgba(201,169,110,0.3);
  background: rgba(8,7,5,0.24);
  padding: 14px;
}
.fishing-talisman-fusion-list strong,
.fishing-talisman-fusion-list span {
  display: block;
}
.fishing-talisman-fusion-list span {
  margin-top: 7px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
}
.fishing-talisman-table {
  min-width: 780px;
  table-layout: fixed;
}
.fishing-talisman-table th,
.fishing-talisman-table td {
  text-align: center;
  vertical-align: middle;
}
.fishing-talisman-table th:first-child,
.fishing-talisman-table td:first-child {
  width: 18%;
  color: var(--gold-light);
  font-family: 'Noto Serif TC', serif;
  font-weight: 800;
  letter-spacing: 1px;
}
.fishing-talisman-table th:nth-child(2),
.fishing-talisman-table td:nth-child(2) { color: #ef7b73; }
.fishing-talisman-table th:nth-child(3),
.fishing-talisman-table td:nth-child(3) { color: #75b8f0; }
.fishing-talisman-table th:nth-child(4),
.fishing-talisman-table td:nth-child(4) { color: #68d08a; }
.fishing-talisman-table tr.top td {
  background: rgba(201,169,110,0.14);
  color: var(--gold-light);
  font-weight: 800;
}

/* 龍印魔石 */
.dragon-seal-page .content-card { margin-bottom: 22px; }
.dragon-seal-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(239,123,115,0.2), transparent 32%),
    radial-gradient(circle at 84% 8%, rgba(201,169,110,0.2), transparent 34%),
    linear-gradient(135deg, rgba(21,9,9,0.95), rgba(31,25,16,0.9)),
    var(--bg3);
}
.dragon-seal-hero h2 {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 4px;
}
.dragon-seal-hero p { max-width: 880px; color: rgba(232,222,202,0.92); }
.dragon-seal-alert,
.dragon-seal-rate-card {
  background:
    linear-gradient(135deg, rgba(201,169,110,0.12), rgba(8,7,5,0.18)),
    var(--bg3);
}
.dragon-seal-alert {
  border-color: rgba(104,208,138,0.42);
  text-align: center;
}
.dragon-seal-alert h2,
.dragon-seal-rate-card h2,
.dragon-seal-table-card h2 {
  border-bottom: 0;
  padding-bottom: 0;
}
.dragon-seal-alert p { margin-bottom: 0; }
.dragon-seal-alert strong,
.dragon-seal-rate-card strong { color: var(--gold-light); }
.dragon-seal-rate-table {
  min-width: 760px;
  table-layout: fixed;
}
.dragon-seal-rate-table th,
.dragon-seal-rate-table td {
  text-align: center;
  vertical-align: middle;
}
.dragon-seal-rate-table td:nth-child(odd) {
  color: var(--gold-light);
  font-family: 'Noto Serif TC', serif;
  font-weight: 800;
  letter-spacing: 1px;
}
.dragon-seal-rate-table .rate-high { color: #68d08a; }
.dragon-seal-rate-table .rate-mid { color: #f2d06b; }
.dragon-seal-rate-table .rate-low { color: #f0b08c; }
.dragon-seal-rate-table .rate-rare { color: #ef7b73; }
.dragon-seal-rate-table .rate-top { color: #d86aa3; }
.dragon-seal-rate-table tr.top td {
  background: rgba(201,169,110,0.14);
  color: var(--gold-light);
  font-weight: 800;
}
.dragon-seal-table-card {
  --seal-color: var(--gold-light);
  border-color: color-mix(in srgb, var(--seal-color) 42%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--seal-color) 14%, transparent), rgba(8,7,5,0.16)),
    var(--bg3);
}
.dragon-seal-table-card h2 { color: var(--seal-color); }
.dragon-seal-table-card p { color: var(--text-muted); }
.dragon-seal-fighter { --seal-color: #ef7b73; }
.dragon-seal-archer { --seal-color: #68d08a; }
.dragon-seal-sage { --seal-color: #c68cff; }
.dragon-seal-charge { --seal-color: #9fc8f0; }
.dragon-seal-table {
  min-width: 760px;
  table-layout: fixed;
}
.dragon-seal-table th,
.dragon-seal-table td { vertical-align: middle; }
.dragon-seal-table th:first-child,
.dragon-seal-table td:first-child {
  width: 20%;
  text-align: center;
  color: var(--gold-light);
  font-family: 'Noto Serif TC', serif;
  font-weight: 800;
  letter-spacing: 1px;
}
.dragon-seal-table th:nth-child(2),
.dragon-seal-table td:nth-child(2) {
  color: var(--seal-color);
  font-weight: 700;
}
.dragon-seal-table tr.top td {
  background: rgba(201,169,110,0.14);
  color: var(--gold-light);
  font-weight: 900;
}

/* ══════════════════════════════════════
   遊戲資料庫
══════════════════════════════════════ */
.game-db-shell { margin-top: 28px; }
.game-db-loading { border: 1px solid var(--border); background: var(--bg3); padding: 28px; color: var(--gold-light); text-align: center; letter-spacing: 2px; }
.game-db-home-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.game-db-home-card { display: block; min-height: 210px; padding: 28px 22px; border: 1px solid var(--border); background: linear-gradient(145deg, rgba(201,169,110,0.11), transparent 58%), var(--bg3); color: var(--text); text-align: center; transition: border-color 0.2s, transform 0.2s, background 0.2s; }
.game-db-home-card:hover { border-color: var(--gold); transform: translateY(-2px); background: linear-gradient(145deg, rgba(201,169,110,0.18), transparent 62%), var(--bg4); }
.game-db-home-icon { display: block; margin-bottom: 16px; font-size: 36px; filter: drop-shadow(0 0 12px rgba(201,169,110,0.28)); }
.game-db-home-card strong { display: block; color: var(--gold-light); font-family: 'Noto Serif TC', serif; font-size: 18px; letter-spacing: 3px; }
.game-db-home-card em { display: block; margin-top: 8px; color: var(--white); font-style: normal; font-size: 13px; }
.game-db-home-card p { margin: 14px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.8; }
.game-db-toolbar { border: 1px solid var(--border); background: radial-gradient(circle at top left, rgba(201,169,110,0.13), transparent 34%), var(--bg3); padding: 22px; margin-bottom: 18px; }
.game-db-title-block { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-bottom: 18px; }
.game-db-title-block > span { font-size: 34px; filter: drop-shadow(0 0 14px rgba(201,169,110,0.28)); }
.game-db-title-block strong { display: block; color: var(--gold-light); font-family: 'Noto Serif TC', serif; font-size: 20px; letter-spacing: 3px; }
.game-db-title-block p { margin: 6px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.8; }
.game-db-controls { display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 12px; align-items: start; }
.game-db-search-input,
.game-db-filter-row select { width: 100%; background: rgba(0,0,0,0.28); border: 1px solid rgba(201,169,110,0.28); color: var(--text); padding: 12px 14px; font-family: 'Noto Sans TC', sans-serif; font-size: 13px; outline: none; }
.game-db-search-input:focus,
.game-db-filter-row select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,110,0.08); }
.game-db-filter-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.game-db-filter-row label { display: grid; gap: 5px; min-width: 140px; }
.game-db-filter-row span { color: var(--text-muted); font-size: 11px; letter-spacing: 1px; }
.game-db-count { margin-top: 14px; color: var(--gold); font-size: 12px; letter-spacing: 1px; }
.game-db-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.game-db-card { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; min-height: 106px; width: 100%; padding: 14px; border: 1px solid rgba(201,169,110,0.22); background: rgba(24,21,15,0.88); color: var(--text); text-align: left; cursor: pointer; transition: border-color 0.18s, background 0.18s, transform 0.18s; }
.game-db-card:hover { border-color: var(--gold); background: rgba(37,31,20,0.94); transform: translateY(-1px); }
.game-db-card-icon,
.game-db-detail-icon { display: grid; place-items: center; background: rgba(0,0,0,0.28); border: 1px solid rgba(201,169,110,0.2); }
.game-db-card-icon { width: 54px; height: 54px; }
.game-db-card-icon img,
.game-db-detail-icon img { max-width: 88%; max-height: 88%; object-fit: contain; image-rendering: auto; }
.game-db-card-icon span,
.game-db-detail-icon span { color: var(--gold); font-size: 26px; }
.game-db-card h2 { margin: 0 0 8px; color: var(--gold-light); font-size: 14px; line-height: 1.45; letter-spacing: 1px; }
.game-db-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.game-db-card-meta span { border: 1px solid rgba(201,169,110,0.16); background: rgba(201,169,110,0.06); padding: 4px 6px; color: var(--text-muted); font-size: 11px; }
.game-db-card-meta b { color: var(--gold); font-weight: 500; margin-right: 4px; }
.game-db-more-wrap { display: flex; justify-content: center; margin-top: 22px; }
.game-db-more { min-width: 180px; padding: 12px 22px; border: 1px solid var(--gold); background: transparent; color: var(--gold-light); font-family: 'Noto Serif TC', serif; letter-spacing: 3px; cursor: pointer; }
.game-db-more:hover { background: rgba(201,169,110,0.12); }
.game-db-more[hidden] { display: none; }
.game-db-detail-overlay { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,0.78); backdrop-filter: blur(4px); }
.game-db-detail-overlay[hidden] { display: none; }
.game-db-detail { position: relative; width: min(1100px, 100%); max-height: min(860px, calc(100vh - 48px)); overflow: auto; border: 1px solid var(--border-bright); background: var(--bg3); padding: 26px; box-shadow: 0 20px 70px rgba(0,0,0,0.45); }
.game-db-detail-close { position: sticky; top: 0; float: right; width: 34px; height: 34px; border: 1px solid var(--border); background: var(--bg); color: var(--gold); font-size: 22px; cursor: pointer; z-index: 2; }
.game-db-detail-head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.game-db-detail-icon { width: 96px; height: 96px; }
.game-db-detail-head span { color: var(--text-muted); font-size: 12px; letter-spacing: 3px; }
.game-db-detail-head h2 { margin: 6px 0 0; color: var(--gold-light); font-family: 'Noto Serif TC', serif; font-size: 26px; letter-spacing: 3px; }
.game-db-attr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
.game-db-attr-grid div { border: 1px solid rgba(201,169,110,0.16); background: rgba(0,0,0,0.18); padding: 10px 12px; }
.game-db-attr-grid span { display: block; color: var(--text-muted); font-size: 11px; margin-bottom: 4px; }
.game-db-attr-grid strong { color: var(--text); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.game-db-detail-table { margin-top: 20px; }
.game-db-detail-table h3 { color: var(--gold-light); font-family: 'Noto Serif TC', serif; font-size: 16px; letter-spacing: 3px; margin-bottom: 10px; }
.game-db-detail-table > div { overflow-x: auto; border: 1px solid rgba(201,169,110,0.18); }
.game-db-detail-table table { min-width: 620px; width: 100%; border-collapse: collapse; }
.game-db-detail-table th,
.game-db-detail-table td { border: 1px solid rgba(201,169,110,0.12); padding: 9px 11px; font-size: 12px; color: var(--text); }
.game-db-detail-table th { background: rgba(201,169,110,0.11); color: var(--gold-light); font-weight: 600; }
.game-db-detail-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

.content-embed,
#js-download-content {
  margin-bottom: 24px;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 舊 HTML 內容統一成暗金官網風，覆蓋白底 Google 文件式 inline style */
.content-embed > div,
#js-download-content > div,
.cms-rich .cms-custom-html > div {
  max-width: 100% !important;
  margin: 0 !important;
  padding: clamp(20px, 3vw, 34px) !important;
  color: var(--text) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.026), transparent 34%),
    radial-gradient(ellipse at 50% 0%, rgba(201,169,110,0.08), transparent 55%),
    var(--bg3) !important;
  border: 1px solid var(--border) !important;
  border-top: 2px solid rgba(201,169,110,0.55) !important;
  border-radius: 0 !important;
  box-shadow: 0 18px 54px rgba(0,0,0,0.46) !important;
  font-family: 'Noto Sans TC', sans-serif !important;
  line-height: 1.9 !important;
}
.content-embed > div::before,
#js-download-content > div::before,
.cms-rich .cms-custom-html > div::before {
  content: '';
  display: block;
  width: 72px;
  height: 2px;
  margin: 0 auto 24px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.content-embed :where(h1, h2),
#js-download-content :where(h1, h2),
.cms-rich :where(h1, h2) {
  font-family: 'Noto Serif TC', serif !important;
  color: var(--white) !important;
  font-size: clamp(20px, 3vw, 29px) !important;
  font-weight: 700 !important;
  letter-spacing: 4px !important;
  text-align: center !important;
  line-height: 1.35 !important;
  margin: 0 0 26px !important;
  padding: 0 0 16px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(201,169,110,0.28) !important;
  text-shadow: 0 4px 22px rgba(0,0,0,0.72);
}
.content-embed :where(h3, h4),
#js-download-content :where(h3, h4),
.cms-rich :where(h3, h4) {
  font-family: 'Noto Serif TC', serif !important;
  color: var(--gold-light) !important;
  font-size: clamp(16px, 2.2vw, 20px) !important;
  letter-spacing: 2px !important;
  margin: 28px 0 14px !important;
  padding: 10px 0 10px 15px !important;
  border-left: 3px solid var(--gold) !important;
  background: linear-gradient(90deg, rgba(201,169,110,0.11), transparent 70%) !important;
}
.content-embed :where(p, li, div),
#js-download-content :where(p, li, div),
.cms-rich :where(p, li, div) {
  color: inherit;
}
.content-embed :where(p, li),
#js-download-content :where(p, li),
.cms-rich :where(p, li) {
  font-size: 14px !important;
  line-height: 2 !important;
}
.content-embed :where(ul, ol),
#js-download-content :where(ul, ol),
.cms-rich :where(ul, ol) {
  padding-left: 24px !important;
  margin: 12px 0 18px !important;
}
.content-embed li::marker,
#js-download-content li::marker,
.cms-rich li::marker { color: var(--gold); }
.content-embed strong,
#js-download-content strong,
.cms-rich strong { color: var(--gold-light) !important; }
.content-embed em,
#js-download-content em,
.cms-rich em { color: var(--white) !important; }
.content-embed a,
#js-download-content a,
.cms-rich a {
  color: var(--gold-light) !important;
  border-bottom: 1px solid rgba(201,169,110,0.38) !important;
}
.content-embed a:hover,
#js-download-content a:hover,
.cms-rich a:hover { color: var(--white) !important; }

.content-embed :where(div, section, article, aside, p, span, td, th, tr, thead, tbody)[style*="background"],
#js-download-content :where(div, section, article, aside, p, span, td, th, tr, thead, tbody)[style*="background"],
.cms-rich :where(div, section, article, aside, p, span, td, th, tr, thead, tbody)[style*="background"] {
  background: rgba(255,255,255,0.035) !important;
}
.content-embed :where(div, section, article, aside)[style*="border"],
#js-download-content :where(div, section, article, aside)[style*="border"],
.cms-rich :where(div, section, article, aside)[style*="border"] {
  border-color: rgba(201,169,110,0.26) !important;
}
.content-embed :where(div, section, article, aside, span, img)[style*="border-radius"],
#js-download-content :where(div, section, article, aside, span, img)[style*="border-radius"],
.cms-rich :where(div, section, article, aside, span, img)[style*="border-radius"] {
  border-radius: 3px !important;
}
.content-embed :where(div, section, article, aside)[style*="box-shadow"],
#js-download-content :where(div, section, article, aside)[style*="box-shadow"],
.cms-rich :where(div, section, article, aside)[style*="box-shadow"] {
  box-shadow: 0 12px 34px rgba(0,0,0,0.26) !important;
}
.content-embed :where(div, section, article, aside)[style*="border-left"],
#js-download-content :where(div, section, article, aside)[style*="border-left"],
.cms-rich :where(div, section, article, aside)[style*="border-left"] {
  background: rgba(201,169,110,0.07) !important;
}

.content-embed table,
#js-download-content table,
.cms-rich table {
  width: 100% !important;
  border-collapse: collapse !important;
  color: var(--text) !important;
  background: rgba(9,7,5,0.38) !important;
  border: 1px solid rgba(201,169,110,0.24) !important;
  font-size: 13.5px !important;
}
.content-embed :where(thead, tr[style*="background"]),
#js-download-content :where(thead, tr[style*="background"]),
.cms-rich :where(thead, tr[style*="background"]) {
  background: rgba(201,169,110,0.08) !important;
}
.content-embed th,
#js-download-content th,
.cms-rich th {
  color: var(--gold-light) !important;
  background: rgba(201,169,110,0.13) !important;
  border: 1px solid rgba(201,169,110,0.28) !important;
  padding: 11px 13px !important;
  font-family: 'Noto Serif TC', serif !important;
  letter-spacing: 1px !important;
}
.content-embed td,
#js-download-content td,
.cms-rich td {
  color: var(--text) !important;
  background: transparent !important;
  border: 1px solid rgba(201,169,110,0.15) !important;
  padding: 10px 13px !important;
}
.content-embed tr:hover td,
#js-download-content tr:hover td,
.cms-rich tr:hover td { background: rgba(201,169,110,0.055) !important; }

.content-embed img,
#js-download-content img,
.cms-rich img {
  border: 1px solid rgba(201,169,110,0.32) !important;
  background: rgba(255,255,255,0.035) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.26);
}
.content-embed :where(code, pre, [style*="monospace"], [style*="pre-wrap"]),
#js-download-content :where(code, pre, [style*="monospace"], [style*="pre-wrap"]),
.cms-rich :where(code, pre, [style*="monospace"], [style*="pre-wrap"]) {
  color: var(--white) !important;
  background: rgba(0,0,0,0.24) !important;
  border: 1px solid rgba(201,169,110,0.22) !important;
  border-radius: 0 !important;
}
.content-embed :where([style*="pre-wrap"], pre),
#js-download-content :where([style*="pre-wrap"], pre),
.cms-rich :where([style*="pre-wrap"], pre) {
  padding: 18px !important;
  overflow-x: auto;
}
.content-embed hr,
#js-download-content hr,
.cms-rich hr {
  border: 0 !important;
  border-top: 1px solid rgba(201,169,110,0.24) !important;
  margin: 28px 0 !important;
}
.content-embed a[style*="background"],
#js-download-content a[style*="background"],
.cms-rich a[style*="background"] {
  display: inline-block !important;
  color: var(--bg) !important;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light)) !important;
  border: 1px solid rgba(231,201,138,0.72) !important;
  border-radius: 2px !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28) !important;
}

.content-embed [style*="#202124"],
.content-embed [style*="#333"],
.content-embed [style*="#444"],
.content-embed [style*="#555"],
.content-embed [style*="#5f6368"],
.content-embed [style*="#1c1e21"],
.content-embed [style*="#3c4043"],
.content-embed [style*="#000"],
#js-download-content [style*="#202124"],
#js-download-content [style*="#333"],
#js-download-content [style*="#444"],
#js-download-content [style*="#555"],
#js-download-content [style*="#5f6368"],
#js-download-content [style*="#1c1e21"],
#js-download-content [style*="#3c4043"],
#js-download-content [style*="#000"],
.cms-rich [style*="#202124"],
.cms-rich [style*="#333"],
.cms-rich [style*="#444"],
.cms-rich [style*="#555"],
.cms-rich [style*="#5f6368"],
.cms-rich [style*="#1c1e21"],
.cms-rich [style*="#3c4043"],
.cms-rich [style*="#000"] { color: var(--text) !important; }

.content-embed :where([style*="#ffd700"], [style*="#FFD700"], [style*="#ffcc00"], [style*="#fbc02d"], [style*="#f9ab00"]),
#js-download-content :where([style*="#ffd700"], [style*="#FFD700"], [style*="#ffcc00"], [style*="#fbc02d"], [style*="#f9ab00"]),
.cms-rich :where([style*="#ffd700"], [style*="#FFD700"], [style*="#ffcc00"], [style*="#fbc02d"], [style*="#f9ab00"]) { color: var(--gold-light) !important; }
.content-embed :where([style*="#1a73e8"], [style*="#1967d2"], [style*="#1565c0"], [style*="#0d47a1"]),
#js-download-content :where([style*="#1a73e8"], [style*="#1967d2"], [style*="#1565c0"], [style*="#0d47a1"]),
.cms-rich :where([style*="#1a73e8"], [style*="#1967d2"], [style*="#1565c0"], [style*="#0d47a1"]) { color: #6aaee8 !important; }
.content-embed :where([style*="#d93025"], [style*="#c5221f"], [style*="#d32f2f"], [style*="#b71c1c"], [style*="#ff4444"], [style*="#ff4500"]),
#js-download-content :where([style*="#d93025"], [style*="#c5221f"], [style*="#d32f2f"], [style*="#b71c1c"], [style*="#ff4444"], [style*="#ff4500"]),
.cms-rich :where([style*="#d93025"], [style*="#c5221f"], [style*="#d32f2f"], [style*="#b71c1c"], [style*="#ff4444"], [style*="#ff4500"]) { color: #e87070 !important; }
.content-embed :where([style*="#137333"], [style*="#2e7d32"], [style*="#00ff7f"], [style*="#00e676"], [style*="#1e8e3e"]),
#js-download-content :where([style*="#137333"], [style*="#2e7d32"], [style*="#00ff7f"], [style*="#00e676"], [style*="#1e8e3e"]),
.cms-rich :where([style*="#137333"], [style*="#2e7d32"], [style*="#00ff7f"], [style*="#00e676"], [style*="#1e8e3e"]) { color: #78d998 !important; }
.content-embed :where([style*="#b06000"], [style*="#e65100"], [style*="#f57f17"], [style*="#ff9800"], [style*="#ff8c00"]),
#js-download-content :where([style*="#b06000"], [style*="#e65100"], [style*="#f57f17"], [style*="#ff9800"], [style*="#ff8c00"]),
.cms-rich :where([style*="#b06000"], [style*="#e65100"], [style*="#f57f17"], [style*="#ff9800"], [style*="#ff8c00"]) { color: var(--gold) !important; }
.content-embed :where([style*="#8430ce"], [style*="#e040fb"], [style*="#8e24aa"], [style*="#ba68c8"]),
#js-download-content :where([style*="#8430ce"], [style*="#e040fb"], [style*="#8e24aa"], [style*="#ba68c8"]),
.cms-rich :where([style*="#8430ce"], [style*="#e040fb"], [style*="#8e24aa"], [style*="#ba68c8"]) { color: #cda0ff !important; }

.content-embed > div,
#js-download-content > div,
.cms-rich .cms-custom-html > div {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.026), transparent 34%),
    radial-gradient(ellipse at 50% 0%, rgba(201,169,110,0.08), transparent 55%),
    var(--bg3) !important;
  color: var(--text) !important;
}
.content-embed :where(h1, h2),
#js-download-content :where(h1, h2),
.cms-rich :where(h1, h2) { color: var(--white) !important; }
.content-embed :where(h3, h4),
#js-download-content :where(h3, h4),
.cms-rich :where(h3, h4) { color: var(--gold-light) !important; }
.content-embed th,
#js-download-content th,
.cms-rich th { color: var(--gold-light) !important; }
.content-embed td,
#js-download-content td,
.cms-rich td { color: var(--text) !important; }
.content-embed a[style*="background"],
#js-download-content a[style*="background"],
.cms-rich a[style*="background"] { color: var(--bg) !important; }
.content-embed :where([class*="table"]),
#js-download-content :where([class*="table"]),
.cms-rich :where([class*="table"]) {
  background: rgba(9,7,5,0.38) !important;
  border-color: rgba(201,169,110,0.24) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
.content-embed :where([class*="table"]) :where(thead, tr, th),
#js-download-content :where([class*="table"]) :where(thead, tr, th),
.cms-rich :where([class*="table"]) :where(thead, tr, th) {
  background: rgba(201,169,110,0.1) !important;
  color: var(--gold-light) !important;
  border-color: rgba(201,169,110,0.26) !important;
}
.content-embed :where([class*="table"]) :where(tbody, td),
#js-download-content :where([class*="table"]) :where(tbody, td),
.cms-rich :where([class*="table"]) :where(tbody, td) {
  background: transparent !important;
  color: var(--text) !important;
  border-color: rgba(201,169,110,0.15) !important;
}
.content-embed :where(.powder-highlight, [class*="highlight"]),
#js-download-content :where(.powder-highlight, [class*="highlight"]),
.cms-rich :where(.powder-highlight, [class*="highlight"]) {
  color: #e87070 !important;
  background: transparent !important;
}

/* 提示框 */
.notice { padding: 12px 16px; margin: 14px 0; font-size: 13px; line-height: 1.9; border-left: 3px solid; }
.notice.gold  { border-color: var(--gold);   background: rgba(201,169,110,0.07); }
.notice.red   { border-color: var(--crimson); background: rgba(139,26,26,0.07); }
.notice.blue  { border-color: #4a90d9;        background: rgba(74,144,217,0.07); }
.notice.green { border-color: #50c878;        background: rgba(80,200,120,0.07); }
.notice strong { color: var(--gold-light); }
.register-page .notice { overflow-wrap: anywhere; word-break: break-word; }

/* ══════════════════════════════════════
   浮動快捷視窗
══════════════════════════════════════ */
#floating-panel {
  position: fixed;
  left: 16px;
  bottom: 58px;            /* 疊在左下角音樂鈕正上方 */
  z-index: 1050;
  display: flex;
  flex-direction: column-reverse;  /* 按鈕在下、面板往上展開 */
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;    /* 容器本身不吃點擊，避免收合時蓋住下方音樂播放器的控制鍵 */
}
.float-toggle {
  width: 54px;
  height: 54px;
  border: 1px solid var(--border-bright);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;    /* 容器設為 none，按鈕本身要可點 */
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(0,0,0,0.48), 0 0 20px rgba(201,169,110,0.22);
}
.float-toggle span { display: block; font-size: 12px; }
.float-box {
  width: 276px;
  border: 1px solid var(--border-bright);
  background: rgba(15,12,8,0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 54px rgba(0,0,0,0.58);
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
}
#floating-panel.open .float-box {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.side-float-banner {
  position: fixed;
  top: 50%;
  z-index: 1040;
  width: clamp(178px, 14vw, 250px);
  transform: translateY(-50%);
  display: block;
  border: 1px solid var(--border-bright);
  background: rgba(15,12,8,0.76);
  box-shadow: 0 18px 44px rgba(0,0,0,0.58), 0 0 22px rgba(201,169,110,0.16);
  transition: transform 0.2s, filter 0.2s, opacity 0.2s;
}
.side-float-banner.left { left: 18px; }
.side-float-banner.right { right: 18px; }
.side-float-banner img { width: 100%; height: auto; display: block; }
.side-float-banner[href]:hover { filter: brightness(1.1); transform: translateY(-50%) scale(1.035); }
.side-float-banner.is-disabled { cursor: default; pointer-events: none; opacity: 0.94; }
.game-db-page .side-float-banner,
.register-page #floating-panel,
.register-page .side-float-banner { display: none; }

#site-music-player {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1035;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;    /* 容器不吃點擊；收合時的隱形面板才不會擋住手機左下角的內容 */
}
.music-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.46);
  background: rgba(13,11,8,0.76);
  color: var(--gold-light);
  cursor: pointer;
  pointer-events: auto;    /* 容器設為 none，開關鈕本身要可點 */
  box-shadow: 0 10px 24px rgba(0,0,0,0.42);
  backdrop-filter: blur(8px);
  font-family: 'Noto Serif TC', serif;
  font-size: 17px;
  line-height: 1;
  opacity: 0.72;
  transition: opacity 0.18s, border-color 0.18s, transform 0.18s;
}
.music-toggle:hover,
#site-music-player.is-open .music-toggle {
  opacity: 1;
  border-color: var(--gold);
  transform: translateY(-1px);
}
.music-panel {
  width: 300px;
  height: 400px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-bright);
  background: rgba(15,12,8,0.95);
  box-shadow: 0 18px 48px rgba(0,0,0,0.56);
  backdrop-filter: blur(12px);
  transform: translateY(8px);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.18s, transform 0.18s;
}
#site-music-player audio { display: none; }
#site-music-player.is-open .music-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.music-head {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px 0 12px;
  border-bottom: 1px solid var(--border);
}
.music-head strong {
  color: var(--gold-light);
  font-family: 'Noto Serif TC', serif;
  font-size: 12px;
  letter-spacing: 1px;
}
.music-head button {
  border: 0;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}
.music-head button:hover { color: var(--gold); }

/* 自架播放器主體 */
.music-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 0;
}
.music-now {
  display: flex;
  align-items: center;
  gap: 10px;
}
.music-cover {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg3) center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 20px;
}
.music-cover.has-cover span { display: none; }
.music-meta { flex: 1; min-width: 0; }
.music-track-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-track-artist {
  margin-top: 2px;
  color: var(--text-dim);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.music-time {
  flex: 0 0 auto;
  color: var(--text-dim);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.music-seek, .music-vol {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--bg4);
  cursor: pointer;
  outline: none;
}
.music-seek { flex: 1; }
.music-seek::-webkit-slider-thumb,
.music-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  border: 0;
  cursor: pointer;
}
.music-seek::-moz-range-thumb,
.music-vol::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  border: 0;
  cursor: pointer;
}
.music-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.music-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, opacity 0.15s;
}
.music-btn svg { width: 18px; height: 18px; fill: currentColor; }
.music-btn:hover { color: var(--gold); }
.music-btn-play {
  width: 38px;
  height: 38px;
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
}
.music-btn-play:hover {
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}
.music-btn-play svg { width: 20px; height: 20px; }
.music-btn-mode { opacity: 0.45; }
.music-btn-mode.is-active { opacity: 1; color: var(--gold); }
.music-volume { display: flex; align-items: center; margin-left: auto; }
.music-vol { flex: 0 0 64px; width: 64px; }
.music-list {
  flex: 1;
  min-height: 0;
  margin: 10px -12px 0;
  padding: 4px 0;
  border-top: 1px solid var(--border);
  list-style: none;
  overflow-y: auto;
}
.music-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.music-item:hover { background: rgba(201,169,110,0.08); color: var(--text); }
.music-item.is-playing { color: var(--gold); }
.music-item-idx {
  flex: 0 0 16px;
  text-align: right;
  font-size: 10px;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}
.music-item-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-item-artist {
  flex: 0 0 auto;
  max-width: 40%;
  font-size: 10px;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-empty {
  padding: 30px 18px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.9;
}
.music-empty code {
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--bg3);
  color: var(--gold-light);
  font-size: 11px;
}
#site-music-player.is-playing .music-toggle {
  opacity: 1;
  border-color: var(--gold);
  animation: musicPulse 1.6s ease-in-out infinite;
}
@keyframes musicPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(0,0,0,0.42), 0 0 0 0 rgba(201,169,110,0); }
  50%      { box-shadow: 0 10px 24px rgba(0,0,0,0.42), 0 0 0 4px rgba(201,169,110,0.18); }
}
.float-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--border);
}
.float-head strong {
  display: block;
  color: var(--gold-light);
  font-family: 'Noto Serif TC', serif;
  font-size: 15px;
}
.float-head span {
  display: block;
  color: var(--text-dim);
  font-size: 11px;
  margin-top: 2px;
}
.float-head button {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.float-head button:hover { color: var(--gold); }
.float-links { padding: 10px; display: grid; gap: 8px; }
.float-link {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(201,169,110,0.16);
  background: rgba(255,255,255,0.025);
  color: var(--text);
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}
.float-link:hover {
  transform: translateX(-3px);
  border-color: var(--gold);
  background: rgba(201,169,110,0.08);
}
.float-link span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  border-right: 1px solid rgba(201,169,110,0.16);
}
.float-link strong { padding: 0 12px; font-size: 13px; }
.float-link.line span { color: #50c878; }
.float-link.gold span { color: var(--gold-light); }
.float-link.blue span { color: #4a90d9; }

/* ══════════════════════════════════════
   彈出公告
══════════════════════════════════════ */
#popup-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 1100;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}
#popup-overlay.open { display: flex; }
.popup-box {
  background: var(--bg3);
  border: 1px solid var(--border-bright);
  max-width: 480px; width: 90%;
  padding: 36px;
  position: relative;
  box-shadow: 0 0 60px rgba(201,169,110,0.15);
}
.popup-box::before { content: ''; position: absolute; inset: 6px; border: 1px solid var(--border); pointer-events: none; }
.popup-close { position: absolute; top: 12px; right: 16px; color: var(--text-dim); font-size: 20px; cursor: pointer; background: none; border: none; transition: color 0.2s; z-index: 1; }
.popup-close:hover { color: var(--gold); }
.popup-title { font-family: 'Noto Serif TC', serif; font-size: 17px; color: var(--gold); text-align: center; margin-bottom: 18px; letter-spacing: 3px; }
.popup-content { font-size: 13px; color: var(--text); line-height: 2; }
.popup-content strong { color: var(--gold-light); }
.popup-divider { border: none; border-top: 1px solid var(--border); margin: 13px 0; }
.popup-btn { display: block; width: 100%; padding: 11px; margin-top: 16px; background: transparent; border: 1px solid var(--gold); color: var(--gold); font-family: 'Noto Serif TC', serif; font-size: 14px; letter-spacing: 3px; cursor: pointer; transition: all 0.2s; text-align: center; }
.popup-btn:hover { background: var(--gold); color: var(--bg); }

/* ══════════════════════════════════════
   申辦帳號表單
══════════════════════════════════════ */
.form-panel { max-width: 580px; margin: 0 auto; background: var(--bg3); border: 1px solid var(--border); }
.form-panel-head { background: var(--bg4); border-bottom: 1px solid var(--border); padding: 18px 28px; font-family: 'Noto Serif TC', serif; font-size: 16px; color: var(--gold); letter-spacing: 3px; text-align: center; position: relative; }
.form-panel-head::after { content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: 60px; height: 2px; background: var(--gold); }
.form-body { padding: 28px; }
.form-intro { background: var(--bg4); border-left: 2px solid var(--gold); padding: 12px 16px; margin-bottom: 22px; font-size: 12px; color: var(--text-dim); line-height: 1.9; }
.form-intro strong { color: var(--gold-light); }
.register-notes {
  background:
    linear-gradient(90deg, rgba(201,169,110,0.1), transparent 58%),
    var(--bg3);
  border-color: rgba(201,169,110,0.38);
}
.register-notes h3 { color: var(--gold-light); font-size: 15px; }
.register-notes ul {
  padding-left: 22px;
  margin: 8px 0 4px;
  color: var(--text);
  font-size: 14px;
  line-height: 2.15;
  font-weight: 500;
}
.register-notes li {
  padding-left: 2px;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.register-notes li::marker { color: var(--gold-light); }
.form-hint {
  margin-top: 6px;
  color: var(--gold-light);
  font-size: 12px;
  line-height: 1.75;
  opacity: 0.9;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.form-group { margin-bottom: 17px; }
.form-label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--text-dim); letter-spacing: 1px; }
.form-label .req { color: var(--crimson); margin-left: 4px; }
.form-label .hint { color: var(--text-muted); font-size: 11px; margin-left: 8px; }
.form-input, .form-select { width: 100%; background: var(--bg2); border: 1px solid rgba(201,169,110,0.2); color: var(--text); padding: 10px 14px; font-family: 'Noto Sans TC', sans-serif; font-size: 13px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; appearance: none; }
.form-input:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,110,0.08); }
.form-input::placeholder { color: var(--text-muted); }
.form-select option { background: var(--bg3); }
/* 密碼顯示/隱藏開關 */
.pw-field { position: relative; }
.pw-field .form-input { padding-right: 44px; }
.pw-toggle {
  position: absolute; top: 0; right: 0; height: 100%; width: 42px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; padding: 0; cursor: pointer;
  color: var(--text-dim); transition: color 0.15s;
}
.pw-toggle:hover { color: var(--gold); }
.pw-toggle svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.pw-toggle.is-on { color: var(--gold); }
.pw-toggle.is-on::after {
  content: ''; position: absolute; left: 10px; right: 10px; top: 50%;
  height: 2px; background: currentColor; border-radius: 2px;
  transform: rotate(-18deg);
}
/* 帳號/暱稱查重狀態 */
.field-status { margin-top: 5px; min-height: 16px; font-size: 12px; letter-spacing: 0.5px; line-height: 1.4; }
.field-status.is-checking { color: var(--text-dim); }
.field-status.is-ok { color: #50c878; }
.field-status.is-bad { color: #ff6464; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-code { font-family: monospace; font-size: 20px; letter-spacing: 6px; color: var(--gold); background: var(--bg4); border: 1px solid var(--border); padding: 8px 16px; user-select: none; cursor: pointer; white-space: nowrap; }
.check-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.check-row input[type="checkbox"] { width: auto; accent-color: var(--gold); }
.check-row label { font-size: 12px; color: var(--text-dim); cursor: pointer; }
.class-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.class-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  background: rgba(201,169,110,0.045);
  border: 1px solid rgba(201,169,110,0.18);
  padding: 8px 10px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.class-choice:hover { border-color: rgba(201,169,110,0.42); background: rgba(201,169,110,0.08); }
.class-choice input { width: 16px; height: 16px; accent-color: var(--gold); flex: 0 0 auto; }
.class-choice span { color: var(--text); font-size: 13px; letter-spacing: 1px; }
.class-choice:has(input:checked) { border-color: var(--gold); background: rgba(201,169,110,0.14); }
.class-choice:has(input:checked) span { color: var(--gold-light); font-weight: 700; }
.btn-submit { width: 100%; padding: 13px; background: linear-gradient(135deg, var(--gold-dark), var(--gold)); border: none; color: var(--bg); font-family: 'Noto Serif TC', serif; font-size: 15px; font-weight: 700; letter-spacing: 4px; cursor: pointer; transition: all 0.25s; }
.btn-submit:hover:not(:disabled) { background: linear-gradient(135deg, var(--gold), var(--gold-light)); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,169,110,0.25); }
.btn-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.reg-success { text-align: center; padding: 40px 20px; }
.reg-success h3 { font-family: 'Noto Serif TC', serif; font-size: 20px; color: var(--gold); letter-spacing: 3px; margin-bottom: 16px; }
.reg-success p { font-size: 13px; color: var(--text-dim); line-height: 2; }

/* ══════════════════════════════════════
   文章顯示
══════════════════════════════════════ */
.post-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.026), transparent 34%),
    radial-gradient(ellipse at 50% 0%, rgba(201,169,110,0.08), transparent 58%),
    var(--bg3);
  border: 1px solid var(--border);
  border-top: 2px solid rgba(201,169,110,0.55);
  padding: 28px 32px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 54px rgba(0,0,0,0.42);
}
.post-card.post-layout-featured {
  border-color: var(--border-bright);
  background:
    linear-gradient(135deg, rgba(139,26,26,0.16), rgba(201,169,110,0.08)),
    radial-gradient(ellipse at 50% 0%, rgba(201,169,110,0.1), transparent 58%),
    var(--bg3);
}
.post-card.post-layout-compact { padding: 20px 24px; }
.post-card h2 {
  font-family: 'Noto Serif TC', serif;
  color: var(--white);
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: 4px;
  line-height: 1.35;
  margin-bottom: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201,169,110,0.28);
  text-shadow: 0 4px 22px rgba(0,0,0,0.72);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.post-meta span {
  border: 1px solid rgba(201,169,110,0.24);
  background: rgba(201,169,110,0.045);
  color: var(--text-dim);
  padding: 2px 8px;
}
.post-meta span:first-child { color: var(--gold); border-color: rgba(201,169,110,0.48); }
.post-body { color: var(--text); font-size: 14px; line-height: 2; }
.cms-rich { overflow-wrap: anywhere; word-break: break-word; }
.post-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 1px solid var(--border);
  margin: 0 0 18px;
}
/* 活動公告：條列式清單（點標題展開內容）*/
.event-list { display: flex; flex-direction: column; gap: 12px; }
.event-item { border: 1px solid var(--border); background: var(--bg2); overflow: hidden; }
.event-item.is-pinned { border-color: var(--border-bright); }
.event-head {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; background: transparent; border: 0; cursor: pointer;
  text-align: left; font-family: inherit; color: var(--text); transition: background 0.15s;
}
.event-head:hover { background: rgba(201,169,110,0.06); }
.event-head.is-open { background: rgba(201,169,110,0.08); }
.event-date { flex: 0 0 auto; font-size: 12px; color: var(--text-dim); letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.event-title { flex: 1; min-width: 0; font-family: 'Noto Serif TC', serif; font-size: 15px; font-weight: 600; color: var(--gold-light); letter-spacing: 0.5px; }
.event-badge { flex: 0 0 auto; font-size: 11px; padding: 2px 9px; border-radius: 3px; background: rgba(80,200,120,0.14); color: #6fcf97; border: 1px solid rgba(80,200,120,0.3); letter-spacing: 1px; }
.event-arrow { flex: 0 0 auto; color: var(--text-dim); font-size: 12px; transition: transform 0.2s, color 0.2s; }
.event-head.is-open .event-arrow { transform: rotate(180deg); color: var(--gold); }
.event-body { padding: 4px 18px 20px; border-top: 1px solid var(--border); }
.event-badge.ended { background: rgba(122,110,90,0.16); color: var(--text-dim); border-color: rgba(122,110,90,0.4); }
.event-item.is-ended { opacity: 0.6; }
.event-item.is-ended .event-title { color: var(--text-dim); }
@media (max-width: 600px) {
  .event-head { gap: 10px; padding: 14px; flex-wrap: wrap; }
  .event-date { order: 1; }
  .event-badge { order: 1; }
  .event-arrow { order: 1; margin-left: auto; }
  .event-title { order: 2; flex: 1 1 100%; font-size: 14px; }
  .event-body { padding: 4px 14px 16px; }
}
.cms-rich h2, .cms-rich h3 {
  font-family: 'Noto Serif TC', serif;
  color: var(--gold-light);
  letter-spacing: 2px;
  margin: 20px 0 10px;
}
.cms-rich h2 { font-size: 18px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.cms-rich h3 { font-size: 15px; color: var(--white); }
.cms-rich p { margin-bottom: 12px; }
.cms-rich a { color: var(--gold-light); border-bottom: 1px solid rgba(201,169,110,0.35); }
.cms-rich img { max-width: 100%; border: 1px solid var(--border); margin: 14px 0; }
.cms-rich ul, .cms-rich ol { padding-left: 22px; margin: 12px 0; }
.cms-rich li { margin-bottom: 6px; }
.cms-rich blockquote {
  border-left: 3px solid var(--gold);
  background: rgba(201,169,110,0.07);
  padding: 12px 16px;
  margin: 14px 0;
  color: var(--text);
}
.cms-rich hr { border: none; border-top: 1px solid var(--border); margin: 22px 0; }
.cms-rich table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 16px 0; }
.cms-rich th, .cms-rich td { border: 1px solid rgba(201,169,110,0.18); padding: 10px 12px; }
.cms-rich th { color: var(--gold); background: rgba(201,169,110,0.08); }
.cms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.cms-panel {
  border: 1px solid var(--border);
  background: rgba(201,169,110,0.05);
  padding: 16px;
}
.cms-panel h3 { margin-top: 0; }
.cms-panel p:last-child { margin-bottom: 0; }
.cms-callout {
  border-left: 3px solid var(--gold);
  background: rgba(201,169,110,0.08);
  padding: 14px 16px;
  margin: 16px 0;
}
.cms-callout.red { border-color: #e87070; background: rgba(139,26,26,0.12); }
.cms-callout.blue { border-color: #4a90d9; background: rgba(74,144,217,0.1); }
.cms-callout.green { border-color: #50c878; background: rgba(80,200,120,0.1); }
.cms-divider {
  color: var(--gold-dark);
  font-size: 12px;
  letter-spacing: 5px;
  margin: 18px 0;
  text-align: center;
}
.cms-tag {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 2px;
}
.cms-tag.red { border-color: rgba(232,112,112,0.65); color: #e87070; }
.cms-tag.blue { border-color: rgba(74,144,217,0.65); color: #6aaee8; }
.cms-tag.green { border-color: rgba(80,200,120,0.65); color: #78d998; }
.cms-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg) !important;
  border: none !important;
  padding: 10px 18px;
  font-weight: 700;
  margin: 8px 8px 8px 0;
  text-align: center;
}
.cms-hero-strip {
  border: 1px solid var(--border-bright);
  background: linear-gradient(135deg, rgba(201,169,110,0.16), rgba(139,26,26,0.14));
  padding: 24px;
  margin: 18px 0;
}
.cms-hero-strip h2 { border: none; margin-top: 0; padding-bottom: 0; }
.cms-hero-strip p:last-child { margin-bottom: 0; }
.btn-small {
  border: 1px solid var(--border);
  background: rgba(201,169,110,0.06);
  color: var(--gold);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
}
.btn-small:hover { border-color: var(--gold); }

/* ══════════════════════════════════════
   全站搜尋
══════════════════════════════════════ */
.search-shell {
  max-width: 920px;
  margin: 0 auto 40px;
}
.search-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.026), transparent 44%),
    radial-gradient(ellipse at 50% 0%, rgba(201,169,110,0.1), transparent 62%),
    var(--bg3);
  border: 1px solid var(--border-bright);
  padding: 24px;
  box-shadow: 0 18px 54px rgba(0,0,0,0.42);
}
.search-panel label {
  display: block;
  font-family: 'Noto Serif TC', serif;
  color: var(--gold-light);
  font-size: 16px;
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.search-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
}
.search-input {
  width: 100%;
  min-width: 0;
  background: rgba(8,6,4,0.88);
  border: 1px solid rgba(201,169,110,0.28);
  color: var(--white);
  padding: 13px 15px;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.search-input:focus {
  border-color: var(--gold);
  background: rgba(8,6,4,0.96);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.1);
}
.search-input::placeholder { color: var(--text-muted); }
.search-submit {
  border: 1px solid var(--border-bright);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg);
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
  transition: transform 0.18s, filter 0.18s;
}
.search-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.search-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.search-chip-row button {
  border: 1px solid rgba(201,169,110,0.24);
  background: rgba(201,169,110,0.045);
  color: var(--text-dim);
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.search-chip-row button:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201,169,110,0.08);
}
.search-summary {
  margin: 22px 0 12px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 1px;
}
.search-results {
  display: grid;
  gap: 12px;
}
.search-result-card {
  display: block;
  background: rgba(28,24,16,0.82);
  border: 1px solid rgba(201,169,110,0.22);
  border-left: 3px solid rgba(201,169,110,0.58);
  padding: 18px 20px;
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}
.search-result-card:hover {
  transform: translateX(4px);
  border-color: var(--gold);
  background: rgba(35,31,23,0.92);
}
.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7px;
}
.search-result-meta span {
  border: 1px solid rgba(201,169,110,0.24);
  background: rgba(201,169,110,0.045);
  color: var(--text-dim);
  font-size: 11px;
  padding: 2px 8px;
}
.search-result-card h2 {
  font-family: 'Noto Serif TC', serif;
  color: var(--white);
  font-size: 19px;
  letter-spacing: 2px;
  line-height: 1.45;
  margin-bottom: 8px;
}
.search-result-card p {
  color: var(--text);
  font-size: 13px;
  line-height: 1.85;
}
.search-result-card mark {
  background: rgba(201,169,110,0.24);
  color: var(--gold-light);
  padding: 0 3px;
}
.search-empty {
  border: 1px solid rgba(201,169,110,0.18);
  background: rgba(201,169,110,0.04);
  color: var(--text-dim);
  padding: 28px 22px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 1px;
}

/* ══════════════════════════════════════
   格式化工具
══════════════════════════════════════ */
.formatter-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; height: calc(100vh - var(--nav-h) - 130px); min-height: 500px; }
.fmt-panel { background: var(--bg3); border: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.fmt-panel-head { background: var(--bg4); border-bottom: 1px solid var(--border); padding: 9px 15px; font-size: 12px; color: var(--gold); letter-spacing: 2px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-shrink: 0; }
.fmt-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 7px 11px; border-bottom: 1px solid var(--border); background: var(--bg4); flex-shrink: 0; }
.fmt-btn { background: rgba(201,169,110,0.07); border: 1px solid var(--border); color: var(--text-dim); font-size: 11px; padding: 3px 8px; cursor: pointer; transition: all 0.15s; font-family: 'Noto Sans TC', sans-serif; }
.fmt-btn:hover { border-color: var(--gold); color: var(--gold); }
.fmt-textarea { flex: 1; background: var(--bg2); border: none; color: var(--text); font-family: 'Noto Sans TC', monospace; font-size: 13px; line-height: 1.8; padding: 16px; resize: none; outline: none; }
.fmt-textarea::placeholder { color: var(--text-muted); }
.fmt-preview { flex: 1; overflow-y: auto; padding: 18px 20px; font-size: 13.5px; line-height: 1.9; color: var(--text); }
.fmt-preview h1 { font-family: 'Noto Serif TC', serif; color: var(--gold); font-size: 19px; letter-spacing: 3px; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.fmt-preview h2 { font-family: 'Noto Serif TC', serif; color: var(--gold-light); font-size: 15px; letter-spacing: 2px; margin: 16px 0 9px; }
.fmt-preview h3 { color: var(--white); font-size: 14px; letter-spacing: 1px; margin: 13px 0 7px; }
.fmt-preview strong { color: var(--white); }
.fmt-preview code { background: var(--bg4); border: 1px solid var(--border); padding: 1px 6px; font-size: 12px; color: var(--gold-light); }
.fmt-preview blockquote { border-left: 3px solid var(--gold); padding: 7px 14px; background: rgba(201,169,110,0.05); margin: 10px 0; color: var(--text-dim); }
.fmt-preview ul, .fmt-preview ol { padding-left: 20px; margin: 7px 0; }
.fmt-preview li::marker { color: var(--gold); }
.fmt-preview hr { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
.fmt-preview .fmt-hr-fancy { border: none; text-align: center; color: var(--gold-dark); letter-spacing: 6px; margin: 18px 0; font-size: 14px; }
.fmt-preview .fmt-notice-warn { border-left: 3px solid #e8a030; background: rgba(232,160,48,0.08); padding: 9px 13px; margin: 9px 0; font-size: 13px; }
.fmt-preview .fmt-notice-tip  { border-left: 3px solid #4a90d9; background: rgba(74,144,217,0.08); padding: 9px 13px; margin: 9px 0; font-size: 13px; }
.fmt-preview .fmt-notice-ok   { border-left: 3px solid #50c878; background: rgba(80,200,120,0.08); padding: 9px 13px; margin: 9px 0; font-size: 13px; }
.fmt-preview table { width: 100%; border-collapse: collapse; margin: 11px 0; font-size: 12.5px; }
.fmt-preview th { background: rgba(201,169,110,0.1); color: var(--gold); padding: 7px 11px; border: 1px solid var(--border); text-align: left; }
.fmt-preview td { padding: 6px 11px; border: 1px solid rgba(201,169,110,0.1); }
.fmt-tag { display: inline-block; font-size: 11px; padding: 1px 7px; border: 1px solid; margin: 0 2px; }
.fmt-tag-red   { border-color: var(--crimson); color: #e87070; }
.fmt-tag-gold  { border-color: var(--gold); color: var(--gold); }
.fmt-tag-blue  { border-color: #4a90d9; color: #4a90d9; }
.fmt-tag-green { border-color: #50c878; color: #50c878; }

/* 匯出 Modal */
.fmt-modal { display: none; position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); align-items: center; justify-content: center; }
.fmt-modal.open { display: flex; }
.fmt-modal-box { background: var(--bg3); border: 1px solid var(--border-bright); width: min(700px, 92vw); max-height: 80vh; display: flex; flex-direction: column; padding: 24px; position: relative; gap: 12px; }
.fmt-modal-title { font-family: 'Noto Serif TC', serif; color: var(--gold); font-size: 15px; letter-spacing: 2px; }
.fmt-modal-code { flex: 1; background: var(--bg2); border: 1px solid var(--border); color: var(--text-dim); font-family: monospace; font-size: 12px; padding: 13px; resize: none; outline: none; overflow-y: auto; }
.fmt-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.fmt-modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: var(--text-dim); font-size: 18px; cursor: pointer; }
.fmt-modal-close:hover { color: var(--gold); }

/* Toast */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--bg4); border: 1px solid var(--border-bright); color: var(--gold); font-size: 13px; letter-spacing: 1px; padding: 10px 24px; opacity: 0; transition: all 0.3s; z-index: 2000; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════
   頁尾
══════════════════════════════════════ */
#site-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 40px 0 24px; margin-top: auto; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 0 24px 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-col-title { font-family: 'Noto Serif TC', serif; font-size: 13px; color: var(--gold); letter-spacing: 2px; margin-bottom: 13px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { font-size: 12px; color: var(--text-link); transition: color 0.2s; letter-spacing: 0.5px; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { text-align: center; font-size: 11px; color: var(--text-muted); letter-spacing: 2px; border-top: 1px solid var(--border); padding: 18px 24px 0; max-width: 1080px; margin: 0 auto; }
.footer-bottom-promo { max-width: 1080px; margin: 0 auto; padding: 12px 24px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer-designer-credit { color: var(--gold-light); font-size: 12px; line-height: 1.6; text-align: center; letter-spacing: 1.2px; font-weight: 600; text-shadow: 0 0 10px rgba(201,169,110,0.36); }
.footer-gamex-link { display: inline-flex; align-items: center; justify-content: center; opacity: 0.82; transition: opacity 0.2s, filter 0.2s; }
.footer-gamex-link:hover { opacity: 1; filter: brightness(1.12); }
.footer-gamex-link img { display: block; width: 78px; max-width: 24vw; height: auto; }

/* ══════════════════════════════════════
   響應式
══════════════════════════════════════ */
@media (max-width: 900px) {
  #main-nav { display: none; }
  .btn-hamburger { display: block; }
  .btn-label { display: none; }
  #hero { min-height: 760px; text-align: center; }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 78px 22px 42px;
  }
  .hero-brand-logo { width: 170px; margin-left: auto; margin-right: auto; }
  .hero-divider { margin-left: auto; margin-right: auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
  .hero-stats, .hero-btns { justify-content: center; }
  .hero-stat { text-align: center; padding: 0 14px; }
  .hero-stat-sep { margin: 0 14px 0 0; }
  .hero-character {
    justify-self: center;
    width: min(560px, 84vw);
    max-height: 430px;
    transform: translateY(0);
  }
  .hero-youtube-card { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .class-carousel { height: 690px; min-height: 690px; }
  .class-slide { padding: 70px 76px 126px; }
  .class-copy { width: min(680px, 76vw); }
  .class-prev { left: 18px; }
  .class-next { right: 18px; }
  .class-thumbs { max-width: calc(100vw - 72px); bottom: 38px; overflow-x: auto; justify-content: flex-start; padding: 4px; }
  .game-db-home-grid,
  .game-db-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-db-controls { grid-template-columns: 1fr; }
  .game-db-filter-row { justify-content: flex-start; }
  .game-db-attr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-daily-grid { grid-template-columns: 1fr; }
  .daily-quest-rule-grid { grid-template-columns: 1fr; }
  .infinite-battle-grid { grid-template-columns: 1fr; }
  .boss-dragon-grid { grid-template-columns: 1fr; }
  .event-coin-grid { grid-template-columns: 1fr; }
  .elemental-box-grid,
  .elemental-system-grid { grid-template-columns: 1fr; }
  .dragon-note-grid { grid-template-columns: 1fr; }
  .transform-flow { grid-template-columns: 1fr; }
  .arrogance-gem-recipe-grid { grid-template-columns: 1fr; }
  .hero-badge-step-grid,
  .hero-badge-upgrade-list { grid-template-columns: 1fr; }
  .fishing-talisman-location-grid,
  .fishing-talisman-recipe-grid,
  .fishing-talisman-fusion-list { grid-template-columns: 1fr; }
  .pet-charm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pet-two-col { grid-template-columns: 1fr; }
  .formatter-wrap { grid-template-columns: 1fr; height: auto; }
  .fmt-panel { min-height: 300px; }
}
/* 手機效能：影片由 JS 移除，這裡讓快速目錄區改用靜態圖，並防禦性隱藏影片/YouTube */
@media (max-width: 768px) {
  .hero-youtube-card { display: none; }
  .section-bg-quick .section-video-bg {
    background: url('../media/quick-nav-bg.webp') center / cover no-repeat;
  }
  .section-bg-quick .section-video-bg video { display: none; }
}
@media (max-width: 600px) {
  #top-header { padding: 0 14px; }
  .btn-hamburger {
    display: block !important;
    position: fixed;
    top: 9px;
    right: 14px;
    z-index: 1200;
  }
  #page-content { padding: 0 14px 40px; }
  #hero { min-height: 720px; }
  .hero-content { padding: 72px 16px 36px; }
  .hero-brand-logo { width: 132px; margin-bottom: 12px; }
  .hero-title { font-size: 42px; }
  .hero-tagline { font-size: 13px; letter-spacing: 1px; }
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(320px, 100%);
    gap: 14px 10px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-stat-sep { display: none; }
  .hero-stat { padding: 0; text-align: center; }
  .hero-stat-val { font-size: 23px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-character { width: 92vw; max-height: 360px; }
  .class-choice-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .class-carousel-section { padding-top: 46px; }
  .class-carousel { height: auto; min-height: 700px; margin-top: 22px; }
  .class-track { min-height: 700px; }
  .class-slide {
    min-height: 700px;
    padding: 66px 16px 122px;
    background-position: var(--class-bg-position, center);
  }
  .class-copy {
    width: 100%;
    max-width: 360px;
    padding: 18px 16px;
    background: rgba(5,6,8,0.54);
    border: 1px solid rgba(201,169,110,0.18);
    backdrop-filter: blur(3px);
  }
  .class-kicker { letter-spacing: 4px; }
  .class-copy h3 { font-size: 31px; letter-spacing: 5px; }
  .class-copy p { font-size: 13px; line-height: 1.85; }
  .class-copy .class-lead,
  .class-copy blockquote { font-size: 14px; }
  .class-nav { width: 42px; height: 72px; }
  .class-nav::before { width: 30px; height: 30px; }
  .class-prev { left: 5px; }
  .class-next { right: 5px; }
  .class-thumbs {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    bottom: 24px;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 6px 2px;
    scrollbar-width: none;
  }
  .class-thumbs::-webkit-scrollbar { display: none; }
  .class-thumb { width: 48px; height: 48px; flex: 0 0 auto; }
  .content-card { padding: 18px 14px; }
  .game-db-home-grid,
  .game-db-grid { grid-template-columns: 1fr; }
  .game-db-home-card { min-height: 0; padding: 22px 16px; }
  .game-db-toolbar { padding: 18px 14px; }
  .game-db-title-block { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .game-db-filter-row { display: grid; grid-template-columns: 1fr; }
  .game-db-filter-row label { min-width: 0; }
  .game-db-card { grid-template-columns: 48px minmax(0, 1fr); padding: 12px; }
  .game-db-card-icon { width: 48px; height: 48px; }
  .game-db-detail-overlay { padding: 10px; }
  .game-db-detail { max-height: calc(100vh - 20px); padding: 18px 14px; }
  .game-db-detail-head { grid-template-columns: 74px minmax(0, 1fr); gap: 12px; }
  .game-db-detail-icon { width: 74px; height: 74px; }
  .game-db-detail-head h2 { font-size: 20px; letter-spacing: 1px; }
  .game-db-attr-grid { grid-template-columns: 1fr; }
  .guide-hero { padding: 22px 18px; }
  .daily-quest-hero { padding: 22px 18px; }
  .infinite-battle-hero { padding: 22px 18px; }
  .boss-schedule-hero { padding: 22px 18px; }
  .event-coin-hero { padding: 22px 18px; }
  .map-index-hero,
  .elemental-hero,
  .dream-island-hero,
  .training-map-hero { padding: 22px 18px; }
  .dream-island-feature-grid,
  .training-map-grid { grid-template-columns: 1fr; }
  .hecate-info-grid,
  .hecate-equipment-grid { grid-template-columns: 1fr; }
  .boss-time-card { grid-template-columns: 1fr; }
  .boss-time { min-height: 58px; }
  .boss-dragon-head { flex-direction: column; }
  .boss-dragon-head > span { align-self: flex-start; }
  .guide-kicker { letter-spacing: 4px; }
  .guide-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-nav a,
  .guide-actions a { padding: 10px; letter-spacing: 1px; }
  .guide-route { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .guide-level { justify-content: flex-start; min-height: auto; padding: 8px 10px; }
  .guide-actions { flex-direction: column; }
  .guide-actions a { width: 100%; min-width: 0; }
  .hecate-hero { padding: 22px 18px; }
  .dragon-whisper-hero { padding: 22px 18px; }
  .feature-table th:first-child,
  .feature-table td:first-child { width: 46%; }
  .hecate-rate-table th:first-child,
  .hecate-rate-table td:first-child,
  .hecate-rate-table th:nth-child(3),
  .hecate-rate-table td:nth-child(3) {
    width: 25%;
    text-align: center;
  }
  .hecate-equipment-table th:first-child,
  .hecate-equipment-table td:first-child {
    width: 30%;
    text-align: center;
  }
  .transform-fusion-hero { padding: 22px 18px; }
  .arrogance-gem-hero { padding: 22px 18px; }
  .hero-badge-hero { padding: 22px 18px; }
  .fishing-talisman-hero { padding: 22px 18px; }
  .dragon-seal-hero { padding: 22px 18px; }
  .transform-guarantee,
  .transform-card-note { grid-template-columns: 1fr; }
  .guarantee-icon { width: 60px; height: 60px; font-size: 28px; }
  .rarity-tag { margin-bottom: 4px; }
  .doll-hero { padding: 22px 18px; }
  .doll-grid { grid-template-columns: 1fr; gap: 14px; }
  .doll-card { padding: 16px; }
  .doll-card-head { grid-template-columns: 46px 1fr; gap: 10px; }
  .doll-icon { width: 46px; height: 46px; font-size: 24px; }
  .doll-table th:first-child,
  .doll-table td:first-child { width: 32%; }
  .pet-hero { padding: 22px 18px; }
  .pet-charm-grid,
  .pet-limit-list { grid-template-columns: 1fr; }
  .pet-evo-card { grid-template-columns: 1fr; }
  .pet-food-table th:first-child,
  .pet-food-table td:first-child,
  .pet-equipment-table th:first-child,
  .pet-equipment-table td:first-child { width: 42%; }
  .register-notes ul {
    padding-left: 18px;
    font-size: 13px;
    line-height: 2;
  }
  .form-hint {
    font-size: 11.5px;
    line-height: 1.7;
  }
  .content-embed > div,
  #js-download-content > div,
  .cms-rich .cms-custom-html > div {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 14px !important;
    overflow-x: hidden;
  }
  .content-embed :where(h1, h2),
  #js-download-content :where(h1, h2),
  .cms-rich :where(h1, h2) {
    letter-spacing: 2px !important;
  }
  .content-embed :where(div, p, span, strong, a, li, td, th),
  #js-download-content :where(div, p, span, strong, a, li, td, th),
  .cms-rich :where(div, p, span, strong, a, li, td, th) {
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
  }
  .content-embed :where([style*="min-width"], table, [class*="table"]),
  #js-download-content :where([style*="min-width"], table, [class*="table"]),
  .cms-rich :where([style*="min-width"], table, [class*="table"]) {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .content-embed :where([style*="font-size: 1.3"], [style*="font-size:1.3"], [style*="font-size: 1.4"], [style*="font-size:1.4"], [style*="font-size: 1.5"], [style*="font-size:1.5"], [style*="font-size: 1.6"], [style*="font-size:1.6"], [style*="font-size: 1.8"], [style*="font-size:1.8"], [style*="font-size: 2"], [style*="font-size:2"]),
  #js-download-content :where([style*="font-size: 1.3"], [style*="font-size:1.3"], [style*="font-size: 1.4"], [style*="font-size:1.4"], [style*="font-size: 1.5"], [style*="font-size:1.5"], [style*="font-size: 1.6"], [style*="font-size:1.6"], [style*="font-size: 1.8"], [style*="font-size:1.8"], [style*="font-size: 2"], [style*="font-size:2"]),
  .cms-rich :where([style*="font-size: 1.3"], [style*="font-size:1.3"], [style*="font-size: 1.4"], [style*="font-size:1.4"], [style*="font-size: 1.5"], [style*="font-size:1.5"], [style*="font-size: 1.6"], [style*="font-size:1.6"], [style*="font-size: 1.8"], [style*="font-size:1.8"], [style*="font-size: 2"], [style*="font-size:2"]) {
    font-size: clamp(17px, 5.6vw, 23px) !important;
    line-height: 1.45 !important;
  }
  .content-embed [style*="display: grid"],
  #js-download-content [style*="display: grid"],
  .cms-rich [style*="display: grid"] {
    grid-template-columns: 1fr !important;
  }
  .content-embed [style*="flex-wrap: nowrap"],
  #js-download-content [style*="flex-wrap: nowrap"],
  .cms-rich [style*="flex-wrap: nowrap"] {
    flex-wrap: wrap !important;
  }
  .post-card { padding: 20px 16px; }
  .cms-rich table { font-size: 12px; }
  .cms-button { display: block; width: 100%; margin-right: 0; }
  .cms-hero-strip { padding: 18px 14px; }
  .ann-grid { grid-template-columns: 1fr; }
  .cms-grid { grid-template-columns: 1fr; }
  .search-panel { padding: 18px 14px; }
  .search-input-row { grid-template-columns: 1fr; }
  .search-submit { min-height: 44px; }
  .search-result-card { padding: 16px 14px; }
  .search-result-card:hover { transform: none; }
  #floating-panel { left: 10px; bottom: 50px; }
  #site-music-player {
    left: 10px;
    bottom: 10px;
  }
  .music-toggle {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .music-panel {
    width: min(286px, calc(100vw - 58px));
    height: 380px;
  }
  .side-float-banner {
    display: none;
  }
  .float-box { width: min(276px, calc(100vw - 84px)); }
  .btn-line-o, .btn-line-c, .btn-register, .btn-admin { display: none; }
  .btn-admin { display: none; }
}
