[hidden] { display: none !important; }
/* ===== design system (shared by every tool page) =====
   视觉签名 v2（2026-11-22，3E）：取自游戏图标 / 宣传图——近黑底（面积最大）、翼羽深红 #c8141e、盔甲金 #e3b65a、灰白羽 #f3eee8、
   霓虹紫 #b65cff（宣传图光效）；标题 Archivo Black 仿游戏 logo 的粗黑白字；记忆点 = logo 里的铁砧 + 剑（站标、首页 H1 下、坩埚面板顶）。 */
:root {
  --bg: #0e0b12;
  --bg-2: #16111b;
  --panel: #1d1724;
  --panel-2: #271f30;
  --line: #3a2f44;
  --line-2: #3a2f44;
  --ink: #f3eee8;
  --mute: #b7adbd;
  --dim: #b7adbd;
  --red: #c8141e;
  --red-2: #ff5a3c;
  --red-soft: #2a1219;
  --violet: #b65cff;
  --violet-soft: #1f1430;
  --gold: #e3b65a;
  --green: #6fd07a;
  --blue: #4ea8ff;
  --pink: #ff86c8;
  --cyan: #33e3cf;
  --display: "Archivo Black", "Arial Black", "Helvetica Neue", sans-serif;
  --body: "Roboto", "Segoe UI", system-ui, sans-serif;
  --r: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
}
a { color: var(--red-2); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: .01em; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 2px; }
.fx-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1440px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 400 19px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; }
.brand em { font-style: normal; color: var(--red-2); }
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--panel-2); color: var(--ink); }
.nav a.nav-cta { background: var(--red);  }
.nav a.nav-cta:hover { background: var(--red-2); }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 30px 20px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(100deg, var(--red-soft), var(--bg) 45%, var(--bg) 55%, var(--violet-soft)); }
.eyebrow { margin: 0 0 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); font-weight: 700; }
.hero h1 { font-size: clamp(34px, 5.4vw, 64px); text-transform: uppercase; color: var(--ink); text-shadow: 3px 3px 0 var(--bg), -2px -2px 0 var(--bg), 2px -2px 0 var(--bg), -2px 2px 0 var(--bg), 0 0 34px var(--red); }
.hero-anvil { display: block; width: min(250px, 62%); height: auto; margin: 8px auto 0; overflow: visible; }
.lede { max-width: 820px; margin: 12px auto 0; color: var(--mute); font-size: 17px; }
.stats { list-style: none; padding: 0; margin: 18px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.stats li { padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); color: var(--mute); font-size: 14px; }
.stats b { color: var(--ink); }
.tiles { max-width: 1240px; margin: 20px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.tile { display: block; padding: 12px 14px; text-align: center; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--red); color: var(--ink); transform: translateY(-1px); }
.tile b { display: block; font: 400 15px/1.2 var(--display); letter-spacing: .02em; }
.tile span { display: block; margin-top: 4px; font-size: 13px; color: var(--mute); line-height: 1.4; }

