:root {
  color-scheme: dark;
  --bg: #11100e;
  --bg-2: #181512;
  --surface: #211b16;
  --surface-2: #2b231b;
  --surface-soft: rgba(33, 27, 22, 0.82);
  --ink: #f3ead9;
  --muted: #cab89d;
  --quiet: #907d62;
  --line: rgba(229, 198, 145, 0.2);
  --line-strong: rgba(229, 198, 145, 0.36);
  --gold: #d7a84c;
  --gold-2: #f1cf7b;
  --blue: #4f8fd7;
  --blue-soft: rgba(79, 143, 215, 0.2);
  --red: #b84839;
  --red-soft: rgba(184, 72, 57, 0.22);
  --green: #6eaa72;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --max: 1440px;
  --header: 72px;
  font-family:
    "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(215, 168, 76, 0.1), transparent 30%),
    linear-gradient(180deg, #0d0c0b 0%, var(--bg) 32%, #15110e 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  width: 100%;
  height: var(--header);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(229, 198, 145, 0.16);
  background: rgba(13, 12, 11, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #14100c;
  border: 1px solid rgba(241, 207, 123, 0.58);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f1cf7b, #a8782a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.top-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--gold-2);
}

main {
  overflow: hidden;
}

.hero-section {
  position: relative;
  display: grid;
  min-height: min(820px, 92vh);
  padding: calc(var(--header) + 58px) clamp(18px, 5vw, 64px) 82px;
  align-items: center;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #0d0c0b;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(0.92) contrast(1.02);
}

.hero-section::before,
.hero-section::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.hero-section::before {
  background:
    linear-gradient(90deg, rgba(13, 12, 11, 0.95) 0%, rgba(13, 12, 11, 0.73) 38%, rgba(13, 12, 11, 0.12) 74%),
    linear-gradient(180deg, rgba(13, 12, 11, 0.1) 0%, rgba(13, 12, 11, 0.72) 100%);
}

.hero-section::after {
  background: linear-gradient(180deg, transparent 68%, var(--bg) 100%);
}

.hero-content {
  width: min(680px, 100%);
}

.fan-note,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  font-weight: 760;
  letter-spacing: 0;
}

h1 {
  max-width: 10em;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.98;
}

.hero-copy {
  max-width: 620px;
  margin: 28px 0 0;
  color: #e8d7bd;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 760;
  text-decoration: none;
}

.primary-action {
  color: #17110b;
  background: linear-gradient(135deg, var(--gold-2), #b9822f);
  box-shadow: 0 18px 40px rgba(119, 76, 23, 0.34);
}

.secondary-action {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(23, 18, 13, 0.72);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.hero-facts {
  display: grid;
  width: min(620px, 100%);
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 42px 0 0;
  overflow: hidden;
  border: 1px solid rgba(229, 198, 145, 0.18);
  border-radius: var(--radius);
  background: rgba(229, 198, 145, 0.14);
}

.hero-facts div {
  min-width: 0;
  padding: 17px 18px;
  background: rgba(16, 13, 10, 0.78);
}

.hero-facts dt {
  color: var(--quiet);
  font-size: 12px;
}

.hero-facts dd {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
  white-space: nowrap;
}

.intro-band,
.routes-section,
.rules-section,
.classes-section,
.lore-section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.2fr);
  gap: 42px;
  padding: 78px 0 64px;
}

.intro-copy h2,
.section-heading h2,
.danger-copy h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.intro-copy p,
.section-heading p,
.danger-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.principle-grid article,
.class-grid article,
.link-columns article,
.danger-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(33, 27, 22, 0.78);
}

.principle-grid article {
  min-height: 210px;
  padding: 24px;
}

.principle-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--gold-2);
  border: 1px solid rgba(241, 207, 123, 0.24);
  border-radius: var(--radius);
  background: rgba(215, 168, 76, 0.08);
}

.principle-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.principle-grid h3,
.danger-list h3,
.class-grid h3,
.link-columns h3 {
  margin-top: 20px;
  font-size: 21px;
  line-height: 1.25;
}

.principle-grid p,
.danger-list p,
.class-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
}

