/* ============================================================
   PAX AUTOCRATICA WIKI — Totalitarian Propaganda Visual System
   Design theme: dystopian sci-fi · propaganda-poster aesthetics · surveillance terminal
   ============================================================ */

:root {
  --bg: #0b0a08;
  --bg-2: #12100c;
  --panel: #171410;
  --panel-2: #1e1a14;
  --line: #2c2619;
  --red: #c8281e;
  --red-hi: #e8402f;
  --red-dk: #7e150e;
  --gold: #c9a227;
  --gold-hi: #e8c34a;
  --paper: #e8dfc9;
  --text: #d8d0bd;
  --muted: #948a74;
  --faint: #6b6353;
  --mono: "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --display: "Arial Black", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sidebar-w: 264px;
  --toc-w: 220px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Global blueprint grid background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(201, 162, 39, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

/* CRT scanlines */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.07) 0px,
    rgba(0, 0, 0, 0.07) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 9990;
  opacity: .5;
}

::selection { background: var(--red); color: #fff; }

a { color: var(--gold-hi); text-decoration: none; border-bottom: 1px dotted rgba(201,162,39,.45); transition: color .2s, border-color .2s; }
a:hover { color: #fff; border-bottom-color: var(--red-hi); }

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

/* ============ Top state banner ============ */
.state-banner {
  background: repeating-linear-gradient(-45deg, var(--red-dk) 0 18px, #931b12 18px 36px);
  border-bottom: 2px solid var(--gold);
  color: #f3e9d2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .35em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 12px;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  z-index: 1002;
  text-shadow: 0 1px 0 rgba(0,0,0,.5);
}

/* ============ Top bar ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  height: 60px;
  background: rgba(11, 10, 8, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  color: var(--paper);
  min-width: 0;
}
.brand:hover { color: var(--paper); }

.brand .star {
  width: 34px; height: 34px;
  flex: none;
  filter: drop-shadow(0 0 6px rgba(200,40,30,.6));
}
.brand .star svg { width: 100%; height: 100%; }

.brand-text { line-height: 1.2; text-align: left; }
.brand-text b {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: block;
  white-space: nowrap;
}
.brand-text span {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: .28em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Search */
.search-box {
  margin-left: auto;
  position: relative;
  width: min(340px, 42vw);
}
.search-box input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  padding: 9px 12px 9px 34px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-box input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(200,40,30,.25);
}
.search-box::before {
  content: "⌕";
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-52%);
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
}
.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  max-height: 380px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 16px 40px rgba(0,0,0,.7);
  z-index: 1200;
}
.search-results.open { display: block; }
.search-results a {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(44,38,25,.6);
  border-left: 3px solid transparent;
  color: var(--text);
}
.search-results a:hover, .search-results a.active {
  background: rgba(200,40,30,.12);
  border-left-color: var(--red);
  color: var(--paper);
}
.search-results .sr-title { font-weight: 700; font-size: 14px; display: block; }
.search-results .sr-cat { font-family: var(--mono); font-size: 10px; color: var(--red-hi); letter-spacing: .15em; text-transform: uppercase; }
.search-results .sr-desc { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; line-height: 1.5; }
.search-empty { padding: 14px; font-size: 13px; color: var(--muted); font-family: var(--mono); }

/* Hamburger button */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 18px;
  width: 40px; height: 40px;
  cursor: pointer;
  flex: none;
}

/* ============ Layout ============ */
.layout {
  display: flex;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

/* ============ Sidebar navigation ============ */
.sidebar {
  width: var(--sidebar-w);
  flex: none;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  padding: 20px 0 60px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--line); }