/* ---------- shared components ---------- */
.fx-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0;  }
.fx-h { font-size: 24px; }
.fx-h-sm { font-size: 19px; }
.fx-h3 { font-size: 19px; text-align: center; margin-bottom: 10px; }
.fx-center { text-align: center; }
.fx-note { margin: 8px 0; color: var(--mute); font-size: 14px; line-height: 1.5; }
.fx-empty { color: var(--mute); font-size: 15px; margin: 12px 0; }
.fx-example { margin: 4px 0 10px; padding: 8px 12px; border-left: 3px solid var(--red); background: var(--bg-2); color: var(--ink); font-size: 14px; }
.fx-verdict { margin: 0 0 10px; padding: 10px 12px; border-left: 6px solid var(--gold); background: var(--panel-2); border-radius: 0 8px 8px 0; color: var(--ink); font-size: 15px; line-height: 1.5; }
.fx-verdict a { color: var(--gold); font-weight: 600; white-space: nowrap; }
.fx-input { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 14px; color: var(--ink); font-size: 15px; }
.fx-input:focus { outline: none; border-color: var(--red); }
.fx-seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.fx-seg button { border: 0; background: none; padding: 9px 16px; cursor: pointer; color: var(--mute); font: 400 14px var(--display); letter-spacing: .02em; }
.fx-seg button:hover { color: var(--ink); }
.fx-seg button.is-on { background: var(--red); color: var(--ink); }
.fx-seg-sm button { padding: 3px 9px; font-size: 12px; }
.fx-bar { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.fx-bar i { display: block; height: 100%; background: var(--red); border-radius: 4px; transition: width .3s; }
.fx-bar-thin { height: 4px; }
.fx-badge { position: absolute; top: 6px; right: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--red); color: var(--ink); font: 700 12px/22px var(--body); text-align: center; box-shadow: 0 0 0 2px var(--panel); }
.fx-pill { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px; padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2); font-size: 14px; color: var(--mute); }
.fx-pill b { color: var(--ink); }
.fx-x { border: 0; background: none; color: var(--dim); cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.fx-x:hover { color: var(--red-2); background: var(--panel-2); }
.fx-plus { color: var(--dim); font-size: 30px; font-weight: 300; }
.fx-gem { display: inline-block; clip-path: polygon(50% 0, 92% 26%, 82% 80%, 50% 100%, 18% 80%, 8% 26%); background: linear-gradient(200deg, hsl(var(--h) 80% 70%), hsl(var(--h) 65% 38%)); }

/* ---------- forge calculator ---------- */
.stage { max-width: 1440px; margin: 22px auto 0; padding: 0 24px; }
.fx-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.fx-src { margin: 12px 4px 0; font-size: 12.5px; color: var(--dim); }

/* chances */
.fx-worlds { margin: 16px 0 0 auto; display: flex; width: max-content; max-width: 100%; }
.fx-count { margin: 14px 0 0; font-size: 17px; }
.fx-chances .fx-note { margin-top: 2px; font-size: 12.5px; color: var(--dim); }
.fx-cards { display: grid; gap: 12px; max-height: 640px; overflow-y: auto; padding-right: 6px; margin-top: 6px; scrollbar-width: thin; scrollbar-color: var(--red) transparent; }
.fx-card { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); padding: 12px 14px; }
.fx-card.is-top { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 0 22px -8px var(--red); }
.fx-card-head { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; width: 100%; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
.fx-ico { width: 36px; height: 36px; fill: var(--ink); }
.fx-card-name { font-weight: 700; font-size: 16px; text-align: center; }
.fx-card-p { color: var(--red-2); font-weight: 700; font-size: 16px; }
.fx-lock { margin: 10px 0 8px; text-align: center; font-size: 14px; color: var(--dim); }
.fx-lock.is-ready { color: var(--gold); font-weight: 700; }
.fx-lock.is-off { opacity: .7; }
.fx-card .fx-bar { height: 7px; }
.fx-pills { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.fx-pill-stat { color: var(--gold); font-weight: 600; margin-left: 4px; }
.fx-lv { font-size: 12px; color: var(--blue); border: 1px solid var(--blue); border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.fx-vars { margin: 10px 0 0; text-align: center; font-size: 14px; color: var(--mute); line-height: 1.45; }
.fx-runes-box { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.fx-runes-box .fx-h-sm { margin-bottom: 6px; }
.fx-rune-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 330px; overflow-y: auto; }
.fx-rune { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); cursor: pointer; }
.fx-rune:hover:not(:disabled) { border-color: var(--red); }
.fx-rune.is-off { opacity: .35; cursor: not-allowed; }
.fx-rune.is-picked { border-color: var(--red); background: var(--red-soft); }
.fx-rune-img { width: 30px; height: 30px; object-fit: contain; }
.fx-rune-n { font-size: 12.5px; font-weight: 700; text-align: center; }
.fx-rune-a { font-size: 12px; color: var(--dim); text-transform: capitalize; }

/* forge */
.fx-forge { border-top: 6px solid var(--gold); }
.fx-forge .fx-h { margin-bottom: 14px; }
.fx-forge-h { display: flex; align-items: center; justify-content: center; gap: 10px; text-transform: uppercase; }
.fx-anvil { width: 44px; height: 37px; flex: none; }
.fx-pot { position: relative; aspect-ratio: 11 / 10; max-width: 470px; margin: 0 auto; border-radius: 6px; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 55%, var(--panel-2), var(--bg-2) 70%), var(--bg);
  box-shadow: 0 0 40px -6px var(--red), inset 0 0 60px var(--bg); }
.fx-pot-rim { position: absolute; left: 10%; right: 10%; top: 9%; height: 26%; border-radius: 50%; background: radial-gradient(closest-side, var(--bg) 62%, var(--line) 64%, var(--panel-2) 88%, transparent 90%); }
.fx-pot-bowl { position: absolute; left: 13%; right: 13%; top: 20%; bottom: 14%; border-radius: 12% 12% 46% 46%; overflow: hidden;
  background: linear-gradient(90deg, var(--panel), var(--line) 40%, var(--panel)); box-shadow: inset 0 18px 30px var(--bg); }
.fx-melt { --fill: 0; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--fill) * 62%); background: linear-gradient(180deg, var(--gold), var(--red-2) 40%, var(--red)); opacity: .9; transition: height .5s; box-shadow: 0 -6px 24px var(--red-2); }
.fx-pot-ores { position: absolute; inset: 14% 10% 22%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4%; }
.fx-pot-ore { width: 34%; max-width: 120px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 18px var(--bg)); animation: bob 3.4s ease-in-out infinite; }
.fx-pot-ore:nth-child(2) { animation-delay: -.8s; } .fx-pot-ore:nth-child(3) { animation-delay: -1.6s; } .fx-pot-ore:nth-child(4) { animation-delay: -2.4s; }
.fx-pot-ores .fx-gem { width: 22%; }
@keyframes bob { 50% { transform: translateY(-6%); } }
.fx-fire { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: radial-gradient(60% 100% at 20% 100%, var(--red-2), transparent 70%), radial-gradient(50% 90% at 85% 100%, var(--red), transparent 70%); opacity: .55; transition: opacity .4s; }
.fx-pot.is-hot .fx-fire { opacity: 1; animation: flicker 1.8s ease-in-out infinite; }
@keyframes flicker { 50% { opacity: .75; } }
.fx-price { text-align: center; margin: 16px 0 12px; font: 400 16px var(--display); color: var(--gold); letter-spacing: .02em; }
.fx-price b { font-family: var(--body); }
.fx-price-item { color: var(--mute); font: 400 13px var(--body); }
.fx-slots { list-style: none; padding: 0; margin: 0 auto; max-width: 470px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fx-slot { position: relative; width: 100%; aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--red); background: radial-gradient(circle at 50% 40%, var(--panel-2), var(--bg-2)); cursor: pointer; display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 16px -6px var(--red); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.fx-slot.is-empty { border: 1px solid var(--line); box-shadow: none; background: var(--bg-2); }
.fx-slot-img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; pointer-events: none; }
.fx-slot .fx-gem { position: absolute; inset: 25%; }
.fx-slot-name { position: relative; font: 400 12px var(--display); color: var(--ink); text-shadow: 0 1px 3px var(--bg), 0 0 8px var(--bg); text-align: center; padding: 0 4px; line-height: 1.1; }
.fx-slot-c { position: absolute; right: 8px; bottom: 8px; background: var(--bg); border-radius: 8px; padding: 3px 8px; font: 400 13px var(--display); color: var(--ink); }
.fx-tip { text-align: center; color: var(--mute); font-size: 14px; margin: 14px 0 6px; }
.fx-mult { text-align: center; margin: 0; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; color: var(--mute); }
.fx-mult > span:first-child { color: var(--gold); font: 400 16px var(--display); }
.fx-mult b { font-family: var(--body); }
.fx-warn { text-align: center; color: var(--red-2); font-weight: 600; font-size: 14px; margin: 8px 0 0; }
.fx-warn[hidden] { display: none; }
.fx-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.fx-dials { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; margin-bottom: 12px; font-size: 14px; color: var(--mute); }
.fx-dials label { display: grid; gap: 6px; }
.fx-dials b { color: var(--ink); }
.fx-dials i { font-style: normal; font-weight: 700; }
.fx-dials input[type="range"] { width: 100%; accent-color: var(--red); }
.fx-dials select { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; }
.fx-comp { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fx-comp:last-of-type { border-bottom: 0; }
.fx-comp-img { width: 44px; height: 44px; object-fit: contain; }
.fx-comp-mid { min-width: 0; }
.fx-comp-top { margin: 0 0 5px; display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--mute); }
.fx-comp-top b { color: var(--ink); font-size: 15px; }
.fx-trait-st { margin: 7px 0 0; font-size: 12.5px; font-weight: 700; color: var(--dim); }
.fx-trait-st.is-on { color: var(--gold); }
.fx-trait { margin: 4px 0 0; font-size: 13.5px; color: var(--mute); line-height: 1.5; }
.fx-rune-slots { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fx-rslot { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); padding: 10px 12px; }
.fx-rslot.is-empty { display: grid; place-items: center; height: 54px; }
.fx-rslot-head { display: flex; align-items: center; gap: 10px; }
.fx-rslot-head b { flex: 1; }
.fx-dps { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 14px; }
.fx-dps th { text-align: left; font-weight: 500; color: var(--mute); padding: 7px 4px; border-bottom: 1px solid var(--line); }
.fx-dps td { text-align: right; padding: 7px 4px; border-bottom: 1px solid var(--line); font-weight: 600; }
.fx-mini { width: 58px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 6px; text-align: right; }

