/* 遊戲指南（guide.html）：黑金貴賓風（站長 2026-11-01「網頁使用黑色系」「要滿滿儀式貴賓感，帥氣一點」）
 *   黑底、金色描邊與漸層字、襯線大標、菱形裝飾分隔線；logo 的紅當重點色。手機優先。
 *   效能（同日「滑動很卡」）：不用 backdrop-filter、不用會一直重畫版面的動畫；只有進入遊戲鈕有一道光掃過（只動 transform） */
:root {
  --bg: #0b0a0a; --paper: #171313; --paper2: #1f1918; --ink: #efe6d8; --muted: #a8998a; --line: #3a2f25;
  --gold: #d9b26a; --gold-hi: #f6dc9c; --gold-lo: #8a6a35; --gold-soft: #2a2114;
  --gem: var(--gold); --gem-soft: var(--gold-soft);
  --coral: #ff7a66; --coral-soft: #331512; --mint: #6fd3b0; --mint-soft: #10291f;
  --brand: #d8281c;
  --f-head: "Noto Serif TC", "Songti TC", "PMingLiU", "MingLiU", serif;
  --f-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --r: 12px;
  --gold-grad: linear-gradient(180deg, #f6dc9c 0%, #d9b26a 48%, #8a6a35 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 64px; }   /* 不平滑捲：換頁要直接到頂端（站長 2026-11-01 一頁一頁） */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.8 var(--f-body); -webkit-text-size-adjust: 100%; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
img { max-width: 100%; }
b, strong { color: var(--gold-hi); font-weight: 700; }
.wrap { max-width: 780px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ── 頂端：logo 邊緣淡進黑色，上下各一條金線 ── */
.hero { position: relative; padding-block: 30px 42px; text-align: center; color: var(--ink); overflow: hidden;
  background: radial-gradient(85% 60% at 50% 32%, rgba(30,8,6,.78) 0%, rgba(11,10,10,.55) 45%, transparent 82%); }   /* logo 後面壓暗、慢慢淡進底圖，看不出邊 */
.hero::before, .hero::after { content: ""; position: absolute; left: 50%; width: min(560px, 92vw); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero::before { top: 14px; } .hero::after { bottom: 0; }
.hero .logo { display: block; width: min(320px, 74vw); height: auto; margin: 0 auto 2px; aspect-ratio: 600 / 679;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%); mask-image: radial-gradient(closest-side, #000 58%, transparent 100%); }
.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero .welcome { display: block; margin: 0 0 10px; font-family: var(--f-head); font-weight: 700; font-size: 15px; letter-spacing: .5em; padding-left: .5em;
  color: transparent; }
/* 一個字一個字輪流往上跳一下（站長 2026-11-01「一個一個字跳動，不華麗，簡單有帶動就好」）：每個字自己帶金色漸層（父層的 background-clip 遇到 transform 的子元素會不見） */
.hero .welcome i { display: inline-block; font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: wHop 3.2s ease-in-out calc(var(--i) * .12s) infinite; }
@keyframes wHop { 0%, 14%, 100% { transform: none; } 7% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .hero .welcome i { animation: none; } }
.orn { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto 16px; max-width: 300px; }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.orn::after { background: linear-gradient(90deg, var(--gold), transparent); }
.orn i { width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold-grad); box-shadow: 0 0 10px rgba(246,220,156,.6); }
.hero p { margin: 0 auto 24px; color: #d8cbb8; max-width: 30em; text-wrap: balance; letter-spacing: .04em; }
.hero p [data-f] { color: var(--gold-hi); font-weight: 700; }

/* 進入遊戲：紅底金框徽章鈕，一道光每幾秒掃過一次 */
.cta { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 40px; border-radius: 4px; overflow: hidden;
  font-family: var(--f-head); font-size: 19px; font-weight: 700; letter-spacing: .3em; color: #fff7e6; text-decoration: none; text-shadow: 0 1px 2px #4a0a05;
  background: linear-gradient(180deg, #e8392a 0%, #b51a10 55%, #7e0f08 100%);
  border: 1px solid var(--gold-hi); box-shadow: 0 0 0 3px #140a09, 0 0 0 4px var(--gold-lo), 0 10px 28px rgba(216,40,28,.35), inset 0 1px 0 rgba(255,220,180,.5); }
.cta::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; transform: translateX(-160%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,240,200,.45), transparent); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 70% { transform: translateX(-160%) skewX(-20deg); } 100% { transform: translateX(360%) skewX(-20deg); } }
@media (prefers-reduced-motion: reduce) { .cta::after { animation: none; } }
.cta:active { transform: translateY(2px); }
.cta:focus-visible, .chips a:focus-visible, .quick a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* ── 目錄：黑底一排標籤，目前那節金底 ── */
.chips { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 6px 16px rgba(0,0,0,.5); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.chips .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.chips .wrap::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: 5px 14px; border-radius: 3px; background: var(--paper); border: 1px solid var(--line); color: #d8cbb8; text-decoration: none; font-size: 14px; letter-spacing: .08em; white-space: nowrap; }
.chips a.on { background: var(--gold-grad); color: #1a1208; border-color: var(--gold-hi); font-weight: 700; }

/* ── 常見問題入口：金框牌子 ── */
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px 0 6px; }
@media (min-width: 640px) { .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.quick a { display: flex; align-items: center; min-height: 52px; padding: 8px 12px; border-radius: 4px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.4;
  background: linear-gradient(180deg, var(--paper2), var(--paper)); border: 1px solid var(--gold-lo); box-shadow: inset 0 0 0 1px #000, inset 0 1px 0 rgba(246,220,156,.12); }
.quick a::before { content: "◆"; flex: none; margin-right: 8px; font-size: 11px; color: var(--gold); }
.quick a:active { border-color: var(--gold-hi); }

/* ── 一節：金色大標＋金線、線頭一顆菱形 ── */
main { padding-block: 8px 56px; }
section { padding-top: 44px; }
h2 { position: relative; font-family: var(--f-head); font-size: 27px; font-weight: 900; letter-spacing: .14em; margin: 0 0 16px; padding-bottom: 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--gold-hi); text-shadow: 0 2px 12px rgba(217,178,106,.25); }
h2::after { content: ""; position: absolute; left: 12px; right: 0; bottom: 3px; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(217,178,106,.25) 60%, transparent); }
h2::before { content: ""; position: absolute; left: 0; bottom: 0; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold-grad); box-shadow: 0 0 8px rgba(246,220,156,.6); }
h2 .stk { color: var(--tone, var(--gold)); font-family: var(--f-body); font-size: 12px; font-weight: 700; letter-spacing: .15em; padding: 1px 10px; border: 1px solid currentColor; border-radius: 2px; text-shadow: none; }
h3 { font-family: var(--f-head); font-size: 19px; letter-spacing: .06em; margin: 28px 0 10px; color: #ead7ae; display: flex; align-items: center; gap: 10px; }
h3::before { content: ""; flex: none; width: 3px; height: 1em; background: var(--gold-grad); }
p { margin: 0 0 12px; }

/* 卡片：細金框 */
.card { background: linear-gradient(180deg, var(--paper2), var(--paper)); border: 1px solid var(--gold-lo); border-radius: var(--r); padding: 16px 18px; margin: 14px 0;
  box-shadow: inset 0 0 0 1px #000, 0 6px 18px rgba(0,0,0,.35); }
.card > :last-child { margin-bottom: 0; }
.warn { background: linear-gradient(180deg, #2a1210, #1c0d0b); border-color: rgba(255,122,102,.45); }
.warn strong { color: var(--coral); }

ul.ok { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
ul.ok li { padding-left: 22px; position: relative; }
ul.ok li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--tone, var(--gold)); }
/* 步驟：金色菱形徽章裡寫號碼（菱形＝::before 轉 45 度、號碼＝::after 不轉） */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 14px; }
ol.steps li { counter-increment: s; position: relative; padding: 3px 0 3px 46px; }
ol.steps li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; transform: rotate(45deg); background: var(--gold-grad); border-radius: 2px; box-shadow: 0 0 0 2px #000, 0 0 0 3px var(--gold-lo); }
ol.steps li::after { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; font-family: var(--f-head); font-weight: 900; font-size: 15px; color: #1a1208; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--gold-hi); }
kbd, .ui { font-family: var(--f-body); font-size: .9em; padding: 1px 8px; border-radius: 3px; border: 1px solid var(--gold-lo); background: #000; color: var(--gold-hi); white-space: nowrap; }

/* 派報少年：金色徽章頭像＋金框泡泡 */
.say { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0; }
.say .who { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; font-size: 14px; color: #1a1208;
  background: var(--gold-grad); box-shadow: 0 0 0 2px #000, 0 0 0 3px var(--gold-lo), 0 0 14px rgba(217,178,106,.35); }
.say .bub { position: relative; background: linear-gradient(180deg, #2a2114, #1e1810); border: 1px solid var(--gold-lo); border-radius: 10px; padding: 10px 14px; min-width: 0; color: #eadcc4; }
.say .bub::before { content: ""; position: absolute; left: -7px; top: 15px; width: 12px; height: 12px; transform: rotate(45deg); background: #271f13; border-left: 1px solid var(--gold-lo); border-bottom: 1px solid var(--gold-lo); }

/* 表格：金色表頭、斑馬紋 */
.tbl { overflow-x: auto; margin: 10px 0 14px; border-radius: 6px; border: 1px solid var(--gold-lo); background: var(--paper); box-shadow: inset 0 0 0 1px #000; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #2a221b; vertical-align: top; }
th { font-family: var(--f-head); font-size: 13px; letter-spacing: .12em; color: var(--gold-hi); font-weight: 700; white-space: nowrap; background: linear-gradient(180deg, #2c2215, #1c160e); border-bottom: 1px solid var(--gold-lo); }
tbody tr:nth-child(even) td { background: rgba(255,255,255,.02); }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td small { display: block; color: var(--muted); font-size: 12px; }

/* 掉寶查詢 */
.search { display: flex; gap: 8px; margin: 10px 0; }
.search input { flex: 1; min-width: 0; font: inherit; padding: 13px 16px; border-radius: 4px; border: 1px solid var(--gold-lo); background: #000; color: var(--ink); box-shadow: inset 0 2px 6px rgba(0,0,0,.6); }
.search input::placeholder { color: #75695c; }
.search input:focus { border-color: var(--gold-hi); outline: none; box-shadow: inset 0 2px 6px rgba(0,0,0,.6), 0 0 0 3px rgba(217,178,106,.18); }
.tries { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.tries button { font: inherit; font-size: 13px; padding: 4px 12px; border-radius: 3px; border: 1px dashed var(--gold-lo); background: transparent; color: #c9b796; cursor: pointer; }
.drop-item { background: var(--paper); border: 1px solid var(--gold-lo); border-radius: 6px; margin: 10px 0; }
.drop-item summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; }
.drop-item summary::-webkit-details-marker { display: none; }
.drop-item summary img { width: 32px; height: 32px; image-rendering: pixelated; }
.drop-item summary span { font-weight: 700; color: var(--gold-hi); }
.drop-item summary span.bless { color: var(--mint); }
.drop-item summary em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--muted); }
.drop-item .tbl { margin: 0 10px 10px; }
.drop-item tr.drop-sub th { text-align: left; padding-top: 14px; color: var(--red-hi, #ff7a6b); font-size: 13px; letter-spacing: 2px; border-top: 1px solid var(--gold-lo); }
.drop-item tr.drop-more td { color: var(--muted); font-size: 12px; text-align: center; }

footer { position: relative; padding-block: 30px 44px; color: var(--muted); font-size: 13px; text-align: center; }
footer::before { content: ""; position: absolute; top: 0; left: 50%; width: min(560px, 92vw); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--gold-lo), transparent); }
footer a { color: var(--gold); }

/* 各節的重點色（標籤、清單菱形） */
#start, #grow, #party, #clan, #money { --tone: var(--gold); }
#auto, #drops { --tone: var(--mint); }
#death, #rules { --tone: var(--coral); }
#disclaimer h2 { font-size: 18px; }

/* ══ 圖文區塊（站長 2026-11-01「沒有圖文介紹」「不要只有死沉沉的文字」）══ */
img[data-ic]:not([src]) { visibility: hidden; }
.ic-in { width: 24px; height: 24px; image-rendering: pixelated; vertical-align: -6px; margin: 0 3px; }

/* 職業：立繪卡（手機左右滑、電腦五張並排）；冒險地圖、變身也是左右滑 */
.cls-row, .map-row, .morph-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; margin: 0 -2px; scrollbar-width: thin; scrollbar-color: var(--gold-lo) transparent; }
.cls { flex: 0 0 min(250px, 72vw); scroll-snap-align: start; position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--gold-lo); background: #000; box-shadow: 0 0 0 1px #000, 0 10px 24px rgba(0,0,0,.5); }
.cls img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.cls-in { position: absolute; inset: auto 0 0; padding: 60px 14px 12px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.82) 38%, #000); }
.cls-in b { display: block; font-family: var(--f-head); font-size: 24px; letter-spacing: .2em; color: var(--gold-hi); text-shadow: 0 2px 8px #000; }
.cls-in em { display: block; font-style: normal; font-size: 13px; color: var(--gold); letter-spacing: .1em; margin-bottom: 6px; }
.cls-in ul { margin: 0; padding-left: 16px; font-size: 13px; line-height: 1.6; color: #e6dccb; }
@media (min-width: 760px) { .cls-row { overflow: visible; } .cls { flex: 1 1 0; } .cls-in { padding-top: 40px; } }

/* 大重點：圖示＋標題 */
.feat { display: flex; gap: 14px; align-items: center; margin: 6px 0 14px; padding: 14px; border-radius: var(--r); background: radial-gradient(120% 140% at 0% 0%, #3a2a12 0%, var(--paper) 55%); border: 1px solid var(--gold-lo); }
.feat > div > b { display: block; font-family: var(--f-head); font-size: 18px; color: var(--gold-hi); margin-bottom: 2px; }
.feat p { margin: 0; }
.feat-ic, .feat-img { flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: var(--gold-hi); background: radial-gradient(circle, #3b2a10, #000); box-shadow: 0 0 0 2px var(--gold-lo), 0 0 18px rgba(217,178,106,.35); }
.feat-img { padding: 12px; image-rendering: pixelated; object-fit: contain; }

/* 三格小卡 */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.mini { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); }
.mini img, .mini .mini-txt { grid-row: 1 / 3; width: 40px; height: 40px; image-rendering: pixelated; object-fit: contain; }
.mini .mini-txt { display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold-lo); font-family: var(--f-head); font-size: 13px; color: var(--gold-hi); }
.mini b { color: var(--gold-hi); font-size: 15px; }
.mini > span:not(.mini-txt) { font-size: 13px; color: var(--muted); line-height: 1.55; }
.glow { border-color: var(--gold); box-shadow: inset 0 0 0 1px #000, 0 0 22px rgba(217,178,106,.18); }

/* 冒險地圖：場景圖卡 */
.map { flex: 0 0 min(280px, 78vw); scroll-snap-align: start; margin: 0; position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--gold-lo); background: #000; }
.map img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.map figcaption { position: absolute; inset: auto 0 0; padding: 40px 12px 10px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.9) 45%); display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.map figcaption b { font-family: var(--f-head); font-size: 18px; color: var(--gold-hi); letter-spacing: .08em; }
.map figcaption em { font-style: normal; font-size: 12px; font-weight: 700; color: #1a1208; background: var(--gold-grad); padding: 0 7px; border-radius: 2px; }
.map figcaption span { flex-basis: 100%; font-size: 13px; color: #d8cbb8; }

/* 魔法：職業分頁＋圖示格＋點了的說明 */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 12px; }
.tabs button { font: inherit; font-size: 14px; padding: 6px 14px; border-radius: 3px; border: 1px solid var(--gold-lo); background: var(--paper); color: #d8cbb8; cursor: pointer; letter-spacing: .08em; }
.tabs button[aria-selected="true"] { background: var(--gold-grad); color: #1a1208; font-weight: 700; border-color: var(--gold-hi); }
.sk-tier { margin: 0 0 14px; }
.sk-tier h4 { margin: 0 0 6px; font-size: 14px; color: var(--gold); letter-spacing: .1em; font-weight: 700; display: flex; gap: 8px; align-items: baseline; }
.sk-tier h4 small { color: var(--muted); font-weight: 400; letter-spacing: 0; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.sk { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 6px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); color: #e6dccb; font: inherit; font-size: 12px; line-height: 1.3; text-align: center; cursor: pointer; }
.sk img { width: 34px; height: 34px; image-rendering: pixelated; }
.sk[aria-pressed="true"] { border-color: var(--gold-hi); background: #2a2114; box-shadow: 0 0 12px rgba(217,178,106,.3); }
.sk-info { grid-column: 1 / -1; display: grid; grid-template-columns: 52px 1fr; gap: 2px 12px; align-items: start; margin: 4px 0 6px; padding: 12px 14px; border-radius: 8px; background: linear-gradient(180deg, #2a2114, #1c160e); border: 1px solid var(--gold); }
.sk-info img { grid-row: 1 / 4; width: 52px; height: 52px; image-rendering: pixelated; }
.sk-info b { font-family: var(--f-head); font-size: 18px; color: var(--gold-hi); }
.sk-info .meta { font-size: 13px; color: var(--gold); }
.sk-info p { margin: 0; font-size: 14px; }

/* 魔法娃娃：各階一排 */
.doll-tier { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--tc, var(--gold)); }
.doll-tier h4 { margin: 0 0 8px; font-family: var(--f-head); font-size: 16px; color: var(--tc, var(--gold-hi)); letter-spacing: .12em; }
.doll-tier h4 small { margin-left: 8px; font-family: var(--f-body); font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.doll-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; align-items: start; }
/* 娃娃：一顆按鈕；點了 aria-expanded＝true 展開能力，.flash 閃一下金光（站長 2026-11-01「點一下發亮一下」） */
.doll { position: relative; display: grid; grid-template-columns: 38px 1fr; column-gap: 8px; align-items: center; padding: 6px 8px; border-radius: 6px; border: 1px solid transparent; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.doll img { width: 38px; height: 38px; image-rendering: pixelated; transition: transform .2s; }
.doll b { color: #f0e6d6; font-size: 14px; }
.doll-fx { display: none; grid-column: 1 / -1; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.doll-fx i { font-style: normal; font-size: 12px; line-height: 1.5; padding: 1px 8px; border-radius: 3px; color: var(--gold-hi); background: #2a2114; border: 1px solid var(--gold-lo); }
.doll[aria-expanded="true"] { border-color: var(--tc, var(--gold)); background: linear-gradient(180deg, #2a2114, #1a140d); }
.doll[aria-expanded="true"] .doll-fx { display: flex; }
.doll[aria-expanded="true"] img { transform: scale(1.15); }
.doll.flash { animation: dollGlow .9s ease-out; }
.doll.flash img { animation: dollPop .9s ease-out; }
.doll.flash::after { content: "✨"; position: absolute; left: 22px; top: -6px; font-size: 22px; pointer-events: none; animation: dollSpark .9s ease-out forwards; }
@keyframes dollGlow { 0% { box-shadow: 0 0 0 0 rgba(246,220,156,.9), 0 0 30px 6px rgba(246,220,156,.7); } 100% { box-shadow: 0 0 0 0 rgba(246,220,156,0), 0 0 0 0 rgba(246,220,156,0); } }
@keyframes dollPop { 0% { transform: scale(1); filter: brightness(2.2) drop-shadow(0 0 8px #f6dc9c); } 40% { transform: scale(1.35); } 100% { transform: scale(1.15); filter: none; } }
@keyframes dollSpark { 0% { opacity: 0; transform: translate(0, 6px) scale(.4); } 30% { opacity: 1; transform: translate(-4px, -6px) scale(1.2); } 100% { opacity: 0; transform: translate(-10px, -22px) scale(.8); } }
@media (prefers-reduced-motion: reduce) { .doll.flash, .doll.flash img, .doll.flash::after { animation: none; } }

/* 變身：外型圖卡 */
.morph { flex: 0 0 112px; scroll-snap-align: start; text-align: center; border-radius: 8px; overflow: hidden; border: 1px solid var(--gold-lo); background: #000; }
.morph img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.morph b { display: block; font-size: 13px; color: var(--gold-hi); padding: 6px 4px 0; }
.morph em { display: block; font-style: normal; font-size: 12px; color: var(--muted); padding-bottom: 6px; }

/* 玩法大全：圖示卡，點開看細節 */
.sys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; align-items: start; }
.sys { border-radius: 8px; background: linear-gradient(180deg, var(--paper2), var(--paper)); border: 1px solid var(--gold-lo); scroll-margin-top: 70px; }
.sys[open] { border-color: var(--gold); box-shadow: 0 0 18px rgba(217,178,106,.15); }
.sys summary { display: flex; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; }
.sys summary::-webkit-details-marker { display: none; }
.sys summary img { flex: none; width: 44px; height: 44px; padding: 4px; image-rendering: pixelated; object-fit: contain; border-radius: 50%; background: radial-gradient(circle, #3b2a10, #000); box-shadow: 0 0 0 1px var(--gold-lo); }
.sys summary > span { flex: 1; min-width: 0; }
.sys summary b { display: block; font-family: var(--f-head); font-size: 17px; color: var(--gold-hi); letter-spacing: .06em; }
.sys summary em { display: block; font-style: normal; font-size: 13px; color: var(--muted); }
.sys summary::after { content: "＋"; flex: none; color: var(--gold); font-size: 18px; }
.sys[open] summary::after { content: "－"; }
.sys-in { padding: 0 14px 14px; font-size: 14.5px; }
.sys-in p { margin: 0 0 8px; }
.warn-line { color: var(--coral); font-weight: 700; }
#classes, #maps, #magic, #dolls, #poly, #systems { --tone: var(--gold); }

/* ══ 目錄改版（站長 2026-11-01「功能一頁式滑到最右邊都不知道有什麼功能，能一目瞭然；做精緻點，有邊框、點了有音效」）══
 *   .topbar＝黏在頂端的精簡列：☰ 功能（跳出全部功能）／現在這一節／音效開關；.hub＝功能總覽的圖示格（頁首下面一份、跳出視窗一份） */
.chips { display: none; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: linear-gradient(180deg, #15110d, var(--bg)); border-bottom: 1px solid var(--gold-lo); box-shadow: 0 6px 16px rgba(0,0,0,.55); }
.topbar .wrap { display: flex; align-items: center; gap: 10px; padding-block: 8px; }
.tb-btn { flex: none; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .1em; padding: 6px 14px; border-radius: 3px; cursor: pointer; color: #1a1208; background: var(--gold-grad); border: 1px solid var(--gold-hi); box-shadow: 0 0 0 2px #000, 0 0 0 3px var(--gold-lo); }
.tb-btn:active { transform: translateY(1px); }
.tb-snd { padding: 6px 10px; letter-spacing: 0; background: var(--paper); color: var(--gold-hi); border-color: var(--gold-lo); }
.tb-snd[aria-pressed="false"] { opacity: .55; }
#tb-cur { flex: 1; min-width: 0; text-align: center; font-family: var(--f-head); font-size: 16px; letter-spacing: .2em; color: var(--gold-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tb-cur::before, #tb-cur::after { content: "◆"; font-size: 8px; vertical-align: 3px; margin: 0 8px; color: var(--gold); }
#tb-cur:empty::before, #tb-cur:empty::after { content: none; }

/* 功能圖示格：金框牌子，四角菱形；手機 4 欄、電腦 7 欄 */
.hub-sec { padding-top: 26px; }
.hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }   /* 18 格：手機 3×6、寬螢幕 6×3，不留半排（站長「排的好亂」） */
@media (min-width: 640px) { .hub { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.hub-t { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 10px 4px 8px; text-decoration: none; color: #eadcc4; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-align: center; line-height: 1.25;
  background: radial-gradient(120% 90% at 50% 0%, #2f2414 0%, #17120d 70%); border: 1px solid var(--gold-lo); border-radius: 4px;
  box-shadow: inset 0 0 0 1px #000, inset 0 0 0 3px rgba(138,106,53,.35), 0 4px 10px rgba(0,0,0,.45); transition: transform .12s, border-color .12s; -webkit-tap-highlight-color: transparent; }
.hub-t::before, .hub-t::after { content: ""; position: absolute; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold-grad); }
.hub-t::before { top: -4px; left: calc(50% - 3.5px); }
.hub-t::after { bottom: -4px; left: calc(50% - 3.5px); }
.hub-t img { width: 44px; height: 44px; image-rendering: pixelated; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.7)); }
.hub-t.on, .hub-t:active { border-color: var(--gold-hi); color: var(--gold-hi); }
.hub-t.on { box-shadow: inset 0 0 0 1px #000, inset 0 0 0 3px rgba(246,220,156,.35), 0 0 16px rgba(217,178,106,.35); }
.hub-t:active { transform: scale(.96); }
.hub-t.pressed { animation: hubPress .45s ease-out; }
@keyframes hubPress { 0% { box-shadow: 0 0 0 0 rgba(246,220,156,.9), 0 0 24px 4px rgba(246,220,156,.6); } 100% { box-shadow: inset 0 0 0 1px #000, 0 4px 10px rgba(0,0,0,.45); } }

/* 跳出的全部功能 */
.hub-ov { position: fixed; inset: 0; z-index: 20; display: grid; place-items: start center; padding: max(56px, env(safe-area-inset-top, 0px)) 12px 20px; background: rgba(0,0,0,.72); }
.hub-ov[hidden] { display: none; }
.hub-box { width: min(560px, 100%); padding: 14px; border-radius: 6px; background: linear-gradient(180deg, #1f1810, #0f0c09); border: 1px solid var(--gold); box-shadow: 0 0 0 3px #000, 0 0 0 4px var(--gold-lo), 0 20px 50px rgba(0,0,0,.7); animation: hubIn .22s ease-out; }
.hub-box .hub { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@keyframes hubIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
.hub-hd { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 12px; }
.hub-hd b { font-family: var(--f-head); font-size: 20px; letter-spacing: .25em; color: var(--gold-hi); }
.hub-hd button { font: inherit; font-size: 16px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold-lo); background: #000; color: var(--gold-hi); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .hub-box, .hub-t.pressed { animation: none; } }
.quick { margin-top: 18px; }

/* ══ 問與答（站長 2026-11-01：12 顆常見問題按鈕改成功能格「問與答」＋一節可以點開的問答）══ */
.hub-q { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-family: var(--f-head); font-size: 22px; font-weight: 900; color: #1a1208; background: var(--gold-grad); box-shadow: 0 0 0 2px #000, 0 0 0 3px var(--gold-lo); }
#faq { --tone: var(--gold); }
.faq { display: flex; flex-direction: column; gap: 8px; }
.qa { border-radius: 6px; background: linear-gradient(180deg, var(--paper2), var(--paper)); border: 1px solid var(--gold-lo); }
.qa[open] { border-color: var(--gold); box-shadow: 0 0 16px rgba(217,178,106,.15); }
.qa summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 700; color: #f0e6d6; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "＋"; margin-left: auto; color: var(--gold); font-size: 18px; flex: none; }
.qa[open] summary::after { content: "－"; }
.qa-q, .qa-mark { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-family: var(--f-head); font-weight: 900; font-size: 15px; }
.qa-q { color: #1a1208; background: var(--gold-grad); }
.qa-mark { color: var(--gold-hi); border: 1px solid var(--gold-lo); background: #000; }
.qa-a { display: flex; gap: 12px; padding: 0 14px 14px; font-size: 14.5px; }
.qa-a p { margin: 2px 0 6px; }
.qa-more { font-size: 13px; color: var(--gold); text-decoration: none; }
.qa-more:active { color: var(--gold-hi); }

/* ══ 一頁一頁（站長 2026-11-01「全部做成一頁一頁式的，不要點下去自己滑到下面」）══
 *   首頁：頁首＋功能總覽＋免責聲明；進到某一頁：只顯示那一節（guide.js pager） */
body:not(.in-page) main > section:not(#hub-sec):not(#disclaimer) { display: none; }
body.in-page .hero, body.in-page #hub-sec, body.in-page #disclaimer { display: none; }
body.in-page main > section:not(.active) { display: none; }
body.in-page main > section.active { padding-top: 22px; min-height: calc(100vh - 140px); }
.tb-home { display: none; padding: 6px 12px; letter-spacing: 0; text-decoration: none; font-size: 18px; line-height: 1.2; }
body.in-page .tb-home { display: inline-flex; align-items: center; }
/* 每頁底下：上一頁／功能總覽／下一頁 */
.pg-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: stretch; margin: 34px 0 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.pg-nav a { display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 6px 12px; border-radius: 4px; text-decoration: none; color: var(--gold-hi); font-weight: 700; font-size: 14px; line-height: 1.35;
  background: linear-gradient(180deg, var(--paper2), var(--paper)); border: 1px solid var(--gold-lo); box-shadow: inset 0 0 0 1px #000; }
.pg-nav a small { font-size: 11px; font-weight: 400; color: var(--muted); }
.pg-nav .pg-prev { text-align: left; }
.pg-nav .pg-next { text-align: right; }
.pg-nav .pg-home { align-items: center; color: #1a1208; background: var(--gold-grad); border-color: var(--gold-hi); letter-spacing: .1em; }
.pg-nav a:active { transform: translateY(1px); }
/* 首頁下面就是功能總覽，頂端「☰ 功能」多餘（站長 2026-11-01）：只在進到某一頁之後才出現 */
body:not(.in-page) #hub-open { display: none; }

/* ══ logo 特效（站長 2026-11-01「logo 要有些特效；下面的線要有由左至右、再由右至左的滑動漸層」）══
 *   只動 transform／opacity（同日「滑動很卡」：不動版面、不用 filter 動畫）；減少動態的設定一律不動 */
.logo-fx { position: relative; width: min(320px, 74vw); margin: 0 auto 2px; aspect-ratio: 600 / 679; }   /* logo 黑底靠 .hero .logo 的羽化遮罩淡進頁首壓暗區（screen 疊色會把字的黑邊吃掉、看起來糊，站長「logo 怎麼有點模糊」） */
.logo-fx .logo { width: 100%; margin: 0; position: relative; z-index: 1; animation: lfIn 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes lfIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
/* 背後紅光：慢慢呼吸 */
.logo-fx::before { content: ""; position: absolute; inset: 14% 6% 10%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(216,40,28,.55), rgba(216,40,28,.18) 55%, transparent 75%); animation: lfBreath 4s ease-in-out infinite; }
@keyframes lfBreath { 0%, 100% { opacity: .45; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
/* 一道光從左掃到右：color-dodge＝亮度乘上去（灰 0.55 ≈ 亮一倍），黑底乘了還是暗、銀字紅字明顯發亮；外圈照 logo 同一個淡出範圍 */
.lf-shine { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; mix-blend-mode: color-dodge;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 88%); mask-image: radial-gradient(closest-side, #000 55%, transparent 88%); }
.lf-shine::before { content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 45%;
  background: linear-gradient(105deg, rgba(125,125,125,0) 15%, rgba(125,125,125,.95) 50%, rgba(125,125,125,0) 85%);
  transform: translateX(-130%) skewX(-12deg); animation: lfShine 5.5s ease-in-out 1.2s infinite; }
@keyframes lfShine { 0% { transform: translateX(-130%) skewX(-12deg); } 45%, 100% { transform: translateX(260%) skewX(-12deg); } }
/* 光環：一閃一閃 */
.lf-halo { position: absolute; left: 18.3%; top: 36.5%; width: 22%; height: 9%; z-index: 3; pointer-events: none; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,120,110,.65) 45%, rgba(216,40,28,0) 100%); mix-blend-mode: screen; animation: lfHalo 2.6s ease-in-out infinite; }
.lf-halo::after { content: ""; position: absolute; left: 6%; top: 18%; width: 22%; aspect-ratio: 1; transform: rotate(45deg);
  background: radial-gradient(closest-side, #fff, transparent); animation: lfTwinkle 2.6s ease-in-out infinite; }
@keyframes lfHalo { 0%, 100% { opacity: .15; transform: translate(-50%, -50%) scale(.9); } 50% { opacity: .85; transform: translate(-50%, -50%) scale(1.08); } }
@keyframes lfTwinkle { 0%, 60%, 100% { opacity: 0; transform: rotate(45deg) scale(.3); } 75% { opacity: 1; transform: rotate(45deg) scale(1.3); } }
/* 火星：從下面往上飄 */
.lf-embers { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.lf-embers i { position: absolute; left: var(--x); bottom: 12%; width: 4px; height: 4px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #ffd7a0, #ff5a2a 55%, transparent 70%); box-shadow: 0 0 6px 1px rgba(255,90,42,.8);
  animation: lfEmber var(--t) linear var(--d) infinite; }
@keyframes lfEmber { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 12% { opacity: 1; } 70% { opacity: .8; }
  100% { opacity: 0; transform: translate(14px, -240px) scale(1.1); } }
/* 「歡迎蒞臨」下面那條線：一道金光由左滑到右、再由右滑回左（alternate） */
.orn { position: relative; }
.orn-sweep { position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; pointer-events: none; overflow: hidden; }
.orn-sweep::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 34%;
  background: linear-gradient(90deg, transparent, rgba(246,220,156,.0) 10%, #fff6d8 50%, rgba(246,220,156,0) 90%, transparent); box-shadow: 0 0 8px rgba(246,220,156,.7);
  animation: ornSweep 3.2s ease-in-out infinite alternate; }
@keyframes ornSweep { from { transform: translateX(-10%); } to { transform: translateX(204%); } }
.orn i { animation: ornGem 3.2s ease-in-out infinite; }
@keyframes ornGem { 0%, 40%, 60%, 100% { box-shadow: 0 0 10px rgba(246,220,156,.6); } 50% { box-shadow: 0 0 18px 4px rgba(255,240,200,.95); } }
@media (prefers-reduced-motion: reduce) { .logo-fx .logo, .logo-fx::before, .lf-shine::before, .lf-halo, .lf-halo::after, .lf-embers i, .orn-sweep::before, .orn i { animation: none; } .lf-embers, .orn-sweep { display: none; } }
.mini .mini-txt.sm { font-family: var(--f-body); font-size: 11px; font-weight: 700; letter-spacing: 0; }

/* ══ logo 特效加強（站長 2026-11-01「logo 特效再明顯一點」）══ */
.logo-fx .logo { animation: lfIn 1.2s cubic-bezier(.2,.8,.2,1) both, lfBeat 4s ease-in-out 1.2s infinite; }
@keyframes lfBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
.logo-fx::before { inset: 6% -4% 2%; background: radial-gradient(closest-side, rgba(255,40,24,.85), rgba(216,40,28,.35) 50%, transparent 78%); }
@keyframes lfBreath { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.1); } }
.lf-shine { -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 92%); mask-image: radial-gradient(closest-side, #000 62%, transparent 92%); }
.lf-shine::before { width: 55%; background: linear-gradient(105deg, rgba(175,175,175,0) 10%, rgba(175,175,175,.75) 38%, rgba(200,200,200,1) 50%, rgba(175,175,175,.75) 62%, rgba(175,175,175,0) 90%);
  animation: lfShine 3.6s ease-in-out .8s infinite; }
@keyframes lfShine { 0% { transform: translateX(-140%) skewX(-12deg); } 55%, 100% { transform: translateX(240%) skewX(-12deg); } }
.lf-halo { width: 30%; height: 13%; background: radial-gradient(closest-side, #fff, rgba(255,140,120,.85) 40%, rgba(255,40,24,.35) 70%, rgba(216,40,28,0) 100%); animation-duration: 2s; }
@keyframes lfHalo { 0%, 100% { opacity: .3; transform: translate(-50%, -50%) scale(.85); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } }
.lf-halo::after { width: 30%; animation-duration: 2s; }
.lf-embers i { width: var(--s, 5px); height: var(--s, 5px); bottom: 8%; box-shadow: 0 0 8px 2px rgba(255,110,50,.95); }
@keyframes lfEmber { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 10% { opacity: 1; } 70% { opacity: .9; }
  100% { opacity: 0; transform: translate(18px, -300px) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .logo-fx .logo { animation: none; } }

/* ══ 首頁版面整理（站長 2026-11-01「音樂移來下面，不然那排空空的；整理版面再優化一下順眼」）══
 *   首頁不顯示頂端列（下面就是功能總覽，那條只剩音樂鈕）；音樂開關移到「功能總覽」標題右邊，金框圓鈕 */
body:not(.in-page) .topbar { display: none; }
.hub-snd { margin-left: auto; flex: none; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer;
  color: var(--gold-hi); background: radial-gradient(circle at 50% 35%, #2c2215, #0c0a08); border: 1px solid var(--gold-lo);
  box-shadow: 0 0 0 2px #000, 0 0 0 3px rgba(138,106,53,.6), 0 0 14px rgba(217,178,106,.18); -webkit-tap-highlight-color: transparent; }
.hub-snd:active { transform: scale(.94); }
.snd-btn[aria-pressed="false"] { opacity: .5; }
.tb-snd { display: inline-grid; place-items: center; padding: 6px 10px; }
.tb-snd svg, .hub-snd svg { display: block; }
/* 頁首上下留白收一點：logo 圖本身上下就有黑邊 */
.hero { padding-block: 18px 34px; }
.hero::before { top: 8px; }
.hub-sec { padding-top: 30px; }
#hub-sec h2 { margin-bottom: 18px; }

/* 功能格點一下：圖示往上彈、放大，再落回來（站長 2026-11-01「點一下往上跳一下放大」；guide.js pager 播完才換頁） */
.hub-t img, .hub-t .hub-q { transition: transform .15s; }
.hub-t.hop img, .hub-t.hop .hub-q { animation: hubHop .36s cubic-bezier(.3,.7,.4,1); }
.hub-t.hop { border-color: var(--gold-hi); color: var(--gold-hi); box-shadow: inset 0 0 0 1px #000, inset 0 0 0 3px rgba(246,220,156,.35), 0 0 18px rgba(217,178,106,.45); }
@keyframes hubHop { 0% { transform: translateY(0) scale(1); } 45% { transform: translateY(-12px) scale(1.4); } 75% { transform: translateY(-3px) scale(1.18); } 100% { transform: translateY(0) scale(1); } }
@media (hover: hover) { .hub-t:hover img, .hub-t:hover .hub-q { transform: translateY(-3px) scale(1.08); } }
/* 「職業」那格的圖示是建角畫面的職業圖，帶黑色方底：lighten＝黑的地方透出格子底色 */
.hub-t img[src*="ico-knight"] { mix-blend-mode: lighten; }

/* ══ 進入遊戲（站長 2026-11-01「點進入遊戲要滿滿儀式感加霸氣特效；素材找搭配霸氣的」）══
 *   遊戲登入畫面那把劍（/start-land/p-sword.webp）兩把交叉成 X 立在牌匾後面：劍柄從上面露出、劍尖從下面露出（公會徽章那樣） */
.cta { display: block; position: relative; width: min(268px, 72vw); height: 64px; margin: 70px auto 64px; padding: 0; overflow: visible; background: none; border: 0; box-shadow: none; text-shadow: none; letter-spacing: 0; }
.cta::after { content: none; }
.cta:active { transform: none; }
.cta-aura { position: absolute; inset: -46px -40px; z-index: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,60,30,.55), rgba(217,140,60,.18) 55%, transparent 75%); animation: ctaAura 2.8s ease-in-out infinite; }
@keyframes ctaAura { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
.cta-swords { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 1; pointer-events: none; }
.cta-swords img { max-width: none; position: absolute; height: 172px; width: auto; aspect-ratio: 567 / 614; top: -86px; left: -79px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.85)); transition: transform .25s; }
.cta-swords .s2 { transform: scaleX(-1); }
.cta-plate { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; overflow: hidden; border-radius: 6px;
  background: linear-gradient(180deg, #e8392a 0%, #b51a10 48%, #6e0c06 100%); border: 1px solid #f6dc9c;
  box-shadow: 0 0 0 3px #140a09, 0 0 0 4px #b08a45, 0 0 0 6px #140a09, 0 0 0 7px rgba(138,106,53,.75), 0 12px 32px rgba(216,40,28,.55), inset 0 1px 0 rgba(255,220,180,.6), inset 0 -8px 14px rgba(0,0,0,.4);
  transition: transform .12s; }
.cta-plate::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(246,220,156,.45); border-radius: 3px; pointer-events: none; }
.cta-plate::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; transform: translateX(-160%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,240,200,.5), transparent); animation: shine 4.5s ease-in-out infinite; }
.cta-txt { position: relative; font-family: var(--f-head); font-size: 23px; font-weight: 900; letter-spacing: .42em; padding-left: .42em;
  background: linear-gradient(180deg, #fffaf0 0%, #f6dc9c 55%, #d9b26a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 1px rgba(50,0,0,.95)) drop-shadow(0 0 8px rgba(255,200,120,.35)); }
.cta:hover .s1 { transform: rotate(-4deg); } .cta:hover .s2 { transform: scaleX(-1) rotate(-4deg); }
.cta:active .cta-plate { transform: translateY(2px) scale(.98); }
.cta-embers { position: absolute; left: 0; right: 0; bottom: 30%; height: 0; z-index: 3; pointer-events: none; }
.cta-embers i { position: absolute; left: var(--x); width: 4px; height: 4px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #ffe2a8, #ff6a2a 60%, transparent 72%); box-shadow: 0 0 6px 1px rgba(255,110,50,.9); animation: ctaEmber 2.6s ease-out var(--d) infinite; }
@keyframes ctaEmber { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(6px, -70px); } }

/* 進場儀式＝傳送進奇岩城（guide.js enterFx；時間軸：120ms 傳送音效、450ms 光柱＋低音、1.9 秒進遊戲） */
#enter-fx { position: fixed; inset: 0; z-index: 100; overflow: hidden; cursor: pointer; }
.ef-dark { position: absolute; inset: 0; background: radial-gradient(ellipse at center 62%, rgba(50,14,8,.95), rgba(0,0,0,.985) 70%); opacity: 0; animation: efFadeIn .35s ease-out forwards; }
@keyframes efFadeIn { to { opacity: 1; } }
/* 魔法陣：躺在地上（rotateX 透視）、畫出來、一直轉 */
.ef-circle { position: absolute; left: 50%; top: 64%; width: min(86vmin, 520px); aspect-ratio: 1; transform: translate(-50%, -50%) perspective(700px) rotateX(62deg); opacity: 0;
  filter: drop-shadow(0 0 10px rgba(255,200,100,.9)) drop-shadow(0 0 28px rgba(255,140,40,.6)); animation: efCircleIn .5s cubic-bezier(.2,.8,.3,1) .1s forwards; }
@keyframes efCircleIn { from { opacity: 0; transform: translate(-50%, -50%) perspective(700px) rotateX(62deg) scale(.2); } to { opacity: 1; transform: translate(-50%, -50%) perspective(700px) rotateX(62deg) scale(1); } }
.ef-circle svg { width: 100%; height: 100%; overflow: visible; animation: efSpin 6s linear infinite; }
@keyframes efSpin { to { transform: rotate(360deg); } }
.ef-circle circle, .ef-circle polygon { fill: none; stroke: #f6dc9c; stroke-width: 1.6; stroke-dasharray: 600; stroke-dashoffset: 600; animation: efDraw .7s ease-out .15s forwards; }
.ef-circle .c1 { stroke-width: 2.4; } .ef-circle .c3 { stroke: #ffe9b8; stroke-width: 1.2; }
.ef-circle polygon { stroke: #ff5a3a; stroke-width: 1.6; filter: drop-shadow(0 0 3px rgba(255,60,30,.95)); animation-delay: .35s; }   /* 六芒星用 logo 的紅：金框紅芯，跟頁面同一套 */
@keyframes efDraw { to { stroke-dashoffset: 0; } }
.ef-circle .runes { fill: #f6dc9c; font: 700 9.5px var(--f-head), serif; letter-spacing: .6px; opacity: 0; animation: efFadeIn .4s ease-out .45s forwards; }
/* 光柱：底下的光束（往上長）＋遊戲瞬間移動的光效 7 張輪播放大 */
.ef-beam { position: absolute; left: 50%; bottom: 36%; width: min(30vmin, 180px); height: 80vh; margin-left: calc(min(30vmin, 180px) / -2); transform-origin: bottom; transform: scaleY(0); opacity: 0;
  background: linear-gradient(0deg, rgba(255,240,200,.95), rgba(255,210,120,.55) 35%, rgba(255,180,80,.15) 75%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  animation: efBeam .5s cubic-bezier(.2,.9,.3,1) .45s forwards, efBeamPulse .5s ease-in-out .95s infinite alternate; }
@keyframes efBeam { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: scaleY(1); } }
@keyframes efBeamPulse { from { opacity: 1; } to { opacity: .7; } }
.ef-pillar { position: absolute; left: 50%; bottom: 33%; width: min(46vmin, 260px); height: min(92vmin, 560px); transform: translateX(-50%); mix-blend-mode: screen; }
.ef-pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; opacity: 0; filter: brightness(1.4) saturate(1.3); }
.ef-pillar img:nth-child(1) { animation: efFrame .12s steps(1) 0.45s 1 forwards, efFrameOut .01s steps(1) 0.55s forwards; }
.ef-pillar img:nth-child(2) { animation: efFrame .12s steps(1) 0.55s 1 forwards, efFrameOut .01s steps(1) 0.65s forwards; }
.ef-pillar img:nth-child(3) { animation: efFrame .12s steps(1) 0.65s 1 forwards, efFrameOut .01s steps(1) 0.75s forwards; }
.ef-pillar img:nth-child(4) { animation: efFrame .12s steps(1) 0.75s 1 forwards, efFrameOut .01s steps(1) 0.85s forwards; }
.ef-pillar img:nth-child(5) { animation: efFrame .12s steps(1) 0.85s 1 forwards, efFrameOut .01s steps(1) 0.95s forwards; }
.ef-pillar img:nth-child(6) { animation: efFrame .12s steps(1) 0.95s 1 forwards, efFrameOut .01s steps(1) 1.05s forwards; }
.ef-pillar img:nth-child(7) { animation: efFrame .12s steps(1) 1.05s 1 forwards, efFrameOut .01s steps(1) 1.15s forwards; }
.ef-pillar img:nth-child(7) { animation: efFrame .12s steps(1) 1.05s 1 forwards; }
@keyframes efFrame { to { opacity: 1; } }
@keyframes efFrameOut { to { opacity: 0; } }
/* 光柱腳下：一團橢圓白金光蓋住光束底部（不要看到光束切齊的邊） */
.ef-base { position: absolute; left: 50%; top: 64%; width: min(70vmin, 420px); height: min(22vmin, 130px); transform: translate(-50%, -50%) scale(0); border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, #fffbe8, rgba(255,214,140,.85) 35%, rgba(255,90,40,.35) 70%, transparent); animation: efBase .5s cubic-bezier(.2,.9,.3,1) .42s forwards; }
@keyframes efBase { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
/* 金光粒子從魔法陣往上飄 */
.ef-motes i { position: absolute; left: 50%; top: 64%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fffbe8, #ffd27a 55%, transparent 72%); box-shadow: 0 0 8px 2px rgba(255,210,120,.9); animation: efMote 1.1s ease-out var(--d) forwards; }
@keyframes efMote { 0% { opacity: 0; transform: translate(var(--x), 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(var(--x) * .6), -55vh); } }
.ef-title { position: absolute; left: 0; right: 0; top: 22%; text-align: center; opacity: 0; animation: efTitle .6s cubic-bezier(.2,.9,.3,1.1) .7s forwards; }
.ef-title small { display: block; font: 700 13px var(--f-body); letter-spacing: .6em; padding-left: .6em; color: #d9b26a; text-transform: uppercase; margin-bottom: 6px; }
.ef-title b { font-family: var(--f-head); font-weight: 900; font-size: clamp(38px, 11vw, 96px); letter-spacing: .16em; padding-left: .16em; color: transparent;
  background: linear-gradient(180deg, #fffaf0 0%, #f6dc9c 45%, #b8872f 100%); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 18px rgba(255,190,90,.7)) drop-shadow(0 4px 2px rgba(0,0,0,.9)); }
@keyframes efTitle { 0% { opacity: 0; transform: translateY(14px) scale(1.25); letter-spacing: .5em; } 100% { opacity: 1; transform: none; } }
/* 白光包住畫面（傳送出去）→ 轉黑 */
.ef-white { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 60%, #fff, #ffeccc 40%, #ffd890); animation: efFadeIn .35s ease-in 1.25s forwards; }
.ef-black { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; animation: efFadeIn .3s ease-in 1.6s forwards; }
@media (prefers-reduced-motion: reduce) { .cta-aura, .cta-embers i, .cta-plate::after { animation: none; } .cta-embers { display: none; } }

/* 職業卡（站長 2026-11-01「角色介紹太隨便」）：立繪在左、說明在右；手機上下排 */
.cls2-list { display: grid; gap: 14px; margin: 12px 0; }
.cls2 { display: grid; grid-template-columns: 150px 1fr; border: 1px solid var(--gold-lo); border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, var(--paper2), var(--paper)); box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.cls2 > img { width: 100%; height: 100%; object-fit: cover; object-position: center top; background: #000; }
.cls2-in { padding: 12px 14px; min-width: 0; }
.cls2-in > b { font-family: var(--f-head); font-size: 22px; letter-spacing: .2em; }
.cls2-in > em { display: block; font-style: normal; font-size: 13px; color: var(--gold); letter-spacing: .08em; margin-bottom: 4px; }
.cls2-in p { margin: 6px 0; font-size: 14px; line-height: 1.7; }
.cls2-kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 8px 0; font-size: 13px; }
.cls2-kv dt { color: var(--gold); } .cls2-kv dd { margin: 0; color: #e6dccb; }
.st6 { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 4px; }
.st6 span { display: inline-flex; align-items: baseline; gap: 3px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 3px; font-size: 12px; color: var(--muted); background: #0f0c0b; }
.st6 i { font-style: normal; font-weight: 700; color: var(--ink); font-size: 14px; }
.st6 .pt { border-color: var(--gold-lo); color: var(--gold); } .st6 .pt i { color: var(--gold-hi); }
.cls2-in p.rec { font-size: 13px; color: var(--mint); margin-bottom: 0; }
@media (max-width: 560px) { .cls2 { grid-template-columns: 1fr; } .cls2 > img { aspect-ratio: 16 / 9; height: auto; } }

/* 能力值表：第一欄固定 */
.st-tbl th, .st-tbl td { white-space: nowrap; text-align: center; }
.st-tbl tbody th { text-align: left; position: sticky; left: 0; background: var(--paper2); color: var(--gold-hi); font-size: 13px; }

/* 地圖卡（站長 2026-11-01「地圖介紹太隨便」）：圖在上、怪物／頭目／掉落一行一類 */
.map2-list { display: grid; gap: 14px; margin: 12px 0; }
.map2 { border: 1px solid var(--gold-lo); border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, var(--paper2), var(--paper)); }
.map2 > img { display: block; width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
.map2-in { padding: 10px 14px 12px; }
.map2-in header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.map2-in header b { font-family: var(--f-head); font-size: 20px; letter-spacing: .08em; }
.map2-in header em { font-style: normal; font-size: 12px; font-weight: 700; color: #1a1208; background: var(--gold-grad); padding: 0 7px; border-radius: 2px; }
.map2-in .tag { font-style: normal; font-size: 12px; color: var(--mint); border: 1px solid var(--mint); padding: 0 6px; border-radius: 2px; }
.map2-in .tag.red { color: var(--coral); border-color: var(--coral); }
.map2-in p { margin: 6px 0; font-size: 14px; }
.map2-in ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.map2-in li { display: grid; grid-template-columns: 4em 1fr; gap: 8px; font-size: 13px; color: #e6dccb; line-height: 1.7; }
/* 眠龍洞穴的材料：圖示＋名字一個一個的小標籤（站長 2026-11-01「材料顯示有點亂」：原本圖示、文字各自變成格子的一格） */
.map2-in .matchips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.map2-in .chip { display: inline-flex; align-items: center; gap: 3px; font-weight: 400; line-height: 1.5; padding: 1px 7px 1px 4px; border: 1px solid var(--gold-lo); border-radius: 3px; background: rgba(255,255,255,.04); white-space: nowrap; }
.map2-in .chip.only { border-color: var(--mint); }
.map2-in .matchips small { font-size: 11px; color: var(--mint); }
.map2-in li > span:first-child { color: var(--gold); }

/* 玩法大全裡連到別頁的那格（外觀同收起來的 .sys） */
.sys-link { display: flex; gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.sys-link img { width: 32px; height: 32px; image-rendering: pixelated; }
.sys-link span { display: flex; flex-direction: column; line-height: 1.4; }
.sys-link em { font-style: normal; font-size: 13px; color: var(--muted); }

/* 遊戲截圖（站長 2026-11-01「使用手機遊戲畫面介紹整個系統」）：手機框、可左右滑 */
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 2px solid var(--gold-lo); box-shadow: 0 0 0 3px #000, 0 10px 24px rgba(0,0,0,.55); background: #000; }
.shot figcaption { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.shot figcaption b { display: block; font-size: 15px; }
.shot-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 12px; margin: 0 -4px; scrollbar-width: thin; scrollbar-color: var(--gold-lo) transparent; }
.shot-row .shot { flex: 0 0 min(200px, 52vw); scroll-snap-align: start; }
.shot-hero { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 16px; align-items: start; margin: 12px 0 18px; }
.shot-hero img { width: 100%; height: auto; border-radius: 14px; border: 2px solid var(--gold-lo); box-shadow: 0 0 0 3px #000, 0 10px 24px rgba(0,0,0,.55); }
.shot-key { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; counter-reset: k; }
.shot-key li { position: relative; padding-left: 30px; font-size: 14px; line-height: 1.6; counter-increment: k; }
.shot-key li::before { content: counter(k); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #1a1208; background: var(--gold-grad); }
.shot-key b { margin-right: 6px; }
@media (max-width: 560px) { .shot-hero { grid-template-columns: 1fr; } .shot-hero img { max-width: 280px; margin: 0 auto; display: block; } }

/* 小遊戲的步驟：截圖在左、說明在右 */
.fun-steps { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 16px; }
.fun-steps li { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: start; }
.fun-steps li > div > b { font-family: var(--f-head); font-size: 17px; }
.fun-steps p { margin: 4px 0 0; font-size: 14px; }
#fun h3 .ic-in { width: 28px; height: 28px; vertical-align: -6px; margin-right: 6px; }
@media (max-width: 420px) { .fun-steps li { grid-template-columns: 120px 1fr; gap: 10px; } }

/* ── 底圖（站長 2026-11-01「背景黑色有點空，放背景圖、羽化、不要太搶眼」→「再亮一點、奇岩戰鬥畫面」→ 站長給的攻城圖）：攻城戰場圖固定在後面，壓暗＋四周淡出成黑 ── */
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;   /* 站長 2026-11-01「iPhone 滑到最底自動更新網頁」：濾鏡、羽化遮罩、透明度改成先烘進圖（bg-siege-dim）＋一層漸層，iPhone 不再每幀重算 */
  background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 45%, var(--bg) 100%), url(/guide/img/bg-siege-dim.webp) 60% 40% / cover no-repeat; }
.drop-more { cursor: pointer; }
.drop-item tr.drop-more td { color: var(--gold); font-size: 13px; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
/* 往下滑提示（站長 2026-11-01「剛進去看會不知道可以往下滑還有東西」）：首頁才出現，捲動一點就淡出（guide.js scrollCue） */
.scroll-cue { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 6; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--gold-hi); font-size: 13px; letter-spacing: .2em; padding: 6px 14px 8px calc(14px + .2em); border: 1px solid var(--gold-lo); border-radius: 18px; background: rgba(8,6,5,.82); box-shadow: 0 4px 14px rgba(0,0,0,.7); text-decoration: none; transition: opacity .4s; }
.scroll-cue i { width: 14px; height: 14px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); animation: cueBob 1.6s ease-in-out infinite; }   /* 只動箭頭的 transform（原本整顆動 margin，每幀重排） */
.scroll-cue.gone, body.in-page .scroll-cue { opacity: 0; pointer-events: none; }
@keyframes cueBob { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(5px) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue i { animation: none; } }
/* 下拉重新整理（站長 2026-11-01「往下滑就重新整理，不要再拉掉再開一次」）：在最頂端往下拉，拉夠放開就重新載入（guide.js pullRefresh） */
#ptr { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 8px); z-index: 30; display: flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--gold-lo); border-radius: 18px;
  background: rgba(8,6,5,.9); color: var(--gold-hi); font-size: 13px; letter-spacing: .1em; pointer-events: none; opacity: 0; transform: translate(-50%, -60px); transition: opacity .15s; }
#ptr i { width: 10px; height: 10px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .2s; }
#ptr.ready i { transform: rotate(-135deg); }
#ptr.go i { width: 14px; height: 14px; border: 2px solid var(--gold-lo); border-top-color: var(--gold-hi); border-radius: 50%; transform: none; animation: ptrSpin .7s linear infinite; }
@keyframes ptrSpin { to { transform: rotate(360deg); } }
