:root {
  --world-bg: #080b0a;
  --world-panel: #0d100f;
  --world-panel-soft: #121410;
  --world-paper: #e7dfcf;
  --world-muted: #9d988e;
  --world-dim: #69685f;
  --world-line: rgba(169, 138, 73, 0.23);
  --world-line-strong: rgba(178, 145, 76, 0.48);
  --world-gold: #a98a49;
  --world-red: #bd3f34;
  --world-red-bright: #e04d40;
  --world-green: #647260;
  --world-header: 70px;
  --world-content: 1760px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--world-bg);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 2%, rgba(95, 53, 28, 0.11), transparent 26rem),
    var(--world-bg);
  color: var(--world-paper);
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.world-reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 2px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.03);
}

.world-reading-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--world-red), #d27a3b);
  box-shadow: 0 0 14px rgba(224, 77, 64, 0.45);
}

.world-bible {
  width: min(calc(100% - 28px), var(--world-content));
  margin: 0 auto;
  overflow: clip;
  border-inline: 1px solid rgba(169, 138, 73, 0.14);
  background: rgba(7, 9, 8, 0.92);
}

.site-header {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  min-height: var(--world-header);
  padding: 0 34px;
  border-bottom: 1px solid var(--world-line);
  background: rgba(7, 9, 8, 0.96);
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: var(--world-paper);
  text-decoration: none;
}

.site-header .brand .qinqin-brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.site-header .brand .qinqin-brand-name {
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.site-header .qinqin-global-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 2.8vw, 52px);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.site-header .qinqin-global-nav > a,
.site-header .qinqin-more > summary {
  color: #aaa69d;
  text-decoration: none;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.11em;
}

.site-header .qinqin-global-nav > a[aria-current="page"] {
  color: var(--world-red-bright);
}

.site-header .edition {
  justify-self: end;
  color: #757168;
  font-size: 11px;
  letter-spacing: 0.28em;
  white-space: nowrap;
}

.world-hero {
  position: relative;
  min-height: min(790px, calc(100vh - var(--world-header)));
  display: flex;
  align-items: end;
  isolation: isolate;
  border-bottom: 1px solid var(--world-line);
  overflow: hidden;
}

.world-hero > img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.72) contrast(1.04) brightness(0.68);
  transform: scale(1.005);
}

.world-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 6, 5, 0.93) 0%, rgba(4, 6, 5, 0.67) 38%, rgba(4, 6, 5, 0.24) 61%, rgba(4, 6, 5, 0.08) 78%),
    linear-gradient(0deg, rgba(4, 6, 5, 0.98) 0%, rgba(4, 6, 5, 0.08) 65%);
}

.world-hero__shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 49.7%, rgba(215, 187, 126, 0.22) 50%, transparent 50.3%);
  opacity: 0.45;
}

.world-hero__index {
  position: absolute;
  top: 104px;
  right: 68px;
  color: rgba(230, 223, 207, 0.055);
  font-size: clamp(120px, 13vw, 230px);
  line-height: 0.72;
  letter-spacing: -0.08em;
  user-select: none;
}

.world-hero__copy {
  width: min(100%, 900px);
  padding: 92px 80px 190px;
}