/* ores */
.fx-ores-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fx-ores > .fx-note { font-size: 15px; color: var(--ink); opacity: .9; }
.fx-try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 13px; color: var(--dim); }
.fx-chip { border: 1px dashed var(--line-2); background: none; color: var(--mute); border-radius: 999px; padding: 4px 10px; cursor: pointer; font-size: 13px; }
.fx-chip:hover { border: 1px solid var(--red); color: var(--ink); }
.fx-search { display: flex; gap: 10px; margin: 12px 0 14px; }
.fx-sort { flex: none; width: 50px; border: 0; border-radius: 10px; background: var(--red); color: var(--ink); font-size: 22px; cursor: pointer; }
.fx-sort:hover { background: var(--red-2); }
.fx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-height: 760px; overflow-y: auto; padding: 2px 8px 2px 0; scrollbar-width: thin; scrollbar-color: var(--red) transparent; }
.fx-ore { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; transition: border-color .12s, transform .12s; }
.fx-ore:hover { border-color: var(--red); transform: translateY(-2px); }
.fx-ore:active { transform: scale(.97); }
.fx-ore-img { width: 56px; height: 56px; object-fit: contain; pointer-events: none; }
.fx-ore .fx-gem { width: 40px; height: 44px; margin: 6px; }
.fx-ore-n { font-size: 15px; line-height: 1.2; text-align: center; }
.fx-ore-m { font-size: 13.5px; color: var(--mute); }

/* ---------- like / share ---------- */
.stage-bar { display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--mute); cursor: pointer; font-weight: 600; font-size: 14px; }
.pill:hover { color: var(--ink); border-color: var(--red); }
.pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pill[aria-pressed="true"] { color: var(--red-2); border-color: var(--red); }
.pill[aria-pressed="true"] svg { fill: currentColor; }
.pill-msg { color: var(--gold); font-size: 14px; }

