/* ==========================================================================
   OHO — 設計變數 / Reset / 基礎排版
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Cinzel:wght@600;700&family=Noto+Serif+TC:wght@700;900&family=Noto+Sans+TC:wght@400;500;700&display=swap");

:root {
  /* 色彩 */
  --bg: #050505;
  --bg-2: #0b0a09;
  --surface: #15130f;
  --surface-2: #1c1914;
  --stone-1: #2a2724;
  --stone-2: #3b3733;
  --stone-3: #55504a;
  --rust-1: #7a3b1e;
  --rust-2: #a2542a;
  --brass-1: #b8863b;
  --brass-2: #d9a85a;
  --brass-3: #f0cf86;
  --bone: #e9e0cf;
  --bone-dim: #b7ad9b;
  --bone-mute: #7d7568;
  --ember: #ff6a1a;
  --ember-2: #ff9b3d;
  --line: rgba(217, 168, 90, 0.18);

  --rarity-common: #9a938a;
  --rarity-rare: #4fb0d6;
  --rarity-legendary: #f0cf86;

  /* 字型 */
  --font-display: "Cinzel Decorative", "Cinzel", "Noto Serif TC", "Songti TC", serif;
  --font-head: "Cinzel", "Noto Serif TC", "Songti TC", serif;
  --font-zh-head: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --font-body: "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;

  /* 尺寸 */
  --container: 1200px;
  --gap: clamp(16px, 3vw, 32px);
  --radius: 6px;
  --radius-card: 14px;
  --nav-h: 72px;

  /* 陰影 / 漸層 */
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 -2px 0 rgba(0, 0, 0, 0.65);
  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.6);
  --grad-metal: linear-gradient(180deg, var(--brass-3) 0%, var(--brass-2) 28%, var(--brass-1) 48%, var(--rust-1) 62%, var(--brass-2) 82%, var(--brass-3) 100%);
  --grad-stone: linear-gradient(180deg, var(--stone-2) 0%, var(--stone-1) 55%, #1a1816 100%);
  --grad-iron: linear-gradient(160deg, #6a655e 0%, #3b3733 30%, #22201d 60%, #4a4540 100%);

  /* 雜訊材質（SVG feTurbulence） */
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  /* 裂紋 */
  --cracks: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400' fill='none' stroke='%23000' stroke-opacity='0.55' stroke-width='1.6' stroke-linecap='round'><path d='M20 40l38 22 14 30 40 12 10 28M330 30l-22 40 8 34-30 22-6 40M60 330l44-18 30 10 26-24 50 8M380 300l-40 12-18 30-40 6M200 60l12 44-20 30 8 46'/></svg>");

  /* 動效 */
  --dur: 0.65s;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--brass-2); text-decoration: none; }
a:hover { color: var(--brass-3); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 900; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

/* ---------- 工具類 ---------- */
.container { width: min(var(--container), 100% - 2 * var(--gap)); margin-inline: auto; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--rust-2); color: var(--bone); }

/* ---------- 排版 ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass-2);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--brass-1);
  vertical-align: middle;
  margin-right: 12px;
}
.h-display {
  font-family: var(--font-zh-head);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: 0.06em;
}
.h-section {
  font-family: var(--font-zh-head);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  letter-spacing: 0.08em;
}
.h-latin { font-family: var(--font-head); letter-spacing: 0.12em; }
.lead { color: var(--bone-dim); font-size: 1.05rem; max-width: 60ch; }
.text-dim { color: var(--bone-dim); }
.text-mute { color: var(--bone-mute); }