.nav-group { margin-bottom: 22px; }
.nav-group > h3 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red-hi);
  padding: 0 20px 8px;
  border-bottom: 1px solid var(--line);
  margin: 0 16px 8px;
}
.nav-group a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 20px;
  font-size: 13.5px;
  color: var(--muted);
  border: none;
  border-left: 3px solid transparent;
  transition: all .15s;
}
.nav-group a .en {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-group a:hover { color: var(--paper); background: rgba(201,162,39,.06); }
.nav-group a.current {
  color: var(--gold-hi);
  border-left-color: var(--red);
  background: linear-gradient(90deg, rgba(200,40,30,.16), transparent);
  font-weight: 700;
}

/* ============ Main content ============ */
main {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 36px 44px 80px;
}

article { max-width: 860px; width: 100%; min-width: 0; }

/* Breadcrumb */
.breadcrumb {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: .06em;
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--muted); border: none; }
.breadcrumb a:hover { color: var(--gold-hi); }
.breadcrumb .sep { margin: 0 7px; color: var(--red); }

/* Page head */
.page-head { margin-bottom: 28px; position: relative; }
.page-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--red-hi);
  margin-bottom: 8px;
}
.page-kicker::before { content: "▮ "; color: var(--gold); }
h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: .02em;
  text-shadow: 3px 3px 0 rgba(200,40,30,.35);
}
h1 .sub {
  display: block;
  font-size: .42em;
  color: var(--gold);
  letter-spacing: .3em;
  margin-top: 6px;
  text-shadow: none;
}
.lede {
  font-size: 17px;
  color: var(--paper);
  border-left: 4px solid var(--red);
  background: linear-gradient(90deg, rgba(200,40,30,.1), transparent 70%);
  padding: 14px 18px;
  margin: 22px 0 8px;
  line-height: 1.8;
}
.lede b { color: var(--gold-hi); }

/* Heading system */
h2 {
  font-family: var(--display);
  font-size: 23px;
  color: var(--gold-hi);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 46px 0 16px;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(200,40,30,.22), rgba(200,40,30,.05) 60%, transparent);
  border-left: 5px solid var(--red);
  position: relative;
}
h2::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
}
h3 {
  font-size: 18px;
  color: var(--paper);
  margin: 30px 0 10px;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}
h4 { font-size: 15.5px; color: var(--gold-hi); margin: 20px 0 8px; }

p { margin: 12px 0; }
ul, ol { margin: 12px 0 12px 24px; }
li { margin: 6px 0; }
li::marker { color: var(--red-hi); }
b, strong { color: var(--gold-hi); font-weight: 700; }
em { color: var(--paper); }

/* ============ Infobox ============ */
.infobox {
  float: right;
  width: 300px;
  margin: 6px 0 20px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  box-shadow: 6px 6px 0 rgba(0,0,0,.4);
  font-size: 13px;
}
.infobox .ib-title {
  background: linear-gradient(135deg, var(--red-dk), var(--red));
  color: #fff;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: .06em;
  text-align: center;
  padding: 10px;
  text-transform: uppercase;
}
.infobox .ib-img { border-bottom: 1px solid var(--line); position: relative; }
.infobox .ib-img img { width: 100%; }
.infobox .ib-cap {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  padding: 5px 8px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.infobox table { width: 100%; border-collapse: collapse; }
.infobox th, .infobox td {
  padding: 7px 11px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(44,38,25,.6);
}
.infobox th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red-hi);
  width: 38%;
  font-weight: 400;
}
.infobox td { color: var(--text); }
.infobox tr:last-child th, .infobox tr:last-child td { border-bottom: none; }