.world-eyebrow,
.chapter-head > span,
.canon-preface span,
.world-toc__head span,
.world-coda span {
  font-family: "Helvetica Neue", "PingFang SC", sans-serif;
  color: var(--world-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.world-hero__copy h1 {
  max-width: 820px;
  margin: 25px 0 34px;
  font-size: clamp(48px, 4.75vw, 86px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.world-hero__copy h1 span {
  display: block;
  width: fit-content;
}

.world-hero__copy h1 span:nth-child(2) {
  color: #f0e9dc;
}

.world-hero__copy > p:last-child {
  max-width: 720px;
  margin: 0;
  padding: 3px 0 3px 22px;
  border-left: 2px solid rgba(189, 63, 52, 0.82);
  color: #bdb7ac;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.95;
}

.world-hero__coordinates {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 130px;
  background: rgba(5, 7, 6, 0.88);
  border-top: 1px solid var(--world-line);
  backdrop-filter: blur(12px);
}

.world-hero__coordinates article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 36px;
  border-right: 1px solid var(--world-line);
}

.world-hero__coordinates article:last-child {
  border-right: 0;
}

.world-hero__coordinates span,
.world-hero__coordinates small {
  color: var(--world-muted);
  font-family: "Helvetica Neue", "PingFang SC", sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.world-hero__coordinates strong {
  margin: 10px 0 8px;
  font-size: clamp(24px, 2.2vw, 39px);
  font-weight: 400;
}

.world-hero__coordinates small {
  color: #77746d;
  letter-spacing: 0.08em;
}

.canon-preface {
  display: grid;
  grid-template-columns: minmax(310px, 0.9fr) minmax(420px, 1.3fr);
  gap: 9vw;
  align-items: center;
  padding: 80px;
  border-bottom: 1px solid var(--world-line);
  background:
    linear-gradient(90deg, rgba(152, 95, 48, 0.08), transparent 32%),
    #0b0e0d;
}

.canon-preface h2 {
  max-width: 620px;
  margin: 16px 0 0;
  font-size: clamp(32px, 3.2vw, 56px);
  font-weight: 400;
  line-height: 1.25;
}

.canon-preface > p {
  max-width: 770px;
  margin: 0;
  color: #aaa59b;
  font-size: 17px;
  line-height: 2;
}

.world-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  align-items: start;
}

.world-toc {
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--world-line-strong) transparent;
  border-right: 1px solid var(--world-line);
  background: #090c0b;
}

.world-toc__head {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 32px 30px 25px;
  border-bottom: 1px solid var(--world-line);
}

.world-toc__head strong {
  font-size: 22px;
  font-weight: 400;
}

.world-toc__head small {
  color: #68665f;
  font-family: "Helvetica Neue", sans-serif;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.world-toc nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0 28px;
}

.world-toc nav a {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 47px;
  padding: 8px 24px 8px 30px;
  color: #77766f;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.world-toc nav a::before {
  content: "";
  position: absolute;
  inset: 9px auto 9px 0;
  width: 2px;
  background: transparent;
}

.world-toc nav a b {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.world-toc nav a span {
  font-size: 13px;
}

.world-toc nav a:hover {
  color: #bdb7aa;
  background: rgba(255, 255, 255, 0.02);
}

.world-toc nav a.is-active {
  color: var(--world-paper);
  background: linear-gradient(90deg, rgba(189, 63, 52, 0.12), transparent);
}

.world-toc nav a.is-active::before {
  background: var(--world-red-bright);
}

.world-content {
  min-width: 0;
}

.world-chapter,
.world-appendix {
  position: relative;
  padding: clamp(70px, 7vw, 118px) clamp(45px, 6vw, 110px);
  border-bottom: 1px solid var(--world-line);
  scroll-margin-top: 20px;
}

.world-chapter::before {
  content: attr(data-chapter);
  position: absolute;
  top: 54px;
  right: 6vw;
  color: rgba(231, 223, 207, 0.035);
  font-family: Georgia, serif;
  font-size: clamp(110px, 14vw, 230px);
  line-height: 0.8;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.world-chapter:nth-of-type(even) {
  background: rgba(255, 255, 255, 0.008);
}

.chapter-head {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin-bottom: 46px;
}

.chapter-head h2 {
  margin: 17px 0 18px;
  font-size: clamp(42px, 5vw, 78px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.chapter-head p {
  max-width: 780px;
  margin: 0;
  color: var(--world-muted);
  font-size: 16px;
  line-height: 1.95;
}

.chapter-visual {
  position: relative;
  min-height: 450px;
  margin: 0 0 50px;
  overflow: hidden;
  border: 1px solid var(--world-line-strong);
  background: #0b0e0d;
}

.chapter-visual figcaption {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  padding: 14px 22px;
  background: rgba(5, 7, 6, 0.86);
  color: #b7b0a3;
  font-size: 12px;
  line-height: 1.6;
  backdrop-filter: blur(10px);
}

.chapter-visual figcaption span {
  flex: 0 0 auto;
  color: var(--world-gold);
  font-family: "Helvetica Neue", sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.chapter-visual--image > img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.03) brightness(0.78);
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), filter 700ms ease;
}

.chapter-visual--image:hover > img,
.chapter-visual--split > div:hover img {
  transform: scale(1.018);
  filter: saturate(0.82) contrast(1.04) brightness(0.84);
}

.chapter-visual--diagram,
.chapter-visual--atlas {
  display: grid;
  place-items: center;
  padding: 55px 45px 95px;
  background:
    linear-gradient(rgba(169, 138, 73, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 138, 73, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 40%, rgba(126, 89, 46, 0.13), transparent 38%),
    #0a0d0c;
  background-size: 46px 46px, 46px 46px, auto, auto;
}

.chapter-cards {
  display: grid;
  gap: 1px;
  background: var(--world-line);
  border: 1px solid var(--world-line);
}

.chapter-cards--three {
  grid-template-columns: repeat(3, 1fr);
}

.chapter-cards--five {
  grid-template-columns: repeat(5, 1fr);
}

.chapter-cards article {
  min-width: 0;
  padding: 30px 28px;
  background: var(--world-panel);
}

.chapter-cards article > span,
.power-comparison article > span,
.facility-system article > span,
.boundary-matrix article > span,
.termination-grid article > span {
  color: var(--world-gold);
  font-family: "Helvetica Neue", sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.chapter-cards h3,
.chapter-copy h3,
.rule-grid h3,
.power-comparison h3,
.facility-system h3,
.boundary-matrix h3,
.termination-grid h3 {
  margin: 13px 0 14px;
  font-size: 22px;
  font-weight: 400;
}

.chapter-cards p,
.chapter-copy p,
.rule-grid p,
.power-comparison p,
.facility-system p,
.boundary-matrix p,
.termination-grid p,
.faction-strip p {
  margin: 0;
  color: #96938a;
  font-size: 14px;
  line-height: 1.9;
}

.chapter-copy {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--world-line);
  background: var(--world-line);
}

.chapter-copy > div {
  padding: 32px 34px;
  background: var(--world-panel);
}

.setting-consequence {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 28px;
  padding: 28px 32px;
  border-left: 2px solid var(--world-red);
  background: linear-gradient(90deg, rgba(189, 63, 52, 0.09), transparent);
}

.setting-consequence span {
  color: var(--world-red-bright);
  font-family: "PingFang SC", sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.setting-consequence p {
  margin: 0;
  color: #b0aa9f;
  font-size: 15px;
  line-height: 1.9;
}

.causal-diagram {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 34px;
}

.causal-diagram__line {
  position: absolute;
  top: 46%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--world-gold), var(--world-red), transparent);
}

.causal-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 160px;
  padding: 24px;
  border: 1px solid var(--world-line-strong);
  background: rgba(9, 12, 11, 0.92);
}

.causal-node::after {
  content: "";
  position: absolute;
  top: calc(50% - 5px);
  right: -40px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--world-gold);
  background: #0a0d0c;
  transform: rotate(45deg);
}

.causal-node:last-of-type::after {
  display: none;
}

.causal-node small {
  color: var(--world-gold);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.causal-node strong {
  margin: 13px 0 10px;
  font-size: 22px;
  font-weight: 400;
}

.causal-node span {
  color: #7e7b74;
  font-size: 12px;
  line-height: 1.5;
}

.visual-tags {
  position: absolute;
  inset: 30px 30px auto auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
  max-width: 460px;
}

.visual-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(218, 193, 136, 0.45);
  background: rgba(5, 7, 6, 0.72);
  color: #d0c8b6;
  font-size: 10px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(7px);
}

.time-diagram {
  grid-template-rows: auto 52px auto;
  gap: 0;
}

.time-lane {
  display: grid;
  grid-template-columns: 150px 1fr auto 1fr auto 1fr auto;
  align-items: center;
  width: 100%;
}

.time-lane > span {
  color: var(--world-paper);
  font-size: 15px;
}

.time-lane > i {
  height: 1px;
  background: linear-gradient(90deg, var(--world-line-strong), var(--world-gold));
}

.time-lane > b {
  padding: 8px 11px;
  border: 1px solid var(--world-line-strong);
  color: #c8c1b3;
  font-family: "Helvetica Neue", sans-serif;
  font-size: 11px;
  font-weight: 400;
}

.time-lane--ancient > i {
  background: linear-gradient(90deg, var(--world-line-strong), var(--world-red));
}

.time-link {
  position: relative;
  display: grid;
  place-items: center;
  height: 52px;
}

.time-link::before,
.time-link::after {
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  width: 1px;
  height: 16px;
  background: var(--world-line-strong);
}

.time-link::before {
  top: 0;
}

.time-link::after {
  bottom: 0;
}

.time-link span {
  padding: 5px 12px;
  color: var(--world-gold);
  background: #0a0d0c;
  font-family: "Helvetica Neue", sans-serif;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--world-line);
}

.rule-grid article {
  position: relative;
  min-height: 210px;
  padding: 32px 30px;
  border-right: 1px solid var(--world-line);
  border-bottom: 1px solid var(--world-line);
}

.rule-grid article:nth-child(3n) {
  border-right: 0;
}

.rule-grid article:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.rule-grid article > b {
  position: absolute;
  top: 20px;
  right: 22px;
  color: rgba(231, 223, 207, 0.09);
  font-family: Georgia, serif;
  font-size: 40px;
  font-weight: 400;
}

.industry-diagram {
  grid-template-columns: repeat(9, auto);
  gap: 18px;
}

.industry-diagram > div {
  display: flex;
  flex-direction: column;
  min-width: 140px;
  min-height: 145px;
  justify-content: center;
  padding: 20px;
  border: 1px solid var(--world-line-strong);
  background: rgba(9, 12, 11, 0.92);
}

.industry-diagram > div span {
  color: var(--world-red-bright);
  font-family: "Helvetica Neue", sans-serif;
  font-size: 10px;
}

.industry-diagram > div strong {
  margin: 15px 0 9px;
  font-size: 19px;
  font-weight: 400;
}

.industry-diagram > div small {
  color: #7c7972;
  font-size: 11px;
}

.industry-diagram > i {
  width: 24px;
  height: 1px;
  background: var(--world-gold);
}

.chapter-visual--split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-bottom: 54px;
}

