/* ============================================================
   Beast Market — promotional LP
   Committed single theme: dark ember-fantasy.
   Palette: ink #0e0906 · surface #1a120c · bone #ecdfc6 · ash #a8937b
            gold #d8a54c→#f3d489 · ember #ff7b33 · glacial teal #4fd6c5
   Display: Cinzel (self-hosted, OFL). Body: system humanist stacks.
   ============================================================ */

@font-face {
  font-family: "Cinzel";
  src: url("assets/fonts/cinzel-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("assets/fonts/cinzel-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("assets/fonts/cinzel-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --ink: #0e0906;
  --ink-2: #120c08;
  --surface: #1a120c;
  --surface-2: #221812;
  --line: rgba(216, 165, 76, 0.18);
  --line-soft: rgba(216, 165, 76, 0.10);
  --bone: #ecdfc6;
  --ash: #a8937b;
  --gold: #d8a54c;
  --gold-hi: #f3d489;
  --gold-lo: #9a6b2a;
  --ember: #ff7b33;
  --ember-deep: #c2470e;
  --teal: #4fd6c5;

  --display: "Cinzel", var(--display-fb, Georgia), serif;
  --body: "Segoe UI", var(--body-fb, system-ui), -apple-system, sans-serif;
  --display-fb: Georgia;
  --body-fb: system-ui;

  --track: 0.16em;
  --container: min(1140px, 92vw);
}

/* CJK: self-hosted webfonts (assets/fonts/fonts-cjk.css, unicode-range subsets).
   ja display = dignified mincho (Shippori Mincho 700); CJK body = Noto Sans JP/KR/SC.
   System stacks remain as fallback while subsets stream in (font-display: swap). */
html[lang="ja"] {
  --display-fb: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --body-fb: "Noto Sans JP", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --track: 0.08em;
}
html[lang="zh-Hans"] {
  --display-fb: "Noto Sans SC", "Songti SC", "SimSun", serif;
  --body-fb: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --track: 0.08em;
}
html[lang="ko"] {
  --display-fb: "Noto Sans KR", "Batang", serif;
  --body-fb: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --track: 0.06em;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-hi); text-decoration: none; }
a:hover { color: var(--ember); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--surface-2); color: var(--bone); padding: 0.6rem 1rem;
}
.skip-link:focus { left: 8px; top: 8px; }

.container { width: var(--container); margin-inline: auto; }

/* ---------------- typography ---------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.18;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: calc(var(--track) * 0.4);
  color: var(--gold-hi);
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  h2 {
    background: linear-gradient(180deg, var(--gold-hi) 8%, var(--gold) 55%, var(--gold-lo) 108%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ember);
}

.lede {
  max-width: 62ch;
  color: var(--ash);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
}

.frontis {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}
.frontis .lede { margin-top: 0.35rem; }

.claw {
  width: 96px; height: 22px;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
  opacity: 0.5;
}

.section { padding: clamp(4.5rem, 11vh, 8rem) 0; position: relative; }

.section-note {
  margin-top: clamp(2rem, 4vw, 3rem);
  text-align: center;
  color: var(--ash);
  font-size: 1rem;
  max-width: 58ch;
  margin-inline: auto;
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  padding: 0.9rem 1.7rem;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn-ember {
  background: linear-gradient(180deg, #ff8f45, var(--ember) 45%, var(--ember-deep));
  color: #1d0d04;
  border-color: rgba(255, 176, 110, 0.55);
  box-shadow: 0 0 26px rgba(255, 123, 51, 0.28), inset 0 1px 0 rgba(255, 220, 180, 0.45);
  text-shadow: 0 1px 0 rgba(255, 200, 150, 0.35);
}
.btn-ember:hover {
  color: #1d0d04;
  box-shadow: 0 0 42px rgba(255, 123, 51, 0.5), inset 0 1px 0 rgba(255, 220, 180, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(216, 165, 76, 0.05);
  color: var(--gold-hi);
  border-color: rgba(216, 165, 76, 0.45);
}
.btn-ghost:hover {
  background: rgba(216, 165, 76, 0.13);
  color: var(--gold-hi);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* ---------------- header ---------------- */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.65rem clamp(1rem, 3vw, 2rem);
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-head.scrolled {
  background: rgba(14, 9, 6, 0.82);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--bone);
}
.brand:hover { color: var(--gold-hi); }
.brand-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.head-nav {
  display: flex;
  gap: 1.3rem;
  margin-inline: auto;
}
.head-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}
.head-nav a:hover { color: var(--gold-hi); }

.head-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.lang-switch button {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--ash);
  font: 600 0.72rem/1 var(--body);
  letter-spacing: 0.05em;
  padding: 0.5rem 0.62rem;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.lang-switch button:hover { color: var(--bone); }