/* ============ Propaganda slogan block ============ */
.propaganda {
  margin: 34px 0;
  padding: 26px 30px;
  background:
    repeating-linear-gradient(-45deg, rgba(201,162,39,.05) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #1a0f0c, #241512);
  border: 1px solid var(--red-dk);
  outline: 1px solid rgba(201,162,39,.25);
  outline-offset: 4px;
  text-align: center;
  position: relative;
}
.propaganda .slogan {
  font-family: var(--display);
  font-size: clamp(20px, 3.4vw, 30px);
  color: var(--gold-hi);
  text-transform: uppercase;
  letter-spacing: .12em;
  text-shadow: 2px 2px 0 var(--red-dk);
}
.propaganda .slogan-cn {
  font-size: 15px;
  color: var(--paper);
  letter-spacing: .5em;
  margin-top: 8px;
  font-weight: 700;
}
.propaganda::before, .propaganda::after {
  content: "★";
  color: var(--red-hi);
  font-size: 20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.propaganda::before { left: 14px; }
.propaganda::after { right: 14px; }

/* ============ Data tables ============ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.data-table caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 8px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-bottom: none;
}
.data-table th {
  background: linear-gradient(180deg, rgba(200,40,30,.3), rgba(200,40,30,.12));
  color: var(--paper);
  font-size: 13px;
  letter-spacing: .06em;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid var(--red);
}
.data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(44,38,25,.7);
  vertical-align: top;
}
.data-table tr:hover td { background: rgba(201,162,39,.05); }
.data-table td:first-child { color: var(--gold-hi); font-weight: 600; white-space: nowrap; }

/* ============ Card grid ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 18px;
  position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: block;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
a.card { border-bottom: 1px solid var(--line); }
.card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 12px 30px rgba(0,0,0,.55), 0 0 0 1px var(--red);
  color: var(--text);
}
.card .card-cat {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--red-hi);
}
.card h4 { margin: 6px 0 6px; font-size: 16px; color: var(--paper); }
.card p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.6; }
.card .card-star {
  position: absolute;
  top: 12px; right: 12px;
  color: var(--faint);
  font-size: 13px;
  transition: color .2s, transform .3s;
}
.card:hover .card-star { color: var(--red-hi); transform: rotate(72deg); }

/* ============ Figures & gallery ============ */
.figure { margin: 24px 0; }
.figure .img-frame {
  border: 1px solid var(--line);
  outline: 1px solid rgba(201,162,39,.2);
  outline-offset: 3px;
  background: var(--panel);
  padding: 6px;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}
.figure .img-frame img { width: 100%; transition: transform .5s; }
.figure .img-frame:hover img { transform: scale(1.02); }
.figure .img-frame::after {
  content: "⛶ Click to enlarge";
  position: absolute;
  right: 10px; bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--paper);
  background: rgba(0,0,0,.65);
  padding: 3px 8px;
  opacity: 0;
  transition: opacity .2s;
}
.figure .img-frame:hover::after { opacity: 1; }
.figure figcaption {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  padding: 8px 4px 0;
  line-height: 1.6;
}
.figure figcaption b { color: var(--gold); font-weight: 400; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.gallery .img-frame { margin: 0; }

/* ============ Notice blocks ============ */
.notice {
  display: flex;
  gap: 14px;
  margin: 20px 0;
  padding: 15px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  font-size: 14px;
}
.notice .n-icon { font-size: 20px; flex: none; }
.notice.warn { border-left-color: var(--red); background: linear-gradient(90deg, rgba(200,40,30,.1), transparent 80%); }
.notice.tip { border-left-color: #3d8b4f; background: linear-gradient(90deg, rgba(61,139,79,.12), transparent 80%); }
.notice b.n-title { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 4px; }
.notice.warn b.n-title { color: var(--red-hi); }
.notice.tip b.n-title { color: #6fbf82; }
.notice:not(.warn):not(.tip) b.n-title { color: var(--gold-hi); }
.notice p { margin: 2px 0; }

/* Unverified marker */
.unverified {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 1px 6px;
  vertical-align: middle;
  margin-left: 6px;
  transform: rotate(-1deg);
}

/* Stamp */
.stamp {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--red-hi);
  border: 2px solid var(--red-hi);
  border-radius: 4px;
  padding: 3px 10px;
  transform: rotate(-3deg);
  text-transform: uppercase;
  opacity: .9;
  box-shadow: inset 0 0 8px rgba(200,40,30,.2);
}

/* ============ Stat row ============ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.stat-box {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stat-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.stat-box .stat-num {
  font-family: var(--display);
  font-size: 26px;
  color: var(--gold-hi);
  line-height: 1.2;
}
.stat-box .stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ============ Homepage hero ============ */
.hero {
  position: relative;
  border: 1px solid var(--line);
  margin-bottom: 34px;
  overflow: hidden;
  background: var(--bg-2);
}
.hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: saturate(1.1);
  animation: heroDrift 30s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero .hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,10,8,.55) 0%, rgba(11,10,8,.82) 62%, var(--bg) 100%),
    radial-gradient(ellipse at 30% 40%, rgba(200,40,30,.22), transparent 60%);
}
.hero .hero-inner {
  position: relative;
  padding: clamp(40px, 8vw, 90px) clamp(24px, 5vw, 60px) clamp(60px, 9vw, 100px);
  text-align: center;
}
.hero .hero-classification {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .5em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 6.5vw, 72px);
  text-shadow: 4px 4px 0 var(--red-dk), 0 0 40px rgba(200,40,30,.4);
  margin: 0 0 10px;
}
.hero .hero-cn {
  font-size: clamp(16px, 2.6vw, 24px);
  color: var(--paper);
  letter-spacing: .9em;
  text-indent: .9em;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero .hero-tag {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 26px;
  line-height: 1.8;
}
.hero .hero-tag b { color: var(--gold-hi); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 13px 26px;
  border: 2px solid var(--red);
  color: #fff;
  background: linear-gradient(180deg, var(--red), var(--red-dk));
  box-shadow: 4px 4px 0 rgba(0,0,0,.5);
  transition: transform .15s, box-shadow .15s;
  border-bottom: 2px solid var(--red);
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 rgba(0,0,0,.5); color: #fff; }
.btn.ghost {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold-hi);
  border-bottom: 2px solid var(--gold);
}
.btn.ghost:hover { background: rgba(201,162,39,.12); color: #fff; }

/* Hazard stripe */
.hazard {
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--gold) 0 16px, #14110c 16px 32px);
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  margin: 34px 0;
  opacity: .8;
}

/* Section banner divider */
.section-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 20px;
}
.section-banner .sb-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--red), transparent); }
.section-banner .sb-text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .4em;
  color: var(--red-hi);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============ Video section ============ */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  outline: 1px solid rgba(201,162,39,.25);
  outline-offset: 3px;
  background: #000;
  margin: 24px 0;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 20px 0; }