.chapter-visual--split > div {
  position: relative;
  min-height: 500px;
  overflow: hidden;
}

.chapter-visual--split > div:first-child {
  border-right: 1px solid var(--world-line-strong);
}

.chapter-visual--split img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65) brightness(0.66);
  transition: transform 1.2s ease, filter 700ms ease;
}

.chapter-visual--split > div > span,
.chapter-visual--split > div > small {
  position: absolute;
  left: 28px;
  z-index: 2;
}

.chapter-visual--split > div > span {
  bottom: 55px;
  font-size: 30px;
}

.chapter-visual--split > div > small {
  bottom: 34px;
  color: var(--world-gold);
  font-family: "Helvetica Neue", sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.power-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--world-line);
}

.power-comparison article {
  padding: 36px 38px;
}

.power-comparison article:first-child {
  border-right: 1px solid var(--world-line);
}

.power-comparison ul {
  margin: 24px 0 0;
  padding: 20px 0 0 18px;
  border-top: 1px solid var(--world-line);
  color: #86837c;
  font-size: 13px;
  line-height: 2;
}

.visual-coordinate {
  position: absolute;
  right: 30px;
  bottom: 82px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid var(--world-line-strong);
  background: rgba(5, 7, 6, 0.78);
  backdrop-filter: blur(8px);
}

