/* 星空谷 v145 網站樣式（2026-10 重新設計）
   版面：主視覺 → 黑色主選單列（捲動時固定）→ 白底公告區 → 深色介紹區 → 黑色頁尾。
   顏色與尺寸都從下面這組變數來，要調整先改這裡。 */
:root {
  --ink: #1b1a24;          /* 白底上的主要文字 */
  --ink-2: #55525f;        /* 白底上的次要文字 */
  --line: #dcd8e6;         /* 白底上的框線 */
  --paper: #ffffff;
  --mist: #f3f2f6;         /* 內頁底色 */
  --night: #0b0a12;        /* 選單列、頁尾、深色區 */
  --red: #c5262b;          /* 重點色：目前所在、連結、錯誤 */
  --red-glow: #e83a3a;
  --gold: #f3a51d;         /* 箭頭與主要按鈕 */
  --gold-deep: #e07c0c;
  --tag-important: #a51d1d;
  --tag-event: #1f72aa;
  --tag-update: #a8571c;
  --tag-notice: #5b5f6b;
  --ok: #1d8a4e;
  --wrap: 1200px;
  --menu-h: 84px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "微軟正黑體", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--menu-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font: 400 16px/1.7 var(--font); overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
code { font: 500 .92em/1.5 Consolas, "Cascadia Mono", monospace; background: #ecebf2; padding: 1px 6px; border-radius: 3px; word-break: break-all; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* 捲軸：全站同一種樣子（整頁、表格、程式碼框等所有會捲動的地方） */
* { scrollbar-width: thin; scrollbar-color: #5a479f #14121f; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #14121f; }
::-webkit-scrollbar-thumb { border: 2px solid #14121f; border-radius: 6px; background: #5a479f; }
::-webkit-scrollbar-thumb:hover { background: #f3a51d; }
::-webkit-scrollbar-corner { background: #14121f; }

/* 整頁最底層：固定不動的主視覺圖，深色區塊半透明地蓋在上面 */
.backdrop {
  position: fixed; inset: 0; z-index: -1;
  background: var(--night) url("../art/hero-1920.webp") center / cover no-repeat;
}

/* 換頁時頂端的進度條 */
#bar { position: fixed; top: 0; left: 0; z-index: 200; height: 3px; width: 0; background: var(--red-glow); opacity: 0; transition: width .2s linear, opacity .3s; }
#bar.on { opacity: 1; }

/* ============================== 主視覺 ============================== */
.kv { position: relative; background: var(--night); }
.kv-art { position: relative; height: clamp(190px, 42.4vw, 640px); overflow: hidden; }
.kv-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }

.kv-logo { position: absolute; left: 30px; top: 22px; z-index: 2; width: 118px; filter: drop-shadow(0 4px 10px rgba(8, 6, 30, .55)); transition: transform .2s; }
.kv-logo img { display: block; width: 100%; height: auto; }
.kv-logo:hover { transform: scale(1.04); }

.kv-acct { position: absolute; right: 22px; top: 22px; z-index: 2; display: flex; gap: 8px; align-items: center; }
.kv-acct form { display: contents; }
.kv-acct a, .kv-acct button {
  display: inline-block; padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .32);
  background: rgba(11, 10, 18, .68); color: #fff; font-size: 14px; font-weight: 500; line-height: 1.5;
}
.kv-acct a:hover, .kv-acct button:hover { background: rgba(11, 10, 18, .9); text-decoration: none; }
.kv-acct .is-strong { background: var(--red); border-color: #ff8d8d; font-weight: 700; }
.kv-acct .is-strong:hover { background: #dd2f35; }

/* 首頁主視覺下緣的捷徑 */
.kv-short { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2; display: flex; justify-content: center; gap: 12px; padding: 0 16px; }
.short {
  display: flex; align-items: center; gap: 12px; min-width: 214px; padding: 11px 22px 11px 18px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(11, 10, 18, .74); color: #fff;
  backdrop-filter: blur(6px); transition: transform .18s, background .18s;
}
.short:hover { transform: translateY(-3px); background: rgba(11, 10, 18, .9); text-decoration: none; }
.short svg { width: 30px; height: 30px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.short b { display: block; font-size: 18px; font-weight: 900; line-height: 1.25; letter-spacing: .06em; }
.short i { display: block; font-size: 12.5px; font-style: normal; opacity: .82; line-height: 1.4; }
.short--go { background: linear-gradient(#ffc247, var(--gold-deep)); border-color: #ffe2a1; color: #2b1500; box-shadow: 0 6px 18px rgba(224, 124, 12, .45); }
.short--go:hover { background: linear-gradient(#ffd067, #ef8b14); }

/* 內頁：同一張主視覺的窄版 + 頁面標題 */
.is-sub .kv-art { height: clamp(150px, 17vw, 236px); }
.is-sub .kv-art img { object-position: center top; }
.is-sub .kv-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(11, 10, 18, .3), rgba(11, 10, 18, .74)); }
.is-sub .kv-logo { width: 92px; top: 16px; left: 24px; }
.kv-title { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2; padding: 0 16px; text-align: center; color: #fff; }
.kv-title h1 {
  font-size: clamp(26px, 4vw, 44px); font-weight: 900; letter-spacing: .14em; line-height: 1.25;
  -webkit-text-stroke: 6px #14121c; paint-order: stroke fill; text-shadow: 0 3px 0 rgba(0, 0, 0, .5);
}
.kv-title p { margin-top: 2px; font-size: 15px; color: #e4e0f2; text-shadow: 0 1px 3px #000; }
.kv-title p:empty { display: none; }

/* ============================== 主選單 ============================== */
.mm {
  position: sticky; top: 0; z-index: 60; height: var(--menu-h);
  background: linear-gradient(rgba(8, 7, 14, .7), rgba(8, 7, 14, .78)), var(--night) url("../art/header-bg.jpg") center / cover;
  border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.mm-in { display: flex; height: 100%; max-width: var(--wrap); margin: 0 auto; }
.mm-item { position: relative; flex: 1 1 0; }
.mm-top {
  position: relative; display: flex; align-items: center; justify-content: center; height: 100%;
  color: #fff; font-size: 21px; font-weight: 700; letter-spacing: .12em; white-space: nowrap;
  text-shadow: 0 2px 0 #000; transition: text-shadow .2s;
}
.mm-top:hover, .mm-item:focus-within .mm-top { text-decoration: none; text-shadow: 0 0 3px var(--red-glow), 0 0 12px var(--red-glow), 0 0 22px var(--red-glow); }
.mm-top.on::after { content: ""; position: absolute; left: 50%; bottom: 15px; width: 30px; height: 3px; margin-left: -15px; background: var(--red-glow); box-shadow: 0 0 8px var(--red-glow); }
.mm-sub {
  position: absolute; top: 100%; left: 50%; min-width: 172px; padding: 8px 0; transform: translate(-50%, -6px);
  background: rgba(11, 10, 18, .95); border-top: 2px solid var(--red-glow); box-shadow: 0 12px 24px rgba(0, 0, 0, .4);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.mm-item:hover .mm-sub, .mm-item:focus-within .mm-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mm-sub a { display: block; padding: 9px 22px; color: #d6d3e2; font-size: 15px; text-align: center; white-space: nowrap; }
.mm-sub a:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }

/* ============================== 區塊標題 ============================== */
.ptitle { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 62px 16px 30px; color: #fff; }
.ptitle::before, .ptitle::after { content: ""; flex: 0 1 108px; height: 1px; background: currentColor; opacity: .8; }
.ptitle h2 {
  display: flex; align-items: center; gap: 16px; font-size: clamp(28px, 4.2vw, 42px); font-weight: 900; letter-spacing: .14em; line-height: 1.2;
  -webkit-text-stroke: 6px #14121c; paint-order: stroke fill; text-shadow: 0 3px 0 rgba(0, 0, 0, .55);
}
.ptitle h2::before, .ptitle h2::after { content: ""; flex: none; width: 9px; height: 9px; border: 2px solid currentColor; transform: rotate(45deg); }
.ptitle--ink { color: var(--ink); }
.ptitle--ink h2 { -webkit-text-stroke: 0; text-shadow: none; }

/* ============================== 白底公告區 ============================== */
.sheet { background: var(--paper); color: var(--ink); }

/* ---- 輪播 ---- */
.banner { position: relative; height: clamp(210px, 33vw, 420px); overflow: hidden; background: #dcd2ff; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; --stroke: #4a35b0; }
.slide.is-on { opacity: 1; visibility: visible; }
.slide::before {   /* 星點 */
  content: ""; position: absolute; inset: 0; opacity: .85;
  background-image:
    radial-gradient(circle, #fff 0 1.5px, transparent 2.2px), radial-gradient(circle, #fff 0 2.2px, transparent 3px),
    radial-gradient(circle, rgba(255, 255, 255, .8) 0 1px, transparent 1.8px);
  background-size: 170px 130px, 260px 210px, 90px 70px;
  background-position: 20px 30px, 120px 80px, 50px 10px;
}
.slide::after {    /* 兩團柔光 */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(38% 70% at 8% 100%, rgba(255, 255, 255, .55), transparent 70%), radial-gradient(34% 64% at 94% 0%, rgba(255, 255, 255, .45), transparent 70%);
}
.slide--sky  { background: linear-gradient(120deg, #bfe4ff, #dcd2ff 55%, #ffd9ef); --stroke: #4a35b0; }
.slide--dusk { background: linear-gradient(120deg, #241a5e, #5f39ab 55%, #c964b6); --stroke: #1c1247; }
.slide--gold { background: linear-gradient(120deg, #ffe9a6, #ffc978 55%, #ff9f7a); --stroke: #9a3e0c; }
.slide--mint { background: linear-gradient(120deg, #bff3dc, #9fdcf5 55%, #b9c8ff); --stroke: #19596a; }
.slide-in { position: relative; z-index: 1; max-width: 960px; padding: 0 76px 18px; text-align: center; }
.slide-tag { display: inline-block; padding: 3px 16px; border-radius: 999px; background: #fff; color: var(--stroke); font-size: 14px; font-weight: 700; letter-spacing: .14em; }
.slide-title {
  margin: .22em 0 .3em; color: #fff; font-size: clamp(25px, 5vw, 62px); font-weight: 900; letter-spacing: .05em; line-height: 1.22; text-wrap: balance;
  -webkit-text-stroke: clamp(5px, .7vw, 9px) var(--stroke); paint-order: stroke fill; text-shadow: 0 5px 0 rgba(0, 0, 0, .16);
}
.slide-sub {
  display: inline-block; padding: 7px 30px; background: rgba(20, 18, 40, .76); color: #fff; font-size: clamp(13px, 1.6vw, 19px); font-weight: 500; line-height: 1.5;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.slide-cta { display: table; margin: 16px auto 0; padding: 8px 28px; border-radius: 999px; background: #fff; color: var(--stroke); font-weight: 700; box-shadow: 0 4px 0 rgba(0, 0, 0, .14); }
.slide-cta:hover { text-decoration: none; transform: translateY(-2px); }

.chev { position: absolute; top: 50%; z-index: 3; width: 46px; height: 52px; margin-top: -26px; padding: 6px; border: 0; background: none; transition: transform .15s, opacity .2s; }
.chev svg { display: block; width: 100%; height: 100%; fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 0 rgba(90, 50, 0, .55)); }
.chev--prev { left: 22px; }
.chev--next { right: 22px; }
.chev:hover { transform: scale(1.14); }
.chev:disabled { opacity: .25; cursor: default; transform: none; }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.banner-dots button { width: 40px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(20, 18, 40, .18); }
.banner-dots .is-on { background: #25223a; }

/* ---- 新手上路三步 ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-top: 34px; }
.step { display: flex; flex-direction: column; padding-bottom: 20px; border: 1px solid var(--line); border-radius: 4px; background: #fff; box-shadow: 0 3px 0 #ebe8f1; overflow: hidden; }
.step-no { padding: 8px 20px; background: linear-gradient(100deg, #1b1830, #3a2b6e); color: #ffd36a; font-size: 13px; font-weight: 700; letter-spacing: .22em; }
.step h3 { margin: 16px 20px 6px; font-size: 22px; font-weight: 900; line-height: 1.3; }
.step p { margin: 0 20px; color: var(--ink-2); font-size: 15px; }
.step-link, .step-done { margin: auto 20px 0; padding-top: 14px; font-weight: 700; }
.step-link::after { content: " »"; }
.step-done { color: var(--ok); }

/* ---- 伺服器資訊 ---- */
.rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin-top: 24px; border-radius: 4px; background: #14121f; color: #fff; }
.rates > div { padding: 15px 12px 17px; text-align: center; }
.rates > div + div { border-left: 1px solid rgba(255, 255, 255, .12); }
.rates dt { color: #a9a4bd; font-size: 13px; letter-spacing: .18em; }
.rates dd { font-size: 30px; font-weight: 900; line-height: 1.25; font-variant-numeric: tabular-nums; }
.rates small { margin-left: 3px; color: #ffd36a; font-size: 14px; font-weight: 500; }

/* ---- 最新消息 ---- */
.news-wrap { max-width: 1028px; padding-bottom: 76px; }
.news-wrap .ptitle { padding-top: 54px; padding-bottom: 20px; }
.news-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; margin-bottom: 16px; }
.news-tab { padding: 2px 4px; border: 0; background: none; color: #8b8894; font-size: 22px; font-weight: 500; line-height: 1.4; }
.news-tab:hover { color: var(--ink); }
.news-tab.is-on { color: #fff; text-shadow: 0 0 2px var(--red), 0 0 3px var(--red), 0 0 6px var(--red-glow), 0 0 12px var(--red-glow); }
.news li { display: grid; grid-template-columns: 108px 64px 1fr; gap: 18px; align-items: center; padding: 8px 12px; border-radius: 3px; }
.news li:hover { background: #f8f4f4; }
.news .date { font-weight: 700; font-variant-numeric: tabular-nums; }
.tag { display: block; padding: 2px 0; background: var(--tag-notice); color: #fff; font-size: 14px; text-align: center; line-height: 1.6; }
.tag-important { background: var(--tag-important); }
.tag-event { background: var(--tag-event); }
.tag-update { background: var(--tag-update); }
.news-none { padding: 34px 16px; color: var(--ink-2); text-align: center; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.pager button { min-width: 34px; padding: 2px 6px; border: 0; background: none; color: #8b8894; font-size: 22px; font-weight: 700; line-height: 1.4; }
.pager button:hover { color: var(--ink); }
.pager .is-on { color: var(--tag-important); }
.pager button:disabled { opacity: .3; cursor: default; }

/* ============================== 深色介紹區 ============================== */
.dark { padding-bottom: 74px; background: rgba(9, 8, 16, .82); color: #fff; }
.dark--alt { background: rgba(9, 8, 16, .7); }

.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 14px; padding: 0 16px; }
.tab { min-width: 118px; padding: 7px 18px; border: 0; border-bottom: 2px solid #ff7b6b; background: none; color: #ff8f80; font-size: 18px; font-weight: 700; line-height: 1.5; transition: background .15s, color .15s; }
.tab:hover { color: #fff; }
.tab.is-on { background: rgba(255, 90, 80, .24); color: #fff; }
.job-note { margin: 22px 16px; color: #cfcbe0; font-size: 15px; text-align: center; }

/* 橫向捲動列：職業卡、系統卡共用 */
.rail { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 70px; }
.rail-track { display: flex; gap: 14px; padding: 8px 2px 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > :first-child { margin-left: auto; }
.rail-track > :last-child { margin-right: auto; }
.rail .chev--prev { left: 12px; }
.rail .chev--next { right: 12px; }

.job {
  position: relative; flex: 0 0 172px; height: 258px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 10px; overflow: hidden; scroll-snap-align: start;
  background:
    radial-gradient(120% 70% at 28% 0%, hsl(var(--h) 88% 76%), transparent 62%),
    linear-gradient(165deg, hsl(var(--h) 62% 54%), hsl(calc(var(--h) + 28) 56% 24%));
  transition: transform .18s, box-shadow .18s;
}
.job:hover { transform: translateY(-6px); box-shadow: 0 12px 26px rgba(0, 0, 0, .5); }
.job::before {
  content: ""; position: absolute; inset: 0; opacity: .6;
  background-image: radial-gradient(circle, #fff 0 1.2px, transparent 1.9px), radial-gradient(circle, #fff 0 1.8px, transparent 2.6px);
  background-size: 62px 54px, 110px 96px; background-position: 8px 12px, 40px 60px;
}
.job-glyph {
  position: absolute; top: 40px; left: 0; right: 0; text-align: center; font-size: 104px; font-weight: 900; line-height: 1;
  color: hsl(var(--h) 100% 95%); -webkit-text-stroke: 5px hsl(calc(var(--h) + 18) 55% 22%); paint-order: stroke fill;
  text-shadow: 0 7px 0 hsl(calc(var(--h) + 18) 55% 18% / .55); transform: rotate(-6deg);
}
.job-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.job-type { position: absolute; top: 10px; left: 10px; padding: 1px 10px; border-radius: 999px; background: rgba(9, 8, 16, .62); font-size: 12px; line-height: 1.7; }
.job-plate { position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 12px 12px; background: linear-gradient(transparent, rgba(6, 5, 12, .93) 50%); }
.job-plate h3 { font-size: 17px; font-weight: 900; line-height: 1.35; }
.job-plate p { min-height: 2.9em; margin-top: 3px; color: #d6d2e4; font-size: 12.5px; line-height: 1.45; }

.systems { gap: 12px; }
.sys { flex: 0 0 clamp(214px, 22vw, 256px); text-align: center; scroll-snap-align: start; }
.sys-label { display: block; margin-bottom: 20px; font-size: 22px; font-weight: 900; letter-spacing: .06em; text-shadow: 0 2px 0 #000; }
.sys-card { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 292px; padding: 20px 16px; border-radius: 8px; background: #86a0c8; background-image: linear-gradient(rgba(255, 255, 255, .16), transparent 46%); transition: transform .18s; }
.sys:hover .sys-card { transform: translateY(-6px); }
.sys-card h3 { margin-bottom: 14px; padding-bottom: 2px; border-bottom: 2px solid #fff; font-size: 20px; font-weight: 900; line-height: 1.4; }
.sys-card p { font-size: 14.5px; line-height: 1.65; white-space: pre-line; }
.sys--rose  { background-color: #c39bb4; }
.sys--sage  { background-color: #8fa990; }
.sys--sky   { background-color: #7f9bc6; }
.sys--berry { background-color: #a34a67; }
.sys--sand  { background-color: #c29a5e; }
.sys--plum  { background-color: #7d6aa8; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.tile {
  position: relative; display: flex; align-items: flex-end; justify-content: center; height: 280px; padding-bottom: 26px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .38); border-radius: 10px; color: #fff; font-size: 22px; font-weight: 700; letter-spacing: .1em;
  background: var(--night) url("../art/hero-1920.webp") no-repeat; background-size: 330% auto; transition: transform .18s;
}
.tile::after { content: ""; position: absolute; inset: 34% 0 0; background: linear-gradient(transparent, rgba(6, 5, 12, .62) 55%, rgba(6, 5, 12, .92)); }
.tile span { position: relative; z-index: 1; text-shadow: 0 2px 0 #000, 0 0 10px rgba(0, 0, 0, .8); }
.tile:hover { transform: translateY(-6px); text-decoration: none; }
.tile--a { background-position: 6% 82%; }
.tile--b { background-position: 50% 40%; }
.tile--c { background-position: 96% 84%; }

/* ============================== 頁尾 ============================== */
.foot { border-top: 2px solid var(--gold-deep); background: #000; color: #9b98a8; }
.foot-in { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; max-width: 1040px; margin: 0 auto; padding: 22px 24px 26px; }
.foot-logo img { display: block; }
.foot-copy { flex: 1 1 320px; }
.foot-copy b { color: #fff; font-size: 16px; }
.foot-copy b span { margin-left: 4px; color: #ffd36a; font-size: 13px; font-weight: 500; }
.foot-copy p { font-size: 13px; line-height: 1.6; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { color: #d0cde0; font-size: 14px; }

#totop { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 48px; height: 48px; padding: 9px; border: 2px solid #fff; border-radius: 50%; background: var(--gold-deep); box-shadow: 0 4px 12px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
#totop.show { opacity: 1; pointer-events: auto; transform: none; }
#totop svg { display: block; width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ============================== 內頁共用 ============================== */
.is-sub main { min-height: 46vh; background: var(--mist); }
.is-home .flash-wrap { background: var(--paper); }
.flash-wrap { padding: 18px 20px 0; }
.flash { max-width: 720px; margin: 0 auto 8px; padding: 11px 16px; border-left: 4px solid var(--red); border-radius: 3px; background: #fdecec; color: #7a1414; }
.flash.ok { border-color: var(--ok); background: #e7f6ee; color: #14532d; }

.page { padding: 40px 0 76px; }
.page .wrap { max-width: 1040px; }
.section + .section { margin-top: 44px; }
.section > h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 24px; font-weight: 900; line-height: 1.3; }
.section > h2::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--red); transform: rotate(45deg); }
.card { padding: 22px 24px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.card h3 { margin-bottom: 8px; font-size: 18px; font-weight: 700; line-height: 1.4; }
.card p { color: var(--ink-2); font-size: 15px; }
.card p + p { margin-top: 8px; }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.faq { grid-template-columns: repeat(2, 1fr); }
.num-item { padding: 0 0 20px; overflow: hidden; }
.num-item .n { padding: 7px 20px; background: linear-gradient(100deg, #1b1830, #3a2b6e); color: #ffd36a; font-size: 13px; font-weight: 700; letter-spacing: .22em; }
.num-item h4 { margin: 16px 20px 6px; font-size: 20px; font-weight: 900; line-height: 1.35; }
.num-item p { margin: 0 20px; }
.more-inline { font-weight: 700; }
.empty { color: var(--ink-2); text-align: center; }
.f-tech { font-variant-numeric: tabular-nums; }
.pill { display: inline-block; margin-left: 10px; padding: 1px 12px; border-radius: 999px; background: #ecebf2; color: var(--ink-2); font-size: 13px; font-weight: 500; vertical-align: middle; }
.pill.on { background: var(--ok); color: #fff; }

/* 按鈕 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 28px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 700; line-height: 1.4; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { background: var(--red); border-color: var(--red); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.loading { pointer-events: none; opacity: .75; }
.btn.loading::after { content: ""; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---- 下載頁 ---- */
.dl-card { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 26px 28px; border-top: 4px solid var(--gold-deep); }
.dl-icon { display: block; }
.dl-body h3 { font-size: 20px; font-weight: 900; word-break: break-all; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 4px 0 12px; color: var(--ink-2); font-size: 14px; }
.dl-meta b { margin-left: 7px; color: var(--ink); font-variant-numeric: tabular-nums; }
.dl-hash .k { color: var(--ink-2); font-size: 12px; letter-spacing: .14em; }
.dl-hash .row { display: flex; gap: 8px; align-items: flex-start; }
.dl-hash code { flex: 1 1 auto; padding: 5px 9px; font-size: 12.5px; }
.copy-btn { flex: none; padding: 3px 12px; border: 1px solid var(--line); border-radius: 3px; background: #fff; font-size: 13px; }
.copy-btn:hover { border-color: var(--ink); }
.dl-side { text-align: center; }
.dl-side small { display: block; margin-top: 6px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dl-btn { min-width: 190px; min-height: 58px; border-color: #ffe2a1; background: linear-gradient(#ffc247, var(--gold-deep)); color: #2b1500; font-size: 20px; font-weight: 900; letter-spacing: .08em; box-shadow: 0 6px 16px rgba(224, 124, 12, .35); }
.dl-btn:hover { border-color: #ffe2a1; background: linear-gradient(#ffd067, #ef8b14); color: #2b1500; transform: translateY(-2px); }
.dl-wait { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; border-top: 4px solid var(--line); }
.dl-wait > div { flex: 1 1 320px; }
.orb { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(243, 165, 29, .22); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 11px rgba(243, 165, 29, .08); } }

/* ---- 會員中心 ---- */
.kv-list li { display: flex; gap: 16px; padding: 11px 0; border-bottom: 1px solid #eceaf2; }
.kv-list li:last-child { border-bottom: 0; }
.kv-list .k { flex: 0 0 132px; color: var(--ink-2); }
.kv-list .v { font-weight: 700; word-break: break-all; }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.tbl table { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 11px 18px; text-align: left; white-space: nowrap; }
.tbl th { background: #14121f; color: #fff; font-size: 14px; font-weight: 500; letter-spacing: .1em; }
.tbl td { border-top: 1px solid #eceaf2; }
.tbl .n { text-align: right; font-variant-numeric: tabular-nums; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- 登入、註冊、改密碼 ---- */
.auth-wrap { max-width: 480px; margin: 0 auto; padding: 44px 20px 80px; }
.auth-card { padding: 30px 32px 28px; border-top: 4px solid var(--red); box-shadow: 0 10px 30px rgba(27, 26, 36, .08); }
.auth-head { margin-bottom: 20px; text-align: center; }
.auth-logo { display: block; margin: 0 auto 6px; }
.auth-head h2 { font-size: 26px; font-weight: 900; line-height: 1.3; }
.auth-head p { margin-top: 2px; color: var(--ink-2); font-size: 14.5px; }
.auth-switch[data-active="login"] .a-register,
.auth-switch[data-active="register"] .a-login,
.auth-switch[data-active="login"] .auth-panel[data-panel="register"],
.auth-switch[data-active="register"] .auth-panel[data-panel="login"] { display: none; }
/* 登入 ⇄ 註冊切換：舊表單滑出、新表單滑入，卡片高度跟著變 */
.auth-stage.is-switching { overflow: hidden; transition: height .28s ease; }
.auth-switch[data-dir="back"] { --auth-dx: -44px; }
.auth-panel.is-leaving { animation: auth-out .19s ease-in forwards; }
.auth-panel.is-entering { animation: auth-in .28s ease-out; }
@keyframes auth-out { to { opacity: 0; transform: translateX(calc(var(--auth-dx, 44px) * -1)); } }
@keyframes auth-in { from { opacity: 0; transform: translateX(var(--auth-dx, 44px)); } }
.field input::placeholder { color: #a6a2b3; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 5px; font-size: 14.5px; font-weight: 700; }
.field input { display: block; width: 100%; height: 46px; padding: 0 14px; border: 1px solid #c9c5d6; border-radius: 4px; background: #fff; color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s; }
.field input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(243, 165, 29, .4); }
.field.has-err input { border-color: var(--red); }
.hint { margin-top: 4px; color: var(--ink-2); font-size: 13px; }
.field-err { margin-top: 4px; color: var(--red); font-size: 13.5px; font-weight: 500; }
.field-err:empty { display: none; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.pw-toggle { position: absolute; top: 0; right: 0; height: 46px; padding: 0 14px; border: 0; background: none; color: var(--ink-2); font-size: 13.5px; }
.pw-toggle:hover { color: var(--ink); }
.msg { margin-bottom: 16px; padding: 10px 14px; border-radius: 3px; font-size: 14.5px; }
.msg-err { border-left: 4px solid var(--red); background: #fdecec; color: #7a1414; }
.rule-box { margin-bottom: 18px; padding: 12px 16px; border-radius: 4px; background: var(--mist); color: var(--ink-2); font-size: 13.5px; }
.rule-box li { position: relative; padding-left: 14px; }
.rule-box li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); }
.rule-box b { color: var(--ink); }
.auth-card .btn { width: 100%; margin-top: 4px; }
.auth-card .btn + .btn { margin-top: 10px; }
.swap { margin-top: 18px; color: var(--ink-2); font-size: 14.5px; text-align: center; }
.swap a { font-weight: 700; }
.cred-tip { margin-top: 4px; color: var(--tag-update); font-size: 13px; opacity: 0; transition: opacity .2s; }
.cred-tip.on { opacity: 1; }
.cred-nope { animation: nope .28s; }
@keyframes nope { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.auth-rates { display: flex; justify-content: center; gap: 26px; margin-top: 20px; color: var(--ink-2); font-size: 13.5px; }
.auth-rates b { margin-right: 5px; color: var(--ink); font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.auth-rates i { font-style: normal; }

/* ---- 錯誤頁 ---- */
.err-page { padding: 56px 24px 90px; text-align: center; }
.err-page .code { color: var(--red); font-size: 96px; font-weight: 900; line-height: 1.1; letter-spacing: .04em; }
.err-page h2 { font-size: 28px; font-weight: 900; }
.err-page p { margin: 8px 0 26px; color: var(--ink-2); }

/* ---- 贊助頁與一般文章 ---- */
.sponsor { max-width: 880px; margin: 0 auto; padding: 40px 24px 76px; }
.sponsor > section, .sponsor > .placeholder { margin-bottom: 18px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.sponsor h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 22px; font-weight: 900; line-height: 1.3; }
.sponsor h2::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--red); transform: rotate(45deg); }
.sponsor h3 { margin: 20px 0 6px; font-size: 17px; font-weight: 700; }
.sponsor p, .sponsor li { color: var(--ink-2); }
.sponsor p + p { margin-top: 8px; }
.sponsor strong { color: var(--ink); }
.sponsor ul, .sponsor ol { padding-left: 22px; }
.sponsor ul { list-style: disc; }
.sponsor ol { list-style: decimal; }
.sponsor li + li { margin-top: 5px; }
.sponsor ul + p, .sponsor ol + p { margin-top: 12px; }
.sponsor > .placeholder { border: 0; border-top: 4px solid var(--gold-deep); box-shadow: 0 0 0 1px var(--line); }
.placeholder-note { padding: 11px 16px; border-left: 4px solid var(--gold); border-radius: 3px; background: #fff6e2; color: #6b4a08 !important; }
.sponsor table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.sponsor th, .sponsor td { padding: 10px 16px; text-align: left; }
.sponsor th { background: #14121f; color: #fff; font-size: 14px; font-weight: 500; letter-spacing: .1em; }
.sponsor td { border-top: 1px solid #eceaf2; color: var(--ink-2); }
#safety { border-left: 4px solid var(--red) !important; }

/* ============================== 職業卡片：整張可點 ============================== */
.job { transform-style: preserve-3d; perspective: 700px; overflow: visible; background: none; border: 0; transition: none; }
.job:hover { transform: none; box-shadow: none; }
.job::before { content: none; }
.job-btn {            /* 固定不動的點擊範圍：滑過時動的是裡面的 .job-face，不是按鈕本身 */
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 10px; background: none;
  color: #fff; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.job-face {
  position: absolute; inset: 0; display: block; border: 1px solid rgba(255, 255, 255, .6); border-radius: 10px; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120% 70% at 28% 0%, hsl(var(--h) 88% 76%), transparent 62%),
    linear-gradient(165deg, hsl(var(--h) 62% 54%), hsl(calc(var(--h) + 28) 56% 24%));
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .22s ease-out, box-shadow .22s;
}
.job-face::before {   /* 星點 */
  content: ""; position: absolute; inset: 0; opacity: .6;
  background-image: radial-gradient(circle, #fff 0 1.2px, transparent 1.9px), radial-gradient(circle, #fff 0 1.8px, transparent 2.6px);
  background-size: 62px 54px, 110px 96px; background-position: 8px 12px, 40px 60px;
}
.job-face::after {    /* 滑過時掃過一道光 */
  content: ""; position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .34) 50%, transparent 62%);
  background-size: 260% 100%; background-position: 130% 0; transition: background-position .7s ease;
}
.job-btn:hover .job-face, .job-btn:focus-visible .job-face { --lift: -8px; box-shadow: 0 16px 30px rgba(0, 0, 0, .55); }
.job-btn:active .job-face { --lift: -3px; }
.job-btn:hover .job-face::after, .job-btn:focus-visible .job-face::after { background-position: -30% 0; }
.job-btn:hover .job-glyph { transform: rotate(-6deg) scale(1.08); }
.job-glyph { transition: transform .3s ease; }
.job-plate { display: block; }
.job-name { display: block; font-size: 17px; font-weight: 900; line-height: 1.35; }
.job-desc { display: block; min-height: 2.9em; margin-top: 3px; color: #d6d2e4; font-size: 12.5px; line-height: 1.45; }
.job-hint { display: block; margin-top: 4px; color: #ffcf7a; font-size: 13px; }

/* ============================== 職業詳細介紹（全螢幕視窗） ============================== */
html.is-locked { overflow: hidden; }
.jobdlg {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(4, 3, 10, .86); opacity: 0; transition: opacity .25s ease;
}
.jobdlg.is-open { opacity: 1; }
.jobdlg-panel {
  position: relative; display: grid; grid-template-columns: 54% 46%; width: min(1180px, 100%); height: min(600px, 86vh);
  border-top: 1px solid rgba(243, 165, 29, .7); border-bottom: 1px solid rgba(243, 165, 29, .7);
  background: linear-gradient(180deg, #050409 62%, #1a1206); color: #fff; overflow: hidden;
  transform: translateY(22px) scale(.975); transition: transform .34s cubic-bezier(.2, .8, .2, 1);
}
.jobdlg.is-open .jobdlg-panel { transform: none; }
.jobdlg-art { position: relative; overflow: hidden; --h: 40; }
.jobdlg-wedge {     /* 圖後面那塊斜切的金色色塊 */
  position: absolute; top: 0; bottom: 0; left: 30%; right: -2%;
  background: linear-gradient(180deg, #f8cf63, #c9801a 70%, #8a520c);
  clip-path: polygon(34% 0, 100% 0, 66% 100%, 0 100%);
}
.jobdlg-glyph {     /* 還沒有圖的時候，用卡片上的大字代替 */
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: clamp(170px, 27vw, 340px); font-weight: 900; line-height: 1; color: hsl(var(--h) 100% 95%);
  -webkit-text-stroke: 12px hsl(calc(var(--h) + 18) 55% 20%); paint-order: stroke fill;
  text-shadow: 0 14px 0 hsl(calc(var(--h) + 18) 55% 14% / .6); transform: rotate(-6deg);
}
.jobdlg-img { position: absolute; left: 3%; top: 3%; width: 94%; height: 97%; max-width: none; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .5)); }
.jobdlg-info { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 76px 28px 12px; text-align: center; }
.jobdlg-en {
  font-size: clamp(20px, 2.6vw, 32px); font-weight: 700; letter-spacing: .14em; line-height: 1.2;
  background: linear-gradient(#ffeaa8, #c9892a); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.jobdlg-name { font-size: clamp(30px, 4vw, 46px); font-weight: 900; letter-spacing: .16em; line-height: 1.3; text-shadow: 0 3px 0 #000; }
.jobdlg-rule { position: relative; width: 84%; height: 1px; margin: 16px 0 24px; background: linear-gradient(90deg, transparent, #c9892a 20%, #c9892a 80%, transparent); }
.jobdlg-rule::after { content: ""; position: absolute; left: 50%; top: -5px; width: 9px; height: 9px; margin-left: -5px; border-right: 2px solid #f3a51d; border-bottom: 2px solid #f3a51d; background: #050409; transform: rotate(45deg); }
.jobdlg-long { max-width: 30em; color: #ece8f5; font-size: 15.5px; line-height: 2; }
.jobdlg-meta { display: grid; gap: 7px; width: 100%; max-width: 30em; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); text-align: left; font-size: 14px; }
.jobdlg-meta > div { display: grid; grid-template-columns: 5.2em 1fr; gap: 10px; }
.jobdlg-meta dt { color: #f3c264; letter-spacing: .08em; }
.jobdlg-meta dd { color: #dcd8e8; }
.jobdlg-count { margin-top: 16px; color: #8f8aa3; font-size: 12.5px; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.jobdlg-close { position: absolute; top: 14px; right: 16px; z-index: 4; width: 44px; height: 44px; padding: 10px; border: 0; background: none; transition: transform .2s; }
.jobdlg-close svg { display: block; width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.jobdlg-close:hover { transform: rotate(90deg); }
.jobdlg .chev--prev { left: 14px; }
.jobdlg .chev--next { right: 14px; }
/* 換職業時：圖和文字各自滑入 */
.jobdlg-art.is-swap .jobdlg-glyph, .jobdlg-art.is-swap .jobdlg-img { animation: jobdlg-art .5s cubic-bezier(.2, .8, .2, 1); }
.jobdlg-art.is-swap .jobdlg-wedge { animation: jobdlg-wedge .5s cubic-bezier(.2, .8, .2, 1); }
.jobdlg-info.is-swap > * { animation: jobdlg-text .45s ease both; }
.jobdlg-info.is-swap > :nth-child(2) { animation-delay: .05s; }
.jobdlg-info.is-swap > :nth-child(3) { animation-delay: .1s; }
.jobdlg-info.is-swap > :nth-child(4) { animation-delay: .15s; }
.jobdlg-info.is-swap > :nth-child(5) { animation-delay: .2s; }
.jobdlg-info.is-swap > :nth-child(6) { animation-delay: .25s; }
@keyframes jobdlg-art { from { opacity: 0; translate: -46px 0; } }
@keyframes jobdlg-wedge { from { opacity: 0; translate: 60px 0; } }
@keyframes jobdlg-text { from { opacity: 0; translate: 0 14px; } }

/* ============================== 首頁動畫 ============================== */
/* 主視覺：很慢地推近，像鏡頭在移動；LOGO 輕輕浮動；捷徑依序升起 */
.is-home .kv-art img { animation: kv-drift 26s ease-in-out infinite alternate; transform-origin: 50% 44%; }
@keyframes kv-drift { from { transform: scale(1); } to { transform: scale(1.055) translateY(-6px); } }
.is-home .kv-logo img { animation: kv-float 5.5s ease-in-out infinite alternate; }
@keyframes kv-float { from { transform: translateY(0); } to { transform: translateY(-6px); } }
.is-home .short { animation: rise-in .6s cubic-bezier(.2, .8, .2, 1) both; }
.is-home .short:nth-child(1) { animation-delay: .15s; }
.is-home .short:nth-child(2) { animation-delay: .27s; }
.is-home .short:nth-child(3) { animation-delay: .39s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
.short--go { position: relative; overflow: hidden; }
.short--go::after {  /* 主要按鈕每隔幾秒掃過一道光 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%);
  background-size: 250% 100%; animation: sheen 4.6s ease-in-out infinite;
}
@keyframes sheen { 0%, 62% { background-position: 130% 0; } 100% { background-position: -40% 0; } }

/* 輪播：換到這一則時，標籤、標題、副標依序升起 */
.slide.is-on .slide-tag, .slide.is-on .slide-title, .slide.is-on .slide-sub, .slide.is-on .slide-cta { animation: rise-in .6s cubic-bezier(.2, .8, .2, 1) both; }
.slide.is-on .slide-title { animation-delay: .08s; }
.slide.is-on .slide-sub { animation-delay: .18s; }
.slide.is-on .slide-cta { animation-delay: .28s; }
.slide::before { animation: twinkle 3.6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .45; } to { opacity: .95; } }

/* 捲動到才出現：只有載入時在畫面下方的東西會先藏起來（由 site.js 加上 .reveal），沒有腳本時全部照常顯示 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.ptitle.reveal::before, .ptitle.reveal::after { transform: scaleX(0); transition: transform .7s cubic-bezier(.2, .8, .2, 1) .15s; }
.ptitle.reveal::before { transform-origin: right center; }
.ptitle.reveal::after { transform-origin: left center; }
.ptitle.reveal.in::before, .ptitle.reveal.in::after { transform: scaleX(1); }

/* 深色區：背景有一層緩慢閃爍的星點 */
.dark { position: relative; }
.dark > * { position: relative; }
.dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, #fff 0 1px, transparent 1.7px), radial-gradient(circle, #ffe9a6 0 1.4px, transparent 2.2px), radial-gradient(circle, #cfc4ff 0 1px, transparent 1.8px);
  background-size: 190px 170px, 310px 260px, 130px 150px; background-position: 30px 40px, 140px 20px, 80px 110px;
  animation: twinkle 4.4s ease-in-out infinite alternate;
}

/* 系統卡片與底部圖卡：滑過時的光與推近 */
.sys-card { position: relative; overflow: hidden; }
.sys-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .3) 50%, transparent 62%);
  background-size: 260% 100%; background-position: 130% 0; transition: background-position .7s ease;
}
.sys:hover .sys-card::after { background-position: -30% 0; }
.tile { transition: transform .25s ease, background-size .6s ease; }
.tile:hover { background-size: 352% auto; }
.step { transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.step:hover { transform: translateY(-4px); border-color: #b9a9ee; box-shadow: 0 10px 22px rgba(58, 43, 110, .16); }
.news li { transition: background .15s, padding-left .2s; }
.news li:hover { padding-left: 18px; }
.mm-top::before { content: ""; position: absolute; left: 50%; bottom: 15px; width: 0; height: 3px; background: var(--red-glow); box-shadow: 0 0 8px var(--red-glow); transition: width .25s ease, left .25s ease; }
.mm-top:hover::before { left: calc(50% - 15px); width: 30px; }
.mm-top.on::before { content: none; }

@media (max-width: 760px) {
  .jobdlg { padding: 10px; }
  .jobdlg-panel { grid-template-columns: 1fr; grid-template-rows: 34vh auto; height: auto; max-height: 94vh; overflow-y: auto; }
  .jobdlg-wedge { left: 22%; right: 6%; }
  .jobdlg-glyph { font-size: 150px; -webkit-text-stroke-width: 8px; }
  .jobdlg-info { padding: 18px 20px 26px; }
  .jobdlg-long { font-size: 14.5px; line-height: 1.85; }
  .jobdlg .chev { top: 17vh; }
  .jobdlg .chev--prev { left: 4px; }
  .jobdlg .chev--next { right: 4px; }
  .jobdlg-close { top: 6px; right: 6px; }
  .mm-top:hover::before { content: none; }
  .news li:hover { padding-left: 4px; }
}

/* ============================== 公告：整列可點 + 全文視窗 ============================== */
.news li { display: block; padding: 0; }
.news li:hover { padding-left: 0; }
.news-open {
  display: grid; grid-template-columns: 108px 64px 1fr auto; gap: 18px; align-items: center; width: 100%; padding: 8px 12px;
  border: 0; border-radius: 3px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: padding-left .2s ease;
}
.news-open::after { content: "›"; color: #b9b5c6; font-size: 22px; line-height: 1; transition: transform .2s ease, color .2s; }
.news-open:hover { padding-left: 18px; }
.news-open:hover .t { color: var(--red); }
.news-open:hover::after { color: var(--red); transform: translateX(4px); }

.newsdlg {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(4, 3, 10, .8); opacity: 0; transition: opacity .25s ease;
}
.newsdlg.is-open { opacity: 1; }
.newsdlg-panel {
  position: relative; display: flex; flex-direction: column; width: min(720px, 100%); max-height: min(86vh, 780px); border-radius: 10px; overflow: hidden;
  background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform: translateY(26px) scale(.97); transition: transform .34s cubic-bezier(.2, .8, .2, 1);
}
.newsdlg.is-open .newsdlg-panel { transform: none; }
.newsdlg-head {
  position: relative; flex: none; padding: 26px 66px 22px 30px; border-bottom: 3px solid var(--gold-deep); color: #fff;
  background: linear-gradient(rgba(8, 7, 14, .5), rgba(8, 7, 14, .82)), var(--night) url("../art/header-bg.jpg") center / cover;
}
.newsdlg-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.newsdlg-meta .tag { min-width: 64px; padding: 2px 12px; }
.newsdlg-date { color: #d9d5e6; font-size: 14px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.newsdlg-head h3 { font-size: clamp(19px, 2.6vw, 26px); font-weight: 900; line-height: 1.45; text-wrap: balance; }
.newsdlg-body { flex: 1 1 auto; min-height: 90px; overflow-y: auto; padding: 26px 30px 14px; font-size: 16px; line-height: 1.95; white-space: pre-line; overflow-wrap: anywhere; }
.newsdlg-body:focus-visible { outline-offset: -3px; }
.newsdlg-body.is-empty { color: var(--ink-2); }
.newsdlg-foot { display: flex; flex: none; justify-content: space-between; gap: 12px; padding: 14px 22px 18px; border-top: 1px solid #eceaf2; }
.newsdlg-foot button { padding: 7px 18px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 700; transition: border-color .15s, background .15s; }
.newsdlg-foot button:hover:not(:disabled) { border-color: var(--ink); background: var(--mist); }
.newsdlg-foot button:disabled { opacity: .35; cursor: default; }
.newsdlg-panel.is-swap .newsdlg-meta, .newsdlg-panel.is-swap h3, .newsdlg-panel.is-swap .newsdlg-body { animation: jobdlg-text .4s ease both; }
.newsdlg-panel.is-swap .newsdlg-body { animation-delay: .08s; }

@media (max-width: 760px) {
  .news-open { grid-template-columns: auto auto 1fr; gap: 4px 10px; padding: 9px 4px; }
  .news-open .t { grid-column: 1 / -1; }
  .news-open::after { content: none; }
  .news-open:hover { padding-left: 4px; }
  .newsdlg { padding: 12px; }
  .newsdlg-head { padding: 20px 56px 16px 18px; }
  .newsdlg-body { padding: 18px 18px 10px; font-size: 15.5px; }
  .newsdlg-foot { padding: 12px 14px 14px; }
}

/* ============================== 窄螢幕 ============================== */
@media (max-width: 1000px) {
  .mm-top { font-size: 18px; letter-spacing: .06em; }
  .steps, .g3 { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .dl-card { grid-template-columns: auto 1fr; }
  .dl-side { grid-column: 1 / -1; }
  .dl-btn { width: 100%; }
}
@media (max-width: 760px) {
  :root { --menu-h: 52px; }
  .wrap { padding: 0 16px; }
  .kv-logo { left: 14px; top: 12px; width: 72px; }
  .is-sub .kv-logo { left: 12px; top: 10px; width: 62px; }
  .kv-acct { right: 12px; top: 12px; gap: 6px; }
  .kv-acct a, .kv-acct button { padding: 4px 12px; font-size: 13px; }
  .kv-short { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 12px 12px; }
  .short { flex-direction: column; gap: 4px; min-width: 0; padding: 10px 4px; text-align: center; }
  .short svg { width: 24px; height: 24px; }
  .short b { font-size: 15px; letter-spacing: .02em; }
  .short i { display: none; }
  .kv-title { bottom: 12px; }
  .kv-title h1 { -webkit-text-stroke-width: 4px; }
  .kv-title p { font-size: 13px; }
  .mm-top { font-size: 15px; letter-spacing: 0; text-shadow: 0 1px 0 #000; }
  .mm-top.on::after { bottom: 7px; width: 22px; margin-left: -11px; }
  .mm-sub { display: none; }
  .ptitle { gap: 10px; padding: 44px 12px 22px; }
  .ptitle h2 { gap: 10px; -webkit-text-stroke-width: 4px; letter-spacing: .08em; }
  .ptitle--ink h2 { -webkit-text-stroke-width: 0; }
  .slide-in { padding: 0 46px 16px; }
  .slide-sub { padding: 5px 20px; }
  .slide-cta { margin-top: 10px; padding: 5px 20px; font-size: 14px; }
  .chev { width: 34px; height: 40px; margin-top: -20px; padding: 4px; }
  .chev--prev { left: 6px; }
  .chev--next { right: 6px; }
  .banner-dots button { width: 22px; height: 5px; }
  .news-tab { font-size: 18px; }
  .news li { grid-template-columns: auto auto 1fr; gap: 4px 10px; padding: 9px 4px; }
  .news .date { font-size: 14px; }
  .tag { padding: 0 10px; font-size: 13px; }
  .news .t { grid-column: 1 / -1; }
  .rates dd { font-size: 24px; }
  .rail { padding: 0 16px; }
  .rail .chev { display: none; }
  .job { flex-basis: 150px; height: 230px; }
  .job-glyph { top: 36px; font-size: 90px; }
  .sys { flex-basis: 210px; }
  .sys-card { height: 240px; }
  .tiles { grid-template-columns: 1fr; padding: 0 16px; }
  .tile { height: 150px; background-size: 260% auto; }
  .foot-links { flex-basis: 100%; }
  .page { padding: 28px 0 56px; }
  .card { padding: 18px 18px; }
  .dl-card { grid-template-columns: 1fr; padding: 22px 18px; }
  .dl-icon { display: none; }
  .auth-wrap { padding: 26px 14px 56px; }
  .auth-card { padding: 24px 20px; }
  .kv-list .k { flex-basis: 104px; }
  .err-page .code { font-size: 72px; }
  .sponsor { padding: 26px 14px 56px; }
  .sponsor > section, .sponsor > .placeholder { padding: 20px 18px; }
  .sponsor th, .sponsor td { padding: 9px 10px; }
}

/* ============================== 各種螢幕比例的補強 ============================== */
/* 主視覺的高度同時看寬度和高度：寬螢幕不會矮得像一條線，橫放的手機也不會整個畫面都是圖 */
.kv-art { height: clamp(190px, min(42.4vw, 70vh), 860px); }
.is-sub .kv-art { height: clamp(140px, min(17vw, 30vh), 260px); }
/* 窄螢幕上，最左、最右兩個選單的下拉清單貼齊自己那一格，才不會超出畫面；寬螢幕維持置中在文字正下方 */
@media (max-width: 1000px) {
  .mm-item:first-child .mm-sub { left: 0; transform: translate(0, -6px); }
  .mm-item:first-child:hover .mm-sub, .mm-item:first-child:focus-within .mm-sub { transform: translate(0, 0); }
  .mm-item:last-child .mm-sub { left: auto; right: 0; transform: translate(0, -6px); }
  .mm-item:last-child:hover .mm-sub, .mm-item:last-child:focus-within .mm-sub { transform: translate(0, 0); }
}
/* 有瀏海或圓角的手機：內容避開安全區域 */
.mm-in, .foot-in { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); }
.foot-in { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); padding-bottom: max(26px, env(safe-area-inset-bottom)); }
#totop { right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); }
/* 職業視窗的文字太多時自己捲動，不會被切掉 */
.jobdlg-info { overflow-y: auto; }

/* 平板直放、小筆電（761～1000）：三步驟維持三欄但縮小留白，選單字再小一點 */
@media (min-width: 761px) and (max-width: 1000px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .step h3 { margin: 12px 14px 4px; font-size: 19px; }
  .step p { margin: 0 14px; font-size: 14px; }
  .step-no { padding: 7px 14px; }
  .step-link, .step-done { margin: auto 14px 0; }
  .short { min-width: 0; padding: 10px 16px 10px 14px; }
  .short b { font-size: 16px; }
  .jobdlg-panel { grid-template-columns: 46% 54%; }
  .jobdlg-info { padding: 22px 60px 22px 8px; }
}
/* 大螢幕（1600 以上）：內容區放寬一點，字不要顯得太小 */
@media (min-width: 1600px) {
  :root { --wrap: 1360px; --menu-h: 92px; }
  body { font-size: 17px; }
  .mm-top { font-size: 23px; }
  .job { flex-basis: 190px; height: 285px; }
  .job-glyph { font-size: 116px; }
  .sys { flex-basis: 276px; }
  .news-wrap { max-width: 1140px; }
  .page .wrap { max-width: 1160px; }
}
/* 很矮的畫面（橫放的手機、被壓扁的視窗）：選單和彈出視窗都收緊 */
@media (max-height: 520px) {
  :root { --menu-h: 48px; }
  .mm-top { font-size: 15px; letter-spacing: .04em; }
  .mm-top.on::after { bottom: 6px; }
  .mm-sub { display: none; }
  .kv-short { bottom: 10px; }
  .short { padding: 7px 14px; }
  .short i { display: none; }
  .jobdlg, .newsdlg { padding: 8px; }
  .jobdlg-panel { height: 96vh; }
  .jobdlg-glyph { font-size: 52vh; -webkit-text-stroke-width: 8px; }
  .jobdlg-info { justify-content: flex-start; padding-top: 14px; padding-bottom: 14px; }
  .jobdlg-en { font-size: 18px; }
  .jobdlg-name { font-size: 26px; }
  .jobdlg-rule { margin: 8px 0 10px; }
  .jobdlg-long { font-size: 14px; line-height: 1.7; }
  .jobdlg-meta { margin-top: 10px; padding-top: 10px; font-size: 13px; }
  .jobdlg-count { margin-top: 8px; }
  .newsdlg-panel { max-height: 96vh; }
  .newsdlg-head { padding: 12px 56px 10px 18px; }
  .newsdlg-head h3 { font-size: 18px; }
  .newsdlg-body { padding: 12px 18px 6px; font-size: 15px; line-height: 1.75; }
  .newsdlg-foot { padding: 8px 14px 10px; }
}
/* 很窄的手機（360 以下） */
@media (max-width: 360px) {
  .mm-top { font-size: 14px; }
  .kv-acct a, .kv-acct button { padding: 3px 10px; font-size: 12.5px; }
  .short b { font-size: 14px; }
  .ptitle h2 { font-size: 25px; }
  .rates dd { font-size: 21px; }
  .auth-card { padding: 20px 14px; }
}

/* ============================== 玩家社群 ==============================
   /community 底下所有頁面：列表、文章、發文表單、我的社群、貢獻排行。
   用的還是內頁那一套（.page .wrap .section .card .btn .field），這裡只補社群自己的零件。 */
.forum .wrap { max-width: 1160px; }
.forum .wrap--thread { max-width: 920px; }
.forum .wrap--narrow { max-width: 700px; }
.opt { margin-left: 8px; padding: 0 8px; border-radius: 999px; background: var(--mist); color: var(--ink-2); font-size: 12px; font-weight: 500; vertical-align: 1px; }
.msg-warn { border-left: 4px solid var(--gold); background: #fff6e2; color: #6b4a08; }
.msg-warn a { font-weight: 700; text-decoration: underline; }
.notice-bar { margin-bottom: 22px; }
/* ---- 忘記密碼（登入頁的連結、申請單） ---- */
.forgot { margin-top: 12px; font-size: 14px; text-align: center; }
.forgot a { color: var(--ink-2); }
.forgot a:hover { color: var(--red); }
.auth-wrap--wide { max-width: 600px; }
.form-sep { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 22px 0 14px; padding-top: 16px; border-top: 1px solid #eceaf2; }
.form-sep b { font-size: 16px; font-weight: 900; }
.form-sep span { color: var(--ink-2); font-size: 13.5px; }
.form-2.form-2--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .form-2.form-2--even { grid-template-columns: minmax(0, 1fr); } }
.forgot-notes { margin: 18px 0; padding: 12px 16px; border-radius: 4px; background: var(--mist); color: var(--ink-2); font-size: 13.5px; }
.forgot-notes li { position: relative; padding-left: 14px; }
.forgot-notes li + li { margin-top: 4px; }
.forgot-notes li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); }
.forgot-notes b { color: var(--ink); }
.btn--danger { border-color: var(--red); background: var(--red); }
.btn--danger:hover { border-color: #a51d1d; background: #a51d1d; }
.btn-row--left { justify-content: flex-start; margin-top: 14px; }
.card-note { margin-top: 10px; font-size: 13.5px !important; }
.acct-actions--top { margin-top: 14px; }
.h2-gap { margin-top: 28px; }
.td-wrap { min-width: 160px; white-space: normal !important; overflow-wrap: anywhere; }

.crumb { display: flex; align-items: center; gap: 6px 8px; margin-bottom: 18px; color: var(--ink-2); font-size: 14px; }
.crumb a { flex: none; color: var(--ink-2); }
.crumb a:hover { color: var(--red); }
.crumb > :last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; color: var(--ink); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

/* ---- 頭像（暱稱第一個字，底色由暱稱決定） ---- */
.ava {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(140deg, hsl(var(--h) 62% 58%), hsl(calc(var(--h) + 34) 58% 38%));
  color: #fff; font-size: 18px; font-weight: 900; line-height: 1; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); user-select: none;
}
.ava--sm { width: 30px; height: 30px; font-size: 14px; }
.ava--lg { width: 52px; height: 52px; font-size: 22px; }
.ava--xl { width: 72px; height: 72px; font-size: 30px; }
.badge { padding: 0 8px; border-radius: 999px; background: var(--mist); color: var(--ink-2); font-size: 12px; font-weight: 500; line-height: 1.7; white-space: nowrap; }
.badge--staff { background: var(--red); color: #fff; font-weight: 700; }
.ftag { display: inline-block; padding: 0 8px; border-radius: 3px; background: var(--tag-notice); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.75; white-space: nowrap; }
.ftag--q { background: var(--tag-event); }
.ftag--d { background: #6a5aa8; }
.ftag--ok { background: var(--ok); }
.ftag--pin { background: var(--tag-important); }
.ftag--lock { background: #8b8894; }
.ftag--wait { background: #fff; color: var(--tag-update); box-shadow: inset 0 0 0 1px currentColor; }
.fo-tags { display: inline-flex; flex-wrap: wrap; gap: 5px; }

/* ---- 列表頁 ---- */
.fo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.fo-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.fo-cats { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 8px; }
.fo-cats a { padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.5; white-space: nowrap; transition: border-color .15s, background .15s; }
.fo-cats a:hover { border-color: var(--ink); text-decoration: none; }
.fo-cats a.is-on { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 700; }
.fo-new { flex: none; min-height: 42px; padding: 8px 22px; }
.fo-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.fo-kinds { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.fo-kinds a { padding: 4px 2px; color: #8b8894; font-size: 16px; font-weight: 700; white-space: nowrap; }
.fo-kinds a:hover { color: var(--ink); text-decoration: none; }
.fo-kinds a.is-on { color: var(--red); box-shadow: 0 2px 0 var(--red); }
.fo-search { display: flex; flex: 0 1 250px; height: 40px; overflow: hidden; border: 1px solid #c9c5d6; border-radius: 4px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.fo-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(243, 165, 29, .4); }
.fo-search input { flex: 1 1 auto; min-width: 0; padding: 0 12px; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; -webkit-appearance: none; appearance: none; }
.fo-search input::placeholder { color: #a6a2b3; }
.fo-search input::-webkit-search-cancel-button { display: none; }
.fo-search button { flex: none; width: 42px; padding: 0; border: 0; background: none; color: var(--ink-2); }
.fo-search button:hover { color: var(--ink); }
.fo-search svg { display: block; width: 20px; height: 20px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.fo-desc { margin: 0 0 12px; color: var(--ink-2); font-size: 14.5px; }

.fo-list { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.fo-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid #eceaf2; transition: background .15s; }
.fo-row:first-child { border-top: 0; }
.fo-row:hover { background: #faf8fc; }
.fo-row.is-pinned { background: #fffaf0; }
.fo-row-main { flex: 1 1 auto; min-width: 0; }
.fo-title { display: block; color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
a.fo-title:hover { color: var(--red); text-decoration: none; }
.fo-title.is-off { color: var(--ink-2); }
.fo-snip { margin-top: 2px; color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.fo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin-top: 6px; color: var(--ink-2); font-size: 13px; }
.fo-count { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 5px 8px; border-radius: 6px; background: var(--mist); color: var(--ink); line-height: 1.25; }
a.fo-count:hover { background: #e7e4ee; text-decoration: none; }
.fo-count b { font-size: 19px; font-weight: 900; font-variant-numeric: tabular-nums; }
.fo-count i { color: var(--ink-2); font-size: 12px; font-style: normal; }
.fo-count.is-zero b { color: #a6a2b3; }
.fo-empty { padding: 36px 24px; }
.fo-empty .btn-row { margin-top: 16px; }

.pg { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; }
.pg ul { display: flex; gap: 4px; }
.pg ul a, .pg ul .is-on, .pg-step { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg a:hover { border-color: var(--ink); text-decoration: none; }
.pg ul .is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.pg-step.is-off { opacity: .35; }
.pg-gap { align-self: center; padding: 0 2px; color: var(--ink-2); }

/* ---- 側欄 ---- */
.side-card { padding: 20px 20px 22px; }
.side-card + .side-card { margin-top: 18px; }
.side-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 18px; font-weight: 900; }
.side-card h3::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }
.me-row { display: flex; align-items: center; gap: 12px; }
.me-row > div { min-width: 0; }
.me-nick { display: block; font-size: 18px; font-weight: 900; line-height: 1.3; overflow-wrap: anywhere; }
.me-rank { display: block; color: var(--ink-2); font-size: 13.5px; }
.side-note { margin-top: 10px; font-size: 14px !important; }
.side-warn { margin-top: 10px; padding: 8px 12px; border-left: 4px solid var(--gold); border-radius: 3px; background: #fff6e2; color: #6b4a08 !important; font-size: 14px !important; }
.side-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.side-btns .btn { min-height: 42px; padding: 8px 10px; font-size: 15px; }
.board li { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.board-no { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--mist); color: var(--ink-2); font-size: 13px; font-weight: 900; line-height: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.board-no--1 { background: linear-gradient(#ffd067, var(--gold-deep)); color: #2b1500; }
.board-no--2 { background: linear-gradient(#e6e8ee, #aab0bf); color: #23262e; }
.board-no--3 { background: linear-gradient(#e8b98f, #b3703c); color: #2b1500; }
.board-who { flex: 1 1 auto; min-width: 0; }
.board-who b { display: block; overflow: hidden; font-size: 15px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.board-who i { display: block; color: var(--ink-2); font-size: 12.5px; font-style: normal; line-height: 1.4; }
.board-rep { flex: none; font-weight: 900; font-variant-numeric: tabular-nums; }
.side-more { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; }
.side-rules li { position: relative; padding-left: 14px; color: var(--ink-2); font-size: 14px; }
.side-rules li + li { margin-top: 6px; }
.side-rules li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); }
.side-rules b { color: var(--ink); }

/* ---- 一篇文章 ---- */
.th-head { margin-bottom: 18px; }
.th-head h2 { margin-top: 8px; font-size: clamp(22px, 3vw, 30px); font-weight: 900; line-height: 1.4; overflow-wrap: anywhere; }
.th-meta { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 6px; color: var(--ink-2); font-size: 14px; }
.th-jump { font-weight: 700; }
.th-staff { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 12px; padding: 8px 14px; border-left: 4px solid var(--red); border-radius: 3px; background: #fff; color: var(--ink-2); font-size: 14px; }
.th-staff .act { margin-left: auto; border-color: var(--line); }
.th-count { display: flex; align-items: baseline; gap: 12px; margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-size: 18px; font-weight: 900; }
.th-count span { color: var(--ink-2); font-size: 13.5px; font-weight: 400; }
.th-back { margin-top: 22px; font-weight: 700; }

.post { position: relative; margin-bottom: 12px; padding: 18px 22px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; scroll-margin-top: calc(var(--menu-h) + 16px); }
.post--first { border-top: 4px solid var(--red); }
.post--best { border-color: #e9b84a; box-shadow: 0 0 0 1px #e9b84a, 0 6px 18px rgba(224, 124, 12, .12); }
.post:target { animation: post-flash 1.8s ease-out; }
@keyframes post-flash { from { background: #fff1cc; } }
.post--gone { padding: 14px 22px; border-style: dashed; background: none; }
.post-gone { color: var(--ink-2); font-size: 14.5px; }
.post-head { display: flex; align-items: center; gap: 12px; }
.post-who { flex: 1 1 auto; min-width: 0; }
.post-nick { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 16px; line-height: 1.4; }
.post-nick b { font-weight: 900; overflow-wrap: anywhere; }
.post-rank { color: var(--ink-2); font-size: 13px; }
.post-rank span { margin-left: 10px; }
.post-when { flex: none; display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13px; }
.post-no { color: #a6a2b3; font-variant-numeric: tabular-nums; }
.best-flag { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 3px 12px 3px 8px; border-radius: 999px; background: linear-gradient(#ffd067, #f0a11e); color: #3a1e00; font-size: 13.5px; font-weight: 900; }
.best-flag svg { width: 16px; height: 16px; fill: currentColor; }
.post-body { margin: 14px 0 12px; font-size: 16px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-body a { word-break: break-all; }
.post-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; padding-top: 10px; border-top: 1px solid #eceaf2; }
.post-acts form { display: contents; }
.act { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--ink-2); font-size: 14px; line-height: 1.4; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
a.act:hover, button.act:hover { background: var(--mist); color: var(--ink); text-decoration: none; }
.act svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.act b { font-variant-numeric: tabular-nums; }
.act--like { border-color: var(--line); }
.act--like.is-on, .act--like.is-on:hover { border-color: var(--red); background: #fdecec; color: var(--red); font-weight: 700; }
.act--best { border-color: #e9b84a; color: #8a5a00; font-weight: 700; }
.act--best svg { fill: #f3a51d; stroke: #c9892a; }
button.act--best:hover { background: #fff6e2; color: #5e3d00; }
.act--static { cursor: default; }
.act-gap { flex: 1 1 auto; }
.act.loading { opacity: .6; pointer-events: none; }

/* ---- 表單（回覆、發文、檢舉、暱稱） ---- */
.reply-box { margin-top: 26px; padding: 22px 24px; }
.reply-box > h3 { margin-bottom: 12px; font-size: 18px; font-weight: 900; }
.post-form { padding: 26px 28px; }
.confirm-card { padding: 24px 26px; }
.field textarea, .field select { display: block; width: 100%; border: 1px solid #c9c5d6; border-radius: 4px; background-color: #fff; color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 140px; padding: 12px 14px; line-height: 1.75; resize: vertical; }
.field textarea::placeholder { color: #a6a2b3; }
.field select {
  height: 46px; padding: 0 40px 0 14px; -webkit-appearance: none; appearance: none; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2355525f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 14px center; background-repeat: no-repeat;
}
.field textarea:focus, .field select:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(243, 165, 29, .4); }
.field.has-err textarea, .field.has-err select { border-color: var(--red); }
fieldset.field { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.field legend { margin-bottom: 5px; padding: 0; font-size: 14.5px; font-weight: 700; }
.count-tip { margin-top: 4px; color: var(--ink-2); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.count-tip.is-near { color: var(--red); font-weight: 700; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.form-tip { flex: 1 1 240px; color: var(--ink-2); font-size: 13.5px; }
.form-2 { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 18px; }
.seg, .opts { position: relative; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field .seg input, .field .opts input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; }
.field .seg label { display: block; margin: 0; padding: 6px 14px 7px; border: 1px solid #c9c5d6; border-radius: 4px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.seg label b { display: block; font-size: 15.5px; line-height: 1.4; }
.seg label i { display: block; overflow: hidden; color: var(--ink-2); font-size: 12.5px; font-style: normal; font-weight: 400; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.field .seg input:checked + label { border-color: var(--ink); background: #fffaf0; box-shadow: inset 0 0 0 1px var(--ink); }
.seg input:focus-visible + label, .opts input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.field .opts label { margin: 0; padding: 6px 16px; border: 1px solid #c9c5d6; border-radius: 999px; background: #fff; font-weight: 500; cursor: pointer; }
.field .opts input:checked + label { border-color: var(--ink); background: var(--ink); color: #fff; }
.quote { margin-bottom: 16px; padding: 12px 16px; border-left: 4px solid var(--line); border-radius: 3px; background: var(--mist); }
.quote-k { display: block; color: var(--ink-2); font-size: 12.5px; letter-spacing: .06em; }
.quote-body { max-height: 220px; margin-top: 4px; overflow: auto; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.confirm-note { margin-bottom: 16px; }

/* ---- 我的社群、貢獻排行 ---- */
.me-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.me-card + .msg { margin: 12px 0 0; }
.me-main { flex: 1 1 180px; min-width: 0; }
.me-card .me-nick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 22px; }
.me-stats { display: flex; flex-wrap: wrap; gap: 8px 0; }
.me-stats > div { min-width: 84px; padding: 2px 14px; border-left: 1px solid #eceaf2; text-align: center; }
.me-stats dt { color: var(--ink-2); font-size: 12.5px; }
.me-stats dd { font-size: 22px; font-weight: 900; line-height: 1.3; font-variant-numeric: tabular-nums; }
.nick-form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 12px; margin-top: 14px; }
.nick-form .field { flex: 1 1 280px; max-width: 420px; }
.nick-form .btn { margin-top: 27px; }
.rank-list { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.rank-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-top: 1px solid #eceaf2; }
.rank-row:first-child { border-top: 0; }
.rank-row.is-top { background: #fffaf0; }
.rank-row .board-who b { display: flex; align-items: center; gap: 6px; font-size: 16.5px; }
.rank-row .board-rep { text-align: right; line-height: 1.25; }
.rank-row .board-rep b { display: block; font-size: 20px; }
.rank-row .board-rep i { color: var(--ink-2); font-size: 12px; font-style: normal; font-weight: 400; }

/* ---- 主選單有六個項目時（社群與贊助都開著）字縮一點才排得下 ---- */
.mm-in--6 .mm-top { letter-spacing: .08em; }

@media (min-width: 1600px) {
  .forum .wrap { max-width: 1300px; }
  .forum .wrap--thread { max-width: 1000px; }
  .forum .wrap--narrow { max-width: 760px; }
  .fo-layout { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 1000px) {
  .mm-in--6 .mm-top { font-size: 16.5px; letter-spacing: .02em; }
  .fo-layout { grid-template-columns: minmax(0, 1fr); }
  .fo-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
  .side-card + .side-card { margin-top: 0; }
  .form-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .mm-in--6 .mm-top { font-size: 13.5px; letter-spacing: 0; }
  .fo-side { grid-template-columns: minmax(0, 1fr); }
  .fo-bar { flex-wrap: wrap; gap: 10px; }
  .fo-cats { flex-wrap: nowrap; margin: 0 -16px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
  .fo-cats::-webkit-scrollbar { display: none; }
  .fo-cats a { padding: 5px 14px; font-size: 14.5px; }
  .fo-new { width: 100%; }
  .fo-tools { flex-wrap: wrap; }
  .fo-kinds { gap: 4px 16px; }
  .fo-kinds a { font-size: 15px; }
  .fo-search { flex: 1 1 100%; }
  .fo-row { gap: 10px; padding: 12px 14px; }
  .fo-row > .ava { display: none; }
  .fo-title { font-size: 16px; }
  .fo-count { min-width: 48px; padding: 4px 6px; }
  .fo-count b { font-size: 17px; }
  .fo-last { display: none; }
  .pg { gap: 6px; }
  .pg-step span { display: none; }
  .pg ul a, .pg ul .is-on, .pg-step { min-width: 34px; height: 36px; padding: 0 8px; }
  .post { padding: 14px 16px 10px; }
  .post--gone { padding: 12px 16px; }
  .post-head { align-items: flex-start; gap: 10px; }
  .post-head .ava { width: 36px; height: 36px; font-size: 16px; }
  .post-when { flex-direction: column; align-items: flex-end; gap: 0; font-size: 12.5px; line-height: 1.5; }
  .post-rank span { display: block; margin-left: 0; }
  .post-body { font-size: 15.5px; line-height: 1.8; }
  .act { padding: 4px 10px; }
  .reply-box, .post-form, .confirm-card { padding: 18px 16px; }
  .form-foot .btn { flex: 1 1 auto; }
  .seg { grid-template-columns: minmax(0, 1fr); }
  .me-stats { width: 100%; }
  .me-stats > div { flex: 1 1 30%; min-width: 0; padding: 2px 6px; }
  .me-stats > div:first-child { border-left: 0; }
  .nick-form .btn { width: 100%; margin-top: 0; }
  .rank-row { gap: 10px; padding: 10px 14px; }
}
@media (max-width: 360px) {
  .mm-in--6 .mm-top { font-size: 12px; }
  .fo-kinds { gap: 4px 12px; }
  .post-acts { gap: 4px 0; }
  .act { padding: 4px 8px; font-size: 13.5px; }
}
@media (max-height: 520px) {
  .mm-in--6 .mm-top { font-size: 14px; letter-spacing: 0; }
}

/* ============================== 排行榜（貢獻排行 /community/rank、等級排行 /ranking） ==============================
   兩頁是同一套：上面一塊深色的舞台（切換、標題、前三名的頒獎台），下面白底的名單與說明卡。
   頒獎台的卡片和首頁的職業卡是同一種做法（色相 --h 的漸層底＋大字，或直接放職業卡的圖）。 */
.stage { position: relative; overflow: hidden; padding: 26px 0 40px; background: linear-gradient(172deg, #1b1830, var(--night) 72%); color: #fff; }
.stage::before {
  content: ""; position: absolute; inset: 0; opacity: .3; pointer-events: none;
  background-image: radial-gradient(circle, #fff 0 1.2px, transparent 1.9px), radial-gradient(circle, #fff 0 1.8px, transparent 2.6px);
  background-size: 124px 108px, 220px 192px; background-position: 16px 24px, 80px 120px;
}
.stage-in { position: relative; max-width: var(--wrap); margin: 0 auto; }
.stage-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.stage-tabs a, .stage-tabs span { padding: 5px 18px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; color: #d6d3e2; font-size: 14.5px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.stage-tabs a:hover { border-color: #fff; color: #fff; text-decoration: none; }
.stage-tabs .is-on { border-color: var(--gold); background: var(--gold); color: #2b1500; font-weight: 900; }
.stage-head { padding: 22px 16px 20px; text-align: center; }
.stage-head h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; letter-spacing: .12em; line-height: 1.3; text-shadow: 0 3px 0 rgba(0, 0, 0, .5); }
.stage-head h2 small { display: block; margin-bottom: 2px; color: #ffd36a; font-size: 13px; font-weight: 500; letter-spacing: .3em; text-shadow: none; }
.stage-head p { margin-top: 4px; color: #cfcbe0; font-size: 14.5px; }
.stage-cta { margin-top: 24px; padding: 0 16px; }
.stage-cta .dl-btn { width: auto; min-width: 0; min-height: 50px; padding: 8px 30px; font-size: 17px; }
.page--after-stage { padding-top: 32px; }

/* ---- 頒獎台：第一名在中間、比較大 ---- */
.podium { display: grid; grid-template-columns: 1fr 1.16fr 1fr; align-items: end; gap: clamp(8px, 2.2vw, 22px); max-width: 640px; margin: 0 auto; padding: 0 16px; }
.pod {
  position: relative; aspect-ratio: 2 / 3; min-width: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .6); border-radius: 10px;
  background:
    radial-gradient(120% 70% at 28% 0%, hsl(var(--h) 88% 76%), transparent 62%),
    linear-gradient(165deg, hsl(var(--h) 62% 54%), hsl(calc(var(--h) + 28) 56% 24%));
}
.pod--1 { order: 2; border-color: #ffe2a1; box-shadow: 0 0 0 2px var(--gold), 0 14px 36px rgba(243, 165, 29, .3); }
.pod--2 { order: 1; }
.pod--3 { order: 3; }
.pod-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pod-glyph {
  position: absolute; top: 15%; left: 0; right: 0; text-align: center; font-size: clamp(42px, 12vw, 108px); font-weight: 900; line-height: 1;
  color: hsl(var(--h) 100% 95%); -webkit-text-stroke: clamp(3px, .6vw, 5px) hsl(calc(var(--h) + 18) 55% 22%); paint-order: stroke fill;
  text-shadow: 0 6px 0 hsl(calc(var(--h) + 18) 55% 18% / .55); transform: rotate(-6deg);
}
.pod-no { position: absolute; top: 8px; left: 8px; z-index: 1; width: 30px; height: 30px; font-size: 15px; line-height: 30px; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.pod--1 .pod-no { width: 36px; height: 36px; font-size: 18px; line-height: 36px; }
.pod-plate { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; padding: 44px 8px 12px; background: linear-gradient(transparent, rgba(6, 5, 12, .94) 46%); text-align: center; }
.pod-plate > * { max-width: 100%; }
.pod-plate b { overflow: hidden; font-size: clamp(13px, 2.2vw, 18px); font-weight: 900; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.pod-plate i { overflow: hidden; color: #d6d2e4; font-size: clamp(11px, 1.5vw, 13px); font-style: normal; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.pod-score { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 6px; margin-top: 4px; color: #ffd36a; font-size: clamp(16px, 3vw, 24px); font-weight: 900; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pod-score small { color: #cfcbe0; font-size: 11.5px; font-weight: 500; }
.pod-time { margin-top: 3px; color: #a9a4bd; font-size: clamp(10px, 1.4vw, 12.5px); line-height: 1.35; font-variant-numeric: tabular-nums; }
.pod--empty { border-style: dashed; border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .05); box-shadow: none; }
.pod--empty .pod-glyph { color: rgba(255, 255, 255, .22); -webkit-text-stroke: 0; text-shadow: none; transform: none; }
.pod--empty .pod-no { opacity: .7; }
.pod--empty .pod-plate { background: none; }
.pod--empty .pod-plate b { color: rgba(255, 255, 255, .5); font-weight: 500; }
.cap { display: inline-block; padding: 0 8px; border-radius: 999px; background: linear-gradient(#ffd067, var(--gold-deep)); color: #2b1500; font-size: 12px; font-weight: 900; line-height: 1.7; letter-spacing: .06em; white-space: nowrap; vertical-align: middle; }

/* ---- 等級排行：選職業的那一排（首頁同一種橫向捲動列） ---- */
.picks { margin-top: 20px; padding: 0 58px; }
.picks .rail-track { gap: 8px; align-items: flex-start; padding: 6px 2px 8px; }
.picks .chev { top: 50px; width: 38px; height: 44px; margin-top: -22px; }
.picks .chev--prev { left: 10px; }
.picks .chev--next { right: 10px; }
.pick { flex: 0 0 74px; width: 74px; min-width: 0; scroll-snap-align: start; }
.pick a { display: block; color: #d6d3e2; text-align: center; }
.pick a:hover { color: #fff; text-decoration: none; }
.pick-face {
  position: relative; display: block; height: 92px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .4); border-radius: 8px;
  background: linear-gradient(165deg, hsl(var(--h, 250) 62% 54%), hsl(calc(var(--h, 250) + 28) 56% 24%)); transition: transform .15s, border-color .15s;
}
.pick-face img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pick-glyph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 38px; font-weight: 900; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.pick--all .pick-face { background: linear-gradient(165deg, #3a2b6e, #1b1830); }
.pick--all .pick-glyph { color: #ffd36a; }
.pick a:hover .pick-face { transform: translateY(-3px); border-color: #fff; }
.pick b { display: block; margin-top: 5px; font-size: 12.5px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.pick.is-on .pick-face { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.pick.is-on b { color: #ffd36a; font-weight: 900; }
.pick-sep { flex: 0 0 22px; align-self: stretch; display: flex; align-items: flex-start; justify-content: center; }
.pick-sep span { height: 92px; border-left: 1px solid rgba(255, 255, 255, .22); color: #a9a4bd; font-size: 11.5px; letter-spacing: .2em; line-height: 20px; writing-mode: vertical-rl; text-align: center; white-space: nowrap; overflow: hidden; }

/* ---- 第四名以後的名單 ---- */
.rk-list .rk-head, .rk-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 120px 150px; align-items: center; gap: 14px; }
.rk-head { padding: 9px 18px; background: #14121f; color: #fff; font-size: 13px; letter-spacing: .1em; }
.rk-head span:nth-child(3), .rk-head span:nth-child(4), .rk-time { text-align: right; }
.rk-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rk-thumb { flex: none; position: relative; width: 44px; height: 44px; overflow: hidden; border-radius: 8px; background: linear-gradient(165deg, hsl(var(--h) 62% 54%), hsl(calc(var(--h) + 28) 56% 24%)); color: #fff; font-size: 20px; font-weight: 900; line-height: 44px; text-align: center; }
.rk-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.rk-lv { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.rk-lv b { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.rk-time { color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rk-foot { margin-top: 12px; color: var(--ink-2); font-size: 13.5px; }

/* ---- 說明卡：怎麼累積、稱號階梯、排名規則 ---- */
.info-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.info-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-card { padding: 22px 24px 24px; }
.info-card > h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 19px; font-weight: 900; }
.info-card > h3::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--red); transform: rotate(45deg); }
.earn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.earn-tile { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 14px 16px; border-radius: 6px; background: var(--mist); }
.earn-tile svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.earn-tile b { flex: 1 1 auto; font-size: 16.5px; font-weight: 900; white-space: nowrap; }
.earn-plus { flex: none; padding: 1px 12px; border-radius: 999px; background: linear-gradient(#ffc247, var(--gold-deep)); color: #2b1500; font-size: 17px; font-weight: 900; line-height: 1.6; font-variant-numeric: tabular-nums; }
.info-card .card-note { margin-top: 14px; }
.rule-tile { position: relative; padding-left: 68px; }
.rule-tile > h3 { margin-bottom: 6px; font-size: 17px; }
.rule-tile > h3::before { content: none; }
.rule-no { position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(100deg, #1b1830, #3a2b6e); color: #ffd36a; font-size: 17px; font-weight: 900; line-height: 34px; text-align: center; }
.ladder { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
.ladder li { position: relative; min-width: 0; padding: 0 2px; text-align: center; }
.ladder li::before { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.ladder li:first-child::before { content: none; }
.ladder-chip { position: relative; z-index: 1; display: inline-block; min-width: 46px; padding: 0 10px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 900; line-height: 27px; font-variant-numeric: tabular-nums; }
.ladder b { display: block; margin-top: 8px; font-size: 14px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.ladder em { display: block; color: var(--red); font-size: 12px; font-style: normal; font-weight: 700; }
.ladder .is-done::before, .ladder .is-here::before { background: var(--ink); }
.ladder .is-done .ladder-chip { border-color: var(--ink); background: var(--ink); color: #fff; }
.ladder .is-here .ladder-chip { border-color: var(--red); background: var(--red); color: #fff; box-shadow: 0 0 0 4px rgba(197, 38, 43, .16); }
.ladder-me { margin-top: 16px; padding-top: 14px; border-top: 1px solid #eceaf2; }
.ladder-me p { color: var(--ink-2); font-size: 14.5px; }
.ladder-me p b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ladder-bar { height: 8px; margin-bottom: 8px; overflow: hidden; border-radius: 4px; background: var(--mist); }
.ladder-bar i { display: block; height: 100%; min-width: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.me-next { flex: 1 1 100%; margin-top: 0; }
.me-fine { margin-top: 4px !important; font-size: 13px !important; }

@media (max-width: 1000px) {
  .info-row--3 { grid-template-columns: minmax(0, 1fr); }
  .rk-list .rk-head, .rk-row { grid-template-columns: 34px minmax(0, 1fr) 96px 140px; }
}
@media (max-width: 860px) {
  .info-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .stage { padding: 18px 0 28px; }
  .stage-head { padding: 16px 12px 14px; }
  .stage-head p { font-size: 13.5px; }
  .picks { margin-top: 14px; padding: 0 12px; }
  .picks .chev { top: 46px; }
  .pick { flex-basis: 64px; width: 64px; }
  .pick b { font-size: 12px; }
  .pick-face, .pick-sep span { height: 80px; }
  .pick-glyph { font-size: 32px; }
  .podium { padding: 0 10px; }
  .pod-no { top: 6px; left: 6px; width: 24px; height: 24px; font-size: 13px; line-height: 24px; }
  .pod--1 .pod-no { width: 28px; height: 28px; font-size: 15px; line-height: 28px; }
  .pod-plate { padding: 30px 5px 8px; }
  .pod-score small { display: block; flex-basis: 100%; font-size: 10.5px; }
  .pod-score .cap { padding: 0 6px; font-size: 10.5px; }
  .page--after-stage { padding-top: 24px; }
  .rk-list .rk-head { display: none; }
  .rk-row { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 10px; }
  .rk-row .rk-time { grid-column: 2 / -1; margin-top: -6px; padding-left: 50px; font-size: 12.5px; text-align: left; }
  .rk-thumb { width: 38px; height: 38px; font-size: 17px; line-height: 38px; }
  .rk-lv b { font-size: 18px; }
  .info-card { padding: 18px 16px 20px; }
  .rule-tile { padding-left: 62px; }
  .rule-no { left: 16px; top: 18px; }
  .th-staff .act { margin-left: 0; }
}
@media (max-width: 520px) {
  /* 稱號階梯改成直的：左邊門檻、右邊稱號 */
  .ladder { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ladder li { display: flex; align-items: center; gap: 12px; padding: 0; text-align: left; }
  .ladder li::before { top: -10px; left: 22px; width: 3px; height: 10px; }
  .ladder-chip { flex: none; }
  .ladder b { margin-top: 0; font-size: 15px; }
  .ladder em { margin-left: auto; }
}
@media (max-width: 400px) {
  .earn { grid-template-columns: minmax(0, 1fr); }
  .podium { gap: 6px; padding: 0 8px; }
  .pod-time { font-size: 9.5px; }
}
@media (min-width: 1600px) {
  .podium { max-width: 720px; }
}
@media (max-height: 520px) {
  .stage { padding: 14px 0 22px; }
  .podium { max-width: 420px; }
  .pick-face, .pick-sep span { height: 64px; }
  .picks .chev { top: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============================== 橫向卡片列：更好瀏覽 ============================== */
.rail-track { cursor: grab; }
.rail-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.rail-track.is-dragging * { pointer-events: none; }
.rail-bar { position: relative; width: min(220px, 50%); height: 4px; margin: 14px auto 0; border-radius: 2px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.rail-bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; border-radius: 2px; background: var(--gold); }
@media (max-width: 760px) {
  .rail { padding: 0 12px; }
  .rail .chev { display: block; top: calc(50% - 9px); width: 40px; height: 40px; margin-top: -20px; padding: 9px; border-radius: 50%; background: rgba(9, 8, 16, .8); box-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
  .rail .chev--prev { left: 2px; }
  .rail .chev--next { right: 2px; }
  .rail .chev:hover { transform: none; }
  .rail .chev:disabled { opacity: 0; pointer-events: none; }
  .rail .chev[hidden] { display: none; }
}

/* 輪播用圖片的那一則：整張圖鋪滿，不畫星點和柔光；有連結時整張可點 */
.slide-img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.slide-link { position: absolute; inset: 0; z-index: 2; }

/* 職業視窗：新圖還沒準備好時，舊圖不顯示（由 site.js 加上 is-loading） */
.jobdlg-art.is-loading .jobdlg-img { visibility: hidden; animation: none; }

/* ---- 橫向卡片列（職業、系統）：只顯示整張的卡片。每張的寬度由 site.js 依視窗寬度算出來（--fit-w），
        剛好排滿，邊緣不會露出被切掉的半張；捲動一律停在某一張的開頭 ---- */
.rail-track.is-fit { scroll-snap-type: x mandatory; scroll-padding-left: 2px; }
.rail-track.is-fit > * { flex: 0 0 var(--fit-w); scroll-snap-align: start; }
.rail-track.is-fit > :first-child { margin-left: 0; }
.rail-track.is-fit > :last-child { margin-right: 0; }
.rail-track.is-fit.jobs > .job { height: var(--fit-h); }
.rail-track.is-fit.is-dragging { scroll-snap-type: none; }

/* ---- 首頁的「版本與倍率」：夠寬就四格一排，不夠寬就排成 2×2，不會再出現「三格加落單一格」。
        格子之間的細線是底色從 1px 的間隙透出來的，所以兩種排法的線都是完整的 ---- */
.rates { grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border-radius: 10px; background: #2f2b47; box-shadow: 0 10px 26px rgba(12, 10, 24, .16); }
.rates > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 18px 12px; background: linear-gradient(180deg, #1c1931, #121021); }
.rates > div + div { border-left: 0; }
.rates dt { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rates dt svg { flex: none; width: 15px; height: 15px; color: #ffd36a; }
.rates dd { margin: 0; white-space: nowrap; }
.rates:has(> div:only-child) { grid-template-columns: 1fr; }              /* 讀不到倍率時只有版本一格 */
.rates:has(> div:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
.rates:has(> div:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
  .rates, .rates:has(> div:nth-child(3):last-child) { grid-template-columns: repeat(2, 1fr); }
  .rates:has(> div:nth-child(3):last-child) > div:last-child { grid-column: 1 / -1; }
  .rates > div { padding: 16px 10px; }
  .rates dd { font-size: 26px; }
}
@media (max-width: 280px) {
  .rates, .rates:has(> div:nth-child(3):last-child) { grid-template-columns: 1fr; }
}

/* ============================== 排行榜：前三名的特效、第 4～10 名 ==============================
   等級排行（/ranking）和貢獻排行（/community/rank）共用。前三名的卡片：
     外框   一道光沿著邊框繞圈（金／銀／銅），外面一圈光暈慢慢呼吸
     卡面   每隔幾秒一道斜光掃過；進場時由下往上浮出來（二、一、三依序）
     第一名 名次徽章上面戴一頂皇冠
   空位（虛位以待）沒有這些。第 4～10 名固定列出，沒有人的名次顯示「虛位以待」。
   來源檔 deploy/rank_fx.css，用 deploy/patch_web_rank_fx.py 套進 site.css。 */
@property --pod-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.pod { --pod-c1: #ffffff; --pod-c2: rgba(255, 255, 255, .25); --pod-glow: rgba(255, 255, 255, .0); }
.pod--1 { --pod-c1: #fff6d0; --pod-c2: #f3a51d; --pod-glow: rgba(243, 165, 29, .55); }
.pod--2 { --pod-c1: #ffffff; --pod-c2: #9aa6bd; --pod-glow: rgba(190, 200, 222, .5); }
.pod--3 { --pod-c1: #ffe3c8; --pod-c2: #b3703c; --pod-glow: rgba(214, 140, 84, .5); }
.pod:not(.pod--empty) { border-color: transparent; animation: pod-rise .7s cubic-bezier(.2, .9, .3, 1.15) both, pod-glow 3.2s ease-in-out .7s infinite; }
.pod--2:not(.pod--empty) { animation-delay: .05s, .9s; }
.pod--1:not(.pod--empty) { animation-delay: .22s, .7s; }
.pod--3:not(.pod--empty) { animation-delay: .38s, 1.3s; }
@keyframes pod-rise { from { opacity: 0; transform: translateY(26px) scale(.96); } }
@keyframes pod-glow {
  0%, 100% { box-shadow: 0 0 0 1px var(--pod-c2), 0 10px 26px rgba(0, 0, 0, .35), 0 0 14px -2px var(--pod-glow); }
  50% { box-shadow: 0 0 0 1px var(--pod-c2), 0 10px 26px rgba(0, 0, 0, .35), 0 0 34px 2px var(--pod-glow); }
}
/* 邊框上繞圈的光：一圈圓錐漸層，只留邊框那一圈看得到 */
.pod:not(.pod--empty)::after {
  content: ""; position: absolute; inset: 0; z-index: 2; padding: 3px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--pod-a), var(--pod-c2) 0deg, var(--pod-c2) 200deg, var(--pod-c1) 300deg, #fff 330deg, var(--pod-c2) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: pod-turn 4.5s linear infinite;
}
.pod--2:not(.pod--empty)::after { animation-duration: 6s; animation-delay: -2s; }
.pod--3:not(.pod--empty)::after { animation-duration: 6.5s; animation-delay: -4s; }
@keyframes pod-turn { to { --pod-a: 360deg; } }
/* 掃過卡面的斜光 */
.pod:not(.pod--empty)::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, .34) 50%, transparent 62%);
  transform: translateX(-120%); animation: pod-sheen 5.5s ease-in-out 1.4s infinite;
}
.pod--2:not(.pod--empty)::before { animation-delay: 2.6s; }
.pod--3:not(.pod--empty)::before { animation-delay: 3.8s; }
@keyframes pod-sheen { 0% { transform: translateX(-120%); } 22%, 100% { transform: translateX(120%); } }
.pod-no { z-index: 3; }
.pod-plate { z-index: 1; }
/* 第一名：徽章往下讓一點位置，上面一頂皇冠輕輕晃 */
.pod--1:not(.pod--empty) .pod-no { top: 24px; }
.pod--1:not(.pod--empty) .pod-no::after {
  content: ""; position: absolute; left: 50%; top: -17px; width: 28px; height: 17px; margin-left: -14px;
  background: linear-gradient(#fff3b8, #f3a51d); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .45));
  clip-path: polygon(0 100%, 4% 18%, 27% 58%, 50% 0, 73% 58%, 96% 18%, 100% 100%);
  transform-origin: 50% 100%; animation: pod-crown 2.8s ease-in-out infinite;
}
@keyframes pod-crown { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-2px); } }
.pod--1:not(.pod--empty) .pod-plate b { color: #ffe9a8; text-shadow: 0 0 12px rgba(243, 165, 29, .6); }

/* ---- 第 4～10 名：固定列出，空的名次是「虛位以待」 ---- */
.rank-list .rank-row { transition: background .15s; animation: rk-in .45s ease-out both; }
.rank-list .rank-row:nth-child(2) { animation-delay: .04s; }
.rank-list .rank-row:nth-child(3) { animation-delay: .08s; }
.rank-list .rank-row:nth-child(4) { animation-delay: .12s; }
.rank-list .rank-row:nth-child(5) { animation-delay: .16s; }
.rank-list .rank-row:nth-child(6) { animation-delay: .2s; }
.rank-list .rank-row:nth-child(7) { animation-delay: .24s; }
.rank-list .rank-row:nth-child(n+8) { animation-delay: .28s; }
@keyframes rk-in { from { opacity: 0; transform: translateX(-10px); } }
.rank-list .rank-row:not(.rank-row--empty):hover { background: #fffaf0; }
.rank-row--empty { color: #a6a2b3; }
.rank-row--empty .board-who b { color: #8b8894; font-weight: 500; }
.rank-row--empty .board-who i { color: #b3afc0; }
.rank-row--empty .board-no { background: #f1eff6; color: #a6a2b3; }
.rk-thumb--empty, .rank-row--empty .ava { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px dashed #c9c5d6; border-radius: 8px; background: #f8f7fb; color: #b3afc0; font-size: 18px; font-weight: 900; line-height: 1; }
.rank-row--empty .rk-lv, .rank-row--empty .rk-time, .rank-row--empty .board-rep { color: #c2bfce; }
.stage-tabs a { transition: border-color .15s, color .15s, background .15s; }

@media (max-width: 760px) {
  .pod--1:not(.pod--empty) .pod-no { top: 18px; }
  .pod--1:not(.pod--empty) .pod-no::after { top: -13px; width: 22px; height: 13px; margin-left: -11px; }
  .pod:not(.pod--empty)::after { padding: 2px; }
  .rk-thumb--empty, .rank-row--empty .ava { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .pod:not(.pod--empty), .pod:not(.pod--empty)::after, .pod--1:not(.pod--empty) .pod-no::after, .rank-list .rank-row { animation: none; }
  .pod:not(.pod--empty) { box-shadow: 0 0 0 1px var(--pod-c2), 0 10px 26px rgba(0, 0, 0, .35), 0 0 22px var(--pod-glow); }
  .pod:not(.pod--empty)::before { content: none; }
}
/* ============================== /排行榜特效 ============================== */

/* ============================== 遊戲規章（/rules） ============================== */
.rules .card ul { margin: 0; padding-left: 1.2em; color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.rules .card li + li { margin-top: 6px; }
.rules .card li strong, .rules-notes strong { color: var(--ink); }
.rules .card p + ul, .rules .card ul + p { margin-top: 10px; }
.rules-grid { grid-template-columns: repeat(2, 1fr); }
.rules-lead { border-left: 4px solid var(--red); }
.rules-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rules-toc a { padding: 5px 16px; border: 1px solid var(--line); border-radius: 999px; background: #f6f5fa; color: var(--ink); font-size: 14px; font-weight: 700; }
.rules-toc a:hover { border-color: var(--red); color: var(--red); }
.rules .section[id] { scroll-margin-top: 84px; }
.rules-tbl th, .rules-tbl td { white-space: normal; vertical-align: top; font-size: 15px; line-height: 1.6; }
.rules-tbl td:first-child { width: 36%; color: var(--ink); font-weight: 700; }
.rules-tbl td { color: var(--ink-2); }
.rules-tbl td.is-ban { color: var(--red); font-weight: 700; }
.rules-notes { margin: 16px 0 0; padding-left: 1.2em; color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.rules-notes li + li { margin-top: 6px; }
.rules-foot { margin-top: 18px; color: var(--ink-2); font-size: 13.5px; text-align: right; }
.auth-agree { margin: 4px 0 14px; color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }
@media (max-width: 760px) {
  .rules-grid { grid-template-columns: 1fr; }
  .rules-tbl th, .rules-tbl td { padding: 9px 10px; font-size: 14px; }
  .rules-tbl td:first-child { width: 40%; }
}
/* ============================== /遊戲規章 ============================== */

/* ============================== 邀請朋友（會員中心） ============================== */
/* 會員中心整頁（.mc）：區塊進場、卡片的陰影與滑過效果、點數卡、邀請朋友、我的紀錄。
   動畫都很短，而且只在「使用者沒有要求減少動態效果」時才有（最下面的 prefers-reduced-motion）。 */
@keyframes mc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mc-twinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
@keyframes mc-drift { 0% { transform: translate(0, 0); } 50% { transform: translate(-36px, 22px); } 100% { transform: translate(0, 0); } }
@keyframes mc-sweep { 0% { transform: translateX(-120%) skewX(-18deg); } 55%, 100% { transform: translateX(320%) skewX(-18deg); } }
@keyframes mc-pop { 0% { transform: scale(1); } 45% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes mc-swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.mc .section { animation: mc-rise .5s cubic-bezier(.2, .8, .3, 1) both; }
.mc .section:nth-of-type(2) { animation-delay: .06s; }
.mc .section:nth-of-type(3) { animation-delay: .12s; }
.mc .section:nth-of-type(4) { animation-delay: .18s; }
.mc .section:nth-of-type(n+5) { animation-delay: .24s; }
.mc .card, .mc .pt-card, .mc .sp-order-list { border-radius: 10px; box-shadow: 0 1px 2px rgba(27, 24, 48, .05), 0 8px 24px -14px rgba(27, 24, 48, .25); transition: box-shadow .2s, transform .2s; }
.mc .card:hover, .mc .pt-card:hover { box-shadow: 0 2px 4px rgba(27, 24, 48, .06), 0 16px 32px -16px rgba(27, 24, 48, .38); transform: translateY(-2px); }
.mc .sp-order-list { overflow: hidden; }
.mc .sp-order { transition: background .15s; }
.mc .sp-order:hover { background: #faf9fd; }
.mc .kv-list .v { color: var(--ink); }

/* 我的點數：星空點是夜空卡片，楓葉點數是淺色卡片（右邊的星星、楓葉圖案使用者說不好看，2026-10-12 拿掉） */
.mc .pt-card { position: relative; overflow: hidden; padding: 20px 24px; }
.mc .pt-card b { font-size: 34px; letter-spacing: .01em; }
.mc .pt-card:not(.pt-card--nx) { background: linear-gradient(135deg, #fff 0%, #fff6ef 100%); }

/* 邀請朋友：夜空底色的卡片，邀請碼和連結是主角 */
.mc .ref-card { position: relative; overflow: hidden; padding: 28px 30px 26px; border: 0; background: linear-gradient(135deg, #17142c 0%, #2a2158 55%, #3d2c78 100%); color: #f1eefb; box-shadow: 0 18px 40px -22px rgba(42, 33, 88, .9); }
.mc .ref-card:hover { transform: none; box-shadow: 0 18px 40px -22px rgba(42, 33, 88, .9); }
.mc .ref-card::before { content: ""; position: absolute; top: -90px; right: -60px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 211, 106, .26), rgba(255, 211, 106, 0) 66%); pointer-events: none; animation: mc-drift 14s ease-in-out infinite; }
.mc .ref-card::after { content: ""; position: absolute; bottom: -120px; left: -80px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(80, 215, 200, .16), rgba(80, 215, 200, 0) 66%); pointer-events: none; animation: mc-drift 18s ease-in-out infinite reverse; }
.mc .ref-card > * { position: relative; z-index: 1; }
.mc .ref-card .ref-how { color: #e3def6; font-size: 15.5px; line-height: 1.85; }
.mc .ref-card .ref-how b { color: #ffd36a; font-weight: 900; }
.mc .ref-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 12px 12px 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; background: rgba(255, 255, 255, .08); }
.mc .ref-row:first-of-type { border-color: rgba(255, 211, 106, .55); background: rgba(255, 211, 106, .1); }
.mc .ref-row:first-of-type::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 28%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .16), rgba(255, 255, 255, 0)); animation: mc-sweep 5s ease-in-out infinite; pointer-events: none; }
.mc .ref-row { position: relative; }
.mc .ref-row .k { flex: 0 0 92px; color: #cfc8ee; font-size: 14px; font-weight: 500; }
.mc .ref-row code { flex: 1 1 auto; min-width: 0; overflow: hidden; padding: 0; background: none; color: #fff; text-overflow: ellipsis; white-space: nowrap; font-size: 22px; font-weight: 700; letter-spacing: .12em; }
.mc .ref-row code.ref-link { color: #e9e5fa; font-size: 14px; font-weight: 500; letter-spacing: 0; }
.mc .ref-row .copy-btn { position: relative; z-index: 1; padding: 7px 20px; border: 0; border-radius: 999px; background: #ffd36a; color: #2a1c00; font-size: 14px; font-weight: 700; transition: background .15s, transform .15s; }
.mc .ref-row .copy-btn:hover { background: #ffe199; transform: translateY(-1px); }
.mc .ref-row .copy-btn.is-done { background: #7be0a4; color: #06301a; animation: mc-pop .35s ease-out; }
.mc .ref-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.mc .ref-nums li { padding: 16px 10px 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; background: rgba(8, 7, 22, .34); text-align: center; transition: border-color .2s, transform .2s; }
.mc .ref-nums li:hover { border-color: rgba(255, 211, 106, .5); transform: translateY(-2px); }
.mc .ref-nums svg { display: block; width: 22px; height: 22px; margin: 0 auto 6px; color: #b9b2d8; }
.mc .ref-nums b { display: block; color: #ffd36a; font-size: 30px; font-weight: 900; line-height: 1.2; font-variant-numeric: tabular-nums; }
.mc .ref-nums span { color: #d2cbee; font-size: 14px; }
.mc .ref-card .ref-tbl { margin-top: 18px; border-color: rgba(255, 255, 255, .16); border-radius: 10px; background: rgba(255, 255, 255, .05); }
.mc .ref-card .ref-tbl th { background: rgba(0, 0, 0, .32); color: #fff; }
.mc .ref-card .ref-tbl td { border-top-color: rgba(255, 255, 255, .1); color: #ece8fa; }
.mc .ref-tbl th, .mc .ref-tbl td { padding: 10px 14px; font-size: 14.5px; }
.mc .ref-ok { color: #7be0a4; font-weight: 700; }
.mc .ref-card .ref-empty { margin-top: 16px; color: #d2cbee; font-size: 14.5px; }

/* 我的紀錄：分類、一頁五筆；切換時只換這一塊，畫面不跳 */
.rec-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rec-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 14.5px; font-weight: 700; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.rec-tabs a:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.rec-tabs a.on { border-color: #1b1830; background: #1b1830; color: #fff; }
.rec-tabs i { min-width: 22px; padding: 0 6px; border-radius: 999px; background: #ecebf2; color: var(--ink-2); font-size: 12px; font-style: normal; line-height: 20px; text-align: center; }
.rec-tabs a.on i { background: #ffd36a; color: #2a1c00; }
.rec-kind { display: inline-block; margin-right: 10px; padding: 1px 10px; border-radius: 4px; font-size: 12.5px; font-style: normal; font-weight: 700; line-height: 1.7; vertical-align: 2px; }
.rec-kind.is-sponsor { background: #fdecec; color: #a01d22; }
.rec-kind.is-invite { background: #eee9ff; color: #4b2fb0; }
.rec-kind.is-grant { background: #e6f5ec; color: #17633a; }
.rec-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.rec-pager .btn { padding: 6px 20px; font-size: 14.5px; }
.rec-pager .is-off { opacity: .35; cursor: default; pointer-events: none; }
.rec-page { color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
#sponsor.is-loading { opacity: .55; transition: opacity .15s; pointer-events: none; }
#sponsor.is-swapped .sp-order-list, #sponsor.is-swapped .rec-pager, #sponsor.is-swapped > .card { animation: mc-swap .25s ease-out both; }
#sponsor { scroll-margin-top: 84px; }

/* 邀請朋友：邀請碼、連結、分享按鈕在左，QR Code 在右；窄螢幕時 QR Code 排到下面 */
.mc .ref-grid { display: grid; grid-template-columns: minmax(0, 1fr) 184px; gap: 0 16px; align-items: stretch; }
.mc .ref-grid.ref-grid--noqr { grid-template-columns: minmax(0, 1fr); }
.mc .ref-main { min-width: 0; }
.mc .ref-qr { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; padding: 16px 14px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; background: rgba(255, 255, 255, .08); text-align: center; }
.mc .ref-qr .ref-qr__svg { display: block; width: 100%; max-width: 152px; height: auto; border-radius: 8px; }
.mc .ref-qr span { color: #d2cbee; font-size: 13px; line-height: 1.6; }
.mc .ref-share { margin-top: 14px; padding: 14px 16px 16px 18px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; background: rgba(255, 255, 255, .08); }
.mc .ref-share .k { display: block; margin-bottom: 10px; color: #cfc8ee; font-size: 14px; font-weight: 500; }
.mc .ref-share__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.mc .ref-sh { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 15px 7px 11px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(8, 7, 22, .36); color: #fff; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.45; text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.mc .ref-sh[hidden] { display: none; }
.mc .ref-sh svg { flex: none; width: 18px; height: 18px; }
.mc .ref-sh:hover, .mc .ref-sh:focus-visible { border-color: #ffd36a; background: rgba(255, 211, 106, .16); color: #fff; transform: translateY(-1px); }
.mc .ref-sh:focus-visible { outline: 2px solid #ffd36a; outline-offset: 2px; }
.mc .ref-sh--line svg { color: #5fe086; }
.mc .ref-sh--facebook svg { color: #8ab6ff; }
.mc .ref-sh--telegram svg { color: #74ccff; }
.mc .ref-sh--discord svg { color: #aab4ff; }
.mc .ref-sh--more svg { color: #ffd36a; }
.mc .ref-share__msg { margin: 10px 0 0; color: #7be0a4; font-size: 13.5px; line-height: 1.6; }
.mc .ref-share__msg:empty { display: none; }
.mc .ref-share__msg.is-err { color: #ffc2b0; }

/* 會員中心的入口列（玩家社群那三個）：等寬並排，每個有圖示；手機上圖示在上、名稱在下 */
.mc-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
/* 資料列的值和它後面的小標籤：排不下時標籤整個換到下一行，不在標籤裡面斷行 */
.mc .kv-list .v { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mc .kv-list .v .pill { margin-left: 0; white-space: nowrap; }
.mc-links.mc-links--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mc-link { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: 0 1px 2px rgba(27, 24, 48, .05), 0 8px 24px -16px rgba(27, 24, 48, .25); transition: border-color .15s, transform .15s, box-shadow .15s; }
.mc-link svg { flex: none; width: 22px; height: 22px; color: #6a5fd0; }
.mc-link span { white-space: nowrap; }
.mc-link:hover, .mc-link:focus-visible { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(27, 24, 48, .06), 0 14px 28px -16px rgba(27, 24, 48, .38); }
.mc-link:focus-visible { outline: 2px solid #6a5fd0; outline-offset: 2px; }
.mc-link--discord svg { color: #5865f2; }
@media (max-width: 640px) {
  .mc-links { gap: 10px; }
  .mc-link { flex-direction: column; gap: 6px; min-height: 0; padding: 13px 4px 11px; font-size: 13.5px; }
  .mc-link svg { width: 24px; height: 24px; }
  /* 其他的按鈕列（前往贊助；修改密碼／下載遊戲／登出）：一列的按鈕平分寬度，不再換行 */
  .mc .acct-actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
  .mc .acct-actions .btn { padding-right: 6px; padding-left: 6px; text-align: center; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .mc-link { transition: none; }
  .mc-link:hover, .mc-link:focus-visible { transform: none; }
}

/* 我的紀錄的分類：固定一行，排不下就左右滑（觸控直接滑、滑鼠用拖的）；還有內容的那一側淡出 */
.rec-tabs { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; margin: 0 -2px 10px; padding: 3px 2px 5px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rec-tabs::-webkit-scrollbar { display: none; }
.rec-tabs a { flex: none; white-space: nowrap; -webkit-user-drag: none; user-select: none; }
.rec-tabs.can-drag { cursor: grab; }
.rec-tabs.is-drag { cursor: grabbing; }
.rec-tabs.is-drag a { pointer-events: none; }
.rec-tabs.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.rec-tabs.more-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.rec-tabs.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }

@media (max-width: 720px) {
  .mc .ref-grid { grid-template-columns: minmax(0, 1fr); }
  .mc .ref-qr { flex-direction: row; justify-content: flex-start; gap: 16px; padding: 14px 16px; text-align: left; }
  .mc .ref-qr .ref-qr__svg { flex: none; width: 116px; }
  .mc .ref-qr span { font-size: 14px; }
  .mc .ref-qr span br { display: none; }
}
@media (max-width: 640px) {
  .mc .ref-card { padding: 22px 16px; }
  .mc .ref-row { flex-wrap: wrap; gap: 6px 10px; }
  .mc .ref-row .k { flex-basis: 100%; }
  .mc .ref-row code { flex: 1 1 0; font-size: 18px; }
  .mc .ref-row code.ref-link { font-size: 13.5px; }
  .mc .ref-row .copy-btn { padding: 7px 18px; }
  .mc .ref-share { padding: 14px 14px 16px; }
  .mc .ref-share__btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mc .ref-sh { padding: 9px 6px; font-size: 13.5px; }
  .mc .ref-nums b { font-size: 24px; }
  .mc .ref-tbl th, .mc .ref-tbl td { padding: 8px 10px; white-space: normal; }
  .mc .pt-card b { font-size: 28px; }
  .rec-pager { gap: 8px; }
  .rec-page { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .mc .section, .mc .ref-card::before, .mc .ref-card::after, .mc .ref-row:first-of-type::before,
  .mc .ref-row .copy-btn.is-done, #sponsor.is-swapped .sp-order-list, #sponsor.is-swapped .rec-pager, #sponsor.is-swapped > .card { animation: none; }
  .mc .card, .mc .pt-card, .mc .ref-nums li, .rec-tabs a, .mc .ref-row .copy-btn { transition: none; }
  .mc .card:hover, .mc .pt-card:hover, .mc .ref-nums li:hover, .rec-tabs a:hover, .mc .ref-row .copy-btn:hover { transform: none; }
}
/* ============================== /邀請朋友 ============================== */

/* ---- 右上角的 Discord 按鈕（網址在後台「社群連結」設定） ---- */
.kv-acct .is-discord { display: inline-flex; align-items: center; gap: 6px; background: #5865f2; border-color: #98a0ff; font-weight: 700; }
.kv-acct .is-discord:hover { background: #4752c4; }
.kv-acct .is-discord svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 420px) { .kv-acct .is-discord svg { display: none; } }

/* ============================== USDT 贊助教學（/sponsor/guide） ==============================
   來源檔：deploy/guide_site.css，由 deploy/patch_web_usdt_guide.py 放進 site.css（在贊助那一段的前面）。
   頁面用的是贊助頁的框架（.sponsor.sp），這裡只加教學自己的東西：四步總覽、交易所示意畫面、常見錯誤。 */
.gd .gd-intro { border-top: 4px solid var(--gold-deep); }
.gd .gd-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 16px; padding: 0; list-style: none; counter-reset: gd; }
.gd .gd-steps li { position: relative; margin: 0; padding: 44px 14px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--mist); counter-increment: gd; }
.gd .gd-steps li::before { content: counter(gd); position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #14121f; color: var(--gold); font-size: 13px; font-weight: 900; }
.gd .gd-steps b { display: block; color: var(--ink); font-size: 16px; line-height: 1.4; }
.gd .gd-steps span { display: block; margin-top: 4px; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.gd .gd-lead { padding: 12px 16px; border-left: 4px solid var(--red); border-radius: 3px; background: #fdf1f1; color: #5a1a1c; }
.gd .gd-lead strong { color: #7a1414; }
.gd .gd-note { margin-top: 14px; padding: 10px 14px; border-radius: 4px; background: var(--mist); font-size: 14px; }
.gd .gd-list { margin: 0; padding-left: 22px; }
.gd .gd-list li { padding-left: 2px; }
.gd .gd-list li + li { margin-top: 8px; }
.gd .gd-list li.gd-fee { list-style: none; margin-left: -22px; padding: 8px 12px; border-radius: 4px; background: var(--mist); font-size: 14px; }
.gd .gd-list li.gd-fee b { color: var(--ink); }
.gd a:not(.btn) { color: var(--red); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* 訂單頁的範例畫面 */
.gd .gd-shot { margin: 16px 0 0; }
.gd .gd-shot figcaption, .gd .gd-phone figcaption { margin-bottom: 6px; color: var(--ink-2); font-size: 13px; }
.gd .gd-tag { flex: none; padding: 2px 10px; border-radius: 999px; background: var(--gold); color: #2a1a00; font-size: 12.5px; font-weight: 700; white-space: nowrap; }

/* 要填的四格 */
.gd .gd-four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 4px; }
.gd .gd-four > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.gd .gd-four > .is-key { border-color: var(--red); box-shadow: inset 0 3px 0 var(--red); }
.gd .gd-four dt { color: var(--ink-2); font-size: 12.5px; letter-spacing: .06em; }
.gd .gd-four dd { margin: 2px 0 4px; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.4; }
.gd .gd-four small { display: block; color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.gd .gd-four small b { color: var(--red); }

/* 各交易所：一家一格，點開看步驟 */
.gd .gd-ex { margin-top: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.gd .gd-ex > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 14px 44px 14px 18px; cursor: pointer; list-style: none; position: relative; }
.gd .gd-ex > summary::-webkit-details-marker { display: none; }
.gd .gd-ex > summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .15s; }
.gd .gd-ex[open] > summary::after { margin-top: -2px; transform: rotate(-135deg); }
.gd .gd-ex > summary:focus-visible, .gd .gd-q > summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.gd .gd-ex > summary b { color: var(--ink); font-size: 17px; }
.gd .gd-ex > summary span { color: var(--ink-2); font-size: 13.5px; }
.gd .gd-ex[open] > summary { border-bottom: 1px solid var(--line); background: var(--mist); }
.gd .gd-ex__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; padding: 18px; }
.gd .gd-ex__body--one { grid-template-columns: 1fr; }

/* 交易所的示意畫面（簡化的手機表單，只標出要填的幾格） */
.gd .gd-phone { margin: 0; }
.gd .gd-phone dl { margin: 0; padding: 14px; border-radius: 14px; background: #14121f; }
.gd .gd-phone dl > div + div { margin-top: 10px; }
.gd .gd-phone dt { margin-bottom: 4px; color: #b8b2d6; font-size: 12px; }
.gd .gd-phone dd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 9px 12px; border: 1px solid #2f2a45; border-radius: 8px; background: #1f1b30; }
.gd .gd-phone dd span { min-width: 0; color: #fff; font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
.gd .gd-phone dd em { flex: none; color: var(--gold); font-size: 12.5px; font-style: normal; font-weight: 700; }
.gd .gd-phone .is-key dd { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }

/* 常見錯誤、常見問題、最下面的按鈕 */
.gd .gd-warn { border-top: 4px solid var(--red); }
.gd .gd-warn .sp-no { background: var(--red); color: #fff; }
.gd .gd-miss { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gd .gd-miss > div { padding: 14px 16px; border-radius: 6px; background: #fdf1f1; }
.gd .gd-miss b { display: block; margin-bottom: 4px; color: #7a1414; font-size: 16px; }
.gd .gd-miss p { color: #5a3a3b; font-size: 14.5px; }
.gd .gd-q { border-top: 1px solid var(--line); }
.gd .gd-q:last-of-type { border-bottom: 1px solid var(--line); }
.gd .gd-q > summary { padding: 12px 4px; color: var(--ink); font-weight: 700; cursor: pointer; }
.gd .gd-q > p { padding: 0 4px 14px 22px; }
.gd .gd-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
/* 贊助頁與訂單頁上通往這一頁的那一行 */
.sp .sp-guide { margin-top: 14px; font-size: 14.5px; }
.sp .sp-guide a { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 820px) {
  .gd .gd-steps, .gd .gd-four { grid-template-columns: repeat(2, 1fr); }
  .gd .gd-ex__body { grid-template-columns: 1fr; }
  .gd .gd-phone { max-width: 360px; }
  .gd .gd-miss { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .gd .gd-steps, .gd .gd-four { grid-template-columns: 1fr; }
  .gd .gd-steps li { padding: 12px 12px 12px 48px; }
  .gd .gd-steps li::before { top: 14px; }
}
@media (prefers-reduced-motion: reduce) { .gd .gd-ex > summary::after { transition: none; } }

/* ============================== 贊助（/sponsor、訂單頁、會員中心的贊助紀錄） ==============================
   版型取樣自 H5 模板的儲值頁：通道卡片列 → 金額輸入＋推薦金額 → 確認支付 → 訂單頁（收款資訊＋複製、
   回報、進度）。顏色、字體、卡片與按鈕沿用上面的變數；選到的通道卡和收款資訊卡是星空谷自己的深色星空，
   星星會閃、偶爾有流星劃過（.sp-sky）。類別都以 sp- 開頭。 */
.sp { --sp-night: #14121f; --sp-night-2: #2a1f55; --sp-lav: #b8b2d6; --sp-gold-soft: #fff6e2; }
.sp .sp-flow { display: block; }
.sp .sp-block { margin-bottom: 18px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.sp .sp-block h2::before { content: none; }
.sp .sp-no { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sp-night); color: var(--gold); font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }
.sp .sp-closed { margin-top: 14px; padding: 11px 16px; border-left: 4px solid var(--gold); border-radius: 3px; background: var(--sp-gold-soft); color: #6b4a08; }

/* ---- 星空：閃爍的星星（i）和流星（b）。只有深色的卡片才看得到 ---- */
.sp-sky { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .35s; }
.sp-type.is-on .sp-sky, .sp-ticket .sp-sky { opacity: 1; }
.sp-sky i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px rgba(255, 255, 255, .75); animation: sp-twinkle 2.8s ease-in-out infinite; }
.sp-sky i:nth-child(1) { left: 7%; top: 24%; animation-delay: -.3s; }
.sp-sky i:nth-child(2) { left: 19%; top: 70%; width: 2px; height: 2px; animation-delay: -1.4s; animation-duration: 3.6s; }
.sp-sky i:nth-child(3) { left: 38%; top: 14%; width: 2px; height: 2px; animation-delay: -2.1s; }
.sp-sky i:nth-child(4) { left: 52%; top: 58%; animation-delay: -.9s; animation-duration: 2.2s; background: #ffe7b0; box-shadow: 0 0 7px 1px rgba(255, 215, 130, .8); }
.sp-sky i:nth-child(5) { left: 68%; top: 22%; width: 2px; height: 2px; animation-delay: -1.8s; animation-duration: 3.2s; }
.sp-sky i:nth-child(6) { left: 83%; top: 66%; animation-delay: -.5s; animation-duration: 4s; background: #d9d2ff; box-shadow: 0 0 6px 1px rgba(200, 190, 255, .8); }
.sp-sky i:nth-child(7) { left: 93%; top: 30%; width: 2px; height: 2px; animation-delay: -2.6s; }
@keyframes sp-twinkle { 0%, 100% { opacity: .12; transform: scale(.55); } 50% { opacity: 1; transform: scale(1.3); } }
/* 流星：亮的那一頭在左下，尾巴往右上淡出；沿著自己的方向滑過去 */
.sp-sky b { position: absolute; width: 92px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #fff, rgba(255, 244, 214, .7) 18%, rgba(255, 255, 255, 0)); filter: drop-shadow(0 0 4px rgba(255, 240, 200, .9)); opacity: 0; transform: rotate(-32deg) translateX(0); animation: sp-meteor 7s linear infinite; }
.sp-sky b:nth-of-type(1) { left: 62%; top: -6%; animation-delay: .6s; }
.sp-sky b:nth-of-type(2) { left: 96%; top: 6%; width: 120px; animation-delay: 3.1s; animation-duration: 9s; }
.sp-sky b:nth-of-type(3) { left: 34%; top: -10%; width: 70px; animation-delay: 5.4s; animation-duration: 8s; }
@keyframes sp-meteor {
  0% { opacity: 0; transform: rotate(-32deg) translateX(0); }
  2% { opacity: 1; }
  11% { opacity: 1; }
  15%, 100% { opacity: 0; transform: rotate(-32deg) translateX(-460px); }
}

/* ---- 1. 通道卡片：沒選的是白卡，選到的變成星空 ---- */
.sp-types { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sp-type { position: relative; display: grid; grid-template-columns: 54px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; min-height: 112px; padding: 26px 20px 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.sp-type:hover { border-color: #b9b3cf; transform: translateY(-1px); }
.sp-type:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.sp-type__icon { position: relative; grid-row: 1 / span 2; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--mist); }
.sp-type__icon svg { width: 30px; height: 30px; fill: var(--ink); }
.sp-type__icon svg .cut { fill: var(--mist); }
.sp-type__title { position: relative; align-self: end; font-size: 19px; font-weight: 900; line-height: 1.3; }
.sp-type__sub { position: relative; align-self: start; color: var(--ink-2); font-size: 13.5px; }
.sp-type__chip { position: absolute; right: 0; top: 0; z-index: 1; padding: 2px 12px 3px 14px; border-bottom-left-radius: 10px; background: var(--ink); color: #fff; font-size: 12px; letter-spacing: .08em; }
.sp-type__chip--gold { background: var(--gold-deep); }
.sp-type.is-on { border-color: var(--gold); color: #fff; box-shadow: 0 0 0 2px rgba(243, 165, 29, .35), 0 10px 24px rgba(20, 18, 31, .22);
  background: radial-gradient(120% 90% at 100% 0%, rgba(243, 165, 29, .14), transparent 60%), linear-gradient(135deg, var(--sp-night) 0%, var(--sp-night-2) 100%); }
.sp-type.is-on .sp-type__sub { color: var(--sp-lav); }
/* 通道的主打（USDT：到帳自動上分、加碼回饋） */
.sp-type__perks { position: relative; grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.sp-type__perks i { padding: 1px 10px 2px; border-radius: 999px; background: #e7f6ee; color: #14532d; font-size: 12px; font-style: normal; font-weight: 700; white-space: nowrap; }
.sp-type__perks i.is-gold { background: var(--sp-gold-soft); color: #7a5200; }
.sp-type.is-on .sp-type__perks i { background: rgba(120, 220, 160, .18); color: #9ff0c0; }
.sp-type.is-on .sp-type__perks i.is-gold { background: rgba(243, 165, 29, .2); color: #ffd98a; }
.sp-type.is-on .sp-type__icon { background: var(--gold); }
.sp-type.is-on .sp-type__icon svg { fill: var(--sp-night); }
.sp-type.is-on .sp-type__icon svg .cut { fill: var(--gold); }
.sp-type.is-on .sp-type__chip { background: var(--gold); color: var(--sp-night); font-weight: 700; }
.sp-type.is-off { cursor: not-allowed; opacity: .6; }
.sp-type.is-off:hover { border-color: var(--line); transform: none; }
.sp-type.is-off .sp-type__chip { background: #8b8894; }

/* ---- 2. 金額：先自己輸入，下面是推薦金額 ---- */
.sp-amount { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 16px; border: 1px solid #c9c5d6; border-radius: 6px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.sp-amount:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(243, 165, 29, .4); }
.sp-amount__unit { color: var(--ink-2); font-size: 17px; font-weight: 700; }
.sp-amount input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--ink); font: 900 26px/1 var(--font); font-variant-numeric: tabular-nums; }
.sp-amount input::placeholder { color: #a6a2b3; font-size: 16px; font-weight: 400; }
.sp-amount__clear { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--mist); }
.sp-amount__clear svg { width: 14px; height: 14px; fill: none; stroke: var(--ink-2); stroke-width: 2.5; stroke-linecap: round; }
.sp .sp-range { margin-top: 6px; color: var(--ink-2); font-size: 13.5px; }
.sp .sp-err { margin-top: 4px; color: var(--red); font-size: 13.5px; font-weight: 500; }
.sp .sp-err:empty { display: none; }
.sp-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.sp-quick__item { position: relative; display: grid; gap: 1px; padding: 20px 6px 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); text-align: center; font-variant-numeric: tabular-nums; overflow: hidden; transition: border-color .15s, background .15s; }
.sp-quick__item b { font-size: 21px; font-weight: 900; line-height: 1.3; }
.sp-quick__item b::before { content: "NT$ "; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.sp-quick__item small { color: var(--ink-2); font-size: 12.5px; }
.sp-quick__item em { position: absolute; left: 0; top: 0; padding: 1px 10px 2px 9px; border-bottom-right-radius: 9px; background: var(--red); color: #fff; font-size: 11.5px; font-style: normal; font-weight: 700; letter-spacing: .04em; }
.sp-quick__item:nth-child(even) em { background: var(--gold-deep); }
.sp-quick__item:hover { border-color: #b9b3cf; }
.sp-quick__item.is-on { border-color: var(--gold-deep); background: var(--sp-gold-soft); box-shadow: inset 0 0 0 1px var(--gold-deep); }
.sp-quick__item.is-on small { color: #8a5a06; font-weight: 700; }

/* ---- 3. 確認支付 ---- */
.sp-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--mist); }
.sp-summary > div { display: grid; gap: 2px; padding: 12px 16px; border-left: 1px solid var(--line); }
.sp-summary > div:first-child { border-left: 0; }
.sp-summary span { color: var(--ink-2); font-size: 13px; }
.sp-summary b { color: var(--ink); font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.sp-summary b span { color: inherit; font: inherit; }
.sp-summary .is-points b { color: var(--red); }
.sp .sp-usdt-line { margin: -6px 0 16px; font-size: 14px; }
.sp .sp-usdt-line b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sp-submit { width: 100%; min-height: 56px; border-color: var(--gold-deep); background: linear-gradient(#f7b53a, var(--gold-deep)); color: #2a1a00; font-size: 18px; font-weight: 900; letter-spacing: .08em; }
.sp-submit:hover { border-color: var(--red); background: var(--red); color: #fff; }
.sp-submit:disabled { border-color: #d7d3e1; background: #e6e3ee; color: #9b97a8; cursor: not-allowed; }
.sp .sp-after { margin-top: 10px; font-size: 13.5px; text-align: center; }

/* ---- 會員中心的「我的點數」：星空點是深色星空卡，楓葉點數是白卡 ---- */
.pt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pt-card { display: grid; gap: 2px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pt-card span { color: var(--ink-2); font-size: 14px; }
.pt-card b { color: var(--ink); font-size: 30px; font-weight: 900; line-height: 1.25; font-variant-numeric: tabular-nums; }
.pt-card em { color: #7a5200; font-size: 13px; font-style: normal; font-variant-numeric: tabular-nums; }
.pt-card--nx { border-color: var(--gold); color: #fff; background: radial-gradient(120% 90% at 100% 0%, rgba(243, 165, 29, .16), transparent 60%), linear-gradient(135deg, #14121f 0%, #2a1f55 100%); }
.pt-card--nx span { color: #b8b2d6; }
.pt-card--nx b { color: var(--gold); }
.pt-card--nx em { color: #ffd98a; }
@media (max-width: 560px) { .pt-cards { grid-template-columns: 1fr; } .pt-card b { font-size: 26px; } }
/* 三種餘額並排（楓幣、星空點、楓葉點數）。數字最長是 2,147,483,647，三欄時字要小一點才放得下；窄於 860 就改成一欄 */
.pt-cards.pt-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pt-cards--3 .pt-card { min-width: 0; }
.pt-cards--3 .pt-card b, .mc .pt-cards--3 .pt-card b { font-size: clamp(20px, 2.3vw, 27px); white-space: nowrap; }
.pt-card--mp { border-color: #f0c9b4; }
.mc .pt-card.pt-card--mp { background: linear-gradient(135deg, #fff 0%, #ffeee4 100%); }
.pt-card--mp b { color: #c2491d; }
@media (max-width: 860px) { .pt-cards.pt-cards--3 { grid-template-columns: 1fr; } .pt-cards--3 .pt-card b, .mc .pt-cards--3 .pt-card b { font-size: 26px; } }

/* 區塊標題旁的小註記（贊助紀錄：近 30 天） */
.sec-note { margin-left: 10px; color: var(--ink-2); font-size: 13.5px; font-weight: 500; letter-spacing: 0; }
/* 會員中心「我的角色」的名次 */
.my-rank { font-weight: 700; font-variant-numeric: tabular-nums; }
.my-rank--top { display: inline-block; padding: 1px 12px; border-radius: 999px; background: linear-gradient(#ffd067, #e07c0c); color: #2b1500; }
.my-rank--top:hover { text-decoration: none; filter: brightness(1.06); }
.my-rank--none { color: #8b8894; font-size: 13.5px; }

/* ---- 訂單清單（贊助頁上方的未處理訂單、會員中心的贊助紀錄） ---- */
.sp-order-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.sponsor .sp-order-list { padding: 0; list-style: none; }
.sp-order, .sponsor .sp-order { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 14px 18px; border-top: 1px solid #eceaf2; }
.sp-order:first-child { border-top: 0; }
.sp-order__main { display: grid; gap: 1px; min-width: 0; color: inherit; }
.sp-order__main:hover { text-decoration: none; }
.sp-order__main:hover b { color: var(--red); }
.sp-order__main b { color: var(--ink); font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; }
.sp-order__main span { color: var(--ink-2); font-size: 14px; }
.sp-order__main time { color: #8b8894; font-size: 12.5px; }
.sp-order__side { display: grid; justify-items: end; align-content: center; gap: 4px; flex: none; text-align: right; font-size: 13.5px; }
.sp-order__side small { color: var(--ink-2); font-size: 12.5px; }
.sp-badge { display: inline-block; padding: 2px 12px; border-radius: 999px; background: #ecebf2; color: #55525f; font-size: 13px; font-weight: 700; white-space: nowrap; }
.sp-badge.is-pending { background: #fff1d0; color: #7a5200; }
.sp-badge.is-reported { background: #e1effa; color: #124a73; }
.sp-badge.is-success { background: #e7f6ee; color: #14532d; }
.sp-badge.is-failed { background: #fdecec; color: #7a1414; }

/* ---- 訂單頁：狀態、進度、收款資訊 ---- */
.sp .sp-state { border-top: 4px solid var(--gold-deep); }
.sp .sp-state.is-success { border-top-color: var(--ok); }
.sp .sp-state.is-failed { border-top-color: var(--red); }
.sp .sp-state.is-expired, .sp .sp-state.is-cancelled { border-top-color: #8b8894; }
.sp .sp-state.is-reported { border-top-color: var(--tag-event); }
.sp-state__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.sp .sp-state__head h2 { margin: 0; }
.sp .sp-state__head h2::before { content: none; }
.sp .sp-track { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 6px; padding: 0; list-style: none; counter-reset: sp-track; }
.sp .sp-track li { position: relative; margin: 0; padding: 34px 6px 0; text-align: center; counter-increment: sp-track; }
.sp .sp-track li::before { content: counter(sp-track); position: absolute; left: 50%; top: 0; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; margin-left: -13px; border: 2px solid #c9c5d6; border-radius: 50%; background: #fff; color: #8b8894; font-size: 13px; font-weight: 900; }
.sp .sp-track li::after { content: ""; position: absolute; left: -50%; right: 50%; top: 12px; height: 2px; background: #dcd8e6; }
.sp .sp-track li:first-child::after { content: none; }
.sp .sp-track li.is-done::before { border-color: var(--ok); background: var(--ok); color: #fff; }
.sp .sp-track li.is-done::after, .sp .sp-track li.is-now::after { background: var(--ok); }
.sp .sp-track li.is-now::before { border-color: var(--gold-deep); background: var(--gold); color: var(--sp-night); box-shadow: 0 0 0 4px rgba(243, 165, 29, .25); }
.sp .sp-track b { display: block; color: var(--ink); font-size: 14.5px; line-height: 1.4; }
.sp .sp-track span { display: block; color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.sp-kv { margin: 14px 0 0; border-top: 1px solid #eceaf2; }
.sp-kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #eceaf2; }
.sp-kv dt { flex: none; color: var(--ink-2); }
.sp-kv dd { margin: 0; min-width: 0; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.sp-kv dd b { color: var(--red); font-size: 20px; font-weight: 900; }
.sp-break { word-break: break-all; }
.sp .sp-result { margin-top: 14px; padding: 11px 16px; border-left: 4px solid var(--ok); border-radius: 3px; background: #e7f6ee; color: #14532d; }
.sp .sp-result strong { color: inherit; }
.sp .sp-state.is-reported .sp-result { border-color: var(--tag-event); background: #e1effa; color: #124a73; }
.sp .sp-state.is-expired .sp-result { border-color: #8b8894; background: var(--mist); color: var(--ink-2); }
.sp .sp-result.is-bad { border-color: var(--red); background: #fdecec; color: #7a1414; }
.sp .sp-timer { margin-bottom: 12px; padding: 9px 16px; border-radius: 6px; background: var(--sp-gold-soft); color: #6b4a08; font-size: 14.5px; }
.sp .sp-timer b { color: #a11c20; font-size: 17px; font-variant-numeric: tabular-nums; }
.sp .sp-timer.is-over { background: #fdecec; color: #7a1414; }

.sp-ticket { position: relative; border-radius: 10px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(243, 165, 29, .16), transparent 60%), linear-gradient(135deg, var(--sp-night) 0%, var(--sp-night-2) 100%); }
.sp-ticket__head { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 14px 22px; border-bottom: 1px dashed rgba(184, 178, 214, .35); }
.sp-ticket__head span { font-size: 17px; font-weight: 900; letter-spacing: .06em; }
.sp-ticket__head em { color: var(--gold); font-size: 13.5px; font-style: normal; }
.sp-ticket__rows { position: relative; margin: 0; padding: 6px 22px 12px; }
.sp-ticket__rows > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(184, 178, 214, .16); }
.sp-ticket__rows > div:last-child { border-bottom: 0; }
.sp-ticket__rows dt { color: var(--sp-lav); font-size: 14px; }
.sp-ticket__rows dd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0; min-width: 0; }
.sp-ticket__rows dd > span { min-width: 0; font-size: 16px; }
.sp-ticket__rows dd > .sp-mono { font: 700 21px/1.35 Consolas, "Cascadia Mono", monospace; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.sp-ticket__rows dd > .sp-mono--addr { font-size: 15px; letter-spacing: 0; word-break: break-all; }
.sp-ticket__rows .is-amount .sp-mono { color: var(--gold); }
.sp-copy { flex: none; min-height: 32px; padding: 3px 16px; border: 1px solid var(--gold); border-radius: 999px; background: transparent; color: var(--gold); font-size: 13.5px; font-weight: 700; transition: background .15s, color .15s; }
.sp-copy:hover, .sp-copy.is-done { background: var(--gold); color: var(--sp-night); }

.sp .sp-payer { margin-top: 16px; padding: 14px 16px 6px; border: 1px dashed var(--gold-deep); border-radius: 12px; }
.sp .sp-payer__why { margin: 0 0 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.sp .sp-payer .field { margin-bottom: 10px; }
.sp .sp-hints, .sp-dialog .sp-hints { margin: 14px 0 0; padding: 0; list-style: none; }
.sp .sp-hints li, .sp-dialog .sp-hints li { position: relative; margin: 0; padding: 3px 0 3px 18px; color: var(--ink-2); font-size: 14.5px; }
.sp .sp-hints li::before, .sp-dialog .sp-hints li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 6px; height: 6px; background: var(--gold-deep); transform: rotate(45deg); }
.sp .sp-hints li.is-red { color: #a11c20; }
.sp .sp-hints li.is-red::before { background: var(--red); }
.sp .sp-hints li.is-red strong { color: #7a1414; }
/* 自動核對進行中：一個會呼吸的小綠點 */
.sp-live { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--ok); vertical-align: 1px; animation: sp-live 1.5s ease-out infinite; }
@keyframes sp-live { 0% { box-shadow: 0 0 0 0 rgba(29, 138, 78, .55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(29, 138, 78, 0); } }
/* 回報的憑證（後五碼／交易編號）是選填的，放在按鈕下面 */
.sp-proof { margin-top: 18px; }
.sp-proof label small { margin-left: 8px; padding: 1px 9px 2px; border-radius: 999px; background: var(--mist); color: var(--ink-2); font-size: 12px; font-weight: 500; vertical-align: 1px; }
.sp-cancel { margin-top: 12px; text-align: center; }
.sp-link { padding: 4px 8px; border: 0; background: none; color: var(--ink-2); font-size: 14px; text-decoration: underline; }
.sp-link:hover { color: var(--red); }
.sp .sp-foot p { margin-top: 14px; font-size: 13.5px; text-align: center; }

/* ---- 對話框與提示 ---- */
.sp-overlay { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(11, 10, 18, .62); }
.sp-dialog { width: min(440px, 100%); padding: 24px 26px 22px; border-top: 4px solid var(--gold-deep); border-radius: 8px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.sp-dialog h3 { margin-bottom: 8px; font-size: 20px; font-weight: 900; }
.sp-dialog .sp-hints { margin: 0 0 18px; }
.sp-dialog .sp-hints strong { color: var(--ink); }
.sp-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sp-dialog__actions .btn { padding-left: 10px; padding-right: 10px; }
.sp-toast { position: fixed; left: 50%; bottom: 34px; z-index: 310; padding: 9px 20px; border-radius: 999px; background: #14121f; color: #fff; font-size: 14.5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s; }
.sp-toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---- 動線：做完一步自動帶到下一步。is-now 目前這一步、is-done 做完了、is-wait 還沒輪到（只是淡一點，照樣能操作） ---- */
.sp .sp-block { scroll-margin-top: calc(var(--menu-h) + 16px); transition: opacity .3s, border-color .3s, box-shadow .3s; }
.sp-flow.is-live .sp-block.is-wait { opacity: .56; }
.sp-flow.is-live .sp-block.is-wait:hover, .sp-flow.is-live .sp-block.is-wait:focus-within { opacity: 1; }
.sp-flow.is-live .sp-block.is-now { border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(243, 165, 29, .16), 0 12px 30px rgba(20, 18, 31, .08); }
.sp .sp-block.is-arrive { animation: sp-arrive .75s ease-out; }
@keyframes sp-arrive { 0% { box-shadow: 0 0 0 0 rgba(243, 165, 29, .6); } 55% { box-shadow: 0 0 0 11px rgba(243, 165, 29, .1); } }
.sp .sp-no { position: relative; transition: background .25s; }
.sp .sp-block.is-done .sp-no { background: var(--ok); font-size: 0; }
/* 勾勾用絕對定位放在圓的正中間（稍微偏上一點，勾的重心才會落在圓心） */
.sp .sp-block.is-done .sp-no::after { content: ""; position: absolute; left: 50%; top: 45%; box-sizing: border-box; width: 8px; height: 14px; border: solid #fff; border-width: 0 3px 3px 0; transform: translate(-50%, -50%) rotate(45deg); }
.sp .sp-no.is-pop { animation: sp-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes sp-pop { 0% { transform: scale(.4); box-shadow: 0 0 0 0 rgba(29, 138, 78, .55); } 60% { transform: scale(1.28); } 100% { transform: scale(1); box-shadow: 0 0 0 12px rgba(29, 138, 78, 0); } }
/* 選到卡片、點到推薦金額：彈一下，卡片上再閃一圈金光 */
.sp-type.is-picked, .sp-quick__item.is-picked { animation: sp-picked .45s ease-out; }
@keyframes sp-picked { 0% { transform: scale(.965); } 45% { transform: scale(1.025); } 100% { transform: scale(1); } }
.sp-type.is-picked::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 50% 50%, rgba(255, 231, 176, .6), transparent 62%); pointer-events: none; animation: sp-flash .55s ease-out forwards; }
@keyframes sp-flash { from { opacity: 1; transform: scale(.35); } to { opacity: 0; transform: scale(1.7); } }
.sp .is-shake { animation: sp-shake .36s; }
@keyframes sp-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
/* 第三步：金額和點數都有了，確認區亮起來，按鈕上有一道光掃過 */
.sp-summary { transition: border-color .3s, background .3s, box-shadow .3s; }
.sp-summary.is-ready { border-color: var(--gold-deep); background: var(--sp-gold-soft); box-shadow: inset 0 0 0 1px var(--gold-deep); }
.sp-summary.is-ready > div { border-left-color: #f0d9a6; }
.sp-submit { position: relative; overflow: hidden; }
.sp-flow.is-live .sp-block.is-now .sp-submit:not(:disabled)::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .5) 50%, transparent 62%); transform: translateX(-100%); pointer-events: none; animation: sp-sheen 2.6s ease-in-out infinite; }
@keyframes sp-sheen { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
/* 按下確認支付：正在準備收款資訊 */
.sp-wait__box { position: relative; display: grid; justify-items: center; gap: 6px; width: min(320px, 100%); padding: 34px 24px 28px; border-radius: 12px; color: #fff; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); animation: sp-rise .25s ease-out;
  background: radial-gradient(120% 90% at 100% 0%, rgba(243, 165, 29, .16), transparent 60%), linear-gradient(135deg, #14121f 0%, #2a1f55 100%); }
.sp-wait .sp-sky { opacity: 1; }
.sp-wait__ring { position: relative; width: 46px; height: 46px; margin-bottom: 10px; border: 3px solid rgba(255, 255, 255, .18); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
.sp-wait__box b { position: relative; font-size: 18px; font-weight: 900; letter-spacing: .04em; }
.sp-wait__box small { position: relative; color: #b8b2d6; font-size: 13.5px; }
@keyframes sp-rise { from { opacity: 0; transform: translateY(10px); } }

/* ---- 進度的動畫：訂單頁的四個節點依序亮起、目前這一步有光暈往外擴、往下一步的線上有光在跑 ---- */
/* 動畫只在 .is-play 的時候播（訂單頁的程式一載入就加上）。data-from="N"：前 N 個節點上次已經亮過了，
   這次不重播，只從第 N+1 個開始跑——狀態更新、頁面自己重新整理的時候，進度是接著上次的位置往下走，不是從頭來。 */
.sp .sp-track li { --d: 0s; }
.sp .sp-track li:nth-child(2) { --d: .45s; }
.sp .sp-track li:nth-child(3) { --d: .8s; }
.sp .sp-track li:nth-child(4) { --d: 1.15s; }
.sp .sp-track[data-from="1"] li:nth-child(2), .sp .sp-track[data-from="2"] li:nth-child(3), .sp .sp-track[data-from="3"] li:nth-child(4) { --d: .35s; }
.sp .sp-track[data-from="1"] li:nth-child(3), .sp .sp-track[data-from="2"] li:nth-child(4) { --d: .7s; }
.sp .sp-track[data-from="1"] li:nth-child(4) { --d: 1.05s; }
.sp .sp-track.is-play li.is-done::after, .sp .sp-track.is-play li.is-now::after { transform-origin: left center; animation: sp-line .4s ease-out calc(var(--d) - .32s) both; }
.sp .sp-track.is-play li.is-done::before { animation: sp-node .4s ease-out var(--d) both; }
.sp .sp-track.is-play li.is-now::before { animation: sp-node .4s ease-out var(--d) both, sp-ripple 1.9s ease-out calc(var(--d) + .4s) infinite; }
.sp .sp-track.is-play li.is-now + li::after { background: linear-gradient(90deg, #dcd8e6 0%, #dcd8e6 30%, var(--gold) 50%, #dcd8e6 70%, #dcd8e6 100%) 0 0 / 220% 100%; animation: sp-glint 1.7s linear infinite; }
.sp .sp-state.is-success .sp-track.is-play li:last-child::before { animation: sp-node .4s ease-out var(--d) both, sp-burst 1s ease-out calc(var(--d) + .45s) 2; }
/* 上次已經亮過的節點：線和圓點直接是完成的樣子；正在進行的那一個只留呼吸的光圈 */
.sp .sp-track[data-from="1"] li:nth-child(-n+1)::after, .sp .sp-track[data-from="2"] li:nth-child(-n+2)::after,
.sp .sp-track[data-from="3"] li:nth-child(-n+3)::after, .sp .sp-track[data-from="4"] li::after { animation: none !important; }
.sp .sp-track[data-from="1"] li:nth-child(-n+1).is-done::before, .sp .sp-track[data-from="2"] li:nth-child(-n+2).is-done::before,
.sp .sp-track[data-from="3"] li:nth-child(-n+3).is-done::before, .sp .sp-track[data-from="4"] li.is-done::before { animation: none !important; }
.sp .sp-track[data-from="2"] li:nth-child(2).is-now::before, .sp .sp-track[data-from="3"] li:nth-child(3).is-now::before { animation: sp-ripple 1.9s ease-out infinite !important; }
.sp .sp-track[data-from] li.is-now + li::after { animation: sp-glint 1.7s linear infinite; }
@keyframes sp-line { from { transform: scaleX(0); } }
@keyframes sp-node { 0% { transform: scale(.3); opacity: .2; } 70% { transform: scale(1.22); opacity: 1; } }
@keyframes sp-ripple { 0% { box-shadow: 0 0 0 0 rgba(243, 165, 29, .55); } 80%, 100% { box-shadow: 0 0 0 12px rgba(243, 165, 29, 0); } }
@keyframes sp-burst { 0% { box-shadow: 0 0 0 0 rgba(29, 138, 78, .6); } 100% { box-shadow: 0 0 0 16px rgba(29, 138, 78, 0); } }
@keyframes sp-glint { from { background-position: 100% 0; } to { background-position: -120% 0; } }
/* 還在進行中的狀態：標籤前面有一個會呼吸的小點 */
.sp-badge.is-pending::before, .sp-badge.is-reported::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; animation: sp-blink 1.4s ease-in-out infinite; }
@keyframes sp-blink { 50% { opacity: .25; transform: scale(.7); } }
/* 紀錄清單：每一筆下面一條四格的小進度（建立 → 回報 → 核對 → 發放），進行中的那一格有光在跑 */
.sp-order { animation: sp-rise .4s ease-out both; }
.sp-order:nth-child(2) { animation-delay: .06s; }
.sp-order:nth-child(3) { animation-delay: .12s; }
.sp-order:nth-child(4) { animation-delay: .18s; }
.sp-order:nth-child(n+5) { animation-delay: .24s; }
.sp-order__main .sp-mini, .sp-mini { display: flex; gap: 4px; width: min(210px, 100%); margin-top: 7px; }
.sp-mini i { flex: 1; height: 4px; border-radius: 2px; background: #e4e1ec; }
.sp-mini.is-pending i:nth-child(1), .sp-mini.is-reported i:nth-child(-n+2), .sp-mini.is-success i { background: var(--ok); }
.sp-mini.is-pending i:nth-child(2), .sp-mini.is-reported i:nth-child(3) { background: linear-gradient(90deg, #f3dcae 0%, #f3dcae 25%, var(--gold-deep) 50%, #f3dcae 75%, #f3dcae 100%) 0 0 / 220% 100%; animation: sp-glint 1.5s linear infinite; }
.sp-mini.is-success i { transform-origin: left center; animation: sp-line .35s ease-out both; }
.sp-mini.is-success i:nth-child(2) { animation-delay: .15s; }
.sp-mini.is-success i:nth-child(3) { animation-delay: .3s; }
.sp-mini.is-success i:nth-child(4) { animation-delay: .45s; }
/* 訂單頁：收款資訊卡浮上來，一道光掃過 */
.sp-ticket { animation: sp-rise .5s ease-out .1s both; }
.sp-ticket::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .13) 50%, transparent 60%); transform: translateX(-100%); pointer-events: none; animation: sp-sheen-once 1.2s ease-out .5s 1 both; }
@keyframes sp-sheen-once { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---- 訂單頁：QR Code（USDT 是收款地址；ATM 是台灣Pay 的轉帳碼）。白底固定不變，才掃得到 ---- */
.sp-ticket__split { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.sp-qr { position: relative; display: grid; justify-items: center; gap: 9px; padding: 16px 22px 16px 4px; text-align: center; }
.sp-qr__box { width: 172px; padding: 7px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 2px rgba(243, 165, 29, .75), 0 10px 24px rgba(0, 0, 0, .4); }
.sp-qr__svg { display: block; width: 100%; height: auto; }
.sp-qr small { color: #b8b2d6; font-size: 12.5px; line-height: 1.55; }

@media (max-width: 760px) {
  .sp-ticket__split { grid-template-columns: 1fr; }
  .sp-qr { padding: 16px 22px 20px; border-top: 1px dashed rgba(184, 178, 214, .35); }
  .sp-qr__box { width: min(200px, 70%); }
  .sp .sp-block { padding: 20px 16px; }
  .sp-types { gap: 10px; }
  .sp-type { grid-template-columns: 1fr; justify-items: start; row-gap: 6px; min-height: 0; padding: 34px 14px 16px; }
  .sp-type__icon { grid-row: auto; width: 44px; height: 44px; }
  .sp-type__icon svg { width: 24px; height: 24px; }
  .sp-type__title { font-size: 17px; }
  .sp-type__perks { grid-column: 1; }
  .sp-quick { grid-template-columns: repeat(2, 1fr); }
  .sp-summary { grid-template-columns: 1fr; }
  .sp-summary > div { grid-template-columns: 1fr auto; align-items: center; border-left: 0; border-top: 1px solid var(--line); padding: 9px 14px; }
  .sp-summary > div:first-child { border-top: 0; }
  .sp-ticket__rows > div { grid-template-columns: 1fr; gap: 2px; }
  .sp-ticket__rows dd > .sp-mono { font-size: 19px; }
  .sp-ticket__rows dd > .sp-mono--addr { font-size: 14px; }
  .sp .sp-track b { font-size: 13px; }
  .sp .sp-track span { font-size: 11.5px; }
  .sp-order, .sponsor .sp-order { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-sky i { animation: none; opacity: .7; }
  .sp-sky b { animation: none; opacity: 0; }
  .sp-type, .sp-toast, .sp .sp-block, .sp-summary { transition: none; }
  .sp .sp-block, .sp .sp-no, .sp-type, .sp-quick__item, .sp .is-shake, .sp-wait__box, .sp-live, .sp-order, .sp-ticket, .sp-mini i,
  .sp .sp-track li::before, .sp .sp-track li::after, .sp-badge::before { animation: none !important; }
  .sp-type.is-picked::after, .sp-ticket::after, .sp-submit::before { content: none !important; }
}

/* ---- 通道回饋的明細（贊助頁的合計下面、訂單頁的回饋那一格） ---- */
.sp .sp-bonus-line { margin: -4px 0 14px; color: var(--ink-2); font-size: 14px; text-align: right; }
.sp .sp-bonus-line b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sp .sp-bonus-line .is-gold, .sp .sp-bonus-note b { color: var(--gold-deep); }
.sp .sp-bonus-note { display: block; margin-top: 2px; color: var(--ink-2); font-size: 13px; font-weight: 400; }

/* ================= 換頁轉場與頁內淡入 =================
   同站換頁：舊頁淡出 0.14 秒、新頁淡入 0.26 秒（View Transitions，不支援的瀏覽器就是普通換頁）。
   主選單、頁尾、回頂按鈕換頁時留在原地不動，只換中間的內容。
   頁內出現的區塊（步驟、分頁、提示）只用透明度淡入，不改大小和位置，按鈕不會跑掉。
   作業系統開了「減少動態效果」就全部關掉。 */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 140ms ease-out both vt-fade-out; }
::view-transition-new(root) { animation: 260ms ease-in both vt-fade-in; }
::view-transition-old(site-nav), ::view-transition-new(site-nav),
::view-transition-old(site-foot), ::view-transition-new(site-foot),
::view-transition-old(site-totop), ::view-transition-new(site-totop) { animation: none; }
nav.mm { view-transition-name: site-nav; }
footer.foot { view-transition-name: site-foot; }
#totop { view-transition-name: site-totop; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }
.fade-in, [data-sp-only]:not([hidden]), .flash-wrap, .sp-payer:not([hidden]) { animation: ui-fade .24s ease-out both; }
@keyframes ui-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .fade-in, [data-sp-only]:not([hidden]), .flash-wrap, .sp-payer:not([hidden]),
  .sp-type.is-picked, .sp-quick__item.is-picked, .sp .sp-no.is-pop, .sp .sp-block.is-arrive, .sp-type.is-picked::after { animation: none !important; }
}

/* ============================== 遊戲攻略（/guide） ============================== */
.guide-list { grid-template-columns: repeat(2, 1fr); }
.guide-pick { display: flex; gap: 18px; align-items: center; color: var(--ink); transition: border-color .15s, transform .15s; }
a.guide-pick:hover { border-color: var(--red); text-decoration: none; transform: translateY(-2px); }
.guide-pick img { flex: none; width: 120px; height: auto; image-rendering: pixelated; }
.guide-pick.is-soon { opacity: .7; }
.guide-go { display: inline-block; margin-top: 10px; color: var(--red); font-weight: 700; }

.guide-lead ul { padding-left: 1.2em; list-style: disc; color: var(--ink-2); font-size: 15px; }
.guide-lead li + li { margin-top: 6px; }
.guide-lead strong, .guide-lead b { color: var(--ink); }
.guide-stages { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; margin: 18px 0 4px; }
.guide-stages figure { margin: 0; text-align: center; }
.guide-stages img { display: block; height: 56px; width: auto; margin: 0 auto; image-rendering: pixelated; }
.guide-stages figcaption { color: var(--ink-2); font-size: 12px; font-weight: 700; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.guide-toc a { padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; background: #f6f5fa; color: var(--ink); font-size: 14px; font-weight: 700; }
.guide-toc a small { margin-left: 6px; color: var(--ink-2); font-weight: 500; }
.guide-toc a:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.guide-find { display: block; margin-top: 16px; }
.guide-find input { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 15px; }
.guide-find input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(243, 165, 29, .25); }
.guide-none { margin-top: 10px; color: var(--ink-2); }

.guide .section[id] { scroll-margin-top: 96px; }
.guide-ch > h2 small { color: var(--ink-2); font-size: 15px; font-weight: 700; }
.guide-intro { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; color: var(--ink-2); font-size: 15px; }
.guide-intro img { flex: none; height: 72px; width: auto; image-rendering: pixelated; }

.gp { image-rendering: pixelated; vertical-align: middle; }
.gq { scroll-margin-top: 96px; }
.gq + .gq { margin-top: 14px; }
.gq-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.gq-head h3 { margin: 0; }
.gq-head .gp { height: 48px; width: auto; }
.gq-lv { padding: 1px 10px; border-radius: 999px; background: var(--night); color: #fff; font-size: 13px; font-weight: 700; }
.gq-after { color: var(--ink-2); font-size: 13px; }
.gq-hint { margin-top: 10px; padding: 9px 14px; border-left: 4px solid var(--gold); border-radius: 3px; background: #fff7e6; color: #6b4300; font-size: 14.5px; }
.gq-flow { display: grid; gap: 12px; margin-top: 14px; }
.gq-who, .gq-step { display: flex; gap: 14px; align-items: flex-start; }
.gq-who > div, .gq-step > div:last-child { min-width: 0; flex: 1; }
.gp-npc { flex: none; width: 64px; height: 64px; object-fit: contain; object-position: center bottom; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: #f6f5fa; }
.gq-who:not(:has(.gp-npc))::before { content: ""; flex: none; width: 64px; }
.gq-tag { display: inline-block; margin-bottom: 2px; color: var(--red); font-size: 13px; font-weight: 900; letter-spacing: .04em; }
.gq-main { color: var(--ink) !important; font-size: 15.5px !important; font-weight: 500; }
.gq-where { margin-top: 2px; color: var(--ink-2); font-size: 14px !important; }
.gq-icons { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.gq-icons .gp { height: 40px; width: auto; max-width: 72px; padding: 2px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.gq-do { padding: 12px 14px; border-radius: 6px; background: #f7f6fb; }
.gq-do .gq-step + .gq-step { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.gq-step-pics { flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gq-step-pics .gp { max-width: 64px; max-height: 64px; width: auto; height: auto; }
.gq-route { margin-top: 6px; font-size: 14px; }
.gq-route summary { cursor: pointer; color: var(--red); font-weight: 700; }
.gq-route ol { margin-top: 6px; padding-left: 1.4em; list-style: decimal; color: var(--ink-2); line-height: 1.65; }
.gq-route li + li { margin-top: 3px; }
.gq-reward { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.gq-reward .gq-tag { margin: 0 4px 0 0; }
.gq-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: #f1eff8; font-size: 13.5px; font-weight: 500; }
.gq-chip .gp { height: 24px; width: auto; }
.gq-desc { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.gq-desc summary { cursor: pointer; font-weight: 700; color: var(--ink-2); }
.gq-desc p { margin-top: 6px; white-space: pre-line; }

@media (max-width: 760px) {
  .guide-list { grid-template-columns: 1fr; }
  .guide-pick img { width: 84px; }
  .gp-npc, .gq-step-pics { width: 48px; height: auto; }
  .gq-who:not(:has(.gp-npc))::before { width: 48px; }
  .guide-intro img { height: 56px; }
}
.gq-way { margin-top: 6px; }
.gq-town { color: var(--ink) !important; font-size: 14px !important; }
.gq-town b { color: var(--red); }
.gq-way > ol { margin-top: 4px; padding-left: 1.4em; list-style: decimal; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.gq-way > ol li + li { margin-top: 3px; }
.gq-way-here { margin-top: 4px; color: var(--ok) !important; font-size: 14px !important; }
.gq-mapbox { margin-top: 6px; font-size: 14px; }
.gq-mapbox summary { cursor: pointer; color: var(--red); font-weight: 700; }
.gq-maps { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; margin-top: 8px; }
.gq-maps figure { margin: 0; }
.gq-maps figcaption { margin-top: 4px; color: var(--ink-2); font-size: 13px; }
.gq-pinbox { position: relative; display: inline-block; line-height: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #0b0a12; }
.gq-wm { width: min(480px, 100%); }
.gq-wm .gq-pinbox { display: block; }
.gq-wm .gq-pinbox img { width: 100%; height: auto; }
.gq-mini .gq-pinbox img { width: auto; height: 150px; image-rendering: pixelated; }
.gq-pin { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 3px solid #fff; border-radius: 50%; background: var(--red-glow); box-shadow: 0 0 0 3px rgba(232, 58, 58, .45), 0 2px 6px rgba(0, 0, 0, .5); animation: gqpin 1.2s ease-in-out infinite; }
.gq-pin.is-npc { width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 0; border-radius: 0; background: none; box-shadow: none; }
.gq-pin.is-npc::before { content: "★"; display: block; color: #ffd23f; font-size: 22px; line-height: 20px; text-align: center; text-shadow: 0 0 3px #000, 0 0 6px #e83a3a; }
@keyframes gqpin { 50% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .gq-pin { animation: none; } }
.gq-ui { height: 18px !important; width: auto; }
.gq-chip.is-exp { background: #eaf6ea; }
.gq-chip.is-meso { background: #fff4dc; }
.gq-chip.is-sp { background: #ece8fb; }
.gq-hops { margin-top: 4px; padding-left: 1.4em; list-style: decimal; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.gq-hop + .gq-hop { margin-top: 8px; }
.gq-hop { display: list-item; }
.gq-hop > span:first-child { display: block; }
.gq-hopmap { margin-top: 4px; }
.gq-hopmap img { display: block; height: 110px; width: auto; max-width: 100%; image-rendering: pixelated; }
.gq-hopmap .gq-pin { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-width: 2px; }
.gq-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 2px solid rgba(120, 200, 255, .9); border-radius: 50%; background: rgba(40, 120, 220, .35); }

/* ============================== 遊戲攻略：回報表單、章節標籤、練等頁 ============================== */
.guide-badge { display: inline-block; margin-left: 10px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; vertical-align: middle; }
.guide-badge.is-must { background: rgba(214, 96, 52, .14); color: #b9471b; }
.guide-badge.is-side { background: rgba(90, 120, 160, .14); color: #466; }
.guide-lead-head { display: flex; align-items: center; gap: 12px; }
.guide-lead-head .gp-npc { width: 56px; height: 56px; object-fit: contain; }
.guide-intro-text { color: var(--muted, #666); font-size: 14.5px; margin: 6px 0 0; }
.gq-job { font-size: 12px; color: #7a5a1e; background: rgba(240, 190, 80, .18); padding: 2px 8px; border-radius: 999px; }
.gq-foot { display: flex; justify-content: flex-end; margin-top: 10px; flex-wrap: wrap; }
.gq-report { border: 1px dashed rgba(0,0,0,.25); background: transparent; color: var(--muted, #666); font-size: 13px; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.gq-report:hover { color: var(--ink, #222); border-color: rgba(0,0,0,.45); }
.gq-pagefb { text-align: center; }
.gq-pagefb .gq-report { margin-top: 6px; }
.gfb { width: 100%; margin-top: 10px; padding: 14px; border: 1px solid rgba(0,0,0,.14); border-radius: 12px; background: rgba(255,255,255,.75); text-align: left; }
.gfb-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.gfb-head .gfb-what { color: var(--muted, #666); font-size: 13.5px; flex: 1; }
.gfb-close { border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted, #666); }
.gfb-row { display: block; margin: 8px 0; font-size: 13.5px; }
.gfb-row > span { display: block; margin-bottom: 4px; color: var(--muted, #666); }
.gfb select, .gfb textarea, .gfb input { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid rgba(0,0,0,.2); border-radius: 8px; font: inherit; font-size: 14px; background: #fff; }
.gfb-act { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.gfb-msg { font-size: 13px; color: var(--muted, #666); }
.gfb-msg.is-bad { color: #b9471b; }
.gfb-done { padding: 10px 4px; color: #2b7a3d; font-weight: 600; }
.lv-tips { padding-left: 22px; margin: 8px 0 14px; }
.lv-tips li { margin: 6px 0; }
.lv-tips li b { display: block; }
.lv-tips li span { color: var(--muted, #666); font-size: 14px; }
.lv-mobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 14px; margin: 8px 0 12px; }
.lv-mob { display: flex; align-items: center; gap: 10px; }
.lv-mob .gp { width: 48px; height: 48px; object-fit: contain; flex: none; }
.lv-mob b { display: block; }
.lv-mob small { color: var(--muted, #666); font-size: 12.5px; }