.video-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
  position: relative;
}
.video-card:hover { transform: translateY(-3px); border-color: var(--red); color: var(--text); }
.video-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.video-card .vc-label {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--paper);
}
.video-card .vc-src { font-family: var(--mono); font-size: 10px; color: var(--muted); padding: 0 12px 10px; display: block; }
.video-card .vc-play {
  position: absolute;
  top: 32%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(200,40,30,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  padding-left: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,.6);
}

/* ============ Related links & pager ============ */
.related {
  margin-top: 48px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.related > h3 {
  margin: 0;
  padding: 12px 18px;
  border: none;
  background: linear-gradient(90deg, rgba(200,40,30,.25), transparent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red-hi);
}
.related ul {
  list-style: none;
  margin: 0;
  padding: 10px 18px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 18px;
}
.related li { margin: 3px 0; }
.related li::before { content: "▸ "; color: var(--red); }

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.pager a {
  flex: 1;
  max-width: 48%;
  border: 1px solid var(--line);
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--panel);
  transition: border-color .2s, color .2s;
  border-bottom: 1px solid var(--line);
}
.pager a:hover { border-color: var(--red); color: var(--paper); }
.pager .next { text-align: right; margin-left: auto; }
.pager .p-dir { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--red-hi); display: block; }

/* ============ TOC ============ */
.toc {
  width: var(--toc-w);
  flex: none;
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  border-left: 1px solid var(--line);
  padding: 8px 0 20px 18px;
  font-size: 12.5px;
}
.toc .toc-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red-hi);
  margin-bottom: 10px;
}
.toc a {
  display: block;
  padding: 4px 0 4px 12px;
  color: var(--muted);
  border: none;
  border-left: 2px solid var(--line);
  margin-left: -1px;
  transition: color .15s, border-color .15s;
  line-height: 1.45;
}
.toc a:hover { color: var(--paper); }
.toc a.active { color: var(--gold-hi); border-left-color: var(--red); }
.toc a.lvl3 { padding-left: 26px; font-size: 11.5px; }