.visual-coordinate span {
  color: var(--world-gold);
  font-family: "Helvetica Neue", sans-serif;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.visual-coordinate strong {
  font-size: 16px;
  font-weight: 400;
}

.visual-coordinate--small {
  right: auto;
  left: 28px;
}

.war-state-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 28px;
  border: 1px solid var(--world-line);
}

.war-state-grid article {
  padding: 27px 25px;
  border-right: 1px solid var(--world-line);
}

.war-state-grid article:last-child {
  border-right: 0;
}

.war-state-grid span {
  display: block;
  margin-bottom: 14px;
  color: var(--world-paper);
  font-size: 23px;
}

.war-state-grid p {
  margin: 0;
  color: #85827a;
  font-size: 13px;
  line-height: 1.8;
}

.region-atlas {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
}

.region {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  width: 100%;
  min-height: 140px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--world-line-strong);
  background: rgba(12, 15, 13, 0.84);
}

.region::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border: 1px solid currentColor;
  border-radius: 42% 58% 64% 36%;
  opacity: 0.1;
  transform: rotate(18deg);
}

.region:nth-child(2n)::before {
  right: -50px;
  top: -70px;
}

.region:nth-child(2n + 1)::before {
  left: -40px;
  top: -40px;
}

.region b {
  position: relative;
  font-size: 20px;
  font-weight: 400;
}

