:root {
  --bg: #080D14; --panel: #101B27; --raised: #182634; --sunk: #0B131D; --gold: #D5AE68; --gold-light: #F1D79A; --gold-dim: #8C7448;
  --line: #2A3747; --text: #EAE4D8; --muted: #98A6B3; --faint: #64727F; --ok: #65AC8D; --danger: #D85B55;
  --r-normal: #c9c6bd; --r-magic: #5aa2ff; --r-rare: #f2cf5b; --r-set: #6fd27a; --r-unique: #c98a3c;
  --serif: "Noto Serif TC", "Songti TC", serif; --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.65 var(--sans); }
a { color: var(--gold-light); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--gold-light); }
.cx-head { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 10px 20px; background: var(--panel); border-bottom: 1px solid var(--gold-dim); }
.cx-brand a { font-family: var(--serif); font-size: 19px; color: var(--gold-light); text-decoration: none; }
.cx-brand small { color: var(--faint); margin-left: 8px; font-size: 12px; }
.cx-search input { width: 100%; max-width: 520px; background: var(--sunk); border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; color: var(--text); font: inherit; }
.cx-play { font-size: 14px; border: 1px solid var(--gold-dim); padding: 4px 12px; border-radius: 4px; text-decoration: none; }
.cx-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.cx-nav { position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; padding: 16px 0; border-right: 1px solid var(--line); }
.cx-nav a { display: block; padding: 5px 20px; color: var(--muted); text-decoration: none; font-size: 14px; border-left: 2px solid transparent; }
.cx-nav a[aria-current="page"] { color: var(--gold-light); border-left-color: var(--gold); background: var(--sunk); }
.cx-nav .grp { padding: 12px 20px 4px; color: var(--faint); font-size: 12px; }
.cx-main { padding: 22px 28px 80px; max-width: 1180px; min-width: 0; }
.cx-main h1 { font-size: 26px; margin: 0 0 6px; }
.cx-main h2 { font-size: 19px; margin: 28px 0 8px; }
.cx-main h3 { font-size: 16px; margin: 20px 0 6px; }
.cx-main p, .cx-main li { max-width: 72ch; }
.lead { color: var(--muted); margin-top: 0; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; margin: 8px 0 18px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--panel); color: var(--muted); font-weight: 500; white-space: nowrap; position: sticky; top: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:hover td { background: #0e1724; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.chips button { background: var(--sunk); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; }
.chips button[aria-pressed="true"] { color: var(--gold-light); border-color: var(--gold-dim); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; }
.card h3 { margin: 0 0 4px; }
.card .lore { font-family: var(--serif); color: #b6a27b; font-size: 13px; }
.stat-big { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.stat-big div { background: var(--panel); border: 1px solid var(--line); padding: 10px 12px; border-radius: 4px; }
.stat-big b { display: block; font-size: 24px; color: var(--gold-light); font-weight: 600; }
.stat-big small { color: var(--muted); }
.r-normal { color: var(--r-normal); } .r-magic { color: var(--r-magic); } .r-rare { color: var(--r-rare); } .r-set { color: var(--r-set); } .r-unique { color: var(--r-unique); }
.t1 { color: #b9c3cd; } .t2 { color: var(--r-magic); } .t3 { color: var(--r-unique); }
.ok { color: var(--ok); } .bad { color: var(--danger); }
.tag { display: inline-block; font-size: 12px; border: 1px solid var(--line); border-radius: 3px; padding: 0 6px; color: var(--muted); margin-right: 4px; }
.note { border-left: 3px solid var(--gold-dim); background: var(--sunk); padding: 8px 12px; margin: 10px 0; font-size: 14px; color: #cfc8ba; }
.hit { background: rgba(213,174,104,.18); }
.small { font-size: 13px; }
code { font-size: 12px; color: #cfc8ba; background: var(--sunk); padding: 1px 5px; border-radius: 3px; }

/* ---- 資料站 v1.3 ---- */
.cx-menu { display: none; background: var(--sunk); border: 1px solid var(--gold-dim); color: var(--gold-light); border-radius: 4px; padding: 4px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.cx-nav a i { font-style: normal; font-size: 11px; color: var(--faint); margin-left: 6px; }
.crumb { margin: 0 0 2px; color: var(--faint); font-size: 12px; letter-spacing: .12em; }
.see { margin: 6px 0 0; font-size: 14px; }
.btn { display: inline-block; border: 1px solid var(--gold-dim); border-radius: 4px; padding: 6px 16px; color: var(--gold-light); background: var(--sunk); text-decoration: none; font: inherit; font-size: 14px; cursor: pointer; }
.btn.primary { background: linear-gradient(#c79c52, #9c7636); color: #1b1307; border-color: #e3c27e; font-weight: 700; }
.btn:hover { filter: brightness(1.1); }
.pill { display: inline-block; font-size: 11px; line-height: 18px; padding: 0 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); vertical-align: middle; font-family: var(--sans); font-weight: 500; white-space: nowrap; }
.pill.live { color: var(--ok); border-color: rgba(101,172,141,.5); }
.pill.next { color: var(--gold-light); border-color: var(--gold-dim); }
.pill.planned { color: var(--faint); border-style: dashed; }
.note.warn { border-left-color: var(--gold); }

.hero { padding: 26px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: .08em; margin: 0 0 8px; text-wrap: balance; }
.hero .lead { font-size: 16px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 14px; }
.stat-big { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.stat-big a { display: block; background: var(--panel); border: 1px solid var(--line); padding: 10px 12px; border-radius: 4px; text-decoration: none; }
.stat-big a:hover { border-color: var(--gold-dim); }
.stat-big a b { display: block; font-size: 24px; color: var(--gold-light); font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-big a small { color: var(--muted); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; }
.quick { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.quick a { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 9px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--text); }
.quick a:hover { border-color: var(--gold-dim); }
.quick small { color: var(--faint); white-space: nowrap; }
.community { list-style: none; padding: 0; display: grid; gap: 6px; }
.community li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.community small { color: var(--muted); }
.cards.groups { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.cards.groups ul { padding-left: 18px; margin: 6px 0 0; }
.cards.groups li { max-width: none; }

.steps { list-style: none; padding: 0; margin: 16px 0; counter-reset: step; display: grid; gap: 10px; }
.steps > li { counter-increment: step; position: relative; padding: 12px 16px 12px 58px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.steps > li::before { content: counter(step); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border: 1px solid var(--gold-dim); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); color: var(--gold-light); font-size: 15px; }
.steps h3 { margin: 2px 0 4px; }
.steps p { margin: 4px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.toc a { font-size: 13px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--gold-light); border-color: var(--gold-dim); }
.cx-main h2[id] { scroll-margin-top: 70px; }

.faq { display: grid; gap: 6px; margin-top: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 0 14px; }
.faq summary { cursor: pointer; padding: 11px 0; font-weight: 500; color: var(--gold-light); }
.faq details[open] { padding-bottom: 10px; }
.faq details p { margin: 0 0 6px; }

.inline-search { display: grid; gap: 4px; max-width: 460px; margin: 6px 0; font-size: 13px; color: var(--muted); }
.inline-search input, .sim select { background: var(--sunk); border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; color: var(--text); font: inherit; font-size: 14px; }
.timetable tr:first-child td { background: rgba(213,174,104,.08); }

.sim { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 14px; }
.sim label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.sim-out { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.sim-out div { background: var(--sunk); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; }
.sim-out b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; color: var(--gold-light); }
.sim-out b.ok { color: var(--ok); } .sim-out b.bad { color: var(--danger); }
.sim-out small { color: var(--muted); }

.timeline { list-style: none; padding: 0; margin: 10px 0; border-left: 1px solid var(--gold-dim); }
.timeline > li { position: relative; padding: 0 0 14px 22px; }
.timeline > li::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.timeline h2 { margin: 0 0 2px; font-size: 18px; }
.timeline h2 small { font-family: var(--sans); font-size: 12px; color: var(--faint); margin-left: 10px; font-weight: 400; }
.timeline .vt { margin: 0 0 4px; color: var(--muted); }
.timeline ul { margin: 4px 0 0; padding-left: 18px; }

@media (max-width: 860px) {
  .cx-head { grid-template-columns: auto 1fr auto; padding: 8px 14px; gap: 10px; }
  .cx-menu { display: inline-block; }
  .cx-links .cx-play:first-child { display: none; }
  .cx-search { grid-column: 1 / -1; grid-row: 2; }
  .cx-body { grid-template-columns: 1fr; }
  .cx-nav { display: none; position: fixed; inset: 96px 0 0 0; z-index: 9; height: auto; overflow-y: auto; background: var(--bg); padding: 8px 0 40px; border-right: 0; }
  body.nav-open .cx-nav { display: grid; grid-template-columns: 1fr 1fr; align-content: start; }
  body.nav-open { overflow: hidden; }
  .cx-nav a { padding: 6px 16px; }
  .cx-main { padding: 16px 16px 60px; }
  .home-grid { grid-template-columns: 1fr; gap: 6px; }
  .sim-out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps > li { padding-left: 52px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ---- v1.4 圖片與終局頁 ---- */
:root { --r-artifact: #ff9f5a; }
.r-artifact { color: var(--r-artifact); }
.pic { display: inline-block; flex: none; width: 44px; height: 44px; border-radius: 4px; object-fit: contain; background: var(--sunk); border: 1px solid var(--line); vertical-align: middle; }
.pic.xs { width: 22px; height: 22px; }
.pic.lg { width: 72px; height: 72px; }
.pic.thumb { width: 36px; height: 48px; object-fit: cover; }
.pic.wide { width: 112px; height: 63px; object-fit: cover; }
.pic.portrait { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; max-width: 100%; }
.pic.ph { position: relative; display: inline-grid; place-items: center; overflow: hidden; border: 1px dashed var(--gold-dim);
  background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(213,174,104,.06) 7px 8px), var(--sunk); }
.pic.ph b { font-family: var(--serif); font-weight: 700; color: var(--gold-dim); font-size: 20px; line-height: 1; }
.pic.ph.lg b { font-size: 32px; } .pic.ph.xs b { font-size: 12px; } .pic.ph.thumb b { font-size: 18px; }
.pic.ph.portrait b, .pic.ph.wide b { font-size: 34px; }
.pic.ph.portrait b { font-size: clamp(40px, 8vw, 72px); opacity: .7; }
.pic.ph i { position: absolute; right: 2px; bottom: 1px; font-style: normal; font-size: 9px; line-height: 1.2; color: var(--faint); letter-spacing: .05em; }
.pic.ph.xs i { display: none; }
.with-pic { display: flex; gap: 10px; align-items: center; }
.with-pic > span:last-child { min-width: 0; }
.card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.card-head h3 { margin: 0; }
.card-head p { margin: 2px 0 0; }
.piece-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.mat { display: inline-flex; align-items: center; gap: 5px; margin: 2px 8px 2px 0; white-space: nowrap; }
.cards.cls .pic.portrait, .cards.gods .pic.portrait { margin-bottom: 8px; }
.npc-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; }
.npc-card h3 { margin-top: 0; }
.cls-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cls-strip a { display: grid; gap: 2px; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 8px; }
.cls-strip a:hover { border-color: var(--gold-dim); }
.cls-strip small { color: var(--muted); }
.cards.gods { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card.god { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; }
.card.god h3 { margin: 0 0 4px; }
.realms { display: grid; gap: 8px; }
.realm { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 10px; }
.realm .pic.wide { width: 220px; height: 124px; }
.realm h3 { margin: 0 0 4px; }
.realm p { margin: 2px 0; }

.loop { list-style: none; padding: 0; margin: 12px 0 4px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.loop li { position: relative; }
.loop li:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 14px; z-index: 1; }
.loop a { display: grid; gap: 4px; height: 100%; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--text); }
.loop a:hover { border-color: var(--gold-dim); }
.loop .n { font-family: var(--serif); color: var(--gold); font-size: 13px; }
.loop b { font-family: var(--serif); color: var(--gold-light); font-size: 17px; }
.loop small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.loop .pill { justify-self: start; }
.loop-back { color: var(--gold); font-size: 14px; margin: 4px 0 0; }
@media (max-width: 1100px) { .loop { grid-template-columns: repeat(3, minmax(0, 1fr)); } .loop li:nth-child(3)::after { display: none; } }
@media (max-width: 860px) {
  .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); } .loop li::after { display: none; }
  .cls-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .realm { grid-template-columns: 1fr; } .realm .pic.wide { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .card.god { grid-template-columns: 96px minmax(0, 1fr); }
  .pic.wide { width: 80px; height: 45px; }
}
.cards.arts, .cards.gods { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (min-width: 1100px) { .realms { grid-template-columns: 1fr 1fr; } .realm { grid-template-columns: 160px minmax(0, 1fr); } .realm .pic.wide { width: 160px; height: 90px; } }
.frames { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0; } .frames div { display: grid; justify-items: center; gap: 2px; font-size: 13px; } .frames small { color: var(--muted); font-size: 11px; }

/* ---- v1.5.1 英文名、奧德修斯之弓 ---- */
.en { font-family: var(--sans); font-style: italic; color: var(--muted); font-size: 12px; font-weight: 400; margin: 0; letter-spacing: .02em; }
h2 .en, h3 .en { font-size: 13px; margin-left: 6px; }
.pic.xl { width: 160px; height: 160px; }
.pic.ph.xl b { font-size: 56px; }
.bow-feature { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: start; margin: 16px 0 8px; padding: 16px; border: 1px solid var(--gold-dim); border-radius: 4px; background: linear-gradient(135deg, rgba(213,174,104,.10), transparent 60%), var(--panel); }
.bow-feature h2 { margin: 0 0 4px; }
.bow-feature h3 { margin: 14px 0 4px; }
.card.feature { border-color: var(--gold-dim); }
@media (max-width: 860px) { .bow-feature { grid-template-columns: 1fr; } }

/* v1.7 諸神恩寵 */
.formula { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 12px 0 6px; }
.formula > div { flex: 1 1 150px; background: var(--panel); border: 1px solid var(--gold-dim); border-radius: 4px; padding: 10px 12px; }
.formula b { display: block; font-family: var(--serif); color: var(--gold-light); font-size: 17px; }
.formula small { color: var(--muted); font-size: 12px; }
.formula > span { align-self: center; color: var(--gold); font-size: 20px; }

/* 點怪物看掉落（每件都有圖、名稱、機率） */
.drops-btn { margin-top: 4px; background: var(--sunk); border: 1px solid var(--gold-dim); color: var(--gold-light); border-radius: 4px; padding: 2px 8px; font: inherit; font-size: 12px; cursor: pointer; }
.drops-btn:hover { background: var(--raised); }
.cx-dlg { width: min(560px, calc(100vw - 24px)); max-height: min(86dvh, 860px); padding: 14px 16px; background: var(--panel); color: var(--text); border: 1px solid var(--gold-dim); border-radius: 6px; }
.cx-dlg::backdrop { background: rgba(0,0,0,.6); }
.cx-dlg-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.cx-dlg-head h2 { margin: 0; font-size: 20px; }
.cx-dlg-x { background: none; border: 1px solid var(--line); color: var(--muted); width: 30px; height: 30px; border-radius: 4px; cursor: pointer; flex: none; }
.cx-dlg .drop-box { max-height: 58dvh; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 4px; background: var(--sunk); }
.cx-dlg .drop-group { position: sticky; top: 0; z-index: 1; background: var(--raised); color: var(--gold-light); font-size: 12px; font-weight: 700; padding: 4px 10px; border-bottom: 1px solid var(--line); }
.cx-dlg .drop-group small { color: var(--muted); font-weight: 400; }
.cx-dlg .drop-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 10px; border-bottom: 1px solid rgba(255,255,255,.05); }
.cx-dlg .drop-n { display: grid; min-width: 0; font-size: 14px; }
.cx-dlg .drop-n small { font-size: 11px; color: var(--muted); }
.cx-dlg .drop-p { color: var(--gold-light); font-weight: 700; font-variant-numeric: tabular-nums; }

/* 職業：男女外觀並排 */
.looks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.looks figure { margin: 0; display: grid; gap: 4px; justify-items: center; }
.looks .pic.portrait { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; object-position: center bottom; background: radial-gradient(ellipse at 50% 85%, rgba(213,174,104,.2), transparent 62%), #0b131d; }
.looks figcaption { font-size: 13px; color: var(--gold-light, #f1d79a); }

/* v1.10.11 點兩下不放大（雙指縮放照常，方便看圖） */
html, body { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
/* v1.10.24 神兵頁：職業／部位快速跳轉（與 chips 按鈕同一個樣式） */
.chips a { background: var(--sunk); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; color: var(--muted); font-size: 13px; text-decoration: none; }
.chips a:hover { color: var(--gold-light); border-color: var(--gold-dim); }

/* v1.10.47 手機好點：按鈕、切換鈕、選單連結至少 40–44px 高；表格不擠成一字一行（可左右滑） */
@media (max-width: 860px) {
  .chips { gap: 8px; }
  .chips button, .chips a { min-height: 42px; padding: 8px 16px; font-size: 15px; display: inline-flex; align-items: center; }
  .cx-nav a { padding: 12px 16px; min-height: 44px; display: flex; align-items: center; }
  .cx-head .btn, .cx-head a, .cx-head button { min-height: 40px; }
  .see a, .note a, td a { display: inline-block; padding: 6px 0; }
  table { font-size: 14px; }
  td, th { white-space: nowrap; }
  td:has(.with-pic) { min-width: 9em; }
  td .with-pic span { white-space: normal; }
  td:last-child, td:nth-last-child(2) { white-space: normal; min-width: 12em; }
  .tbl-wrap { -webkit-overflow-scrolling: touch; }
}
@media (max-width: 860px) { .cx-play, .cx-menu { min-height: 40px; display: inline-flex; align-items: center; } }

/* v1.12.8 分享位置 🔗、提示；手機目錄每組自己一塊（不再兩欄對不齊、留大片空白） */
.cx-share { margin-left: 8px; padding: 2px 6px; min-width: 32px; min-height: 32px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--faint); font-size: 14px; cursor: pointer; vertical-align: middle; opacity: .55; }
.cx-share:hover, .cx-share:focus-visible { opacity: 1; border-color: var(--line); color: var(--gold-light); }
#cx-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 10px 16px; border-radius: 999px; background: var(--raised, #182634); border: 1px solid var(--line); color: var(--text, #eee); font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; max-width: 90vw; overflow-wrap: anywhere; }
#cx-toast.on { opacity: 1; transform: translate(-50%, 0); }
.hit { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
@media (max-width: 860px) {
  body.nav-open .cx-nav { display: block; padding: 4px 10px 48px; }
  .cx-nav .navg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
  .cx-nav .navg .grp { grid-column: 1 / -1; padding: 10px 4px 2px; font-size: 13px; color: var(--gold-dim); }
  .cx-nav a { border: 1px solid var(--line); border-left-width: 1px; border-radius: 8px; padding: 10px 12px; min-height: 46px; font-size: 15px; color: var(--text, #ddd); background: var(--sunk); }
  .cx-nav a[aria-current="page"] { border-color: var(--gold); }
  .cx-share { opacity: .8; min-width: 40px; min-height: 40px; }
  .cx-menu { min-width: 64px; justify-content: center; font-size: 15px; }
}

/* v1.12.9 手機：頁首避開瀏海／狀態列（iPhone 時間會壓到「目錄」）；獵場等表格第一欄不要擠成一字一行 */
.cx-head { padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (max-width: 860px) {
  .cx-head { padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
  .cx-nav { inset: calc(96px + env(safe-area-inset-top, 0px)) 0 0 0; }
  td:has(.with-pic) { min-width: 15em; }
  td .with-pic > span:last-child { min-width: 9em; }
  td .with-pic .pic, td .with-pic img { flex: none; }
}

/* v1.13.5 美術防盜：圖片不能長按存圖、拖曳 */
img { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }
/* v1.15.52 圖鑑與故事 */
.bst-g { margin-top: 22px; }
.bst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.bst-m { border: 1px solid var(--line); border-radius: 10px; background: var(--sunk); padding: 10px 12px; min-width: 0; }
.bst-mh { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.bst-mh .pic.sq { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.bst-mh b { display: block; font-size: 15px; } .bst-mh small { display: block; }
.bst-mh a.small { font-size: 12px; white-space: nowrap; }
.bst-story { margin: 8px 0 6px; font-size: 13.5px; line-height: 1.6; color: #c9bd9f; }
.bst-m table.t { margin: 0; font-size: 13px; } .bst-m table.t td { padding: 4px 6px; vertical-align: top; } .bst-m table.t td.r { white-space: nowrap; text-align: right; }
/* v1.15.52 強化練習場 */
.play { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--sunk); margin-bottom: 18px; }
.play-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.play-item { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); min-width: 0; flex: 1 1 260px; }
.play-item b { display: block; font-size: 17px; font-family: var(--serif, serif); }
.play-item small { display: block; color: var(--muted); margin-top: 2px; }
.play-item.blessed b { color: #8fd0ff; } .play-item.cursed b { color: #d87a7a; }
.play-item.ms-glimmer b, .play-item.ms-awaken b, .play-item.ms-chosen b, .play-item.ms-might b, .play-item.ms-legend b { color: #f1d79a; text-shadow: 0 0 8px rgba(241,215,154,.6); }
.play-kind { margin: 0; }
.play-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.play-acts .btn { display: grid; gap: 2px; text-align: left; padding: 8px 12px; min-width: 150px; }
.play-acts .btn small { font-size: 11px; font-weight: 400; opacity: .85; }
.play-acts .btn:disabled { opacity: .45; cursor: not-allowed; }
.play-stats { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.play-log { margin: 0; padding-left: 1.2em; font-size: 13.5px; line-height: 1.7; }
.play-log li.ok { color: #7fd6a4; } .play-log li.bad { color: #e08a86; }
.play-log li:first-child { font-weight: 600; }

/* v1.15.91 首頁大改版焦點、九神降臨頁 */
.spotlight { margin: 0 0 22px; padding: 18px 20px; border: 1px solid rgba(226, 194, 122, .45); border-radius: 14px; background: radial-gradient(ellipse at top left, rgba(226, 194, 122, .14), transparent 60%), rgba(255, 255, 255, .02); }
.spotlight h2 { margin-top: 0; }
.spotlight .lead { font-size: 1.05em; }
.dsc-strip { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; margin: 12px 0; }
.dsc-strip a { display: block; border-radius: 10px; overflow: hidden; background: rgba(0, 0, 0, .25); transition: transform .2s; }
.dsc-strip a:hover { transform: translateY(-3px); }
.dsc-strip img, .dsc-strip .portrait { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
@media (max-width: 700px) { .dsc-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.dsc-cards .card img { object-fit: cover; object-position: top; }

/* ============ v1.19.44 使用者：資料站不太好閱讀 → 字大一點、行距寬、段落與表格有呼吸空間、標題有層次 ============ */
body { font-size: 16px; line-height: 1.75; }
.cx-main { padding: 28px 36px 96px; }
.cx-main h1 { font-size: 30px; margin-bottom: 10px; letter-spacing: .02em; }
.cx-main h2 { font-size: 21px; margin: 40px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.cx-main h3 { font-size: 17px; margin: 26px 0 8px; color: var(--gold-light); }
.cx-main p, .cx-main li { max-width: 68ch; }
.cx-main p { margin: 10px 0; } .cx-main ul, .cx-main ol { padding-left: 1.4em; } .cx-main li { margin: 4px 0; }
table { font-size: 15px; }
table th, table td { padding: 9px 12px; vertical-align: top; }
table thead th { position: sticky; top: 0; z-index: 1; background: var(--sunk); }
table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .025); }
table tbody tr:hover td { background: rgba(214, 178, 94, .07); }
.note { font-size: 15px; line-height: 1.7; padding: 12px 16px; border-radius: 0 8px 8px 0; }
.small { font-size: 14px; }
.cx-nav a { font-size: 15px; padding: 7px 20px; }
@media (max-width: 760px) { body { font-size: 16px; } .cx-main { padding: 18px 16px 80px; } .cx-main h1 { font-size: 25px; } .cx-main h2 { font-size: 19px; margin-top: 32px; } table { font-size: 14px; } table th, table td { padding: 7px 8px; } }
/* 大改版 */
.timeline li.major { border: 1px solid var(--gold-dim); border-radius: 16px; padding: 18px 20px; background: linear-gradient(rgba(214, 178, 94, .1), transparent 60%); }
.mj-banner { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; } .mj-banner img { width: min(260px, 60vw); height: auto; }
.mj-banner h2 { margin: 4px 0 0 !important; border: 0 !important; padding: 0 !important; font-size: 24px !important; color: var(--gold-light); }
.mj-tag { display: inline-block; padding: 2px 12px; border-radius: 999px; border: 1px solid var(--gold-dim); color: var(--gold-light); font-size: 13px; }
.mj-list { margin-top: 12px; } .mj-list li { font-size: 16px; margin: 8px 0; }
.mj-more { margin-top: 14px; } .mj-more summary { cursor: pointer; color: var(--muted); }
/* v1.19.46 首頁焦點：大改版 */
.spotlight.sp-major { text-align: left; }
.sp-logo { display: block; width: min(360px, 70vw); height: auto; margin: 0 0 8px; }
.spotlight .mj-tag { margin-bottom: 4px; }

/* ============ v1.19.65 資料站改版：兩層上方導覽（不用下拉）＋整體質感 ============ */
:root { --hh: 58px; --accent: #E8C27A; --card: #0F1823; --card2: #131F2C; --radius: 14px; }
body { background: radial-gradient(1200px 600px at 50% -200px, rgba(214, 178, 94, .10), transparent 70%), var(--bg); }
.cx-head { box-shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 8px 24px rgba(0, 0, 0, .25); }
.cx-brand a { letter-spacing: .04em; }
.cx-top { display: none; }
@media (min-width: 861px) {
  .cx-body > .cx-nav { display: none !important; }
  .cx-body { grid-template-columns: 1fr !important; }
  .cx-menu { display: none !important; }
  .cx-top { display: block; position: sticky; top: var(--hh); z-index: 9; background: rgba(10, 16, 24, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .tg-row { display: flex; justify-content: center; gap: 4px; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
  .tg-b { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px 11px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 15px; font-weight: 600; letter-spacing: .03em; cursor: pointer; transition: color .15s; }
  .tg-b i { font-style: normal; font-size: 17px; filter: saturate(.8); }
  .tg-b::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 2px; background: transparent; transition: background .15s; }
  .tg-b:hover { color: var(--text); }
  .tg-b.sel { color: var(--accent); } .tg-b.sel::after { background: var(--accent); }
  .tg-b.here:not(.sel)::before { content: ''; position: absolute; top: 9px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7; }
  .tg-sub { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 1180px; margin: 0 auto; padding: 10px 24px 12px; border-top: 1px solid rgba(255, 255, 255, .04); }
  .tg-sub a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .025); color: var(--text); text-decoration: none; font-size: 14px; transition: background .15s, border-color .15s, transform .15s; }
  .tg-sub a i { font-style: normal; font-size: 16px; }
  .tg-sub a small { font-size: 11px; color: var(--muted); }
  .tg-sub a:hover { background: rgba(232, 194, 122, .09); border-color: rgba(232, 194, 122, .35); transform: translateY(-1px); }
  .tg-sub a[aria-current="page"] { background: linear-gradient(180deg, rgba(232, 194, 122, .22), rgba(232, 194, 122, .10)); border-color: rgba(232, 194, 122, .6); color: var(--accent); font-weight: 600; }
  .cx-main { max-width: 1120px; margin: 0 auto; width: 100%; padding: 34px 40px 110px; }

}
/* 內容區的質感 */
.cx-main h1 { font-size: 32px; letter-spacing: .02em; }
.cx-main h2 { position: relative; padding-left: 14px; border-bottom: 0; }
.cx-main h2::before { content: ''; position: absolute; left: 0; top: .25em; bottom: .25em; width: 4px; border-radius: 4px; background: linear-gradient(var(--accent), rgba(232, 194, 122, .2)); }
.cx-main table { border: 1px solid var(--line); background: var(--card); }   /* 不用 overflow:hidden（會讓固定表頭跑掉） */
.cx-main table thead th { background: var(--card2); font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.cx-main .card, .cx-main .box, .cx-main .spotlight, .cx-main .formula > div { border-radius: var(--radius); }
.cx-main .card { background: linear-gradient(180deg, var(--card2), var(--card)); box-shadow: 0 6px 18px rgba(0, 0, 0, .22); transition: transform .15s, box-shadow .15s; }
.cx-main .card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.cx-main a { text-underline-offset: 3px; }
/* v1.19.67 版本更新「航海日誌」：左日期、右分段（新內容／調整／修補），一條金色航線串起來 */
.logbook { position: relative; display: grid; gap: 0; margin-top: 8px; }
.logbook::before { content: ''; position: absolute; left: 123px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--gold-dim), rgba(140, 116, 72, .15)); }
.lb-day { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 36px; padding: 18px 0 26px; }
.lb-date { text-align: right; padding-right: 4px; font-family: var(--serif, 'Noto Serif TC', serif); }
.lb-date b { display: block; font-size: 40px; line-height: 1; color: var(--accent); }
.lb-date span { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .15em; color: var(--muted); }
.lb-day::after { content: ''; position: absolute; left: 118px; top: 28px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.lb-day.major::after { background: var(--accent); box-shadow: 0 0 0 4px var(--bg), 0 0 14px rgba(232, 194, 122, .6); }
.lb-body h2 { margin: 0 0 12px !important; padding: 0 !important; font-size: 22px !important; color: var(--text); font-family: var(--serif, 'Noto Serif TC', serif); } .lb-body h2::before { display: none; }
.lb-body h2 em { font-style: normal; margin-right: 10px; padding: 2px 10px; border-radius: 3px; font-size: 13px; vertical-align: middle; color: #1a1206; background: linear-gradient(90deg, #f3d58a, #c99a3e); letter-spacing: .1em; }
.lb-sec { margin: 0 0 14px; }
.lb-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px !important; font-size: 13px !important; letter-spacing: .18em; color: var(--muted) !important; font-weight: 600; }
.lb-sec h3 i { font-style: normal; font-size: 15px; }
.lb-sec.k-new h3 i { color: #8fd8a0; } .lb-sec.k-adj h3 i { color: #9cc4ff; } .lb-sec.k-fix h3 i { color: #e8b86a; }
.lb-sec ul { list-style: none; margin: 0; padding: 0 0 0 2px; border-left: 2px solid rgba(255, 255, 255, .06); }
.lb-sec li { padding: 6px 0 6px 14px; max-width: none !important; }
.lb-sec li b { display: block; font-size: 15px; font-weight: 600; } .lb-sec li span { display: block; font-size: 14px; color: var(--muted); line-height: 1.6; }
@media (max-width: 760px) { .logbook::before { left: 14px; } .lb-day { grid-template-columns: 1fr; gap: 6px; padding-left: 34px; } .lb-day::after { left: 9px; top: 26px; } .lb-date { text-align: left; padding: 0; display: flex; gap: 8px; align-items: baseline; } .lb-date b { font-size: 26px; } }
/* 上方分類：名稱＋小字說明 */
@media (min-width: 861px) { .tg-b > span { display: grid; line-height: 1.15; text-align: left; } .tg-b > span b { font-size: 15px; letter-spacing: .12em; } .tg-b > span small { font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: .02em; } .tg-b { padding: 10px 18px 9px; } }
/* v1.19.68 資料站 LOGO（史詩、Q 版各用自己的）＋ Q 版配色 */
.cx-logo { height: 30px; width: auto; vertical-align: middle; margin-right: 8px; }
.cx-brand a:has(.cx-logo) { display: inline-flex; align-items: center; }
html[data-artstyle="q-wait"] .cx-logo, html[data-artstyle="q-wait"] .sp-logo { visibility: hidden; }
html[data-artstyle="q"] { --bg: #1d1530; --panel: #2a1f42; --raised: #36284f; --sunk: #221a36; --card: #2a2040; --card2: #33264d; --gold: #ffb3d4; --gold-light: #ffd9ec; --gold-dim: #b98ac9; --accent: #ffb3d4; --line: rgba(255, 210, 240, .16); }
html[data-artstyle="q"] body { font-family: 'Huninn', var(--sans); background: radial-gradient(1200px 600px at 50% -200px, rgba(255, 179, 212, .16), transparent 70%), var(--bg); }
html[data-artstyle="q"] .cx-main h1, html[data-artstyle="q"] .lb-date, html[data-artstyle="q"] .lb-body h2 { font-family: 'Huninn', var(--sans); }
html[data-artstyle="q"] .cx-top { background: rgba(36, 26, 58, .92); }
html[data-artstyle="q"] .cx-main .card, html[data-artstyle="q"] .cl-day { border-radius: 20px; }
html[data-artstyle="q"] .tg-sub a { border-radius: 16px; }
html[data-artstyle="q"] .lb-body h2 em { background: linear-gradient(90deg, #ffb3d4, #c9a7ff); color: #3a1d4a; }
.limits { display: grid; gap: 6px; padding-left: 20px; } .limits li { max-width: none; }   /* v1.19.91 */
.mech { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 8px 0; font-size: 14px; } .mech dt { font-weight: 700; color: var(--gold-light); white-space: nowrap; } .mech dd { margin: 0; } @media (max-width: 520px) { .mech { grid-template-columns: 1fr; } .mech dd { margin-bottom: 6px; } }   /* v1.19.92 */