.routes-section,
.rules-section,
.classes-section,
.lore-section {
  padding: 78px 0 0;
  scroll-margin-top: 92px;
}

.section-heading {
  width: min(820px, 100%);
}

.section-heading.compact {
  width: min(760px, 100%);
}

.route-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 28px;
  margin-top: 36px;
  align-items: start;
}

.route-glossary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.route-glossary article {
  padding: 16px 18px;
  border: 1px solid rgba(229, 198, 145, 0.16);
  border-radius: var(--radius);
  background: rgba(33, 27, 22, 0.58);
}

.route-glossary strong,
.chapter-lore span,
.story-path-top span {
  display: block;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 840;
}

.route-glossary span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.route-control {
  position: sticky;
  top: calc(var(--header) + 22px);
  display: grid;
  gap: 16px;
  max-height: calc(100vh - var(--header) - 38px);
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(241, 207, 123, 0.44) rgba(20, 16, 12, 0.2);
}

.faction-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 16, 12, 0.86);
}

.faction-button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 780;
}

.faction-button.active {
  color: var(--ink);
  border-color: rgba(241, 207, 123, 0.28);
  background: rgba(215, 168, 76, 0.12);
}

.route-builder {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 16, 12, 0.88);
}

.build-field {
  display: grid;
  gap: 7px;
}

.build-field span {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 760;
}

.build-field select {
  width: 100%;
  min-height: 40px;
  padding: 0 36px 0 12px;
  color: var(--ink);
  border: 1px solid rgba(229, 198, 145, 0.2);
  border-radius: 6px;
  background:
    linear-gradient(45deg, transparent 50%, var(--gold-2) 50%) calc(100% - 18px) 17px / 6px 6px no-repeat,
    linear-gradient(135deg, var(--gold-2) 50%, transparent 50%) calc(100% - 13px) 17px / 6px 6px no-repeat,
    rgba(10, 8, 7, 0.56);
  appearance: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
}

.build-field select:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}

.combo-summary {
  margin: 2px 0 0;
  color: #dbc7a7;
  font-size: 13px;
  line-height: 1.7;
}

.faction-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.alliance-dot {
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.horde-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}

.faction-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.faction-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.faction-figure figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.chapter-status {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 16, 12, 0.88);
}

.chapter-status span {
  display: block;
  color: var(--quiet);
  font-size: 12px;
}

.chapter-status strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
}

.chapter-progress {
  height: 5px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.chapter-progress span {
  display: block;
  width: 16%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transition: width 220ms ease;
}

.chapter-nav {
  display: grid;
  gap: 8px;
}

.chapter-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  color: var(--muted);
  border: 1px solid rgba(229, 198, 145, 0.13);
  border-radius: var(--radius);
  background: rgba(23, 18, 13, 0.62);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.chapter-nav a:hover,
.chapter-nav a.active {
  color: var(--ink);
  border-color: rgba(241, 207, 123, 0.35);
  background: rgba(215, 168, 76, 0.11);
}

.chapter-nav small {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 700;
}

.chapter-list {
  display: grid;
  gap: 22px;
}

.chapter-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 48%),
    rgba(33, 27, 22, 0.84);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  scroll-margin-top: 96px;
}

.chapter-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  content: "";
  background: var(--faction-accent, var(--gold));
}

.chapter-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.chapter-range {
  display: inline-flex;
  min-width: 70px;
  justify-content: center;
  padding: 8px 11px;
  color: #17110b;
  border-radius: 999px;
  background: var(--gold-2);
  font-size: 13px;
  font-weight: 860;
}

.chapter-card h3 {
  margin-top: 18px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.18;
}