.region span {
  position: relative;
  margin-top: 10px;
  color: #85827a;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.region--qin { color: #b28b55; }
.region--qi { color: #6d8990; }
.region--chu { color: #8b6464; }
.region--yan { color: #777e8d; }
.region--shu { color: #7b825c; }
.region--west { color: #9a765c; }

.faction-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--world-line);
}

.faction-strip article {
  padding: 27px 25px;
  border-right: 1px solid var(--world-line);
}

.faction-strip article:last-child {
  border-right: 0;
}

.faction-strip b {
  display: block;
  margin-bottom: 15px;
  color: #c2bbad;
  font-size: 18px;
  font-weight: 400;
}

.facility-system,
.boundary-matrix,
.termination-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--world-line);
  background: var(--world-line);
}

.facility-system {
  grid-template-columns: repeat(4, 1fr);
}

.boundary-matrix {
  grid-template-columns: repeat(3, 1fr);
}

.termination-grid {
  grid-template-columns: repeat(3, 1fr);
}

.facility-system article,
.boundary-matrix article,
.termination-grid article {
  padding: 30px;
  background: var(--world-panel);
}

.setting-details,
.appendix-panel {
  margin-top: 28px;
  border: 1px solid var(--world-line);
  background: var(--world-panel);
}

.setting-details summary,
.appendix-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 18px 26px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.setting-details summary::-webkit-details-marker,
.appendix-panel summary::-webkit-details-marker {
  display: none;
}

.setting-details summary::after,
.appendix-panel summary::after {
  content: "+";
  margin-left: 20px;
  color: var(--world-red-bright);
  font-family: "Helvetica Neue", sans-serif;
  font-size: 24px;
  font-weight: 300;
}

.setting-details[open] summary::after,
.appendix-panel[open] summary::after {
  content: "−";
}

.setting-details summary span,
.appendix-panel summary span {
  font-size: 18px;
}

.setting-details summary small,
.appendix-panel summary small {
  margin-left: auto;
  color: var(--world-gold);
  font-family: "Helvetica Neue", sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.facility-levels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--world-line);
}

.facility-levels article {
  padding: 24px;
  border-right: 1px solid var(--world-line);
}

.facility-levels article:last-child {
  border-right: 0;
}

.facility-levels b {
  color: var(--world-red-bright);
  font-family: "Helvetica Neue", sans-serif;
  font-size: 10px;
  font-weight: 400;
}

.facility-levels span {
  display: block;
  margin: 12px 0;
  color: #c0baad;
  font-size: 16px;
}

.facility-levels p {
  margin: 0;
  color: #7d7a73;
  font-size: 12px;
  line-height: 1.7;
}

.evidence-diagram {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 145px 120px;
  gap: 20px;
}

.evidence-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid var(--world-line-strong);
  background: rgba(9, 12, 11, 0.92);
  text-align: center;
}

