:root {
  --bg: #0c0907;
  --bg-alt: #100c09;
  --bg-deep: #090706;
  --panel: #15100c;
  --panel-hi: #1a1410;
  --panel-lo: #120d0a;
  --ink: #ece2d2;
  --heading: #f1e4cc;
  --title: #ecd3a4;
  --body: #c9bca8;
  --body-dim: #bfb29e;
  --muted: #a8977f;
  --nav: #cbbba3;
  --mono: #8a7458;
  --mono-dim: #7d6a52;
  --gold: #e0a84e;
  --gold-hi: #f6c46e;
  --gold-soft: #d9b77c;
  --ember: #f07a2a;
  --line: rgba(217, 162, 74, .28);
  --line-strong: rgba(217, 162, 74, .5);
  --wrap: 1180px;
  --gutter: 28px;
  --f-display: Cinzel, Georgia, serif;
  --f-body: Spectral, Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

h1, h2, h3, p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

[id] { scroll-margin-top: 90px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 9, 7, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-wordmark { height: 30px; width: auto; display: block; animation: forge-glow 4.5s ease-in-out infinite; }
@keyframes forge-glow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(240, 122, 42, .35)); }
  30% { filter: drop-shadow(0 0 7px rgba(240, 122, 42, .6)) brightness(1.08); }
  45% { filter: drop-shadow(0 0 4px rgba(240, 122, 42, .4)); }
  70% { filter: drop-shadow(0 0 8px rgba(255, 150, 60, .55)) brightness(1.05); }
}

.emblem {
  width: 44px;
  height: 44px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(240, 122, 42, .35));
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 8px;
  font: 600 12px var(--f-display);
  letter-spacing: .1em;
  flex: 1 1 auto;
  white-space: nowrap;
}
.site-nav a { color: var(--nav); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-hi); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font: 700 13px var(--f-display);
  letter-spacing: .18em;
}

