/* 幻界事務所2 官方網站
   配色取自主視覺：午夜藍＋魔法藍光＋金邊＋象牙白。 */
:root {
  --bg-0: #050817;
  --bg-1: #0a1130;
  --bg-2: #0f1a45;
  --panel: rgba(13, 21, 56, .74);
  --panel-solid: #0d1538;
  --panel-hi: rgba(24, 38, 92, .6);
  --line: rgba(233, 196, 124, .26);
  --line-soft: rgba(233, 196, 124, .14);
  --gold: #e9c47c;
  --gold-hi: #f8e1a8;
  --gold-deep: #a97c36;
  --ivory: #f4ecd9;
  --text: #dde3f6;
  --muted: #8f9cc3;
  --blue: #5b84ff;
  --blue-glow: rgba(76, 118, 255, .45);
  --ok: #5fe0a0;
  --warn: #f2c14e;
  --bad: #ff6b6b;
  --discord: #5865f2;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1200px;
  --nav-h: 68px;
  --serif: "Noto Serif TC", "Source Han Serif TC", serif;
  --sans: "Noto Sans TC", "Source Han Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --latin: "Cinzel", "Noto Serif TC", serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-0);
  background-image:
    radial-gradient(1200px 700px at 85% 20%, rgba(55, 84, 200, .16), transparent 60%),
    radial-gradient(900px 600px at 10% 60%, rgba(120, 80, 30, .10), transparent 60%),
    radial-gradient(1.2px 1.2px at 20px 30px, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 120px 80px, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1.4px 1.4px at 200px 150px, rgba(248,225,168,.45), transparent 60%),
    radial-gradient(1px 1px at 60px 190px, rgba(255,255,255,.3), transparent 60%);
  background-size: auto, auto, 240px 240px, 240px 240px, 240px 240px, 240px 240px;
  color: var(--text);
  font: 400 16px/1.75 var(--sans);
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); color: var(--ivory); letter-spacing: .04em; line-height: 1.3; }
p { margin: 0; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #1a1306; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin-inline: auto; }
.ico { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ───────── 金框（四角＋內框） ───────── */
.frame {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 31, 78, .78), rgba(10, 16, 44, .82));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(10px);
}
.frame::before, .frame::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1.5px solid var(--gold);
  pointer-events: none;
  opacity: .85;
}
.frame::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.frame::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }

/* ───────── 按鈕 ───────── */
.btn {
  --h: 44px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px;
  border-radius: 10px;
  font-weight: 700; letter-spacing: .08em; white-space: nowrap;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  overflow: hidden;
}
.btn--sm { --h: 38px; padding: 0 14px; font-size: 14px; }
.btn--lg { --h: 52px; padding: 0 26px; font-size: 17px; }
.btn--gold {
  color: #1d1505;
  background: linear-gradient(180deg, #fbe7b4 0%, #e9c47c 45%, #c99a4b 100%);
  border-color: #f8e1a8;
  box-shadow: 0 6px 22px rgba(233, 196, 124, .28), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn--gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.btn--gold:hover { color: #1d1505; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(233, 196, 124, .4), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn--gold:hover::after { transform: translateX(120%); }
.btn--ghost { color: var(--gold-hi); border-color: var(--line); background: rgba(10, 16, 44, .45); }
.btn--ghost:hover { color: var(--ivory); border-color: var(--gold); background: rgba(233, 196, 124, .08); }
.btn--discord { color: #fff; background: var(--discord); }
.btn--discord:hover { color: #fff; background: #4752e0; transform: translateY(-1px); }
.btn.is-disabled { cursor: default; filter: grayscale(.5) brightness(.8); }
.btn.is-disabled::after { display: none; }
.btn.is-disabled:hover { transform: none; }

/* ───────── 導覽列 ───────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(6, 10, 30, .82); border-color: var(--line-soft); backdrop-filter: blur(14px); }
.nav__inner { height: 100%; width: min(1320px, calc(100% - 32px)); margin: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ivory); }
.brand:hover { color: var(--ivory); }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(91, 132, 255, .5)); }
.brand__text { font-family: var(--serif); font-size: 19px; letter-spacing: .12em; display: flex; align-items: baseline; gap: 2px; }
.brand__text b { font-weight: 900; }
.brand__text i { font-style: normal; font-family: var(--latin); color: var(--gold); font-weight: 700; font-size: 21px; }
.nav__links { display: flex; gap: 4px; margin-left: 12px; }
.nav__links a { color: var(--text); font-size: 15px; padding: 8px 12px; border-radius: 8px; position: relative; transition: color .15s ease; }
.nav__links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1.5px; background: var(--gold); transform: scaleX(0); transition: transform .2s ease; }
.nav__links a:hover, .nav__links a.is-on { color: var(--gold-hi); }
.nav__links a.is-on::after, .nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: rgba(10, 16, 44, .6); cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.nav__burger span { display: block; height: 2px; background: var(--gold-hi); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.drawer { position: absolute; top: var(--nav-h); left: 0; right: 0; background: rgba(6, 10, 30, .96); border-bottom: 1px solid var(--line); display: grid; padding: 8px 16px 16px; backdrop-filter: blur(14px); }
.drawer[hidden] { display: none; }
.drawer a { color: var(--text); padding: 14px 8px; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
.drawer a:last-child { border: 0; color: var(--gold); }
.drawer__group { padding: 14px 8px 4px; font: 700 12px var(--latin); letter-spacing: .2em; color: var(--gold); }
.drawer a.drawer__sub { padding-left: 22px; }

/* 導覽列下拉（幻界禁書庫；assets/js/nav.js 管點擊、ESC；桌機滑鼠移上去就開） */
.nav__drop { position: relative; }
.nav__dropbtn { display: flex; align-items: center; gap: 5px; padding: 8px 12px; border: 0; border-radius: 8px; background: none; color: var(--text); font-size: 15px; line-height: inherit; cursor: pointer; letter-spacing: inherit; }
.nav__dropbtn svg { width: 12px; height: 12px; transition: transform .2s ease; }
.nav__drop:hover .nav__dropbtn, .nav__drop.is-open .nav__dropbtn, .nav__dropbtn.is-on { color: var(--gold-hi); }
.nav__drop:hover .nav__dropbtn svg, .nav__drop.is-open .nav__dropbtn svg { transform: rotate(180deg); }
.nav__menu { position: absolute; top: 100%; left: 0; min-width: 260px; padding-top: 8px; display: none; }
.nav__drop:hover .nav__menu, .nav__drop.is-open .nav__menu { display: block; }
.nav__menu-box { padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(6, 10, 30, .97); box-shadow: 0 18px 44px rgba(0, 0, 0, .5); }
.nav__links .nav__menu a { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 0 12px; padding: 10px 12px; border-radius: 8px; color: var(--ivory); }
.nav__links .nav__menu a::after { display: none; }
.nav__links .nav__menu a:hover, .nav__links .nav__menu a.is-on { background: rgba(233, 196, 124, .1); color: var(--gold-hi); }
.nav__menu a .nav__mi { grid-row: span 2; width: 34px; height: 34px; padding: 6px; border-radius: 8px; border: 1px solid var(--line); background: rgba(233, 196, 124, .08); color: var(--gold); }
.nav__menu b { font: 600 15px/1.4 var(--serif); letter-spacing: .06em; }
.nav__menu small { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ───────── 主視覺 ───────── */
.hero { position: relative; height: min(56.25vw, 100svh); min-height: 420px; overflow: hidden; background: var(--bg-0); }
.hero__art, .hero__art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__art img { object-fit: cover; object-position: 50% 62%; animation: drift 26s ease-in-out infinite alternate; transform-origin: 50% 60%; }
@keyframes drift { from { transform: scale(1.0); } to { transform: scale(1.045); } }
.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__fade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 8, 23, .55) 0%, transparent 14%, transparent 70%, rgba(5, 8, 23, .85) 92%, var(--bg-0) 100%),
    radial-gradient(120% 90% at 50% 45%, transparent 60%, rgba(5, 8, 23, .55) 100%); }

/* ───────── 指令面板 ───────── */
.console { position: relative; z-index: 5; margin-top: -84px; }
.console__panel { display: grid; grid-template-columns: 1.5fr 1fr .9fr 1fr auto; align-items: center; gap: 0; padding: 18px 20px 18px 26px; }
.console__panel > * { padding: 4px 22px; }
.console__panel > * + * { border-left: 1px solid var(--line-soft); }
.console__panel > .console__go { border-left: 0; margin-left: 10px; }
.label { display: block; font-size: 13px; color: var(--muted); letter-spacing: .14em; margin-bottom: 4px; }
.ip { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 6px 6px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5, 8, 23, .55); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.ip:hover { border-color: var(--gold); background: rgba(233, 196, 124, .06); }
.ip code { font: 700 17px/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--gold-hi); letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; text-align: left; }
.ip__btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 10px; border-radius: 7px; background: rgba(233, 196, 124, .12); color: var(--gold-hi); flex: none; }
.ip.is-copied .ip__btn { background: rgba(95, 224, 160, .16); color: var(--ok); }
a.ip { text-decoration: none; color: inherit; }
a.ip code { font-family: inherit; letter-spacing: .08em; }
.live { display: flex; align-items: baseline; gap: 6px; font-family: var(--latin); }
.live b { font-size: 26px; color: var(--ivory); line-height: 1.1; }
.live .slash, .live span { color: var(--muted); font-size: 16px; }
.live em, .big em { font: 400 13px var(--sans); color: var(--muted); font-style: normal; margin-left: 4px; white-space: nowrap; }
.big { font: 700 21px/1.25 var(--latin); color: var(--ivory); white-space: nowrap; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); align-self: center; flex: none; }
.dot.is-on { background: var(--ok); box-shadow: 0 0 0 0 rgba(95, 224, 160, .6); animation: pulse 2.2s ease-out infinite; }
.dot.is-off { background: var(--bad); }
.dot--dc { background: var(--ok); margin-right: 6px; vertical-align: 1px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 224, 160, .55); } 70% { box-shadow: 0 0 0 9px rgba(95, 224, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 224, 160, 0); } }
.console__hint { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; }
.demo-badge { margin: 10px auto 0; width: fit-content; font-size: 13px; color: #1d1505; background: var(--warn); padding: 4px 12px; border-radius: 999px; }

/* ───────── 區塊共用 ───────── */
.section { padding: 110px 0; position: relative; }
.section--deep { background: linear-gradient(180deg, transparent, rgba(12, 20, 56, .55) 12%, rgba(12, 20, 56, .55) 88%, transparent); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1 var(--latin); letter-spacing: .32em; color: var(--gold); }
.sec-head .eyebrow::before, .sec-head .eyebrow::after { content: ""; width: 42px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.sec-head .eyebrow::after { transform: scaleX(-1); }
.sec-head h2 {
  margin: 14px 0 12px; font-size: clamp(30px, 4.2vw, 46px); font-weight: 900;
  background: linear-gradient(180deg, #fff8e6 10%, #f3d99c 60%, #c9994c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 12px rgba(233, 196, 124, .18));
}
.sec-head p { color: var(--muted); }
/* 段落標題上方的星座金線（星星慢慢閃）：填掉段落之間的空白 */
.sec-head::before { content: ""; display: block; width: 300px; max-width: 80%; height: 40px; margin: 0 auto 18px; opacity: .85; animation: sec-tw 3.6s ease-in-out infinite;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 40'%3E%3Cpath d='M0 20H105M195 20H300' stroke='%23e9c47c' stroke-opacity='.35'/%3E%3Cpath d='M115 20l35-12 35 12-35 12Z' fill='none' stroke='%23e9c47c' stroke-opacity='.6'/%3E%3Cpath d='M150 13l1.6 5.4 5.4 1.6-5.4 1.6-1.6 5.4-1.6-5.4-5.4-1.6 5.4-1.6Z' fill='%23fff'/%3E%3Cg fill='%23f8e1a8'%3E%3Ccircle cx='115' cy='20' r='2.2'/%3E%3Ccircle cx='185' cy='20' r='2.2'/%3E%3Ccircle cx='150' cy='8' r='1.8'/%3E%3Ccircle cx='150' cy='32' r='1.6'/%3E%3Ccircle cx='60' cy='20' r='1.4'/%3E%3Ccircle cx='240' cy='20' r='1.4'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
@keyframes sec-tw { 50% { opacity: .45; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ───────── 公告 ───────── */
.news { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.news__list { display: grid; gap: 16px; }
.news-card { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 20px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); transition: border-color .2s ease, transform .2s ease, background-color .2s ease; }
.news-card:hover { border-color: var(--line); background: var(--panel-hi); transform: translateY(-2px); }
.news-card.skeleton { height: 118px; background: linear-gradient(90deg, rgba(20, 31, 78, .5), rgba(30, 44, 100, .6), rgba(20, 31, 78, .5)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.news-card__date { text-align: center; border-right: 1px solid var(--line-soft); padding-right: 18px; display: flex; flex-direction: column; justify-content: center; }
.news-card__date b { font: 700 30px/1 var(--latin); color: var(--ivory); }
.news-card__date span { font-size: 13px; color: var(--muted); margin-top: 6px; letter-spacing: .1em; }
.news-card h3 { font-size: 19px; margin: 4px 0 6px; }
.news-card p { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag { display: inline-block; font-size: 12px; letter-spacing: .1em; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; }
.tag--update { color: #8fb0ff; }
.tag--event { color: var(--gold); }
.tag--maint { color: #ff9b8a; }
.tag--info { color: #9fe3c4; }
.news__empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.festival { padding: 26px 24px; }
.festival h3 { font-size: 23px; margin: 10px 0 8px; }
.festival__desc { color: var(--muted); font-size: 15px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 6px; }
.countdown div { text-align: center; padding: 10px 0 8px; border-radius: 10px; background: rgba(5, 8, 23, .5); border: 1px solid var(--line-soft); }
.countdown b { display: block; font: 700 26px/1.1 var(--latin); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; color: var(--muted); }
.festival__top { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.festival__top li { display: grid; grid-template-columns: 26px 28px 1fr auto; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(5, 8, 23, .35); font-size: 15px; }
.festival__top .rk { font: 700 15px var(--latin); color: var(--gold); text-align: center; }
.festival__top .sc { font-variant-numeric: tabular-nums; color: var(--ivory); }

/* ───────── 委託檔案（特色） ───────── */
.files { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.file {
  position: relative; padding: 26px 22px 24px; border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(26, 40, 98, .65), rgba(10, 16, 44, .8));
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.file::before { content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; background: radial-gradient(circle, var(--blue-glow), transparent 65%); opacity: 0; transition: opacity .3s ease; }
.file:hover { border-color: var(--line); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.file:hover::before { opacity: .7; }
.file__no { position: absolute; top: 16px; right: 18px; font: 700 12px var(--latin); letter-spacing: .2em; color: rgba(233, 196, 124, .55); }
.file__icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(233, 196, 124, .07); margin-bottom: 18px; }
.file__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--gold-hi); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.file h3 { font-size: 20px; margin-bottom: 8px; }
.file p { font-size: 15px; color: var(--muted); position: relative; }
/* 整張卡片可以點（標題連結撐滿卡片）；右下角「查看檔案」提示 */
.file { display: flex; flex-direction: column; cursor: pointer; }
.file > p { flex: 1; }
.file__link { color: inherit; }
.file__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.file__link:focus-visible { outline: none; }
.file:focus-within { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(233, 196, 124, .35); }
.file__more { align-self: flex-end; margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font: 700 12px var(--latin); letter-spacing: .16em; color: rgba(233, 196, 124, .7); transition: color .2s ease, gap .2s ease; }
.file__more::after { content: "›"; font-size: 16px; line-height: 1; }
.file:hover .file__more { color: var(--gold-hi); gap: 10px; }
/* 上方插圖（金線雕版，和卷宗彈窗同一張）＋金邊圓章圖示；滑鼠移上去：金框亮、插圖放大、一道光掃過、圓章彈一下 */
.file { padding-top: 0; border-color: rgba(233, 196, 124, .26); background: linear-gradient(170deg, #1a2862, #0b1230); transition: border-color .28s ease, transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease; }
.file__art { position: relative; height: 128px; margin: 0 -22px; background: center 40% / cover no-repeat; transition: transform .6s ease; }
.file__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, #131e4c 100%); }
.file::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255, 235, 190, .22) 48%, transparent 62%); transform: translateX(-120%); transition: transform .8s ease; }
.file__no { z-index: 2; top: 12px; right: 14px; color: var(--gold-hi); background: rgba(6, 10, 30, .55); padding: 3px 8px; border-radius: 6px; }
.file .file__icon { position: relative; z-index: 2; width: 46px; height: 46px; margin: -26px 0 12px; border-radius: 50%; border: 1.5px solid var(--gold);
  background: radial-gradient(circle at 35% 30%, #2b3d86, #0e1638); box-shadow: 0 0 0 4px rgba(233, 196, 124, .1), 0 6px 18px rgba(0, 0, 0, .45); transition: transform .3s ease, box-shadow .3s ease; }
.file .file__icon svg { width: 24px; height: 24px; stroke-width: 2.4; }
.file > p { color: #b9c2e6; }
.file:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: 0 18px 44px rgba(0, 0, 0, .45), 0 0 28px rgba(110, 150, 255, .25); }
.file:hover .file__art { transform: scale(1.07); }
.file:hover::after { transform: translateX(120%); }
.file:hover .file__icon { transform: translateY(-3px) rotate(-6deg); box-shadow: 0 0 0 6px rgba(233, 196, 124, .18), 0 0 22px rgba(233, 196, 124, .45); }

/* ───────── 委託卷宗（點檔案打開的彈窗） ───────── */
.dossier { position: fixed; inset: 0; z-index: 80; display: grid; justify-items: center; align-items: start; padding: 32px 16px; overflow-y: auto; overscroll-behavior: contain; background: rgba(3, 5, 16, .74); backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s ease; }
.dossier[hidden] { display: none; }
.dossier.is-open { opacity: 1; }
.dossier__panel { width: min(1000px, 100%); margin-block: auto; padding: 0; transform: translateY(18px) scale(.985); transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
.dossier.is-open .dossier__panel { transform: none; }
.dossier__bar { position: sticky; top: 0; z-index: 3; height: 0; display: flex; justify-content: flex-end; }
.dossier__close { margin: 14px 14px 0 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(5, 8, 23, .78); color: var(--ivory); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: border-color .2s ease, color .2s ease; }
.dossier__close:hover { border-color: var(--gold); color: var(--gold-hi); }
.dossier__art { position: relative; aspect-ratio: 960 / 400; background: #0b1440; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; overflow: hidden; }
.dossier__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dossier__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 44, 0) 42%, rgba(10, 16, 44, .96) 100%); }
.dossier__cap { position: absolute; left: 36px; right: 36px; bottom: 22px; z-index: 1; }
.dossier__cap h2 { font: 900 clamp(28px, 4vw, 42px)/1.15 var(--serif); color: var(--ivory); margin-top: 6px; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.dossier__body { padding: 24px 36px 30px; }
.dossier__body .lead { font-size: 17px; color: #c9d1ec; max-width: 760px; }
.dossier .chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dossier .chips li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(233, 196, 124, .07); color: var(--gold-hi); font-size: 13px; }
.dossier__grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 26px; margin-top: 26px; align-items: start; }
.dossier h3 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.dossier h3::before { content: ""; width: 18px; height: 1px; background: var(--gold); }
.dossier .points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; counter-reset: pt; }
.dossier .points li { counter-increment: pt; padding: 16px 16px 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(5, 8, 23, .35); }
.dossier .points li::before { content: counter(pt, decimal-leading-zero); font: 700 13px var(--latin); color: var(--gold); letter-spacing: .12em; }
.dossier .points h4 { font-size: 16px; margin: 4px 0 6px; color: var(--ivory); }
.dossier .points p { font-size: 14px; color: var(--muted); }
.dossier__start { position: sticky; top: 20px; padding: 18px 18px 16px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(170deg, rgba(26, 40, 98, .55), rgba(10, 16, 44, .6)); }
.dossier .start-list { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 12px; }
.dossier .start-list li { counter-increment: st; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font-size: 14px; color: #c9d1ec; }
.dossier .start-list li::before { content: counter(st, upper-roman); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-hi); font: 700 12px var(--latin); }
.dossier__start .btn { margin-top: 16px; width: 100%; }
.dossier__nav { display: flex; justify-content: space-between; gap: 12px; padding: 16px 36px 22px; border-top: 1px solid var(--line-soft); }
.dossier__nav a { display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--text); max-width: 48%; }
.dossier__nav a:last-child { text-align: right; }
.dossier__nav small { font: 700 11px var(--latin); letter-spacing: .18em; color: var(--gold); }
.dossier__nav a:hover { color: var(--gold-hi); }
body.is-locked { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .dossier, .dossier__panel { transition: none; }
  .dossier__panel { transform: none; }
}
@media (max-width: 760px) {
  .dossier { padding: 0; }
  .dossier__panel { min-height: 100%; margin: 0; border-radius: 0; border: 0; }
  .dossier__panel::before, .dossier__panel::after { display: none; }
  .dossier__art { border-radius: 0; }
  .dossier__cap { left: 18px; right: 66px; bottom: 14px; }
  .dossier__body { padding: 20px 18px 24px; }
  .dossier__grid, .dossier .points { grid-template-columns: 1fr; }
  .dossier__start { position: static; }
  .dossier__nav { padding: 14px 18px calc(22px + env(safe-area-inset-bottom)); }
}

/* ───────── 分流 ───────── */
.realms { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.realm { position: relative; min-height: 380px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); display: flex; align-items: flex-end; }
.realm__bg { position: absolute; inset: 0; background: center/cover no-repeat; transform: scale(1.05); transition: transform .8s ease; }
.realm--rpg .realm__bg { background-image: url("../img/realm-rpg.svg"); background-position: 68% 35%; }
.realm--sky .realm__bg { background-image: url("../img/realm-sky.svg"); background-position: 66% 40%; }
.realm::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 8, 23, .1) 0%, rgba(5, 8, 23, .55) 45%, rgba(5, 8, 23, .95) 100%); }
.realm:hover .realm__bg { transform: scale(1.1); }
.realm__body { position: relative; z-index: 1; padding: 30px 30px 28px; }
.realm h3 { font-size: 32px; font-weight: 900; margin: 10px 0 8px; }
.realm p { color: #c3cbe6; max-width: 460px; }
.realm__live { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(5, 8, 23, .6); border: 1px solid var(--line); font-size: 14px; }
.realm__live b { font: 700 17px var(--latin); color: var(--ivory); }

/* ───────── 即時狀態 ───────── */
.dash { display: grid; grid-template-columns: 1fr 1fr 340px; gap: 20px; grid-template-areas: "tiles tiles tiles" "chart chart shards" "online online discord"; }
.tiles { grid-area: tiles; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { padding: 20px 22px; }
.tile__num { display: block; font: 700 34px/1.2 var(--latin); color: var(--ivory); font-variant-numeric: tabular-nums; margin: 2px 0; }
.tile__sub { font-size: 13px; color: var(--muted); }
.unit { font: 500 15px var(--sans); color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.chart { grid-area: chart; padding: 20px 22px 14px; }
.chart__head, .online__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.chart h3, .shards h3, .online h3, .discord h3 { font-size: 19px; }
.chart__head .muted { font-size: 13px; }
.chart__plot { position: relative; height: 230px; }
.chart__plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart__plot .grid line { stroke: rgba(143, 156, 195, .14); stroke-width: 1; }
.chart__plot .axis text { fill: var(--muted); font: 12px var(--sans); }
.chart__plot .line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart__plot .area { fill: url(#chartFill); }
.chart__plot .cross { stroke: rgba(248, 225, 168, .5); stroke-width: 1; stroke-dasharray: 3 3; }
.chart__plot .marker { fill: var(--gold-hi); stroke: var(--panel-solid); stroke-width: 2; }
.chart__tip { position: absolute; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: rgba(5, 8, 23, .92); border: 1px solid var(--line); font-size: 13px; white-space: nowrap; transform: translate(-50%, -110%); }
.chart__tip b { color: var(--ivory); font-family: var(--latin); font-size: 15px; }
.chart__empty { display: grid; place-items: center; height: 100%; color: var(--muted); }
.chart__table summary { cursor: pointer; color: var(--muted); font-size: 13px; margin-top: 6px; width: fit-content; }
.chart__table table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.chart__table td, .chart__table th { padding: 4px 8px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.chart__table > div { max-height: 220px; overflow: auto; }
.shards { grid-area: shards; padding: 20px 22px; }
.shard-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.shard { padding: 12px 14px; border-radius: 10px; background: rgba(5, 8, 23, .45); border: 1px solid var(--line-soft); }
.shard__top { display: flex; align-items: center; gap: 10px; }
.shard__name { font-weight: 700; color: var(--ivory); flex: 1; }
.shard__num { font: 700 16px var(--latin); color: var(--ivory); font-variant-numeric: tabular-nums; }
.shard__num span { color: var(--muted); font-size: 13px; }
.bar { height: 6px; border-radius: 6px; background: rgba(143, 156, 195, .15); margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi)); transition: width .8s ease; }
.online { grid-area: online; padding: 20px 22px; }
.pill { font: 700 13px var(--latin); color: var(--gold-hi); padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); }
.online__list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 300px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent; }
.online__list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: rgba(5, 8, 23, .4); font-size: 14px; min-width: 0; }
.online__list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head { width: 24px; height: 24px; border-radius: 5px; image-rendering: pixelated; background: #1a2350; flex: none; }
.online__note { font-size: 13px; margin-top: 10px; }
.discord { grid-area: discord; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.discord__head { display: flex; align-items: center; gap: 14px; }
.discord__icon { width: 48px; height: 48px; border-radius: 14px; }
.discord p { font-size: 15px; color: var(--muted); }
.discord .btn { margin-top: auto; align-self: flex-start; }

/* ───────── 排行表格（名人堂頁共用） ───────── */
.tabs { display: inline-flex; padding: 4px; border-radius: 12px; background: rgba(5, 8, 23, .5); border: 1px solid var(--line-soft); }
.tab { border: 0; background: transparent; cursor: pointer; padding: 8px 18px; border-radius: 9px; color: var(--muted); font-weight: 700; letter-spacing: .06em; transition: background-color .12s ease, color .12s ease; }
.tab:hover { color: var(--ivory); }
.tab.is-on { background: linear-gradient(180deg, rgba(233, 196, 124, .22), rgba(233, 196, 124, .08)); color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--line); }
.select select { appearance: none; height: 40px; padding: 0 38px 0 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--ivory); cursor: pointer;
  background: rgba(5, 8, 23, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23e9c47c' stroke-width='2'/%3E%3C/svg%3E") right 12px center/16px no-repeat; font: inherit; }
.select select option { background: var(--panel-solid); }
.board { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.board th { white-space: nowrap; text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .1em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.board td { padding: 10px; border-bottom: 1px solid var(--line-soft); }
.board tbody tr { transition: background-color .12s ease; }
.board tbody tr:hover { background: rgba(233, 196, 124, .05); }
.board .rk { width: 64px; font: 700 16px var(--latin); color: var(--muted); }
.board tr.top1 .rk { color: #ffd76a; } .board tr.top2 .rk { color: #d9e2f2; } .board tr.top3 .rk { color: #e3a46d; }
.board .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.board .who b { font-weight: 500; color: var(--ivory); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .who small { display: block; font-size: 12px; color: var(--muted); }
.board .num { text-align: right; font: 700 17px var(--latin); color: var(--ivory); }
.board th.num { font: 500 13px var(--sans); }
.board .sub { color: var(--muted); font-size: 14px; }
.board__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; }
.pager { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); white-space: nowrap; flex: none; }
.pager__btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: rgba(5, 8, 23, .5); color: var(--gold-hi); cursor: pointer; font-size: 18px; line-height: 1; }
.pager__btn:disabled { opacity: .35; cursor: default; }
.search { position: relative; }
.search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; height: 46px; padding: 0 14px 0 42px; border-radius: 11px; border: 1px solid var(--line); background: rgba(5, 8, 23, .6); color: var(--ivory); font: inherit; }
.search input::placeholder { color: #6a769c; }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233, 196, 124, .15); }
.search__hits { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.search__hits button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line-soft); background: rgba(5, 8, 23, .4); cursor: pointer; text-align: left; }
.search__hits button:hover { border-color: var(--line); background: rgba(233, 196, 124, .06); }
.search__hits .muted { font-size: 13px; margin-left: auto; }
.profile { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.profile__top { display: flex; gap: 14px; align-items: center; }
.profile__top img { width: 64px; height: 64px; border-radius: 12px; image-rendering: pixelated; border: 1px solid var(--line); }
.profile__top h4 { margin: 0; font: 900 22px var(--serif); color: var(--ivory); }
.profile__top p { font-size: 13px; color: var(--muted); }
.profile__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.profile__stats div { padding: 10px 12px; border-radius: 10px; background: rgba(5, 8, 23, .45); border: 1px solid var(--line-soft); }
.profile__stats b { display: block; font: 700 20px var(--latin); color: var(--ivory); }
.profile__stats span { font-size: 12px; color: var(--muted); }

/* ───────── 名人堂精選（完整排行在 ranks.html） ───────── */
.tz { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; min-height: 120px; }
.tz__none { grid-column: 1 / -1; text-align: center; padding: 30px 0; }
.tz__card { position: relative; display: block; border-radius: var(--radius); padding: 18px 18px 14px; color: var(--ivory); background: linear-gradient(170deg, #1a2862, #0b1230); border: 1px solid rgba(233, 196, 124, .28); transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.tz__card:hover, .tz__card:focus-visible { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 24px rgba(233, 196, 124, .18); outline: none; }
.tz__hd { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tz__hd b { font: 700 18px var(--serif); color: var(--gold-hi); }
.tz__hd small { margin-left: auto; color: var(--muted); font-size: 12px; }
.tz__one { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; margin-bottom: 8px; background: radial-gradient(circle at 20% 50%, rgba(233, 196, 124, .22), rgba(233, 196, 124, .05) 70%); border: 1px solid rgba(233, 196, 124, .4); }
.tz__one > img { border-radius: 8px; image-rendering: pixelated; box-shadow: 0 0 0 2px var(--gold), 0 0 16px rgba(233, 196, 124, .5); }
.tz__one > img.tz__emb, .tz__row > img.tz__emb { box-shadow: none; image-rendering: auto; }
.tz__one > div { min-width: 0; }
.tz__one .n { font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tz__one .n::before { content: "♛ "; color: var(--gold); }
.tz__one .v, .tz__row .v { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-hi); font: 700 15px var(--latin); }
.tz__row { display: grid; grid-template-columns: 22px 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; font-size: 14px; }
.tz__row i { font: 700 13px var(--latin); color: #c9d2f5; font-style: normal; text-align: center; }
.tz__row > img { border-radius: 5px; image-rendering: pixelated; }
.tz__row span:not(.v) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tz__row .v { color: var(--gold); font-size: 14px; }
.tz__coin { width: 16px; height: 16px; }
.tz__more { display: block; text-align: right; margin-top: 8px; font: 700 12px var(--latin); letter-spacing: .14em; color: var(--gold); transition: letter-spacing .2s ease, color .2s ease; }
.tz__more::after { content: " ›"; }
.tz__card:hover .tz__more { color: var(--gold-hi); letter-spacing: .22em; }
.tz__go { text-align: center; margin-top: 28px; }
/* 首頁新手區：連到新手教學百科的分頁 */
.gmore { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gmore__card { display: block; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(170deg, #1a2862, #0b1230); border: 1px solid rgba(233, 196, 124, .26); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.gmore__card b { display: block; font: 700 18px var(--serif); color: var(--gold-hi); margin-bottom: 4px; }
.gmore__card b::after { content: " ›"; color: var(--gold); }
.gmore__card span { color: var(--muted); font-size: 14px; }
.gmore__card:hover, .gmore__card:focus-visible { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 14px 34px rgba(0, 0, 0, .4); outline: none; }

/* ───────── 新手指南 ───────── */
.steps { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 37px; left: 16%; right: 16%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5; }
.step { position: relative; text-align: center; padding: 0 12px; }
.step__no { position: relative; display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%; font: 700 24px var(--latin); color: var(--gold-hi); background: radial-gradient(circle at 50% 35%, #1d2c6e, #0a1130 70%); border: 1px solid var(--gold); box-shadow: 0 0 0 6px rgba(233, 196, 124, .07), 0 0 30px var(--blue-glow); }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { border-radius: 12px; background: var(--panel); border: 1px solid var(--line-soft); transition: border-color .2s ease; }
.faq__item[open] { border-color: var(--line); }
.faq__item summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 700; color: var(--ivory); position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "＋"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--gold); transition: transform .2s ease; }
.faq__item[open] summary::after { content: "－"; }
.faq__item p { padding: 0 20px 18px; color: var(--muted); }

/* ───────── 下載 ───────── */
.dl { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; padding: 44px 48px; overflow: hidden; }
.dl::selection { background: transparent; }
.dl__art { position: relative; display: grid; place-items: center; }
.dl__art::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 1px dashed rgba(233, 196, 124, .35); animation: spin 60s linear infinite; }
.dl__art::after { content: ""; position: absolute; width: 250px; height: 250px; border-radius: 50%; background: radial-gradient(circle, var(--blue-glow), transparent 65%); }
.dl__art img { position: relative; z-index: 1; width: 220px; height: 220px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); animation: float 6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }
.dl h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; margin: 12px 0 16px; }
.dl__points { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.dl__points li { padding-left: 26px; position: relative; color: #c3cbe6; }
.dl__points li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
.dl__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.dl__actions .muted { font-size: 14px; }
.dl__guide { margin: -10px 0 22px; font-size: 15px; }
.dl__guide a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.dl__guide a:hover { color: var(--gold-hi); }

/* ───────── 頁尾 ───────── */
.footer { border-top: 1px solid var(--line-soft); padding: 40px 0 28px; background: rgba(3, 5, 15, .6); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand b { font: 900 20px var(--serif); color: var(--ivory); letter-spacing: .1em; }
.footer__brand p { font-size: 14px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__links a { color: var(--muted); font-size: 15px; }
.footer__links a:hover { color: var(--gold-hi); }
.footer__legal { margin-top: 26px; font-size: 13px; color: #67729a; }
/* 營運者聯絡資訊（金流審核要每頁最下面看得到歐付寶會員編號） */
.footer__contact { margin-top: 26px; font-size: 14px; color: var(--muted); }
.footer__contact a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer__contact a:hover { color: var(--gold-hi); }
.footer__contact + .footer__legal { margin-top: 6px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 18px; border-radius: 10px; background: rgba(5, 8, 23, .95); border: 1px solid var(--gold); color: var(--ivory); font-size: 15px; transition: opacity .2s ease, transform .2s ease; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ───────── 響應式 ───────── */
/* 導覽列放不下就換成漢堡選單（1.4.3 多了「幻界禁書庫」：1180 以下一排放不下；1.7.0 多了「世界觀」：1260；商城頁沒有漢堡選單、連結少：1000） */
.nav__links a, .nav__dropbtn, .brand__text, .nav__cta .btn { white-space: nowrap; }
@media (max-width: 1000px) {
  .shop-page .nav__links { display: none; }
}
@media (max-width: 1260px) {
  body:not(.shop-page) .nav__links { display: none; }
  body:not(.shop-page) .nav__burger { display: flex; }
  body:not(.shop-page) .nav__cta .btn--ghost { display: none; }
}
@media (max-width: 1160px) {
  .nav__links a, .nav__dropbtn { padding: 8px 9px; font-size: 14px; }
  .files { grid-template-columns: repeat(3, 1fr); }
  .console__panel { grid-template-columns: 1fr 1fr 1fr; row-gap: 14px; padding: 18px; }
  .console__panel > * { padding: 4px 16px; }
  .console__ip { grid-column: 1 / -1; border-left: 0 !important; }
  .console__panel > .console__go { grid-column: 1 / -1; margin: 4px 16px 0; }
  .console__panel > :nth-child(2) { border-left: 0; }
  .dash { grid-template-columns: 1fr 1fr; grid-template-areas: "tiles tiles" "chart chart" "shards discord" "online online"; }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__cta .btn--ghost { display: none; }
  .news { grid-template-columns: 1fr; }
  .files { grid-template-columns: repeat(2, 1fr); }
  .tz, .gmore { grid-template-columns: repeat(2, 1fr); }
  .realms { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .dl { grid-template-columns: 1fr; text-align: center; padding: 36px 24px; }
  .dl__points { justify-items: center; }
  .dl__actions { justify-content: center; }
}
@media (max-aspect-ratio: 1/1) {
  .hero { height: 100vw; max-height: 100svh; }
  .hero__art img { object-position: 50% 50%; }
  .console { margin-top: -40px; }
}
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .section { padding: 76px 0; }
  .sec-head { margin-bottom: 36px; }
  .brand__text { font-size: 17px; }
  .nav__cta .btn--gold { display: none; }
  .console__panel { grid-template-columns: 1fr 1fr; }
  .console__panel > * { padding: 4px 6px; }
  .console__panel > :nth-child(3) { border-left: 0; }
  .console__panel > :nth-child(4) { grid-column: 1 / -1; border-left: 0; }
  .console__panel > .console__go { margin: 4px 6px 0; }
  .files { grid-template-columns: 1fr; }
  .tz, .gmore { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 70px 1fr; gap: 14px; padding: 16px; }
  .news-card__date { padding-right: 12px; }
  .news-card__date b { font-size: 24px; }
  .dash { grid-template-columns: 1fr; grid-template-areas: "tiles" "chart" "shards" "online" "discord"; }
  .tiles { gap: 12px; }
  .tile { padding: 16px; }
  .tile__num { font-size: 28px; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps::before { display: none; }
  .realm { min-height: 300px; }
  .online__list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 340px; }
  .realm__body { padding: 22px; }
  .dl__art::before { width: 230px; height: 230px; }
  .dl__art img { width: 170px; height: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