.risk-chip {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

.chapter-story {
  margin: 18px 0 0;
  color: #e7d5ba;
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  font-size: 18px;
  line-height: 1.9;
}

.chapter-lore {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  align-items: center;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(241, 207, 123, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(215, 168, 76, 0.11), transparent),
    rgba(14, 12, 10, 0.34);
}

.chapter-lore span {
  grid-column: 1 / -1;
}

.chapter-lore p {
  margin: 0;
  color: #dbc7a7;
  font-size: 14px;
  line-height: 1.72;
}

.chapter-lore a {
  align-self: center;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
}

.chapter-lore a:hover {
  color: var(--ink);
}

.quest-itinerary {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(229, 198, 145, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(14, 12, 10, 0.34);
}

.quest-itinerary-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.quest-itinerary-heading span {
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 850;
}

.quest-itinerary-heading p {
  margin: 0;
  color: #e2cfad;
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  font-size: 16px;
  line-height: 1.8;
}

.quest-itinerary ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: quest-step;
}

.quest-itinerary li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(176px, 0.44fr) minmax(0, 1fr);
  gap: 14px 18px;
  align-items: start;
  padding: 18px 18px 18px 58px;
  border: 1px solid rgba(229, 198, 145, 0.14);
  border-radius: var(--radius);
  background: rgba(10, 8, 7, 0.32);
  counter-increment: quest-step;
}

.quest-itinerary li.level-step {
  min-height: 238px;
  padding: 16px;
}

.quest-itinerary li.level-step::before {
  display: none;
}

.quest-itinerary li::before {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #17110b;
  border-radius: 999px;
  content: counter(quest-step);
  background: var(--gold-2);
  font-size: 12px;
  font-weight: 880;
}

.quest-step-image {
  position: relative;
  grid-row: span 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(229, 198, 145, 0.14);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.22);
}

.quest-step-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.03);
}

.quest-step-copy strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.level-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  color: #17110b;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  font-size: 12px;
  font-weight: 900;
}

.step-zone {
  display: inline-flex;
  margin-top: 8px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 780;
}

.quest-step-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.quest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quest-tags span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  color: #f7e9cc;
  border: 1px solid rgba(241, 207, 123, 0.22);
  border-radius: 999px;
  background: rgba(215, 168, 76, 0.08);
  font-size: 12px;
  font-weight: 720;
}

.quest-itinerary em {
  color: #c9a967;
  font-size: 13px;
  font-style: normal;
  line-height: 1.65;
}

.route-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.route-box {
  padding: 18px;
  border: 1px solid rgba(229, 198, 145, 0.16);
  border-radius: var(--radius);
  background: rgba(14, 12, 10, 0.36);
}

.route-box h4 {
  margin: 0 0 10px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 820;
}

.route-box ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-box li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.route-box li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  content: "";
  background: var(--faction-accent, var(--gold));
}

.chapter-safety {
  margin-top: 14px;
}

.chapter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.chapter-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid rgba(229, 198, 145, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
}

.chapter-links a:hover {
  border-color: rgba(241, 207, 123, 0.5);
  color: var(--gold-2);
}

.danger-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 42px;
  width: min(var(--max), calc(100% - 36px));
  margin: 92px auto 0;
  align-items: center;
}

.danger-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.danger-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.danger-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.danger-list article {
  padding: 20px;
}

.danger-list h3 {
  margin-top: 0;
  font-size: 19px;
}

.rules-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  margin-top: 32px;
}

.checklist-panel,
.doctrine-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.checklist-panel {
  padding: 20px;
}

.checklist-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.checklist-top h3,
.doctrine-panel h3 {
  margin: 0;
  font-size: 24px;
}

.checklist-top span {
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 820;
}

.safety-checklist {
  display: grid;
  gap: 10px;
}

.safety-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(229, 198, 145, 0.13);
  border-radius: 7px;
  background: rgba(14, 12, 10, 0.26);
  cursor: pointer;
}

.safety-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--gold);
}

.safety-check span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.safety-check input:checked + span {
  color: var(--ink);
}

.doctrine-panel {
  padding: 24px;
}

.doctrine-panel ol {
  display: grid;
  gap: 11px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.doctrine-panel li {
  padding-left: 5px;
  line-height: 1.72;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.class-grid article {
  min-height: 164px;
  padding: 22px;
}

.class-grid h3 {
  margin-top: 0;
}

.link-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.story-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.story-path {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 42%),
    rgba(33, 27, 22, 0.82);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.story-path::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: var(--path-color, var(--gold));
}

.alliance-path {
  --path-color: var(--blue);
}

.horde-path {
  --path-color: var(--red);
}

.story-path-top strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  font-size: 25px;
  line-height: 1.25;
}

.story-path ol {
  display: grid;
  gap: 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: story-step;
}