.next { margin-top: 18px; display: grid; grid-template-columns: auto repeat(4, 1fr); gap: 10px; align-items: stretch; }
.next > p { margin: 0; align-self: center; font: 400 16px var(--display); color: var(--mute); }
@media (max-width: 860px) { .next { grid-template-columns: 1fr 1fr; } .next > p { grid-column: 1 / -1; } }

/* ---------- reading ---------- */
.read { max-width: 1100px; margin: 56px auto 0; padding: 0 20px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.toc { position: sticky; top: 80px; align-self: start; font-size: 14px; }
.toc p { margin: 0 0 8px; font: 400 16px var(--display); color: var(--ink); }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--mute); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); border-left-color: var(--red); }
.guide { margin-bottom: 40px; }
.guide h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 14px; scroll-margin-top: 80px; }
.guide h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 10px; background: var(--red); border-radius: 2px; }
.guide h3 { font-size: 22px; margin: 26px 0 8px; scroll-margin-top: 80px; }
.guide p, .guide li { color: var(--ink); }
.guide strong { color: var(--ink); }
.guide code { font-size: .9em; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; color: var(--gold); }
.scroll-x { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th, table.data td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data thead th { background: var(--panel-2); color: var(--mute); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
table.data tbody tr:hover { background: var(--red-soft); }
table.data td.num { color: var(--gold); font-weight: 600; }
table.data tr.zone-row th { background: var(--bg-2); color: var(--ink); font-size: 13px; letter-spacing: .04em; padding-top: 14px; }
table.data td.wrap { white-space: normal; min-width: 240px; color: var(--mute); font-size: 13.5px; }
.qa dt { font: 400 18px/1.3 var(--display); margin-top: 20px; }
.qa dd { margin: 6px 0 0; color: var(--ink); }

.talk { max-width: 1100px; margin: 10px auto 0; padding: 0 20px 0 280px; }
.talk h2 { font-size: 28px; margin-bottom: 12px; }
.c-form { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.c-form input, .c-form textarea { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; color: var(--ink); font: inherit; }
.c-form textarea { min-height: 90px; resize: vertical; }
.c-form button[type="submit"] { justify-self: start; border: 0; border-radius: 8px; padding: 9px 18px; background: var(--red); color: var(--ink); font-weight: 700; cursor: pointer; }
.c-msg { font-size: 14px; color: var(--gold); }
.c-reply-to { font-size: 13px; color: var(--mute); }
.c-reply-line { display: none; }
.c-form[data-gf-replying] .c-reply-line { display: block; }
.link-b { border: 0; background: none; color: var(--dim); cursor: pointer; font-size: 13px; text-decoration: underline; }
.c-list { margin-top: 14px; display: grid; gap: 10px; }
.c-list[data-gf-empty]::before { content: "No forge reports yet. Share the mix that worked for you."; color: var(--dim); font-size: 14px; }
.c-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.c-item[data-gf-owner] { border-color: var(--red); }
.c-head { display: flex; gap: 10px; align-items: baseline; font-size: 13px; color: var(--dim); }
.c-head b { color: var(--ink); font-size: 14.5px; }
.c-owner { color: var(--red-2); font-weight: 700; }
.c-text { margin: 6px 0; white-space: pre-wrap; }
.c-reply { border: 0; background: none; color: var(--red-2); cursor: pointer; font-size: 13px; padding: 0; }
.c-replies { margin-left: 16px; display: grid; gap: 8px; }

/* ---------- plain + data pages ---------- */
.page { max-width: 860px; margin: 0 auto; padding: 44px 20px 10px; }
.page h1 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 16px; }
.page.wide { max-width: 1240px; }
.crumb { font-size: 13.5px; color: var(--dim); margin: 0 0 8px; }
.crumb a { color: var(--mute); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 12px; }
.filters a { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--mute); text-decoration: none; font-size: 14px; background: var(--panel); }
.filters a:hover { border-color: var(--red); color: var(--ink); }
.world-h { margin: 34px 0 12px; font-size: 28px; scroll-margin-top: 80px; }
.world-h small { font: 500 14px var(--body); color: var(--red-2); margin-left: 8px; }
.ore-name { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.ore-name img { width: 34px; height: 34px; object-fit: contain; }
.ore-name .fx-gem { width: 24px; height: 26px; }
.rar { font-weight: 600; color: var(--rc, var(--mute)); }
.r-common { --rc: var(--mute); } .r-uncommon { --rc: var(--green); } .r-rare { --rc: var(--blue); } .r-epic { --rc: var(--violet); }
.r-legendary { --rc: var(--gold); } .r-mythic { --rc: var(--red-2); } .r-relic { --rc: var(--pink); } .r-exotic { --rc: var(--cyan); } .r-divine { --rc: var(--ink); }

/* tool inner pages (theme/tool.html) */
.tool-head { text-align: center; padding: 36px 20px 8px; }
.tool-head h1 { font-size: clamp(30px, 4.4vw, 48px); }
.tool-head p { max-width: 760px; margin: 10px auto 0; color: var(--mute); }

/* ---------- footer ---------- */
.foot { margin-top: 70px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-in { max-width: 1100px; margin: 0 auto; padding: 32px 20px 40px; display: grid; gap: 10px; }
.foot-brand { margin: 0; font: 400 20px var(--display); text-transform: uppercase; }
.foot-note { margin: 0; max-width: 860px; font-size: 13.5px; color: var(--dim); }
.foot-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.foot-nav a { color: var(--mute); }
.foot-copy { margin: 0; font-size: 13px; color: var(--dim); }
.nf { text-align: center; padding: 90px 20px 30px; }
.nf h1 { font-size: 56px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .fx-calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fx-forge { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr 1fr; padding: 0 4px; }
  .read { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; margin-bottom: 26px; }
  .talk { padding: 0 20px; }
  .top-in { height: auto; flex-wrap: wrap; padding: 10px 14px; gap: 6px; }
  .nav { margin-left: 0; width: 100%; overflow-x: auto; }
  .nav a { white-space: nowrap; padding: 6px 10px; }
}
@media (max-width: 760px) {
  .stage { padding: 0 10px; }
  .fx-calc { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fx-panel { padding: 14px; }
  .fx-chances { order: -2; }
  .fx-ores { order: -1; }
  .fx-forge { order: 0; }
  .hero { padding: 18px 14px 12px; }
  .hero-anvil { width: 150px; margin-top: 4px; }
  .eyebrow { font-size: 12px; letter-spacing: .06em; }
  .lede { font-size: 15.5px; }
  .stats { display: none; }
  .tiles { display: flex; overflow-x: auto; gap: 8px; margin-top: 14px; padding: 0 0 4px; }
  .tiles .tile { flex: 0 0 auto; padding: 8px 12px; }
  .tiles .tile span { display: none; }
  .fx-grid { max-height: 480px; gap: 8px; }
  .fx-ore-img { width: 46px; height: 46px; }
  .fx-ore-n { font-size: 13.5px; }
  .fx-cards { max-height: 520px; }
  .fx-worlds { margin-left: 0; }
  .fx-slots { gap: 8px; }
  .fx-slot-name { font-size: 12px; }
  .fx-dials { grid-template-columns: 1fr auto; }
  .fx-pot { max-width: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}

/* ---------- ore crafter ---------- */
.oc { display: grid; gap: 18px; max-width: 1100px; margin: 0 auto; }
.oc-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.oc-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.oc-seg button { padding: 9px 10px; font-size: 13px; }
.oc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.oc-tile { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 10px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); color: var(--ink); cursor: pointer; font: inherit; text-align: center; }
.oc-tile:hover { border-color: var(--red); }
.oc-tile.is-on { border-color: var(--red); background: var(--red-soft); box-shadow: 0 0 0 1px var(--red); }
.oc-tile .oc-img { width: 40px; height: 40px; }
.oc-tile b { font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.oc-tile span { font-size: 12px; color: var(--gold); }
.oc-order-card { display: grid; gap: 12px; }
.oc-card { border: 1px solid var(--line); border-top: 6px solid var(--gold); border-radius: 10px; background: var(--bg-2); padding: 14px 16px; display: grid; gap: 8px; }
.oc-card-head { display: flex; gap: 14px; align-items: center; }
.oc-card-img .oc-img { width: 64px; height: 64px; }
.oc-card p { margin: 0; }
.oc-card-name { font: 400 22px/1.15 var(--display); color: var(--ink); }
.oc-card-at { font-size: 13px; color: var(--mute); }
.oc-card-in { font-size: 14.5px; color: var(--ink); }
.oc-card-cost { font-size: 13.5px; color: var(--gold); font-weight: 700; }
.oc-dial { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); padding: 12px; display: grid; gap: 10px; justify-items: center; }
.oc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.oc-stat { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); padding: 10px 14px; display: grid; gap: 2px; }
.oc-stat span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.oc-stat b { font-size: 24px; color: var(--gold); }
.oc-cols { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.oc-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.oc-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.oc-row.is-skip { opacity: .55; }
.oc-img { width: 36px; height: 36px; object-fit: contain; }
.oc-mid { display: grid; gap: 2px; min-width: 0; font-size: 13.5px; color: var(--mute); }
.oc-mid b { color: var(--ink); font-size: 15.5px; }
.oc-meta em { font-style: normal; color: var(--green); }
.oc-n { color: var(--gold); font-weight: 700; font-size: 17px; }
.oc-skip { border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); border-radius: 8px; padding: 6px 12px; font-weight: 700; cursor: pointer; }
.oc-skip:hover { border-color: var(--red); }
.oc-skip[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
@media (max-width: 760px) {
  .oc-top, .oc-cols { grid-template-columns: 1fr; }
  .oc-order-card { order: -1; }
  .oc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 320px; overflow-y: auto; }
  .oc-stat { padding: 8px 10px; }
  .oc-stat b { font-size: 19px; }
  .oc-dial .rr-step { gap: 4px; }
  .oc-dial .rr-count { min-width: 70px; font-size: 24px; }
}

/* ---------- race reroll ---------- */
.rr { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: 18px; align-items: start; max-width: 1240px; margin: 0 auto; }
.rr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.rr-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); cursor: pointer; }
.rr-card:hover { border-color: var(--red); }
.rr-card.is-on { border-color: var(--red); background: var(--red-soft); box-shadow: 0 0 0 1px var(--red); }
.rr-ico { font-size: 26px; line-height: 1.1; }
.rr-card b { font-size: 14px; }
.rr-p { font-size: 12.5px; color: var(--mute); }
.rr-main { display: grid; gap: 18px; }
.rr-dials { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.rr-dial { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); padding: 12px; display: grid; gap: 10px; justify-items: center; }
.rr-dial-h { margin: 0; font-size: 13px; color: var(--mute); text-align: center; }
.rr-dial-h small { display: block; font-size: 12px; }
.rr-step { display: flex; align-items: center; gap: 6px; }
.rr-step button, .rr-chips button { min-width: 44px; min-height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font-weight: 700; cursor: pointer; }
.rr-step button:hover, .rr-chips button:hover { border-color: var(--red); }
.rr-count { min-width: 92px; text-align: center; font: 400 28px/1 var(--display); color: var(--gold); }
.rr-chips { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rr-chips button { min-height: 34px; padding: 0 10px; font-size: 13px; border-radius: 999px; }
.rr-hit { margin: 16px 0 0; text-align: center; color: var(--gold); font-weight: 700; font-size: 15px; }
.rr-hit.is-set { font-size: 20px; }
.rr-warn { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--gold); border-radius: 10px; background: var(--panel-2); font-size: 14px; color: var(--mute); }
.rr-warn b { color: var(--gold); }
.rr-table td { color: var(--ink); }
@media (max-width: 860px) {
  .rr { grid-template-columns: 1fr; }
  .rr-main { order: -1; }
  .rr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rr-dials { grid-template-columns: 1fr; }
}
.lede-l { font-size: 17px; color: var(--ink); max-width: 900px; }
.page .next { margin-top: 30px; }
.page + .talk { padding-left: 20px; max-width: 1240px; }

/* ---------- best setups ---------- */
.bs { max-width: 1340px; margin: 0 auto; }
.bs-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.bs-ctrl { display: flex; gap: 10px; flex-wrap: wrap; }
.bs-rule { margin: 12px 0 18px; padding-left: 18px; color: var(--mute); font-size: 14px; display: grid; gap: 3px; }
.bs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bs-card { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); padding: 16px; display: grid; gap: 8px; align-content: start; }
.bs-head { display: flex; gap: 12px; align-items: flex-start; }
.bs-head h3 { font-size: 21px; }
.bs-head p { margin: 2px 0 0; color: var(--mute); font-size: 14px; }
.bs-tag { font: 700 11px var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; margin-top: 3px; }
.bs-tag.is-w { background: var(--panel-2); color: var(--gold); border: 1px solid var(--gold); }
.bs-tag.is-a { background: var(--panel-2); color: var(--blue); border: 1px solid var(--blue); }
.bs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bs-stats span { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.bs-stats b { font-size: 16px; }
.bs-use { margin: 0; font-size: 14.5px; }
.bs-use span { color: var(--dim); text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.bs-line { margin: 0; font-size: 13.5px; color: var(--mute); }
.bs-traits { margin: 0; font-size: 13px; color: var(--gold); line-height: 1.45; }
.bs-price { margin: 0; font-weight: 700; color: var(--gold); }
.bs-link { font-size: 13.5px; font-weight: 600; }
@media (max-width: 1100px) { .bs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .bs-grid { grid-template-columns: 1fr; } }

/* ---------- inventory optimizer ---------- */
.io { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; max-width: 1360px; margin: 0 auto; }
.io-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.io-btns { display: flex; gap: 10px; align-items: center; }
.io-ctrl { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.io-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-height: 760px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--red) transparent; }
.io-ore { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.io-ore.is-have { border-color: var(--red); }
.io-ore img { width: 46px; height: 46px; object-fit: contain; }
.io-ore b { font-size: 13.5px; text-align: center; line-height: 1.2; }
.io-ore span { font-size: 12.5px; color: var(--mute); }
.io-n { padding: 6px 8px; text-align: center; margin-top: 4px; border-color: var(--red); }
.io-results { display: grid; gap: 10px; margin-top: 14px; }
.io-card { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); padding: 12px 14px; display: grid; gap: 4px; }
.io-card.is-miss { opacity: .55; }
.io-card-h { display: flex; justify-content: space-between; gap: 10px; }
.io-card-h b { font-size: 16px; }
.io-card-h span { color: var(--red-2); font-weight: 700; }
.io-use { margin: 0; font-weight: 600; }
.io-stat { margin: 0; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--gold); }
.io-traits { margin: 0; font-size: 13px; color: var(--mute); }
@media (max-width: 960px) { .io { grid-template-columns: 1fr; } .io-ctrl { align-items: flex-start; } .io-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 480px; } }

