/* 命運 Eternal 永恆 — 官網第一版（副手 2026-12-05）
   原則：不用原版遊戲素材，只用 CSS 和自己畫的 SVG。 */
:root {
  --bg: #120d0a;
  --bg2: #1b1410;
  --panel: #221913;
  --line: #5a4321;
  --gold: #d9b26a;
  --gold-hi: #f3d999;
  --text: #eadfcf;
  --muted: #a8977f;
  --red: #b5462e;
  --radius: 10px;
  --font: "Noto Serif TC", "Source Han Serif TC", "PMingLiU", "Microsoft JhengHei", serif;
  --sans: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); line-height: 1.75; font-size: 16px;
}
a { color: var(--gold-hi); }
img { max-width: 100%; }

/* ---- 上方選單 ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(18, 13, 10, .92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand b { font-family: var(--font); font-size: 20px; color: var(--gold-hi); letter-spacing: 2px; }
.brand small { color: var(--muted); font-size: 12px; letter-spacing: 1px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a {
  display: block; padding: 8px 14px; border-radius: 6px;
  color: var(--text); text-decoration: none; font-size: 15px;
}
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--gold-hi); background: rgba(217, 178, 106, .1); }

.wrap { width: min(1120px, 92vw); margin: 0 auto; }

/* ---- 首頁大圖區 ---- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 110px 0 120px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 178, 106, .25), transparent 60%),
    radial-gradient(ellipse at 15% 90%, rgba(181, 70, 46, .25), transparent 55%),
    linear-gradient(180deg, rgba(36, 24, 15, .72) 0%, rgba(18, 13, 10, .92) 100%),
    url("img/water-gate.jpg") 55% 55% / max(170%, 1400px) auto no-repeat, #1a120c;
  border-bottom: 1px solid var(--line);
}
.hero::before { /* 星點 */
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 70% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, #f3d999, transparent),
    radial-gradient(1px 1px at 35% 75%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 55% 45%, #f3d999, transparent);
}
.hero .emblem { width: 120px; height: 120px; margin: 0 auto 18px; display: block; }
.hero h1 {
  font-family: var(--font); font-weight: 700; margin: 0;
  font-size: clamp(40px, 7vw, 76px); letter-spacing: 8px;
  background: linear-gradient(180deg, #fff3cf 0%, var(--gold) 55%, #8a6a2e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(217, 178, 106, .25);
}
.hero .en { font-family: var(--font); letter-spacing: 10px; color: var(--gold); margin: 6px 0 18px; font-size: 18px; }
.hero p.lead { max-width: 620px; margin: 0 auto 34px; color: var(--text); font-size: 18px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 8px; font-size: 17px; font-weight: 700;
  text-decoration: none; border: 1px solid var(--gold); color: var(--gold-hi);
  background: rgba(217, 178, 106, .08); transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); background: rgba(217, 178, 106, .18); }