.btn-fire {
  background: linear-gradient(#f08a3a, #c4561a);
  color: #1a0d05;
  box-shadow: 0 0 0 1px #f6b46a inset;
}
a.btn-fire:hover { filter: brightness(1.1); color: #1a0d05; }

.btn-ghost { border: 1px solid var(--line-strong); color: #e0c28d; }
.btn-ghost:hover { background: rgba(217, 162, 74, .1); color: var(--gold-hi); }

.btn[aria-disabled="true"] { cursor: not-allowed; }

.btn-header { gap: 10px; padding: 11px 20px; font-size: 12px; letter-spacing: .16em; opacity: .6; }

.btn-download {
  flex-direction: column;
  gap: 4px;
  padding: 14px 44px;
  box-shadow: 0 0 0 1px #f6b46a inset, 0 10px 30px rgba(240, 122, 42, .3);
}
.btn-download .label { font: 700 16px var(--f-display); letter-spacing: .2em; }
.btn-download .sub { font: 11px var(--f-mono); letter-spacing: 0; color: #3a1c08; }

.btn-md { padding: 14px 28px; }
.btn-lg { padding: 16px 30px; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Shared bits ---------- */

.eyebrow { font: 600 12px var(--f-display); letter-spacing: .3em; color: var(--ember); }
.eyebrow-sm { font: 600 11px var(--f-display); letter-spacing: .28em; color: var(--ember); }

.lead { font-size: 19px; line-height: 1.6; color: var(--body); text-wrap: pretty; }

.mono { font: 11px var(--f-mono); color: var(--mono); }

.h-xl { font: 700 48px var(--f-display); color: var(--heading); }
.h-lg { font: 700 40px/1.1 var(--f-display); color: var(--heading); text-wrap: balance; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  padding: 8px 14px;
  border: 1px solid rgba(217, 162, 74, .35);
  font: 600 11px var(--f-display);
  letter-spacing: .18em;
  color: var(--gold-soft);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}

.stack { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Landing ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(217, 162, 74, .2);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 50% 50%, rgba(12, 9, 7, .62), transparent 80%),
    linear-gradient(rgba(12, 9, 7, .4), rgba(12, 9, 7, .1) 35%, rgba(12, 9, 7, .25) 70%, var(--bg));
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 80px 24px 110px;
  text-align: center;
  max-width: 900px;
}

/* Hero slideshow: 12 slides, 6s each, crossfading (72s loop). Pure CSS, no script. */
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; animation: slide-fade 72s infinite; }
.slide img { width: 100%; height: 100%; object-fit: cover; animation: slide-drift 72s infinite linear; animation-delay: inherit; }
@keyframes slide-fade {
  0% { opacity: 0; }
  2.5% { opacity: 1; }
  8.33% { opacity: 1; }
  10.83% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes slide-drift {
  0% { transform: scale(1.02); }
  11% { transform: scale(1.09); }
  100% { transform: scale(1.09); }
}
.slide-meta {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.captions { position: relative; height: 16px; flex: 1; }
.slide-caption {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font: 11px var(--f-mono);
  letter-spacing: .08em;
  color: #c9a56c;
  opacity: 0;
  animation: slide-fade 72s infinite;
}
.dots { display: flex; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(217, 162, 74, .3); animation: dot-on 72s infinite; }
@keyframes dot-on {
  0%, 9.5% { background: var(--gold-hi); box-shadow: 0 0 8px rgba(246, 196, 110, .7); }
  10.5%, 100% { background: rgba(217, 162, 74, .3); box-shadow: none; }
}
.slide:nth-child(1), .slide-caption:nth-child(1), .dot:nth-child(1) { animation-delay: -1.5s; }
.slide:nth-child(2), .slide-caption:nth-child(2), .dot:nth-child(2) { animation-delay: 4.5s; }
.slide:nth-child(3), .slide-caption:nth-child(3), .dot:nth-child(3) { animation-delay: 10.5s; }
.slide:nth-child(4), .slide-caption:nth-child(4), .dot:nth-child(4) { animation-delay: 16.5s; }
.slide:nth-child(5), .slide-caption:nth-child(5), .dot:nth-child(5) { animation-delay: 22.5s; }
.slide:nth-child(6), .slide-caption:nth-child(6), .dot:nth-child(6) { animation-delay: 28.5s; }
.slide:nth-child(7), .slide-caption:nth-child(7), .dot:nth-child(7) { animation-delay: 34.5s; }
.slide:nth-child(8), .slide-caption:nth-child(8), .dot:nth-child(8) { animation-delay: 40.5s; }
.slide:nth-child(9), .slide-caption:nth-child(9), .dot:nth-child(9) { animation-delay: 46.5s; }
.slide:nth-child(10), .slide-caption:nth-child(10), .dot:nth-child(10) { animation-delay: 52.5s; }
.slide:nth-child(11), .slide-caption:nth-child(11), .dot:nth-child(11) { animation-delay: 58.5s; }
.slide:nth-child(12), .slide-caption:nth-child(12), .dot:nth-child(12) { animation-delay: 64.5s; }

.motto { margin: 0; font: 700 clamp(15px, 2.6vw, 24px) var(--f-display); letter-spacing: .32em; color: #f3d9a4; text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
.pitch { font-weight: 400; text-shadow: 0 2px 12px rgba(0, 0, 0, .9); font-size: 21px; line-height: 1.5; color: #d8ccb9; max-width: 620px; text-wrap: pretty; }
.platforms { font: 12px var(--f-mono); color: var(--mono); }

.about { padding-top: 110px; padding-bottom: 60px; }
.about h2 { font: 700 44px/1.1 var(--f-display); color: var(--heading); text-wrap: balance; }

.features {
  padding-top: 40px;
  padding-bottom: 110px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
}
.feature {
  padding: 32px 28px;
  background: linear-gradient(var(--panel-hi), var(--panel-lo));
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature .num { font: 11px var(--f-mono); color: var(--ember); }
.feature h3 { font: 700 22px var(--f-display); letter-spacing: .06em; color: var(--title); }
.feature p { font-size: 17px; line-height: 1.55; color: var(--body-dim); }

.heroes-band {
  background: var(--bg-alt);
  border-top: 1px solid rgba(217, 162, 74, .18);
  border-bottom: 1px solid rgba(217, 162, 74, .18);
}
.heroes-band .wrap { padding-top: 100px; padding-bottom: 100px; display: flex; flex-direction: column; gap: 44px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section-head .stack { gap: 14px; }
.section-link { font: 600 12px var(--f-display); letter-spacing: .2em; }

.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.class-tile {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(217, 162, 74, .3);
  background: #16110d;
  border-radius: 4px;
  overflow: hidden;
  color: inherit;
  transition: border-color .15s, transform .15s;
}
.class-tile:hover { border-color: rgba(240, 122, 42, .8); color: inherit; transform: translateY(-2px); }
.class-tile img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.class-tile .info { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid rgba(217, 162, 74, .25); }
.class-tile .name { font: 700 19px var(--f-display); color: var(--title); letter-spacing: .06em; }
.class-tile .role { font-size: 15px; line-height: 1.45; color: var(--muted); }

.forge { padding-top: 110px; padding-bottom: 110px; }

.media { padding-bottom: 110px; display: flex; flex-direction: column; gap: 32px; }
.media h2 { font: 700 32px var(--f-display); color: var(--heading); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.shot { position: relative; display: block; border: 1px solid rgba(217, 162, 74, .25); overflow: hidden; line-height: 0; }
.shot img { width: 100%; height: auto; transition: transform .3s; }
.shot:hover img { transform: scale(1.03); }
.shot-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 14px 10px;
  background: linear-gradient(transparent, rgba(12, 9, 7, .9));
  font: 600 12px var(--f-display);
  letter-spacing: .16em;
  line-height: 1.2;
  color: #e0c28d;
  text-transform: uppercase;
}

.cta {
  border-top: 1px solid rgba(217, 162, 74, .22);
  background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(240, 110, 30, .18), transparent 70%), #0e0a08;
}
.cta .wrap {
  max-width: 860px;
  padding-top: 100px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.cta h2 { font: 700 40px var(--f-display); color: var(--heading); }
.cta .lead { max-width: 560px; }

/* ---------- Class tabs (radio inputs, no script) ---------- */

.class-tabs { display: flex; flex-direction: column; gap: 24px; }
.tab-radio { position: absolute; opacity: 0; pointer-events: none; }
.tab-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(120px, 30%), 1fr)); gap: 10px; }
.tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  border: 1px solid rgba(217, 162, 74, .25);
  background: #15100c;
  border-radius: 4px;
  cursor: pointer;
  font: 700 13px var(--f-display);
  letter-spacing: .08em;
  color: var(--nav);
  transition: border-color .15s, background .15s;
}
.tab:hover { border-color: rgba(240, 122, 42, .7); color: var(--gold-hi); }
.tab-art { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; flex: none; border: 1px solid rgba(217, 162, 74, .4); }
.tab-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 28px 36px;
  padding: 28px;
  border: 1px solid rgba(217, 162, 74, .3);
  background: linear-gradient(#16110d, #100c09);
  border-radius: 4px;
}
.panel-art { align-self: start; }
.panel-body { display: flex; flex-direction: column; gap: 14px; }
.panel-cards { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.panel-link { grid-column: 1 / -1; justify-self: end; }
.race-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.5; color: var(--body); }
.race-list strong { font-family: var(--f-display); color: var(--title); }
.mini-card { display: block; line-height: 0; transition: transform .2s; }
.mini-card:hover { transform: translateY(-5px); }
.mini-card img { width: 100%; height: auto; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .6)); }
.tab-radio:nth-of-type(1):checked ~ .tab-panels .tab-panel:nth-child(1) { display: grid; }
.tab-radio:nth-of-type(1):checked ~ .tab-list .tab:nth-child(1) { border-color: var(--ember); background: #22170f; color: var(--gold-hi); }
.tab-radio:nth-of-type(1):focus-visible ~ .tab-list .tab:nth-child(1) { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.tab-radio:nth-of-type(2):checked ~ .tab-panels .tab-panel:nth-child(2) { display: grid; }
.tab-radio:nth-of-type(2):checked ~ .tab-list .tab:nth-child(2) { border-color: var(--ember); background: #22170f; color: var(--gold-hi); }
.tab-radio:nth-of-type(2):focus-visible ~ .tab-list .tab:nth-child(2) { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.tab-radio:nth-of-type(3):checked ~ .tab-panels .tab-panel:nth-child(3) { display: grid; }
.tab-radio:nth-of-type(3):checked ~ .tab-list .tab:nth-child(3) { border-color: var(--ember); background: #22170f; color: var(--gold-hi); }
.tab-radio:nth-of-type(3):focus-visible ~ .tab-list .tab:nth-child(3) { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.tab-radio:nth-of-type(4):checked ~ .tab-panels .tab-panel:nth-child(4) { display: grid; }
.tab-radio:nth-of-type(4):checked ~ .tab-list .tab:nth-child(4) { border-color: var(--ember); background: #22170f; color: var(--gold-hi); }
.tab-radio:nth-of-type(4):focus-visible ~ .tab-list .tab:nth-child(4) { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.tab-radio:nth-of-type(5):checked ~ .tab-panels .tab-panel:nth-child(5) { display: grid; }
.tab-radio:nth-of-type(5):checked ~ .tab-list .tab:nth-child(5) { border-color: var(--ember); background: #22170f; color: var(--gold-hi); }
.tab-radio:nth-of-type(5):focus-visible ~ .tab-list .tab:nth-child(5) { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.tab-radio:nth-of-type(6):checked ~ .tab-panels .tab-panel:nth-child(6) { display: grid; }
.tab-radio:nth-of-type(6):checked ~ .tab-list .tab:nth-child(6) { border-color: var(--ember); background: #22170f; color: var(--gold-hi); }
.tab-radio:nth-of-type(6):focus-visible ~ .tab-list .tab:nth-child(6) { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.tab-radio:nth-of-type(7):checked ~ .tab-panels .tab-panel:nth-child(7) { display: grid; }
.tab-radio:nth-of-type(7):checked ~ .tab-list .tab:nth-child(7) { border-color: var(--ember); background: #22170f; color: var(--gold-hi); }
.tab-radio:nth-of-type(7):focus-visible ~ .tab-list .tab:nth-child(7) { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.tab-radio:nth-of-type(8):checked ~ .tab-panels .tab-panel:nth-child(8) { display: grid; }
.tab-radio:nth-of-type(8):checked ~ .tab-list .tab:nth-child(8) { border-color: var(--ember); background: #22170f; color: var(--gold-hi); }
.tab-radio:nth-of-type(8):focus-visible ~ .tab-list .tab:nth-child(8) { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.tab-radio:nth-of-type(9):checked ~ .tab-panels .tab-panel:nth-child(9) { display: grid; }
.tab-radio:nth-of-type(9):checked ~ .tab-list .tab:nth-child(9) { border-color: var(--ember); background: #22170f; color: var(--gold-hi); }
.tab-radio:nth-of-type(9):focus-visible ~ .tab-list .tab:nth-child(9) { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.tab-radio:nth-of-type(10):checked ~ .tab-panels .tab-panel:nth-child(10) { display: grid; }
.tab-radio:nth-of-type(10):checked ~ .tab-list .tab:nth-child(10) { border-color: var(--ember); background: #22170f; color: var(--gold-hi); }
.tab-radio:nth-of-type(10):focus-visible ~ .tab-list .tab:nth-child(10) { outline: 2px solid var(--gold-hi); outline-offset: 2px; }

/* ---------- Showcase sections ---------- */

.cards-band { padding-top: 100px; padding-bottom: 100px; display: flex; flex-direction: column; gap: 36px; }
.rarity-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; align-items: end; }
.rarity-card, .back-card, .pack-fig, .icon-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.rarity-card a { line-height: 0; transition: transform .2s; }
.rarity-card a:hover { transform: translateY(-6px); }
.rarity-card img, .back-card img { width: 100%; height: auto; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .6)); }
.rarity-card figcaption, .back-card figcaption, .pack-fig figcaption, .icon-fig figcaption {
  font: 600 11px var(--f-display); letter-spacing: .18em; color: var(--gold-soft); text-transform: uppercase;
}
.subhead { display: flex; flex-direction: column; gap: 8px; }
.back-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(120px, 30%), 1fr)); gap: 16px; }

.match-band { position: relative; overflow: hidden; border-top: 1px solid rgba(217, 162, 74, .2); border-bottom: 1px solid rgba(217, 162, 74, .2); }
.band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.match-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 9, 7, .92), rgba(12, 9, 7, .6)); }
.match { position: relative; z-index: 1; padding-top: 100px; padding-bottom: 100px; display: flex; flex-direction: column; gap: 32px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 18px; }
.steps li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: rgba(16, 12, 9, .8);
  border: 1px solid rgba(217, 162, 74, .28);
  border-radius: 4px;
}
.steps img { height: 64px; width: auto; max-width: 100%; object-fit: contain; align-self: flex-start; }
.steps div { display: flex; flex-direction: column; gap: 6px; }
.steps strong { font: 700 17px var(--f-display); color: var(--title); letter-spacing: .04em; }
.steps span { font-size: 16px; line-height: 1.5; color: var(--body-dim); }

.materials { padding-bottom: 100px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 36px; align-items: start; }
.mat-group { display: flex; flex-direction: column; gap: 16px; }
.icon-row { display: flex; flex-wrap: wrap; gap: 14px; }
.icon-fig img { width: 64px; height: 64px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .6)); }
.mini-row { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 14px; }

.tempering-band { background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(240, 110, 30, .12), transparent 70%), var(--bg-alt); border-top: 1px solid rgba(217, 162, 74, .18); border-bottom: 1px solid rgba(217, 162, 74, .18); }
.tempering-band .wrap { padding-top: 100px; padding-bottom: 100px; }
.oaths { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 1.5; color: var(--body); }
.oaths li { padding-left: 14px; border-left: 2px solid var(--ember); }
.oaths strong { display: block; font-family: var(--f-display); color: var(--title); }
.ranks { grid-template-columns: repeat(auto-fill, minmax(min(110px, 30%), 1fr)); }

.packs-band { padding-top: 100px; padding-bottom: 100px; display: flex; flex-direction: column; gap: 36px; }
.pack-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 30%), 1fr)); gap: 16px; }
.pack-fig img { width: 100%; height: auto; border-radius: 4px; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .6)); transition: transform .2s; }
.pack-fig:hover img { transform: translateY(-5px) rotate(-1deg); }

.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 45%), 1fr)); gap: 10px; }
.board { position: relative; display: block; line-height: 0; border: 1px solid rgba(217, 162, 74, .2); overflow: hidden; }
.board img { width: 100%; height: auto; transition: transform .3s; }
.board:hover img { transform: scale(1.04); }
.board .shot-label { text-transform: capitalize; }