/* ============ Footer ============ */
footer {
  border-top: 3px solid var(--red);
  background: var(--bg-2);
  padding: 40px 24px 30px;
  position: relative;
  z-index: 1;
}
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
  margin-bottom: 28px;
}
.footer-grid h5 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red-hi);
  margin-bottom: 10px;
}
.footer-grid a { display: block; font-size: 13px; color: var(--muted); border: none; padding: 3px 0; }
.footer-grid a:hover { color: var(--gold-hi); }
.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 12px;
  color: var(--faint);
  line-height: 1.8;
}
.footer-legal .motto {
  font-family: var(--mono);
  letter-spacing: .35em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 11px;
}

/* ============ Lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border: 2px solid var(--gold); box-shadow: 0 0 80px rgba(200,40,30,.3); }
.lightbox .lb-cap {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper);
  background: rgba(0,0,0,.7);
  padding: 6px 14px;
}

/* Back to top */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  background: var(--red);
  color: #fff;
  border: 2px solid var(--gold);
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .2s;
  z-index: 1500;
  box-shadow: 3px 3px 0 rgba(0,0,0,.5);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* Homepage section headings */
.home-section { margin: 44px 0; }
.home-section > h2 { margin-top: 0; }

/* Patch-notes timeline */
.timeline { border-left: 3px solid var(--red-dk); margin: 20px 0 20px 8px; padding-left: 24px; }
.timeline .tl-item { position: relative; margin-bottom: 26px; }
.timeline .tl-item::before {
  content: "";
  position: absolute;
  left: -33px; top: 6px;
  width: 13px; height: 13px;
  background: var(--bg);
  border: 3px solid var(--red);
  transform: rotate(45deg);
}
.timeline .tl-date { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: .1em; }
.timeline h4 { margin: 4px 0 6px; }

/* FAQ */
.faq-item { border: 1px solid var(--line); background: var(--panel); margin-bottom: 12px; }
.faq-item summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--paper);
  list-style: none;
  position: relative;
  padding-left: 42px;
  transition: color .15s;
}
.faq-item summary::before {
  content: "◆";
  position: absolute;
  left: 16px;
  color: var(--red);
  transition: transform .2s;
}
.faq-item[open] summary::before { transform: rotate(90deg); }
.faq-item summary:hover { color: var(--gold-hi); }
.faq-item .faq-body { padding: 0 18px 16px 42px; font-size: 14.5px; }

/* Quote block (official edicts) */
.edict {
  margin: 22px 0;
  padding: 18px 22px;
  background: var(--panel-2);
  border: 1px dashed rgba(201,162,39,.4);
  position: relative;
  font-style: italic;
  color: var(--paper);
}
.edict::before {
  content: "❝";
  position: absolute;
  top: -15px; left: 14px;
  font-size: 30px;
  line-height: 1;
  color: var(--red);
  background: var(--bg);
  padding: 0 6px;
}
.edict .edict-src {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-style: normal;
  letter-spacing: .15em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Page fade-in */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
article > * { animation: fadeUp .5s ease both; }
article > *:nth-child(2) { animation-delay: .04s; }
article > *:nth-child(3) { animation-delay: .08s; }

/* ============ Responsive ============ */
@media (max-width: 1240px) {
  .toc { display: none; }
}
@media (max-width: 960px) {
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    height: 100vh;
    top: 0;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform .28s ease;
    box-shadow: 0 0 60px rgba(0,0,0,.8);
    padding-top: 70px;
  }
  .sidebar.open { transform: none; }
  .menu-toggle { display: block; }
  main { padding: 24px 18px 60px; }
  .infobox { float: none; width: 100%; margin: 18px 0; }
  .nav-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 1999;
    display: none;
  }
  .nav-overlay.show { display: block; }
  .brand-text span { display: none; }
}
@media (max-width: 560px) {
  .search-box { width: 100%; }
  .topbar { flex-wrap: wrap; height: auto; padding: 10px 14px; }
  .hero .hero-cn { letter-spacing: .4em; text-indent: .4em; }
  .pager { flex-direction: column; }
  .pager a { max-width: 100%; }
  .data-table { font-size: 12.5px; }
  .data-table td:first-child { white-space: normal; }
}

/* Print friendly */
@media print {
  .sidebar, .toc, .topbar, .state-banner, .to-top, .lightbox { display: none !important; }
  body::after, body::before { display: none; }
  body { background: #fff; color: #000; }
}