.lang-switch button[aria-pressed="true"] {
  color: #1d0d04;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
}

.btn-head { padding: 0.55rem 1rem; font-size: 0.78rem; }

@media (max-width: 860px) {
  .head-nav { display: none; }
  .head-right { margin-left: auto; }
}
@media (max-width: 560px) {
  .brand-word { display: none; }
  .btn-head { display: none; }
}

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  object-position: 50% 30%;
  z-index: -2;
  will-change: transform;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 20%, transparent 40%, rgba(14, 9, 6, 0.55) 100%),
    linear-gradient(180deg, rgba(14, 9, 6, 0.5) 0%, rgba(14, 9, 6, 0.05) 26%, rgba(14, 9, 6, 0.12) 55%, rgba(14, 9, 6, 0.78) 84%, var(--ink) 99%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
  padding: 7rem 1.2rem 5.5rem;
  width: min(760px, 94vw);
}

.hero-eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-hi);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.hero-logo { margin: 0.2rem 0 0; }
.hero-logo img {
  width: min(560px, 82vw);
  height: auto;
  filter: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.65));
}

.hero-tagline {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1rem + 1.6vw, 1.9rem);
  letter-spacing: calc(var(--track) * 0.8);
  color: var(--bone);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.hero-sub {
  max-width: 46ch;
  color: rgba(236, 223, 198, 0.82);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
}

.hero-market {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  justify-content: center;
  align-items: baseline;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-hi);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}
html[lang="ja"] .hero-market, html[lang="zh-Hans"] .hero-market, html[lang="ko"] .hero-market {
  letter-spacing: 0.06em;
  text-transform: none;
}
.hero-market .hm-dot { color: var(--ember); }

.hero .cta-row { margin-top: 0.7rem; }

.hero-wiki {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 0.3rem;
}
.hero-wiki:hover { color: var(--gold-hi); }

.hero-scrollcue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  translate: -50% 0;
  width: 22px; height: 34px;
  border: 1.5px solid rgba(216, 165, 76, 0.5);
  border-radius: 12px;
}
.hero-scrollcue span {
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 7px;
  translate: -50% 0;
  border-radius: 2px;
  background: var(--gold);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(10px); opacity: 0.2; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scrollcue span { animation: none; }
}

/* ---------------- reveals ---------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .pillars .reveal:nth-child(2), .js .class-grid .reveal:nth-child(3n+2) { transition-delay: 0.08s; }
.js .pillars .reveal:nth-child(3), .js .class-grid .reveal:nth-child(3n+3) { transition-delay: 0.16s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- pillars / economy cards ---------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
}

.pillar {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 1.8rem 1.6rem 1.7rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.pillar:hover { border-color: var(--line); transform: translateY(-3px); }

.pillar h3 {
  font-size: 1.08rem;
  letter-spacing: calc(var(--track) * 0.6);
  text-transform: uppercase;
  color: var(--gold-hi);
  margin: 0.9rem 0 0.55rem;
}
/* CJK headings keep brand words like "Steam" in their proper case */
html[lang="ja"] .pillar h3, html[lang="zh-Hans"] .pillar h3, html[lang="ko"] .pillar h3 {
  text-transform: none;
}
.pillar p { color: var(--ash); font-size: 0.98rem; }

.p-icon {
  width: 40px; height: 40px;
  stroke: var(--gold);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  opacity: 0.9;
}

/* ---------------- market flagship (full-bleed) ---------------- */

.market-flag {
  overflow: hidden;
  isolation: isolate;
  padding: clamp(5rem, 13vh, 8.5rem) 0;
  border-bottom: 1px solid var(--line-soft);
}
.market-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  z-index: -2;
  filter: saturate(0.85);
}
.market-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(110% 80% at 50% 8%, rgba(14, 9, 6, 0.3), rgba(14, 9, 6, 0.88) 78%),
    linear-gradient(180deg, var(--ink) 0%, rgba(14, 9, 6, 0.5) 16%, rgba(14, 9, 6, 0.66) 62%, var(--ink) 100%);
}
.market-lede { color: rgba(236, 223, 198, 0.86); }

.market-pillars .pillar {
  background: linear-gradient(180deg, rgba(34, 24, 18, 0.94), rgba(22, 15, 10, 0.94));
  border-color: var(--line-soft);
}
.market-pillars .pillar:hover { border-color: var(--line); }

.pillar-steam { position: relative; border-color: rgba(79, 214, 197, 0.32); }
.pillar-steam:hover { border-color: rgba(79, 214, 197, 0.55); }
.mkt-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0c1a17;
  background: linear-gradient(180deg, #8beadb, var(--teal));
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(79, 214, 197, 0.35);
}