.evidence-node--top {
  grid-column: 2;
}

.evidence-node--left {
  grid-column: 1;
  grid-row: 2;
}

.evidence-node--right {
  grid-column: 3;
  grid-row: 2;
}

.evidence-node strong {
  font-size: 18px;
  font-weight: 400;
}

.evidence-node span {
  margin-top: 8px;
  color: #7b7972;
  font-size: 11px;
}

.evidence-core {
  position: absolute;
  left: 50%;
  top: 57%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  border: 1px solid var(--world-red);
  border-radius: 50%;
  background: #0a0d0c;
  transform: translate(-50%, -50%);
}

.evidence-core::before,
.evidence-core::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 1px;
  background: var(--world-line-strong);
}

.evidence-core::before {
  transform: rotate(25deg);
}

.evidence-core::after {
  transform: rotate(-25deg);
}

.evidence-core span {
  color: var(--world-red-bright);
  font-size: 10px;
}

.evidence-core strong {
  margin-top: 7px;
  font-size: 18px;
  font-weight: 400;
}

.takeover-diagram {
  grid-template-columns: 1fr 90px 1fr 90px 1fr;
  gap: 12px;
}

.takeover-layer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--world-line-strong);
  text-align: center;
  background: rgba(9, 12, 11, 0.92);
}

.takeover-layer span {
  color: var(--world-gold);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.takeover-layer strong {
  margin-top: 18px;
  color: #b8b1a5;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
}

.takeover-layer--main {
  border-color: rgba(189, 63, 52, 0.55);
}

.takeover-arrow {
  position: relative;
  display: grid;
  place-items: center;
  color: #706e68;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.takeover-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--world-line-strong);
}

.takeover-arrow {
  z-index: 2;
}

.takeover-arrow::after {
  content: "›";
  position: absolute;
  right: -2px;
  top: calc(50% - 13px);
  color: var(--world-gold);
  font-size: 22px;
}

.takeover-arrow {
  background: #0a0d0c;
}

.world-appendix {
  background:
    linear-gradient(180deg, rgba(169, 138, 73, 0.04), transparent 220px),
    #090c0b;
}

.appendix-panel + .appendix-panel {
  margin-top: 12px;
}

.hard-rule-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--world-line);
  list-style: none;
  counter-reset: hard-rule;
}

.hard-rule-list li {
  position: relative;
  min-height: 82px;
  padding: 23px 24px 23px 68px;
  border-right: 1px solid var(--world-line);
  border-bottom: 1px solid var(--world-line);
  color: #99958c;
  font-size: 13px;
  line-height: 1.8;
  counter-increment: hard-rule;
}

.hard-rule-list li:nth-child(2n) {
  border-right: 0;
}

.hard-rule-list li::before {
  content: counter(hard-rule, decimal-leading-zero);
  position: absolute;
  left: 23px;
  top: 25px;
  color: var(--world-red-bright);
  font-family: "Helvetica Neue", sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.master-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--world-line);
}

.master-timeline article {
  padding: 30px 32px;
}

.master-timeline article:first-child {
  border-right: 1px solid var(--world-line);
}

.master-timeline span {
  display: block;
  margin-bottom: 22px;
  color: var(--world-gold);
  font-size: 17px;
}

.master-timeline p {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid rgba(169, 138, 73, 0.12);
  color: #8f8c84;
  font-size: 13px;
  line-height: 1.8;
}

.master-timeline b {
  display: block;
  color: #beb7aa;
  font-weight: 400;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--world-line);
}

.glossary-grid article {
  min-height: 150px;
  padding: 26px;
  border-right: 1px solid var(--world-line);
  border-bottom: 1px solid var(--world-line);
}