.story-path li {
  position: relative;
  min-height: 42px;
  padding-left: 48px;
  counter-increment: story-step;
}

.story-path li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #17110b;
  border-radius: 999px;
  content: counter(story-step);
  background: var(--gold-2);
  font-size: 13px;
  font-weight: 860;
}

.story-path a {
  color: var(--ink);
  font-size: 16px;
  font-weight: 820;
  text-decoration: none;
}

.story-path a:hover {
  color: var(--gold-2);
}

.story-path p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.link-columns article {
  padding: 24px;
}

.link-columns h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.link-columns a {
  display: block;
  padding: 13px 0;
  color: var(--muted);
  border-top: 1px solid rgba(229, 198, 145, 0.13);
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
}

.link-columns a:hover {
  color: var(--gold-2);
}

.site-footer {
  display: flex;
  width: min(var(--max), calc(100% - 36px));
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 90px auto 0;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer p {
  max-width: 760px;
  margin: 0;
}

.site-footer a {
  color: var(--gold-2);
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 980px) {
  :root {
    --header: 64px;
  }

  .site-header {
    padding: 0 18px;
  }

  .top-nav {
    display: none;
  }

  .hero-section {
    min-height: 820px;
    padding-top: calc(var(--header) + 46px);
  }

  .hero-section::before {
    background:
      linear-gradient(90deg, rgba(13, 12, 11, 0.94) 0%, rgba(13, 12, 11, 0.75) 62%, rgba(13, 12, 11, 0.32) 100%),
      linear-gradient(180deg, rgba(13, 12, 11, 0.08) 0%, rgba(13, 12, 11, 0.78) 100%);
  }

  .intro-band,
  .route-shell,
  .danger-section,
  .rules-layout {
    grid-template-columns: 1fr;
  }

  .principle-grid,
  .class-grid,
  .link-columns,
  .route-glossary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-paths {
    grid-template-columns: 1fr;
  }

  .route-control {
    position: relative;
    top: auto;
  }

  .faction-figure {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(220px, 1fr);
  }

  .faction-figure img {
    height: 100%;
    aspect-ratio: auto;
  }

  .route-columns {
    grid-template-columns: 1fr;
  }

  .quest-itinerary ol {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero-section {
    min-height: auto;
    padding-right: 18px;
    padding-bottom: 42px;
    padding-left: 18px;
  }

  h1 {
    font-size: clamp(46px, 15vw, 64px);
  }

  .hero-copy,
  .intro-copy p,
  .section-heading p,
  .danger-copy p {
    font-size: 16px;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-facts div {
    padding: 13px 10px;
  }

  .hero-facts dt {
    font-size: 11px;
  }

  .hero-facts dd {
    font-size: 13px;
  }

  .hero-facts dd {
    white-space: normal;
  }

  .intro-band,
  .routes-section,
  .rules-section,
  .classes-section,
  .lore-section {
    width: min(100% - 28px, var(--max));
    padding-top: 58px;
  }

  .principle-grid,
  .class-grid,
  .link-columns,
  .route-glossary {
    grid-template-columns: 1fr;
  }

  .chapter-lore {
    grid-template-columns: 1fr;
  }

  .chapter-lore a {
    justify-self: start;
  }

  .quest-itinerary {
    padding: 16px;
  }

  .quest-itinerary li {
    grid-template-columns: minmax(112px, 0.32fr) minmax(0, 1fr);
    padding: 16px 14px 16px 50px;
  }

  .quest-itinerary li.level-step {
    padding: 14px;
  }

  .quest-itinerary li::before {
    top: 16px;
    left: 14px;
  }

  .faction-switch {
    grid-template-columns: 1fr;
  }

  .faction-figure {
    display: block;
  }

  .chapter-top {
    display: grid;
  }

  .risk-chip {
    width: fit-content;
  }

  .danger-section {
    width: min(100% - 28px, var(--max));
    margin-top: 64px;
  }

  .site-footer {
    width: min(100% - 28px, var(--max));
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .quest-itinerary li {
    grid-template-columns: 1fr;
  }

  .quest-step-image {
    grid-row: auto;
  }

  .quest-step-image img {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