.trust-strip {
  margin-top: clamp(2.2rem, 4.5vw, 3.2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1.4rem;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(14, 9, 6, 0.62);
  padding: 0.95rem 1.4rem;
}
.trust-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: calc(var(--track) * 0.6);
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.trust-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.15rem;
  font-size: 0.82rem;
  color: var(--ash);
}
.trust-list li::before {
  content: "✓";
  color: var(--teal);
  margin-right: 0.4rem;
}
.trust-legal { display: flex; gap: 1rem; }
.trust-legal a {
  color: rgba(168, 147, 123, 0.85);
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.trust-legal a:hover { color: var(--gold-hi); }

/* ---------------- engine showcase (live Spine) ---------------- */

.engine {
  background:
    radial-gradient(70% 90% at 82% 8%, rgba(79, 214, 197, 0.06), transparent 60%),
    var(--ink-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.engine-inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .engine-inner { grid-template-columns: 1fr; }
  .engine-stage { margin-inline: auto; }
}
.engine-copy .claw { margin: 0.9rem 0; }
.engine-copy h2 { margin-bottom: 1rem; }
.engine-tip {
  margin-top: 1.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.engine-stage {
  position: relative;
  width: min(480px, 100%);
  margin: 0;
  border: 1px solid var(--line);
  outline: 1px solid var(--line-soft);
  outline-offset: 5px;
  border-radius: 4px;
  overflow: hidden;
  background:
    radial-gradient(85% 62% at 50% 34%, rgba(79, 214, 197, 0.09), transparent 68%),
    radial-gradient(120% 90% at 50% 112%, rgba(255, 123, 51, 0.12), transparent 60%),
    linear-gradient(180deg, #17110c, #0b0805);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.engine-stage.is-live { cursor: pointer; }
.engine-canvas,
.engine-poster {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 7;
}
.engine-canvas canvas { display: block; width: 100%; height: 100%; }
.engine-stage.is-live .engine-poster { display: none; }
.engine-caption {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.2rem 1.1rem;
  font-size: 0.9rem;
  color: var(--ash);
  border-top: 1px solid var(--line-soft);
  cursor: default;
}
.engine-live {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.engine-stage.is-live .engine-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3fe3c3;
  box-shadow: 0 0 10px rgba(79, 214, 197, 0.9);
  animation: livepulse 2.2s ease-in-out infinite;
}
.engine-stage.is-static .engine-live { color: var(--ash); }
@keyframes livepulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.classes-src {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--teal);
  opacity: 0.8;
}

/* ---------------- away-report ledger ---------------- */

.ledger {
  margin-top: clamp(2.2rem, 4.5vw, 3.4rem);
  position: relative;
  border: 1px solid var(--line);
  outline: 1px solid var(--line-soft);
  outline-offset: 5px;
  border-radius: 4px;
  padding: clamp(1.5rem, 3.5vw, 2.4rem) clamp(1.3rem, 4vw, 2.8rem);
  background:
    radial-gradient(70% 120% at 50% 130%, rgba(255, 123, 51, 0.12), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--ink-2));
  overflow: hidden;
}

.ledger-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 0.9rem;
  margin-bottom: 1.4rem;
}
.ledger-head h3 {
  font-size: 1.05rem;
  letter-spacing: calc(var(--track) * 0.7);
  text-transform: uppercase;
  color: var(--gold-hi);
}
.ledger-dur {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ember);
  letter-spacing: 0.1em;
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
@media (max-width: 720px) {
  .ledger-grid { grid-template-columns: repeat(2, 1fr); }
}

.ledger-grid dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 0.3rem;
}
.ledger-grid dd {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
  color: var(--bone);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.ledger-note {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0.85;
}

/* ---------------- classes ---------------- */

.class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 980px) { .class-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .class-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; } }

.class-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 1.2rem 1.2rem 1.4rem;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.class-card:hover {
  border-color: rgba(255, 123, 51, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(255, 123, 51, 0.07);
}

.class-art {
  background: radial-gradient(65% 60% at 50% 42%, rgba(79, 214, 197, 0.09), transparent 70%),
              radial-gradient(80% 76% at 50% 55%, rgba(216, 165, 76, 0.05), transparent 75%);
  height: clamp(200px, 24vw, 300px);
  margin-bottom: 1rem;
}
.class-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.55));
  transition: transform 0.3s ease;
}
.class-card:hover .class-art img { transform: scale(1.04) translateY(-3px); }

.class-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: calc(var(--track) * 0.8);
  text-transform: uppercase;
  color: var(--gold-hi);
}
.class-weapon {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0.25rem 0 0.5rem;
}
.class-blurb { color: var(--ash); font-size: 0.94rem; }