.btn.primary {
  color: #2a1a08; border-color: #f3d999;
  background: linear-gradient(180deg, #f6e0a6, #c99a45);
  box-shadow: 0 6px 24px rgba(217, 178, 106, .3);
}
.btn.soon { opacity: .55; cursor: not-allowed; }
.btn.soon:hover { transform: none; }

/* ---- 區塊 ---- */
section { padding: 72px 0; }
section.alt { background: var(--bg2); border-top: 1px solid #2c2118; border-bottom: 1px solid #2c2118; }
h2 {
  font-family: var(--font); color: var(--gold-hi); font-size: 30px;
  letter-spacing: 3px; margin: 0 0 8px; text-align: center;
}
h2 + .sub { text-align: center; color: var(--muted); margin: 0 0 36px; }
h3 { font-family: var(--font); color: var(--gold-hi); font-size: 20px; margin: 0 0 8px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 18px; position: relative;
}
.card::after { /* 金色角飾 */
  content: ""; position: absolute; top: 8px; right: 8px; width: 14px; height: 14px;
  border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); opacity: .6;
}
.card p { margin: 0; color: var(--text); }
.card .tag { display: inline-block; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 10px; margin-bottom: 8px; }

/* 最新消息 */
.news { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; }
.news li {
  display: grid; grid-template-columns: 110px 90px 1fr; gap: 14px; align-items: baseline;
  padding: 16px 6px; border-bottom: 1px dashed #3a2c1c;
}
.news time { color: var(--muted); font-size: 14px; }
.news .kind { font-size: 13px; text-align: center; border-radius: 4px; padding: 1px 0; background: rgba(181, 70, 46, .25); color: #f0b6a6; }
.news .kind.info { background: rgba(217, 178, 106, .15); color: var(--gold-hi); }

/* 即將開放 */
.soon-box {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 26px; text-align: center; color: var(--muted);
}
.soon-box b { color: var(--gold); }

/* 內文頁 */
.page-head { padding: 70px 0 40px; text-align: center; background: linear-gradient(180deg, #24180f, var(--bg)); border-bottom: 1px solid var(--line); }
.page-head h1 { font-family: var(--font); color: var(--gold-hi); font-size: 40px; letter-spacing: 6px; margin: 0; }
.page-head p { color: var(--muted); margin: 8px 0 0; }
.toc { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.toc a { font-size: 14px; text-decoration: none; padding: 5px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--text); }
.toc a:hover { color: var(--gold-hi); border-color: var(--gold); }

.article { max-width: 860px; margin: 0 auto; }
.article h2 { text-align: left; font-size: 24px; margin-top: 8px; border-left: 4px solid var(--gold); padding-left: 12px; }
.article section { padding: 40px 0; border-bottom: 1px solid #2c2118; }
.article table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.article th, .article td { border: 1px solid #3a2c1c; padding: 9px 12px; text-align: left; vertical-align: top; }
.article th { background: #2a1f16; color: var(--gold-hi); font-weight: 700; }
.tip {
  background: rgba(217, 178, 106, .08); border-left: 3px solid var(--gold);
  padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 14px 0;
}
.tip.warn { background: rgba(181, 70, 46, .12); border-color: var(--red); }
kbd {
  font-family: var(--sans); font-size: 13px; padding: 1px 8px; border-radius: 5px;
  border: 1px solid var(--line); border-bottom-width: 2px; background: #2a1f16; color: var(--gold-hi);
}
ol.steps { padding-left: 22px; }
ol.steps li { margin: 6px 0; }

details { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; margin: 10px 0; }
summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--gold-hi); }
details > div { padding: 0 18px 16px; }

/* 遊戲畫面 */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.shot {
  margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: block; text-decoration: none; color: var(--text);
}
.shot img { width: 100%; height: 230px; object-fit: cover; display: block; transition: transform .3s; }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { padding: 10px 14px; font-size: 15px; }
.shot figcaption b { color: var(--gold-hi); margin-right: 6px; }
.shot.left img { object-position: 0% 55%; }   /* 截圖右邊有背包視窗，只露出左邊 */

/* 放大看圖 */
.lightbox {
  position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .85); padding: 4vw;
}
.lightbox:target { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border: 1px solid var(--line); border-radius: 6px; }
.lightbox .close { position: absolute; top: 18px; right: 26px; font-size: 34px; color: var(--gold-hi); text-decoration: none; }

/* 城鎮聊天 */
.town { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.town img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.chatbox {
  background: rgba(10, 8, 6, .85); border: 1px solid #3a2c1c; border-radius: 8px;
  padding: 14px 16px; font-size: 15px; line-height: 2; font-family: var(--sans);
}
.chatbox .c-king { color: #8fd0ff; }
.chatbox .c-norm { color: #f2eee6; }
.chatbox .c-guild { color: #9fe39a; }
.chatbox .c-whisper { color: #f0a6e6; }
.chatbox .c-sys { color: #f3d999; }
.chat-tabs { display: flex; gap: 2px; margin-top: 10px; }
.chat-tabs span { font-size: 13px; padding: 3px 14px; background: #2a1f16; border: 1px solid #4a3722; color: var(--text); }

/* 時裝展示 */
.showcase { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: center; }
.showcase img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); display: block; }

@media (max-width: 760px) {
  .town, .showcase { grid-template-columns: 1fr; }
  .showcase img { max-width: 340px; margin: 0 auto; }
}

/* 頁尾 */
footer { border-top: 1px solid var(--line); padding: 34px 0 40px; color: var(--muted); font-size: 14px; text-align: center; }
footer nav { display: flex; gap: 18px; justify-content: center; margin-bottom: 10px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--gold-hi); }

@media (max-width: 760px) {
  .nav .wrap { height: auto; flex-wrap: wrap; padding: 10px 0; gap: 8px; }
  .nav ul { margin: 0; width: 100%; overflow-x: auto; }
  .nav ul a { padding: 6px 10px; font-size: 14px; white-space: nowrap; }
  .hero { padding: 70px 0 80px; }
  .news li { grid-template-columns: 1fr; gap: 2px; }
  .news .kind { width: 70px; }
}

/* ---- 排行榜（工程師 2026-12-05） ---- */
.rank { white-space: nowrap; }
.rank td:first-child, .rank th:first-child { text-align: center; width: 3em; color: var(--gold); }
.rank tbody tr:nth-child(-n+3) td { color: var(--gold-hi); font-weight: bold; }
.rank .cape { display: inline-block; width: 28px; height: 28px; vertical-align: middle; margin-right: 8px;
  border: 1px solid var(--line); border-radius: 4px; background-color: #0b0806; background-repeat: no-repeat; }
.rank .gmark { width: 32px; height: 24px; image-rendering: pixelated; vertical-align: middle; margin-right: 8px;
  border: 1px solid var(--line); }

/* ---- 公會圖案（工程師 2026-12-05） ---- */
.gm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 16px; }
.gm-cell { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 4px 6px; cursor: pointer;
  color: var(--muted); font: 13px var(--sans); }
.gm-cell:hover { border-color: var(--gold); color: var(--gold-hi); }
.gm-cell img { width: 48px; height: 36px; image-rendering: pixelated; display: block; margin: 0 auto 6px; }

/* ---- 選單右邊的帳號按鈕（12-06 副手：登入／建立帳號要明顯） ---- */
.nav-acct { display: flex; gap: 8px; margin-left: 12px; flex-shrink: 0; }
.nbtn {
  display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 6px;
  font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--gold); color: var(--gold-hi); background: rgba(217, 178, 106, .08);
}
.nbtn:hover { background: rgba(217, 178, 106, .2); }
.nbtn.primary {
  color: #2a1a08; border-color: #f3d999;
  background: linear-gradient(180deg, #f6e0a6, #c99a45);
  box-shadow: 0 3px 12px rgba(217, 178, 106, .35);
}
.nbtn.primary:hover { filter: brightness(1.08); }
.cta-note { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .nav-acct { margin-left: auto; }
  .nbtn { padding: 6px 12px; font-size: 14px; }
}

/* 建立帳號頁 register.html（2026-12-06） */
.reg-box { max-width: 460px; margin: 10px auto 40px; padding: 28px 28px 22px; border: 1px solid rgba(217,178,106,.35); border-radius: 10px; background: rgba(0,0,0,.35); }
.reg-form label { display: block; margin: 14px 0 6px; font-weight: 700; color: var(--gold-hi); }
.reg-form input { width: 100%; box-sizing: border-box; padding: 11px 12px; font-size: 16px; border-radius: 6px; border: 1px solid rgba(217,178,106,.45); background: #120d0a; color: #f1e6cf; }
.reg-form input:focus { outline: none; border-color: #f3d999; box-shadow: 0 0 0 2px rgba(217,178,106,.25); }
.reg-form .hint { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.reg-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reg-submit { width: 100%; margin-top: 22px; justify-content: center; font-size: 17px; cursor: pointer; }
.reg-submit:disabled { opacity: .6; cursor: wait; }
.reg-msg { margin: 14px 0 0; min-height: 1.4em; text-align: center; color: var(--muted); }
.reg-msg.err { color: #ff9b8a; }
.reg-done { text-align: center; }
.reg-done h2 { margin-top: 0; }
.reg-done .cta { justify-content: center; margin-top: 16px; }

/* 更新公告（2026-12-06） */
.news .kind.upd { background: rgba(90, 150, 90, .22); color: #b9e0b0; }
.news ul.chg { list-style: none; margin: 6px 0 0; padding: 0; }
.news ul.chg li { display: block; padding: 2px 0; border: 0; color: var(--muted); }
.news ul.chg li::before { content: "・"; }

/* ================= 主站改版（GM01 2026-12-06） ================= */
.news .kind.event { background: rgba(181, 70, 46, .25); color: #f0b6a6; }
.news .kind.maint { background: rgba(120, 120, 140, .25); color: #cfd2e0; }
.kind { display: inline-block; font-size: 13px; text-align: center; border-radius: 4px; padding: 1px 10px;
  background: rgba(217, 178, 106, .15); color: var(--gold-hi); }
.kind.event { background: rgba(181, 70, 46, .3); color: #f6c4b6; }
.kind.upd { background: rgba(90, 150, 90, .28); color: #c4e8bc; }
.kind.maint { background: rgba(120, 120, 140, .3); color: #dfe2ee; }

/* 消息標題清單 */
.news.compact li { grid-template-columns: 104px 64px 1fr; padding: 11px 6px; gap: 12px; }
.news.compact .kind { padding: 1px 0; }
.news-title { color: var(--text); text-decoration: none; }
.news-title:hover { color: var(--gold-hi); text-decoration: underline; }
.news-empty { color: var(--muted); display: block !important; }
.news-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.news-tabs button {
  font: inherit; font-size: 14px; cursor: pointer; padding: 4px 14px; border-radius: 99px;
  border: 1px solid var(--line); background: transparent; color: var(--text);
}
.news-tabs button.on, .news-tabs button:hover { border-color: var(--gold); color: var(--gold-hi); background: rgba(217, 178, 106, .1); }

/* 消息內頁 */
.news-detail .nd-head { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.news-detail .nd-title { text-align: left; font-size: 28px; margin: 12px 0 18px; }
.news-detail ul.chg { list-style: none; padding: 0; margin: 0 0 18px; }
.news-detail ul.chg li { padding: 4px 0; border-bottom: 1px dashed #3a2c1c; }
.news-detail ul.chg li::before { content: "・"; color: var(--gold); }
.news-detail .btn { margin-top: 18px; font-size: 15px; padding: 9px 20px; }

/* 首頁門面：進入官網 */
.btn.enter { border-color: var(--gold-hi); }

/* 主站輪播大圖 */
.banner { position: relative; height: 340px; overflow: hidden; border-bottom: 1px solid var(--line); background: #1a120c; }
.banner .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s; display: flex; align-items: center;
  background-size: cover; background-position: center 55%;
}
.banner .slide::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18, 13, 10, .92) 0%, rgba(18, 13, 10, .6) 45%, rgba(18, 13, 10, .15) 100%); }
.banner .slide.on { opacity: 1; z-index: 1; }
.banner .slide .wrap { position: relative; }
.banner h2 { text-align: left; font-size: clamp(26px, 4vw, 38px); margin: 10px 0 6px; }
.banner p { margin: 0 0 18px; max-width: 520px; }
.banner .btn { font-size: 15px; padding: 10px 22px; }
.banner .dots { position: absolute; z-index: 2; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.banner .dots button { width: 28px; height: 5px; border: 0; border-radius: 3px; background: rgba(243, 217, 153, .3); cursor: pointer; padding: 0; }
.banner .dots button.on { background: var(--gold-hi); }

/* 主站三欄 */
.portal { display: grid; grid-template-columns: 260px 1fr 280px; gap: 20px; padding: 28px 0 56px; align-items: start; }
.p-col, .p-main { display: grid; gap: 20px; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; }
.pcard h3 { font-size: 18px; margin: 0 0 12px; padding-left: 10px; border-left: 3px solid var(--gold); line-height: 1.3; }
.pcard-head { display: flex; justify-content: space-between; align-items: baseline; }
.pnote { color: var(--muted); font-size: 14px; margin: 8px 0; list-style: none; }
.more { font-size: 14px; color: var(--muted); text-decoration: none; display: inline-block; margin-top: 8px; }
.more:hover { color: var(--gold-hi); }
.btn.wide { display: flex; justify-content: center; width: 100%; font-size: 15px; padding: 10px 14px; margin-top: 6px; }

.srv { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.srv .dot { width: 12px; height: 12px; border-radius: 50%; background: #777; box-shadow: 0 0 0 4px rgba(120, 120, 120, .2); }
.srv.ok .dot { background: #5fd35a; box-shadow: 0 0 0 4px rgba(95, 211, 90, .2); }
.srv.bad .dot { background: #e0603f; box-shadow: 0 0 0 4px rgba(224, 96, 63, .2); }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick a {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px;
  border: 1px solid #3a2c1c; border-radius: 8px; text-decoration: none; color: var(--text); font-size: 13px;
}
.quick a b {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font); color: #2a1a08; background: linear-gradient(180deg, #f6e0a6, #c99a45);
}
.quick a:hover { border-color: var(--gold); color: var(--gold-hi); }

.top5 { margin: 0; padding-left: 22px; }
.top5 li { padding: 5px 0; border-bottom: 1px dashed #3a2c1c; }
.top5 li b { color: var(--gold-hi); margin-right: 8px; }
.top5 li span { color: var(--muted); font-size: 13px; }

.links { list-style: none; margin: 0; padding: 0; }
.links li { border-bottom: 1px dashed #3a2c1c; }
.links a { display: block; padding: 7px 0; color: var(--text); text-decoration: none; font-size: 15px; }
.links a::before { content: "› "; color: var(--gold); }
.links a:hover { color: var(--gold-hi); }
.forum-mini { list-style: none; margin: 0; padding: 0; }

.steps3 { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps3 li { counter-increment: s; border: 1px solid #3a2c1c; border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.steps3 li::before { content: counter(s); font-family: var(--font); font-size: 26px; color: var(--gold); line-height: 1; }
.steps3 b { color: var(--gold-hi); }
.steps3 span { color: var(--muted); font-size: 14px; flex: 1; }
.steps3 a { font-size: 14px; text-decoration: none; }

/* 討論區預覽 */
.boards .card h3 { margin-top: 4px; }

/* 手機版選單：☰ */
.nav-toggle { display: none; }
@media (max-width: 1100px) {
  .portal { grid-template-columns: 1fr 1fr; }
  .p-main { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 1080px) {
  .nav .wrap { height: 60px; flex-wrap: nowrap; padding: 0; gap: 10px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px; order: 3;
    width: 42px; height: 40px; padding: 0 9px; margin-left: 4px; cursor: pointer;
    background: transparent; border: 1px solid var(--line); border-radius: 8px;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--gold-hi); border-radius: 2px; }
  .nav .nav-acct { margin-left: auto; }
  .nav ul {
    display: none; position: absolute; top: 60px; left: 0; right: 0; margin: 0; padding: 8px 4vw 14px;
    flex-direction: column; gap: 2px; overflow: visible; width: auto;
    background: rgba(18, 13, 10, .98); border-bottom: 1px solid var(--line);
  }
  .nav.open ul { display: flex; }
  .nav ul a { padding: 11px 12px; font-size: 16px; }
}
@media (max-width: 640px) {
  .portal { grid-template-columns: 1fr; }
  .steps3 { grid-template-columns: 1fr; }
  .banner { height: 300px; }
  .news.compact li { grid-template-columns: 92px 56px 1fr; gap: 8px; font-size: 15px; }
  .brand small { display: none; }
  .brand b { font-size: 17px; letter-spacing: 1px; white-space: nowrap; }
  .nav .nav-acct .nbtn { padding: 6px 10px; font-size: 13px; }
}

/* ===== 討論區（GM01 2026-12-06）===== */
.forum-sec { padding-top: 28px; }
.f-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.f-crumb { color: var(--muted); font-size: 15px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-width: 0; }
.f-crumb a { text-decoration: none; }
.f-crumb span:last-child { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
.f-crumb .sep { color: var(--line); }
.f-user { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.f-who { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.f-who b { color: var(--gold-hi); }
.fbtn {
  font: inherit; font-size: 14px; cursor: pointer; padding: 6px 14px; border-radius: 6px;
  border: 1px solid var(--line); background: rgba(217, 178, 106, .08); color: var(--gold-hi);
}
.fbtn:hover { border-color: var(--gold); }
.fbtn.primary { color: #2a1a08; border-color: #f3d999; background: linear-gradient(180deg, #f6e0a6, #c99a45); font-weight: 600; }
.fbtn.danger { color: #f0b6a6; border-color: #6a3326; background: rgba(181, 70, 46, .12); }
.fbtn:disabled { opacity: .5; cursor: wait; }
.f-sel, .f-in, .f-form textarea {
  font: inherit; font-size: 15px; color: var(--text); background: #18110c;
  border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px;
}
.f-sel { padding: 4px 8px; font-size: 14px; }
.f-form { display: grid; gap: 12px; }
.f-form label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.f-form textarea { width: 100%; resize: vertical; line-height: 1.7; min-height: 110px; }
.f-form .f-in { width: 100%; }
.f-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.f-count { color: var(--muted); margin-left: auto; }
.f-msg { margin: 0; color: var(--muted); min-height: 1.2em; }
.f-msg.bad { color: #f0b6a6; }
.f-desc { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.f-login {
  position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .6);
  display: grid; place-items: center; padding: 16px;
}
.f-login[hidden], .f-alert[hidden] { display: none; }
.f-login .f-form { background: var(--panel); border: 1px solid var(--gold); border-radius: var(--radius); padding: 24px; width: min(400px, 100%); }
.f-login h3 { margin: 0; }
.f-alert { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: #3a1d15; color: #f6d2c8; border: 1px solid #6a3326; border-radius: 8px; padding: 10px 18px; }
.f-board { text-decoration: none; color: inherit; display: block; transition: border-color .15s; }
.f-board:hover { border-color: var(--gold); }
.f-board .f-last { display: block; margin-top: 8px; color: var(--muted); }
.f-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-top: 22px; }
.f-h { font-family: var(--font); color: var(--gold-hi); font-size: 20px; margin: 0 0 6px; text-align: left; }
.f-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.f-list { list-style: none; margin: 0; padding: 0; }
.f-head + .f-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px; }
.f-row { display: flex; gap: 14px; justify-content: space-between; align-items: center; padding: 12px 2px; border-bottom: 1px dashed #3a2c1c; }
.f-row:last-child { border-bottom: 0; }
.f-row-main { min-width: 0; flex: 1; }
.f-title { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.f-title a { color: var(--text); text-decoration: none; font-size: 16px; overflow-wrap: anywhere; }
.f-title a:hover { color: var(--gold-hi); }
.f-row-side { text-align: right; color: var(--muted); font-size: 13px; display: grid; min-width: 64px; }
.f-row-side b { color: var(--gold-hi); font-size: 16px; }
.f-meta { color: var(--muted); font-size: 13px; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.f-author { color: var(--gold); display: inline-flex; gap: 4px; align-items: center; }
.f-gm { font-size: 11px; color: #2a1a08; background: linear-gradient(180deg, #f6e0a6, #c99a45); border-radius: 3px; padding: 0 5px; line-height: 16px; }
.f-acc { color: #7f9fbf; }
.f-flag { font-size: 12px; border-radius: 3px; padding: 0 6px; white-space: nowrap; background: rgba(217, 178, 106, .15); color: var(--gold-hi); }
.f-flag.pin { background: rgba(181, 70, 46, .3); color: #f6c8b8; }
.f-flag.lock, .f-flag.hid { background: #2c2620; color: var(--muted); }
.f-flag.st-doing { background: rgba(70, 120, 181, .3); color: #bcd4f0; }
.f-flag.st-done { background: rgba(80, 150, 90, .3); color: #bfe6c4; }
.f-flag.st-wontfix { background: #2c2620; color: var(--muted); }
.f-flag.board { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.f-post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; }
.f-first { border-color: var(--gold); }
.f-ttl { font-family: var(--font); font-size: 24px; color: var(--gold-hi); margin: 0 0 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }
.f-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; margin-top: 12px; }
.f-orig { color: var(--muted); border-left: 2px solid var(--line); padding-left: 10px; font-size: 14px; }
.f-floor { color: var(--muted); margin-right: 8px; }
.f-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.f-tools:empty { display: none; }
.f-gmtools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted); }
.f-gmtools > b { color: var(--gold); }
.f-mute { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.f-mute .f-in { width: 140px; padding: 4px 8px; font-size: 14px; }
.is-hidden, .is-removed { opacity: .6; }
.is-removed .f-body { font-style: italic; color: var(--muted); }
.f-replies { margin-top: 22px; }
.f-need { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; color: var(--muted); }
.f-pager { display: flex; gap: 16px; justify-content: center; align-items: center; margin: 18px 0; color: var(--muted); }
.forum-mini { list-style: none; margin: 0; padding: 0; }
.forum-mini li { padding: 7px 0; border-bottom: 1px dashed #3a2c1c; font-size: 14px; }
.forum-mini li:last-child { border-bottom: 0; }
.forum-mini a { color: var(--text); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-mini a:hover { color: var(--gold-hi); }
.forum-mini small { color: var(--muted); }
@media (max-width: 640px) {
  .f-row-side { min-width: 48px; }
  .f-post { padding: 14px 14px; }
  .f-ttl { font-size: 20px; }
  .f-crumb span:last-child { max-width: 20ch; }
}