/* /codes · code-mailbox：信箱（竖排信件 + 邮戳 + Redeemed 印章）+ 钱袋 */
.cm-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.cm-box { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cm-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.cm-letter { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: linear-gradient(90deg, var(--panel-2), var(--panel)); position: relative; }
.cm-letter::before { content: ""; position: absolute; inset: 4px; border: 1px dashed var(--line); border-radius: 8px; pointer-events: none; }
.cm-post { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); display: grid; place-content: center; text-align: center; font-size: 18px; font-weight: 700; line-height: 1; transform: rotate(-8deg); }
.cm-post b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.cm-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cm-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.cm-rw { color: var(--mute); font-size: 14px; }
.cm-new { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--bg); background: var(--gold); border-radius: 4px; padding: 0 6px; }
.cm-copy { position: relative; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 0; background: var(--red); color: var(--ink); font-weight: 700; cursor: pointer; }
.cm-copy:hover { background: var(--red-2); color: var(--bg); }
.cm-stamp { position: relative; min-height: 44px; padding: 0 12px; border-radius: 8px; border: 2px dashed var(--line-2); background: none; color: var(--mute); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; cursor: pointer; }
.cm-stamp:hover { border-color: var(--mute); color: var(--ink); }
.cm-letter.is-done { opacity: .55; }
.cm-letter.is-done .cm-code { text-decoration: line-through; }
.cm-letter.is-done .cm-stamp { opacity: 1; border: 2px solid var(--red-2); color: var(--red-2); transform: rotate(-6deg); }
.cm-bag { position: sticky; top: 16px; }
.cm-big { margin: 8px 0 0; font-size: 18px; color: var(--mute); }
.cm-big b { font-family: var(--display); font-size: 48px; color: var(--gold); line-height: 1.1; margin-right: 4px; }
.cm-sub { margin: 0 0 16px; color: var(--mute); }
.cm-sub b { color: var(--ink); font-size: 22px; }
.cm-verdict { margin: 12px 0 16px; padding: 10px 12px; border-left: 6px solid var(--gold); background: var(--panel-2); border-radius: 0 8px 8px 0; color: var(--ink); font-weight: 500; }
.cm-ladder { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 12px; }
.cm-tier { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.cm-tier .fx-bar { grid-column: 1 / -1; }
.cm-tier .fx-bar i { background: var(--rc); }
.cm-tn b { color: var(--rc); }
.cm-tn small { display: block; color: var(--mute); font-size: 12px; }
.cm-tp { font-weight: 700; font-size: 18px; color: var(--ink); }
.cm-lock { margin: 8px 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.cm-lock summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.fold > summary { cursor: pointer; margin: 8px 0 12px; padding: 12px 16px; border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: 0 8px 8px 0; background: var(--panel); color: var(--ink); font-weight: 600; }
.fold > summary:hover { background: var(--panel-2); }
.fold > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cm-lock ol { margin: 8px 0 0; padding-left: 20px; max-height: 240px; overflow-y: auto; }
.cm-lock li { margin: 4px 0; }
.cm-lock small { color: var(--mute); }
@media (max-width: 860px) {
  .cm-box { grid-template-columns: minmax(0, 1fr); }
  .cm-bag { position: static; }
}
@media (max-width: 520px) {
  .cm-letter { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); }
  .cm-post { width: 44px; height: 44px; font-size: 16px; }
  .cm-body { grid-column: 2 / 4; }
  .cm-letter .cm-copy { grid-column: 1 / 3; }
  .cm-letter .cm-stamp { grid-column: 3 / 4; }
}

/* /weapons · weapon-ladder：矿石数轨道 + 12 条类型泳道 + 抽屉 */
.wl-ctrl { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.wl-lv { display: flex; align-items: center; gap: 4px; color: var(--mute); }
.wl-lv .fx-input { width: 72px; text-align: center; }
.wl-step { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); font-size: 18px; cursor: pointer; }
.wl-step:hover { border-color: var(--red); }
.wl-rec { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--mute); cursor: pointer; font-weight: 600; }
.wl-rec[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.wl-track { margin-bottom: 12px; }
.wl-n { margin: 0 0 8px; color: var(--mute); }
.wl-n b { font-family: var(--display); font-size: 36px; color: var(--gold); margin-right: 4px; }
.wl-range { width: 100%; accent-color: var(--red); height: 32px; }
.wl-gates { position: relative; height: 22px; margin: 0 8px; }
.wl-gate { position: absolute; transform: translateX(-50%); font-size: 12px; color: var(--ink); border-left: 1px solid var(--red); padding-left: 2px; line-height: 1.6; }
.wl-gate.is-tick { color: var(--dim); border-left-color: var(--line-2); }
.wl-lanes { display: grid; gap: 8px; }
.wl-lane { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.wl-lane.is-low { opacity: .6; }
.wl-lane.is-off { opacity: .4; grid-template-columns: minmax(0, 1fr); }
.wl-lane-h { display: grid; gap: 4px; }
.wl-lane-h b { font-family: var(--display); font-size: 18px; color: var(--ink); }
.wl-lane-p { color: var(--mute); font-size: 14px; }
.wl-cards { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.wl-card { display: grid; gap: 2px; text-align: left; min-width: 148px; max-width: 100%; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); cursor: pointer; }
.wl-card:hover { border-color: var(--red); }
.wl-card.is-open { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.wl-card.is-locked { opacity: .5; border-style: dashed; }
.wl-card .wl-p { font-weight: 700; font-size: 18px; color: var(--gold); }
.wl-card small { color: var(--mute); font-size: 12px; }
.wl-drawer { margin-top: 12px; }
.wl-dh { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wl-dstat { color: var(--mute); }
.wl-dl { margin: 8px 0 0; padding-left: 20px; }
.wl-dl li { margin: 4px 0; }
.wl-best { color: var(--gold); font-weight: 600; }
@media (max-width: 640px) {
  .wl-lane { grid-template-columns: minmax(0, 1fr); }
  .wl-card { min-width: 0; flex: 1 1 140px; }
  .wl-gate { font-size: 12px; }
}

/* /armor · racks.html：套装货架（每块牌 头 / 胸 / 腿三格 + 整套合计），轻 / 中 / 重三色边 */
.rk { margin: 24px 0 48px; }
.rk-h { font-family: var(--display); font-size: 28px; margin: 0 0 8px; }
.rk-note { color: var(--mute); max-width: 70ch; margin: 0 0 16px; }
.rk-shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.rk-card { --wc: var(--mute); background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--wc); border-radius: var(--r); padding: 16px; display: grid; gap: 8px; align-content: start; }
.rk-light { --wc: var(--blue); } .rk-medium { --wc: var(--gold); } .rk-heavy { --wc: var(--red-2); }
.rk-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rk-name { font-family: var(--display); font-size: 18px; color: var(--ink); }
.rk-w { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--wc); }
.rk-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.rk-cell { display: grid; gap: 2px; text-align: center; padding: 8px 4px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); }
.rk-cell b { font-size: 16px; color: var(--ink); }
.rk-total { margin: 0; color: var(--mute); font-size: 14px; }
.rk-total b { font-family: var(--display); font-size: 28px; color: var(--wc); margin-right: 4px; }
.rk-meta, .rk-bonus { margin: 0; font-size: 14px; color: var(--mute); }
.rk-card [data-l]::before { content: attr(data-l); display: block; font-size: 12px; color: var(--mute); }
.rk-facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; font-size: 14px; }
.rk-facts span { color: var(--ink); min-width: 0; }
.rk-bonus { color: var(--ink); }