/* ---------------- armory ---------------- */

.section-armory {
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(216, 165, 76, 0.05), transparent 60%),
    var(--ink-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.set-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
@media (max-width: 980px) { .set-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .set-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; } }

.set-card {
  position: relative;
  background:
    radial-gradient(70% 55% at 50% 38%, rgba(216, 165, 76, 0.07), transparent 72%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 1.1rem 0.9rem 1.05rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.set-card:hover {
  border-color: rgba(216, 165, 76, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}
.set-card img {
  height: clamp(150px, 17vw, 210px);
  width: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
}

.set-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: calc(var(--track) * 0.5);
  text-transform: uppercase;
  color: var(--bone);
  text-align: center;
  line-height: 1.3;
}

.elem {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.9;
}
.elem-fire    { color: #ff8a5c; }
.elem-ice     { color: #a5d8f2; }
.elem-thunder { color: #f2d06b; }
.elem-water   { color: #6fb4e8; }
.elem-light   { color: var(--gold-hi); }
.elem-dark    { color: #b48ae0; }

.set-caption {
  margin-top: 1.8rem;
  text-align: center;
  color: var(--ash);
  font-size: 0.95rem;
}

/* ---------------- weapons marquee ---------------- */

.marquee-block { margin-top: clamp(3rem, 6vw, 4.5rem); }

.marquee-caption {
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: calc(var(--track) * 0.7);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 1.4rem 0;
  display: grid;
  gap: 1.6rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.mq-track {
  display: flex;
  width: max-content;
  animation: mq 52s linear infinite;
}
.mq-track.mq-rev { animation-direction: reverse; animation-duration: 60s; }
.marquee:hover .mq-track { animation-play-state: paused; }

.mq-group {
  display: flex;
  align-items: stretch;
}
.mq-group img {
  box-sizing: content-box;
  height: 72px;
  width: auto;
  margin-right: 1.6rem;
  padding: 14px 26px;
  background: linear-gradient(180deg, #1c130d, #150e09);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
}
@media (max-width: 640px) {
  .mq-group img { height: 52px; margin-right: 1rem; padding: 10px 18px; }
}

@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; }
}

/* ---------------- beasts ---------------- */

.beasts {
  overflow: hidden;
  isolation: isolate;
  padding: clamp(5rem, 14vh, 9rem) 0;
}
.beasts-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  z-index: -2;
}
.beasts-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 9, 6, 0.93) 0%, rgba(14, 9, 6, 0.72) 44%, rgba(14, 9, 6, 0.3) 100%),
    linear-gradient(180deg, var(--ink) 0%, transparent 14%, transparent 86%, var(--ink) 100%);
}

.beasts-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .beasts-inner { grid-template-columns: 1fr; }
}

.beasts-copy .claw { margin: 0.9rem 0; }
.beasts-copy h2 { margin-bottom: 1rem; }
.beasts-copy .lede { color: rgba(236, 223, 198, 0.8); }

.chip-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}
.chip-row li {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-hi);
  border: 1px solid rgba(216, 165, 76, 0.4);
  background: rgba(14, 9, 6, 0.55);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}

.capture-card {
  border: 1px solid var(--line);
  outline: 1px solid var(--line-soft);
  outline-offset: 5px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.capture-card img { width: 100%; height: auto; }
.capture-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.2rem 1.15rem;
  font-size: 0.92rem;
  color: var(--ash);
  border-top: 1px solid var(--line-soft);
}
.capture-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---------------- community ---------------- */

.community {
  background:
    radial-gradient(60% 90% at 50% 115%, rgba(255, 123, 51, 0.13), transparent 62%),
    var(--ink);
}
.community-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.community-badge {
  width: clamp(96px, 12vw, 136px);
  height: auto;
  filter: drop-shadow(0 0 34px rgba(255, 123, 51, 0.35));
  margin-bottom: 0.4rem;
}
.community .lede { margin-inline: auto; }
.community .cta-row { margin-top: 0.8rem; }

/* ---------------- footer ---------------- */

.site-foot {
  border-top: 1px solid var(--line-soft);
  background: var(--ink-2);
  padding: clamp(2.6rem, 6vw, 4rem) 0 2rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.2rem;
}
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr; }
}

.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; align-content: start; }
.foot-brand p {
  flex-basis: 100%;
  color: var(--ash);
  font-size: 0.92rem;
  max-width: 44ch;
  margin-top: 0.4rem;
}

.foot-col { display: flex; flex-direction: column; gap: 0.55rem; }
.foot-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.foot-col a { color: var(--ash); font-size: 0.94rem; }
.foot-col a:hover { color: var(--gold-hi); }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  color: rgba(168, 147, 123, 0.75);
  font-size: 0.82rem;
}