/* ---------- Page headers (News, Wiki) ---------- */

.page-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(217, 162, 74, .25);
}
.page-head .lead { max-width: 640px; }

/* ---------- News ---------- */

.news { padding-top: 56px; padding-bottom: 110px; display: flex; flex-direction: column; gap: 48px; }
.featured-post { color: inherit; }
.featured-post:hover { color: inherit; }
.featured-post .stack { gap: 14px; }
.featured-post:hover .framed { border-color: rgba(240, 122, 42, .8); }
.featured-post h2 { font: 700 34px/1.15 var(--f-display); color: var(--heading); text-wrap: balance; }
.featured-post p { font-size: 18px; line-height: 1.6; color: var(--body-dim); }
.featured-post .read { font: 600 12px var(--f-display); letter-spacing: .2em; color: var(--gold); }
.featured-post:hover .read { color: var(--gold-hi); }
.post-meta { display: flex; gap: 12px; align-items: center; }
.tag-solid { padding: 4px 10px; background: var(--ember); color: #1a0d05; font: 700 10px var(--f-display); letter-spacing: .2em; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 22px; }
.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 4px;
  overflow: hidden;
  color: inherit;
  transition: border-color .15s;
}
.post-card:hover { border-color: rgba(240, 122, 42, .8); color: inherit; }
.post-card .ph { font-size: 11px; color: var(--mono); background: repeating-linear-gradient(135deg, #1b1410 0 10px, #211913 10px 20px); }
.post-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.post-card .meta { display: flex; justify-content: space-between; gap: 10px; }
.post-card .tag { font: 700 10px var(--f-display); letter-spacing: .2em; color: var(--ember); }
.post-card .date { font: 11px var(--f-mono); color: var(--mono-dim); }
.post-card .title { font: 700 19px/1.25 var(--f-display); color: var(--title); }

/* ---------- Wiki ---------- */

.wiki {
  max-width: 1280px;
  padding-top: 40px;
  padding-bottom: 100px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}
.wiki-side { display: flex; flex-direction: column; gap: 22px; flex: 1 1 200px; max-width: 260px; }
.wiki-group { display: flex; flex-direction: column; gap: 8px; }
.wiki-group a { font-size: 16px; color: var(--nav); padding: 3px 0; }
.wiki-group a:hover { color: var(--gold-hi); }
.wiki-main { flex: 999 1 480px; display: flex; flex-direction: column; gap: 40px; min-width: 0; }

.wiki-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.wiki-cat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(var(--panel-hi), var(--panel-lo));
  border-radius: 4px;
  color: inherit;
  transition: border-color .15s;
}
.wiki-cat:hover { border-color: rgba(240, 122, 42, .8); color: inherit; }
.wiki-cat .name { font: 700 18px var(--f-display); letter-spacing: .08em; color: var(--title); }
.wiki-cat .desc { font-size: 15px; line-height: 1.5; color: var(--muted); }
.wiki-cat .count { font: 11px var(--f-mono); color: var(--mono-dim); }

.wiki-lower { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; }
.wiki-lower > div { display: flex; flex-direction: column; gap: 14px; }
.featured-article { display: flex; gap: 18px; padding: 18px; border: 1px solid var(--line); background: var(--panel); border-radius: 4px; color: inherit; }
.featured-article:hover { border-color: rgba(240, 122, 42, .8); color: inherit; }
.portrait { flex: none; width: 96px; height: 96px; border-radius: 50%; border: 1px solid var(--line-strong); object-fit: cover; }
.featured-article .text { display: flex; flex-direction: column; gap: 6px; }
.featured-article .name { font: 700 20px var(--f-display); color: var(--title); }
.featured-article .role { font-size: 14px; color: #d9a24a; }
.featured-article .desc { font-size: 16px; line-height: 1.5; color: var(--body-dim); }

.changes { display: flex; flex-direction: column; border-top: 1px solid rgba(217, 162, 74, .2); }
.change { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(217, 162, 74, .14); font-size: 16px; }
.change a { color: #d8ccb9; }
.change a:hover { color: var(--gold-hi); }
.change .when { font: 11px var(--f-mono); color: var(--mono-dim); white-space: nowrap; }

.wiki-home { font: 700 13px var(--f-display); letter-spacing: .16em; color: var(--gold-soft); }
.crumbs { font: 12px var(--f-mono); color: var(--mono); }
.crumbs a { color: var(--muted); }
.wiki-main section { display: flex; flex-direction: column; gap: 16px; }
.h-md { font: 700 26px var(--f-display); color: var(--heading); }
.h-md a { color: inherit; }
.h-md a:hover { color: var(--gold-hi); }
.small { font-size: 16px; line-height: 1.6; color: var(--muted); }
.jump a { white-space: nowrap; }
.lore { font-style: italic; color: var(--muted); font-size: 18px; line-height: 1.6; }
.class-head { gap: 36px; }
.badge {
  display: inline-block;
  padding: 2px 10px;
  margin-right: 6px;
  border: 1px solid rgba(217, 162, 74, .45);
  font: 600 12px var(--f-display);
  letter-spacing: .12em;
  color: var(--gold-soft);
}
.race { padding-bottom: 32px; border-bottom: 1px solid rgba(217, 162, 74, .14); }
.race p { font-size: 17px; line-height: 1.6; color: var(--body); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th { text-align: left; font: 600 11px var(--f-display); letter-spacing: .18em; color: var(--ember); text-transform: uppercase; padding: 10px 14px; border-bottom: 1px solid rgba(217, 162, 74, .35); }
td { padding: 12px 14px; border-bottom: 1px solid rgba(217, 162, 74, .14); color: var(--body); line-height: 1.5; vertical-align: top; }
td strong { font-family: var(--f-display); color: var(--title); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 45%), 1fr)); gap: 26px 18px; }
.card { margin: 0; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 100px; }
.card img { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
.card figcaption { display: flex; flex-direction: column; gap: 3px; }
.card-name { font: 700 15px var(--f-display); color: var(--title); letter-spacing: .04em; }
.card-meta { font: 11px var(--f-mono); color: var(--mono); }
.card-text { font-size: 15px; line-height: 1.45; color: var(--body-dim); }
.card-note { font: 11px var(--f-mono); color: var(--ember); }
.card:target img { filter: drop-shadow(0 0 16px rgba(240, 122, 42, .8)); }
.pack { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pack img { width: 100%; height: auto; border-radius: 4px; }

.looks { display: flex; flex-wrap: wrap; gap: 22px; }
.look { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.look-img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(217, 162, 74, .5); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.race .look-img { width: 120px; height: 120px; }
.look figcaption { display: flex; flex-direction: column; gap: 2px; }
.look-name { font: 700 15px var(--f-display); color: var(--title); }
.look-race { font-size: 14px; color: var(--muted); }

.framed { border: 1px solid rgba(217, 162, 74, .35); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); line-height: 0; overflow: hidden; }
.framed img { width: 100%; height: auto; }

/* ---------- Posts ---------- */

.post { max-width: 900px; padding-top: 48px; padding-bottom: 110px; display: flex; flex-direction: column; gap: 22px; }
.back { font: 600 12px var(--f-display); letter-spacing: .2em; }
.prose { display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font: 700 26px var(--f-display); color: var(--heading); margin-top: 18px; }
.prose p, .prose li { font-size: 19px; line-height: 1.65; color: var(--body); }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--ember); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; padding: 8px 14px; background: var(--gold); color: #1a0d05; }
.skip:focus { left: 8px; }

/* ---------- 404 ---------- */

.lost { padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid rgba(217, 162, 74, .25); background: var(--bg-deep); }
.site-footer .bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-brand { font: 700 16px var(--f-display); letter-spacing: .1em; color: #b99a66; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; }
.footer-nav a { color: #9d8d76; }
.footer-nav a:hover { color: var(--gold-hi); }
.copyright { font: 11px var(--f-mono); color: #6f604e; }

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .about h2 { font-size: 34px; }
  .h-lg, .cta h2 { font-size: 32px; }
  .h-xl { font-size: 38px; }
  .featured-post h2 { font-size: 28px; }
  .motto { letter-spacing: .28em; }
  .pitch { font-size: 19px; }
  .btn-header { padding: 10px 14px; }
  .wiki-side { max-width: none; }
  .look-img { width: 120px; height: 120px; }
  .prose p, .prose li { font-size: 17px; }
  .tab-panel { grid-template-columns: 1fr; padding: 18px; }
  .panel-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rarity-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-wordmark { height: 24px; }
  .slide-caption { font-size: 10px; }
}

@media (max-width: 900px) and (min-width: 641px) {
  .tab-panel { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .slide img, .slide-caption, .dot, .brand-wordmark { animation: none; }
  .slide:first-child, .slide-caption:first-child { opacity: 1; }
  .dots { display: none; }
  .mini-card, .rarity-card a, .pack-fig img, .board img { transition: none; }
  .class-tile, .shot img { transition: none; }
}