/* /crafting-guide · guide.html：五步工单（竖向步骤轨 + 每步关键数字 + Try it） */
.wo { list-style: none; margin: 24px 0 48px; padding: 0; display: grid; gap: 0; max-width: 820px; }
.wo-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; position: relative; padding-bottom: 16px; }
.wo-step:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: var(--line-2); }
.wo-n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-content: center; font-family: var(--display); font-size: 28px; color: var(--gold); background: var(--panel-2); border: 2px solid var(--red); }
.wo-body { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.wo-t { font-family: var(--display); font-size: 18px; color: var(--ink); text-decoration: none; }
.wo-body p { margin: 4px 0 8px; color: var(--mute); }
.wo-try { font-weight: 600; font-size: 14px; }

/* ---------- body layout: sections, step cards, cards, notes, screenshots (tool pages) ---------- */
.sec { margin: 0 0 22px; padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.sec > h2:first-child { margin-top: 0; }
.sec > :last-child { margin-bottom: 0; }
.sec-ember { background: linear-gradient(135deg, var(--red-soft), var(--bg) 55%, var(--violet-soft)); border-color: var(--line); }
.steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; counter-reset: stp; }
.steps.grid-2, .cards.grid-2, .cards.cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.step { counter-increment: stp; position: relative; padding: 46px 16px 16px; background: var(--bg-2); border: 1px solid var(--line); border-bottom: 6px solid var(--red); border-radius: 10px; }
.step::before { content: counter(stp); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; display: grid; place-items: center; background: var(--gold); color: var(--bg); border-radius: 6px; font: 400 15px/1 var(--display); }
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; font-size: 14.5px; color: var(--mute); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin: 0 0 18px; }
.card { padding: 16px 18px; background: var(--bg-2); border: 1px solid var(--line); border-top: 6px solid var(--line); border-radius: 10px; min-width: 0; }
.card-gold { border-top-color: var(--gold); } .card-red { border-top-color: var(--red); } .card-violet { border-top-color: var(--violet); } .card-cyan { border-top-color: var(--cyan); }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0 0 6px; font-size: 14.5px; color: var(--mute); }
.card p:last-child { margin-bottom: 0; }
.card .big { font: 400 24px/1.1 var(--display); color: var(--gold); margin: 0 0 6px; }
.note { margin: 0 0 18px; padding: 14px 18px; background: var(--panel-2); border-left: 6px solid var(--gold); border-radius: 0 10px 10px 0; font-size: 15px; }
.note b { color: var(--gold); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: center; margin: 0 0 18px; }
.split-rev > :first-child { order: 2; }
.split p:last-child { margin-bottom: 0; }
.shot { margin: 0 0 18px; }
.split .shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 4px solid var(--line); border-radius: 10px; background: var(--bg); }
.shot-narrow img { max-width: 480px; margin: 0 auto; }
.shot figcaption { margin: 8px 2px 0; font-size: 13px; color: var(--mute); text-align: center; }
@media (max-width: 760px) {
  .sec { padding: 16px 14px; }
  .split { grid-template-columns: 1fr; gap: 14px; }
  .split-rev > :first-child { order: 0; }
}