.glossary-grid article:nth-child(3n) {
  border-right: 0;
}

.glossary-grid b {
  color: #c2bbad;
  font-size: 18px;
  font-weight: 400;
}

.glossary-grid p {
  margin: 14px 0 0;
  color: #85827a;
  font-size: 13px;
  line-height: 1.8;
}

.world-coda {
  margin: 0;
  padding: 100px 8vw;
  border: 0;
  background:
    radial-gradient(circle at 70% 50%, rgba(121, 71, 40, 0.12), transparent 35%),
    #080a09;
}

.world-coda p {
  max-width: 920px;
  margin: 22px 0 0;
  font-size: clamp(36px, 4vw, 68px);
  font-weight: 400;
  line-height: 1.35;
}

@media (max-width: 1280px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    padding-inline: 22px;
  }

  .site-header .qinqin-global-nav {
    gap: 22px;
  }

  .world-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .chapter-cards--five,
  .war-state-grid,
  .faction-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .chapter-cards--five article,
  .war-state-grid article,
  .faction-strip article {
    border-bottom: 1px solid var(--world-line);
  }

  .industry-diagram {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 10px;
  }

  .industry-diagram > i {
    display: none;
  }

  .industry-diagram > div {
    min-width: 0;
  }
}

@media (max-width: 980px) {
  .world-bible {
    width: 100%;
    border: 0;
  }

  .site-header {
    min-height: 64px;
  }

  .site-header .edition {
    display: none;
  }

  .world-hero {
    min-height: 780px;
  }

  .world-hero__copy {
    width: min(100%, 790px);
    padding: 74px 38px 265px;
  }

  .world-hero__coordinates {
    grid-template-columns: repeat(2, 1fr);
  }

  .world-hero__coordinates article:nth-child(2) {
    border-right: 0;
  }

  .world-hero__coordinates article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--world-line);
  }

  .canon-preface {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 65px 38px;
  }

  .world-shell {
    display: block;
  }

  .world-toc {
    position: sticky;
    top: 0;
    z-index: 40;
    max-height: none;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--world-line);
  }

  .world-toc__head {
    display: none;
  }

  .world-toc nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;
  }

  .world-toc nav::-webkit-scrollbar {
    display: none;
  }

  .world-toc nav a {
    flex: 0 0 auto;
    grid-template-columns: auto auto;
    min-height: 54px;
    padding: 8px 18px;
  }

  .world-toc nav a::before {
    inset: auto 14px 0;
    width: auto;
    height: 2px;
  }

  .world-chapter,
  .world-appendix {
    padding: 72px 36px;
    scroll-margin-top: 56px;
  }

  .chapter-cards--three,
  .chapter-cards--five,
  .rule-grid,
  .war-state-grid,
  .faction-strip,
  .facility-system,
  .boundary-matrix,
  .termination-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chapter-cards--five article,
  .war-state-grid article,
  .faction-strip article,
  .rule-grid article {
    border-right: 1px solid var(--world-line);
    border-bottom: 1px solid var(--world-line);
  }

  .chapter-cards--five article:nth-child(2n),
  .war-state-grid article:nth-child(2n),
  .faction-strip article:nth-child(2n),
  .rule-grid article:nth-child(2n) {
    border-right: 0;
  }

  .causal-diagram {
    grid-template-columns: repeat(2, 1fr);
  }

  .causal-diagram__line,
  .causal-node::after {
    display: none;
  }

  .industry-diagram {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .chapter-visual--split > div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--world-line);
  }

  .chapter-visual--split > div {
    min-height: 340px;
  }

  .region-atlas,
  .glossary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .glossary-grid article:nth-child(3n) {
    border-right: 1px solid var(--world-line);
  }

  .glossary-grid article:nth-child(2n) {
    border-right: 0;
  }

  .takeover-diagram {
    grid-template-columns: 1fr;
  }

  .takeover-arrow {
    min-height: 50px;
  }

  .takeover-arrow::before {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 1px;
    height: auto;
  }

  .takeover-arrow::after {
    content: "⌄";
    right: calc(50% - 7px);
    top: auto;
    bottom: -4px;
  }

  .facility-levels {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding-inline: 16px;
  }

  .site-header .qinqin-global-nav {
    display: none;
  }

  .site-header .brand span {
    font-size: 12px;
  }

  .world-hero {
    min-height: 720px;
  }

  .world-hero > img {
    object-position: 62% center;
  }

  .world-hero__shade {
    background:
      linear-gradient(0deg, rgba(4, 6, 5, 0.98) 0%, rgba(4, 6, 5, 0.58) 62%, rgba(4, 6, 5, 0.28) 100%);
  }

  .world-hero__copy {
    padding: 70px 22px 275px;
  }

  .world-hero__copy h1 {
    font-size: 43px;
    line-height: 1.2;
  }

  .world-hero__copy > p:last-child {
    font-size: 14px;
    line-height: 1.8;
  }

  .world-hero__coordinates article {
    padding: 17px 18px;
  }

  .world-hero__coordinates strong {
    font-size: 22px;
  }

  .canon-preface {
    padding: 52px 22px;
  }

  .canon-preface > p {
    font-size: 15px;
  }

  .world-toc nav a {
    min-height: 50px;
    padding-inline: 14px;
  }

  .world-toc nav a span {
    font-size: 12px;
  }

  .world-chapter,
  .world-appendix {
    padding: 60px 20px;
  }

  .chapter-head {
    margin-bottom: 32px;
  }

  .chapter-head h2 {
    font-size: 40px;
  }

  .chapter-head p {
    font-size: 14px;
  }

  .chapter-visual {
    min-height: 360px;
    margin-bottom: 30px;
  }

  .chapter-visual--image > img {
    min-height: 420px;
  }

  .chapter-visual figcaption {
    font-size: 10px;
  }

  .chapter-copy,
  .chapter-cards--three,
  .chapter-cards--five,
  .rule-grid,
  .war-state-grid,
  .faction-strip,
  .facility-system,
  .boundary-matrix,
  .termination-grid,
  .region-atlas,
  .glossary-grid,
  .hard-rule-list,
  .master-timeline {
    grid-template-columns: 1fr;
  }

  .chapter-cards article,
  .rule-grid article,
  .war-state-grid article,
  .faction-strip article,
  .glossary-grid article,
  .hard-rule-list li {
    border-right: 0 !important;
  }

  .setting-consequence {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px;
  }

  .causal-diagram {
    grid-template-columns: 1fr;
    padding: 30px 22px 85px;
  }

  .causal-node {
    min-height: 125px;
  }

  .time-diagram {
    padding-inline: 18px;
  }

  .time-lane {
    grid-template-columns: 95px 1fr auto;
    gap: 8px;
  }

  .time-lane > i:not(:first-of-type),
  .time-lane > b:not(:first-of-type) {
    display: none;
  }

  .industry-diagram {
    grid-template-columns: 1fr;
    padding-inline: 20px;
  }

  .chapter-visual--split > div {
    min-height: 280px;
  }

  .visual-tags {
    inset: 18px 18px auto;
    justify-content: start;
  }

  .visual-coordinate {
    right: 18px;
    left: 18px;
    bottom: 78px;
  }

  .facility-levels {
    grid-template-columns: 1fr;
  }

  .evidence-diagram {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 110px);
    gap: 10px;
    padding-inline: 24px;
  }

  .evidence-node--top,
  .evidence-node--left,
  .evidence-node--right {
    grid-column: 1;
  }

  .evidence-node--top { grid-row: 1; }
  .evidence-node--left { grid-row: 2; }
  .evidence-node--right { grid-row: 3; }

  .evidence-core {
    display: none;
  }

  .appendix-panel summary {
    min-height: 64px;
    padding-inline: 18px;
  }

  .appendix-panel summary small {
    display: none;
  }

  .master-timeline article:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--world-line);
  }

  .world-coda {
    padding: 72px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
