/* =========================================================
   CLASH ATLAS · 部落图鉴
   Hand-built static editorial site. No frameworks.
   ========================================================= */

/* ---------- 01. Tokens & reset ---------- */
:root {
  --bg: #0a0f0c;
  --bg-deep: #070b09;
  --bg-elev: #101712;
  --panel: #131c16;
  --panel-2: #17221b;
  --line: rgba(238, 229, 207, 0.12);
  --line-strong: rgba(238, 229, 207, 0.24);
  --text: #f1eadc;
  --muted: #9ba69c;
  --muted-2: #77837a;
  --gold: #f2c14e;
  --gold-bright: #ffd875;
  --gold-deep: #c88b22;
  --ember: #ff7a2f;
  --sage: #a8c9a8;
  --blue: #78c9cf;
  --red: #ff6555;
  --paper: #f2ead9;
  --paper-deep: #e6dac1;
  --ink: #18140d;
  --ink-soft: #4c4639;
  --font-sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: "Bahnschrift", "Bahnschrift Condensed", "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Songti SC", serif;
  --container: 1240px;
  --header-h: 76px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --ease: cubic-bezier(0.22, 0.75, 0.22, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.menu-open { overflow: hidden; }
body.dialog-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

/* ---------- 02. Utilities ---------- */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section { padding: 104px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section--line { border-top: 1px solid var(--line); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}
.kicker--dark { color: #7a5b12; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}
.section-head h2 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.7vw, 3.45rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.section-head p {
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.98rem;
}

.text-gold { color: var(--gold); }
.mono {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--btn-bd);
  border-radius: 4px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  --btn-bg: linear-gradient(180deg, var(--gold-bright), var(--gold));
  --btn-fg: #1c1609;
  --btn-bd: rgba(255, 220, 130, 0.9);
  box-shadow: 0 8px 26px rgba(242, 193, 78, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--gold:hover {
  --btn-bg: linear-gradient(180deg, #ffe391, #f6c957);
  box-shadow: 0 12px 34px rgba(242, 193, 78, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn--ghost { --btn-bg: rgba(255, 255, 255, 0.025); }
.btn--ghost:hover { --btn-bg: rgba(242, 193, 78, 0.08); --btn-bd: var(--gold); color: var(--gold-bright); }
.btn--dark {
  --btn-bg: #17140d;
  --btn-fg: var(--paper);
  --btn-bd: #17140d;
}
.btn--dark:hover { --btn-bg: #2a2417; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.82rem; border-radius: 3px; }
.btn--wide { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.link-arrow svg { width: 17px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip--gold { border-color: rgba(242, 193, 78, 0.38); color: var(--gold); background: rgba(242, 193, 78, 0.07); }
.chip--sage { border-color: rgba(168, 201, 168, 0.28); color: var(--sage); background: rgba(168, 201, 168, 0.06); }
.chip--ember { border-color: rgba(255, 122, 47, 0.32); color: #ffab74; background: rgba(255, 122, 47, 0.07); }
.chip--blue { border-color: rgba(120, 201, 207, 0.28); color: var(--blue); background: rgba(120, 201, 207, 0.06); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------- 03. Header & navigation ---------- */
.topline {
  position: relative;
  z-index: 80;
  border-bottom: 1px solid rgba(242, 193, 78, 0.16);
  background: #080c09;
  color: #b0b8ad;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.topline .container {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topline__left { display: inline-flex; align-items: center; gap: 9px; }
.topline__left strong { color: var(--gold); font-weight: 700; }
.topline__right { display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; }
.topline__right span { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.topline svg { width: 13px; height: 13px; flex: 0 0 auto; }
.live-dot {
  width: 6px; height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #77d18b;
  box-shadow: 0 0 0 4px rgba(119, 209, 139, 0.12);
  animation: pulseDot 2.4s infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 15, 12, 0.82);
  backdrop-filter: blur(18px) saturate(125%);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: rgba(8, 12, 9, 0.96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.brand__mark { width: 42px; height: 42px; }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__cn {
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.brand__en {
  margin-top: 5px;
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 0.56rem;
  letter-spacing: 0.32em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.site-nav a {
  position: relative;
  padding: 10px 14px;
  color: #c2c8bd;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.server-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(120, 201, 207, 0.24);
  border-radius: 3px;
  color: #a9d9dc;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.server-chip svg { width: 12px; height: 12px; }
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.menu-toggle span {
  position: relative;
  width: 20px; height: 2px;
  background: var(--text);
  transition: background 0.2s;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 20px; height: 2px;
  background: var(--text);
  transition: transform 0.28s var(--ease), top 0.28s;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(119, 209, 139, 0.1); }
  50% { box-shadow: 0 0 0 6px rgba(119, 209, 139, 0.02); }
}

/* ---------- 04. Home hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 82px 0 0;
  min-height: 760px;
  background:
    radial-gradient(circle at 78% 38%, rgba(83, 121, 71, 0.22), transparent 32%),
    radial-gradient(circle at 12% 6%, rgba(242, 193, 78, 0.08), transparent 28%),
    linear-gradient(180deg, #0b120e 0%, #090e0b 72%, #0a0f0c 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(242, 193, 78, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 193, 78, 0.045) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(ellipse at 65% 40%, #000 10%, transparent 72%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -36%;
  z-index: -1;
  width: 850px;
  height: 850px;
  border: 1px solid rgba(242, 193, 78, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(242, 193, 78, 0.025),
    0 0 0 180px rgba(242, 193, 78, 0.018),
    0 0 0 270px rgba(242, 193, 78, 0.012);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  align-items: center;
  gap: 54px;
  padding-bottom: 92px;
}
.hero__copy { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 7px 13px;
  border: 1px solid rgba(242, 193, 78, 0.24);
  border-radius: 100px;
  background: rgba(242, 193, 78, 0.04);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 13ch;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 6.1vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.99;
}
.hero h1 .highlight {
  position: relative;
  display: inline-block;
  color: var(--gold);
  z-index: 0;
}
.hero h1 .highlight::after {
  content: "";
  position: absolute;
  left: 2%; right: -2%; bottom: 5%;
  z-index: -1;
  height: 13%;
  background: rgba(255, 122, 47, 0.34);
  transform: skewX(-12deg);
}
.hero__lede {
  max-width: 35em;
  margin-top: 30px;
  color: #b9c0b5;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.85;
}
.hero__lede strong { color: var(--text); font-weight: 700; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero__proof-item { display: flex; align-items: baseline; gap: 8px; }
.hero__proof-item strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
}
.hero__proof-item span { color: var(--muted); font-size: 0.76rem; letter-spacing: 0.04em; }

.hero__visual { position: relative; min-height: 540px; display: grid; place-items: center; }
.hero__visual::before {
  content: "19";
  position: absolute;
  top: -60px; right: -5%;
  z-index: -1;
  color: transparent;
  font-family: var(--font-display);
  font-size: 23rem;
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(242, 193, 78, 0.11);
  letter-spacing: -0.12em;
  pointer-events: none;
}
.dossier {
  position: relative;
  width: min(100%, 430px);
  background: linear-gradient(155deg, #1a251d, #0f1712 62%);
  border: 1px solid rgba(242, 193, 78, 0.25);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: rotate(-2.2deg);
  transition: transform 0.6s var(--ease);
  animation: dossierIn 1s var(--ease) both;
}
.dossier:hover { transform: rotate(0deg) translateY(-5px); }
.dossier::before, .dossier::after {
  content: "";
  position: absolute;
  z-index: 3;
  width: 22px; height: 22px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.7;
}
.dossier::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.dossier::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
.dossier__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(242, 193, 78, 0.16);
  color: #b6c0b3;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.dossier__top strong { color: var(--gold); font-size: 0.68rem; }
.dossier__map { position: relative; background: #0b1510; overflow: hidden; }
.dossier__map svg { width: 100%; height: auto; }
.dossier__map::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6, 10, 8, 0.7));
  pointer-events: none;
}
.dossier__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  padding: 18px;
  border-top: 1px solid var(--line);
}
.dossier__bottom h2 { font-size: 1.22rem; line-height: 1.3; font-weight: 800; }
.dossier__bottom p {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.61rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.dossier__th {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border: 1px solid rgba(242, 193, 78, 0.36);
  background: rgba(242, 193, 78, 0.06);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}
.dossier__th small { font-size: 0.48rem; letter-spacing: 0.1em; color: var(--muted); }
.float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(13, 20, 16, 0.94);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
}
.float-card strong { display: block; font-size: 0.78rem; color: var(--text); }
.float-card span { color: var(--muted); font-family: var(--font-display); font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase; }
.float-card__icon {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 2px;
  background: rgba(255, 122, 47, 0.12);
  color: #ff9c62;
}
.float-card__icon svg { width: 17px; height: 17px; }
.float-card--a { top: 64%; left: -10%; animation: floatA 6s ease-in-out infinite; }
.float-card--b { bottom: 7%; right: -7%; animation: floatB 7s ease-in-out infinite; }
.hero__seal {
  position: absolute;
  right: -4%; top: -15%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 92px; height: 92px;
  border: 1px solid rgba(242, 193, 78, 0.4);
  border-radius: 50%;
  background: rgba(10, 16, 12, 0.85);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  line-height: 1.5;
  text-transform: uppercase;
  transform: rotate(8deg);
  backdrop-filter: blur(8px);
}
.hero__seal::before {
  content: "";
  position: absolute; inset: 5px;
  border: 1px dashed rgba(242, 193, 78, 0.3);
  border-radius: 50%;
}
.hero__seal strong { display: block; color: var(--text); font-size: 1.05rem; letter-spacing: 0.02em; }

@keyframes floatA { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(1deg); } 50% { transform: translateY(9px) rotate(-1deg); } }
@keyframes dossierIn { from { opacity: 0; transform: translateY(28px) rotate(-5deg); } to { opacity: 1; transform: translateY(0) rotate(-2.2deg); } }

.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(242, 193, 78, 0.22);
  border-bottom: 1px solid rgba(242, 193, 78, 0.12);
  background: #0d140f;
}
.marquee__track {
  display: flex;
  width: max-content;
  padding: 11px 0;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  color: #9ba59a;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__group strong { color: var(--gold); }
.marquee__group span::before {
  content: "◆";
  margin-right: 34px;
  color: rgba(242, 193, 78, 0.5);
  font-size: 0.5rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 05. Stats band ---------- */
.stats-band {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #0d140f, #0a0f0c);
}
.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 38px 32px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat__num small { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.stat__label { margin-top: 10px; color: #aab1a6; font-size: 0.78rem; letter-spacing: 0.08em; }

/* ---------- 06. Update strip ---------- */
.update-strip {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 38px;
  margin-top: -1px;
  padding: 32px 38px;
  border: 1px solid rgba(242, 193, 78, 0.28);
  border-radius: 4px;
  background:
    linear-gradient(105deg, rgba(242, 193, 78, 0.12), rgba(242, 193, 78, 0.02) 48%),
    var(--panel);
  overflow: hidden;
}
.update-strip::before {
  content: "NEW";
  position: absolute;
  right: 18%; top: -28px;
  color: rgba(242, 193, 78, 0.045);
  font-family: var(--font-display);
  font-size: 9rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  pointer-events: none;
}
.update-strip__date {
  display: flex;
  flex-direction: column;
  padding-right: 30px;
  border-right: 1px solid var(--line);
}
.update-strip__date strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.update-strip__date span { margin-top: 8px; color: var(--muted); font-family: var(--font-display); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; }
.update-strip__body { position: relative; z-index: 1; }
.update-strip__body .chip { margin-bottom: 10px; }
.update-strip__body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.update-strip__body p { max-width: 58ch; margin-top: 7px; color: var(--muted); font-size: 0.9rem; }
.update-strip__link {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border: 1px solid rgba(242, 193, 78, 0.42);
  border-radius: 50%;
  color: var(--gold);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.update-strip__link svg { width: 21px; }
.update-strip:hover .update-strip__link { background: var(--gold); color: var(--ink); transform: rotate(-45deg); }

/* ---------- 07. Base cards ---------- */
.base-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.base-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), #101712);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.base-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.base-card:hover {
  transform: translateY(-7px);
  border-color: rgba(242, 193, 78, 0.36);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.32);
}
.base-card:hover::after { opacity: 1; }
.base-card__map {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0c1510;
  overflow: hidden;
}
.base-card__map svg { width: 100%; height: 100%; transition: transform 0.7s var(--ease); }
.base-card:hover .base-card__map svg { transform: scale(1.035); }
.base-card__map::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 34%, rgba(10, 15, 12, 0.16));
  pointer-events: none;
}
.base-card__badges {
  position: absolute;
  z-index: 2;
  top: 13px; left: 13px; right: 13px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.base-card__th {
  display: grid;
  place-items: center;
  min-width: 49px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(242, 193, 78, 0.5);
  border-radius: 2px;
  background: rgba(9, 14, 10, 0.82);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  backdrop-filter: blur(8px);
}
.base-card__type {
  padding: 5px 9px;
  border-radius: 2px;
  background: rgba(9, 14, 10, 0.8);
  color: #c9d1c5;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}
.base-card--war .base-card__type { color: #ffb28d; }
.base-card--legend .base-card__type { color: #9bdce0; }
.base-card--trophy .base-card__type { color: #f2c14e; }
.base-card--farming .base-card__type { color: #b5d6b3; }
.base-card--hybrid .base-card__type { color: #d0b8ff; }
.base-card__corner {
  position: absolute;
  z-index: 2;
  right: 13px; bottom: 12px;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-display);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.base-card__body { display: flex; flex-direction: column; flex: 1; padding: 19px 20px 18px; }
.base-card__body h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.4; letter-spacing: -0.01em; }
.base-card__body > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.base-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.base-card__tags .chip { padding: 3px 7px; font-size: 0.58rem; letter-spacing: 0.06em; }
.base-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}
.base-card__tools { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.base-card__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.base-card__action svg { width: 14px; transition: transform 0.25s; }
.base-card:hover .base-card__action svg { transform: translateX(4px); }
.open-mini { color: var(--gold); border-color: rgba(242, 193, 78, 0.28); }
.open-mini:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.copy-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: #b8c0b5;
  font-size: 0.68rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.copy-mini svg { width: 13px; height: 13px; }
.copy-mini:hover { border-color: var(--gold); color: var(--gold); background: rgba(242, 193, 78, 0.06); }
.copy-mini.is-copied { border-color: #6dbb7e; color: #8dd99c; }

.base-card--featured .base-card__map { aspect-ratio: 16 / 10; }

/* ---------- 08. Guide cards & art ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.guide-card:hover {
  transform: translateY(-6px);
  border-color: rgba(242, 193, 78, 0.34);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
}
.guide-card__art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0c1510; }
.guide-card__art svg { width: 100%; height: 100%; transition: transform 0.8s var(--ease); }
.guide-card:hover .guide-card__art svg { transform: scale(1.04); }
.guide-card__art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 15, 12, 0.72));
  pointer-events: none;
}
.guide-card__no {
  position: absolute;
  z-index: 2;
  left: 17px; top: 15px;
  color: rgba(242, 193, 78, 0.85);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.guide-card__tag {
  position: absolute;
  z-index: 2;
  left: 17px; bottom: 14px;
  color: #d5dccf;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.guide-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.guide-card__body h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.4; letter-spacing: -0.015em; }
.guide-card__body p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guide-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.guide-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.guide-card__meta span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.guide-card__meta span:first-child::before { display: none; }
.guide-card__meta .guide-card__arrow::before { display: none; }
.guide-card__arrow {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.guide-card__arrow svg { width: 13px; }
.guide-card:hover .guide-card__arrow { background: var(--gold); color: var(--ink); transform: rotate(-45deg); }

.guide-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
  gap: 22px;
}
.guide-card--feature { min-height: 520px; }
.guide-card--feature .guide-card__art { flex: 1; aspect-ratio: auto; min-height: 290px; }
.guide-card--feature .guide-card__art::after {
  background: linear-gradient(180deg, rgba(10, 15, 12, 0.05) 30%, rgba(10, 15, 12, 0.96));
}
.guide-card--feature .guide-card__body {
  position: relative;
  z-index: 2;
  margin-top: -132px;
  padding: 0 30px 28px;
  background: transparent;
}
.guide-card--feature .guide-card__body h3 { font-size: clamp(1.65rem, 2.8vw, 2.3rem); line-height: 1.25; }
.guide-card--feature .guide-card__body p { max-width: 52ch; font-size: 0.92rem; -webkit-line-clamp: 2; }
.guide-feature-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 14px; }
.guide-mini {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.guide-mini:hover { border-color: rgba(242, 193, 78, 0.32); transform: translateX(4px); }
.guide-mini__art { position: relative; background: #0c1510; overflow: hidden; }
.guide-mini__art svg { width: 100%; height: 100%; object-fit: cover; }
.guide-mini__body { padding: 15px 17px; display: flex; flex-direction: column; justify-content: center; }
.guide-mini__body span {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.guide-mini__body h4 { margin-top: 4px; font-size: 0.96rem; font-weight: 800; line-height: 1.4; }
.guide-mini__body p { margin-top: 4px; color: var(--muted); font-size: 0.7rem; }

/* ---------- 09. Import steps ---------- */
.import-section { overflow: hidden; }
.import-section::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 760px; height: 760px;
  border: 1px dashed rgba(242, 193, 78, 0.09);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.import-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.import-copy h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.import-copy p { max-width: 37ch; margin-top: 20px; color: var(--muted); line-height: 1.8; }
.import-copy .btn { margin-top: 28px; }
.import-steps { display: grid; gap: 12px; }
.import-step {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(19, 28, 22, 0.72);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.import-step:hover { border-color: rgba(242, 193, 78, 0.32); background: var(--panel-2); transform: translateX(4px); }
.import-step__num {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border: 1px solid rgba(242, 193, 78, 0.28);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}
.import-step h3 { font-size: 1rem; font-weight: 800; }
.import-step p { margin-top: 3px; color: var(--muted); font-size: 0.8rem; }
.import-step__icon { color: var(--muted-2); }
.import-step__icon svg { width: 20px; }
.import-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 2px solid var(--blue);
  background: rgba(120, 201, 207, 0.05);
  color: #a7b7b7;
  font-size: 0.78rem;
  line-height: 1.65;
}
.import-note svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--blue); margin-top: 2px; }

/* ---------- 10. Manifesto / home closing ---------- */
.closing {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 130%, rgba(242, 193, 78, 0.13), transparent 55%),
    #080d0a;
  text-align: center;
}
.closing__inner { max-width: 780px; margin-inline: auto; }
.closing h2 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.closing h2 em { font-family: var(--font-serif); font-weight: 400; color: var(--gold); }
.closing p { margin: 24px auto 0; max-width: 52ch; color: var(--muted); }
.closing__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.closing__meta { margin-top: 28px; color: var(--muted-2); font-family: var(--font-display); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- 11. Footer ---------- */
.site-footer {
  position: relative;
  padding: 72px 0 28px;
  border-top: 1px solid var(--line);
  background: #070b08;
  color: var(--text);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.7fr);
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand p { max-width: 34ch; margin-top: 18px; color: var(--muted); font-size: 0.82rem; line-height: 1.75; }
.footer-brand .server-chip { margin-top: 18px; }
.footer-col h4 {
  color: #dce1d7;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer-col ul { margin-top: 16px; display: grid; gap: 9px; }
.footer-col a { color: var(--muted); font-size: 0.82rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-wordmark {
  padding: 6px 0 20px;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 10.5rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.055em;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(242, 193, 78, 0.13);
  user-select: none;
}
.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.67rem;
  line-height: 1.7;
}
.footer-bottom p:first-child { max-width: 70ch; }
.footer-bottom a { color: #b8c0b5; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- 12. Interior page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 58px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 20%, rgba(83, 121, 71, 0.18), transparent 34%),
    linear-gradient(180deg, #0b120e, #0a0f0c);
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(242, 193, 78, 0.04) 1px, transparent 1px);
  background-size: 110px 100%;
  mask-image: linear-gradient(90deg, transparent, #000 70%, transparent);
  pointer-events: none;
}
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
}
.page-hero h1 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.055em;
}
.page-hero h1 span { display: block; color: transparent; -webkit-text-stroke: 1px rgba(242, 193, 78, 0.35); font-size: 0.44em; letter-spacing: 0.02em; margin-top: 14px; }
.page-hero__lede { max-width: 47ch; margin-top: 22px; color: #b6beb3; font-size: 1rem; line-height: 1.85; }
.page-hero__aside {
  min-width: 210px;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.page-hero__aside dl { display: grid; gap: 15px; }
.page-hero__aside dt {
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.page-hero__aside dd { margin: 2px 0 0; color: var(--gold); font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.1; }
.page-hero__aside dd small { font-size: 0.62rem; color: var(--muted); letter-spacing: 0.05em; }

/* ---------- 13. Library filters & notice ---------- */
.library-notice {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: -28px;
  margin-bottom: 34px;
  padding: 18px 22px;
  border: 1px solid rgba(120, 201, 207, 0.22);
  border-radius: 4px;
  background: rgba(120, 201, 207, 0.045);
  position: relative;
  z-index: 2;
}
.library-notice__icon {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(120, 201, 207, 0.32);
  border-radius: 50%;
  color: var(--blue);
}
.library-notice__icon svg { width: 20px; }
.library-notice h3 { color: #d8e8e4; font-size: 0.9rem; font-weight: 800; }
.library-notice p { margin-top: 3px; color: #93a7a3; font-size: 0.78rem; }
.library-notice p strong { color: var(--blue); font-weight: 700; }
.library-notice a { color: var(--gold); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }

.library-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  margin-bottom: 30px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 15, 12, 0.92);
  backdrop-filter: blur(16px);
}
.library-toolbar__inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.filter-label {
  margin-right: 2px;
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.filter-chip {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: #aeb7ac;
  font-size: 0.75rem;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.filter-chip:hover { border-color: var(--line-strong); color: var(--text); }
.filter-chip[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: #1b160c;
  font-weight: 800;
}
.filter-divider { width: 1px; height: 24px; background: var(--line); }
.search-box {
  position: relative;
  margin-left: auto;
  min-width: 230px;
}
.search-box svg {
  position: absolute;
  left: 12px; top: 50%;
  width: 15px; height: 15px;
  color: var(--muted-2);
  transform: translateY(-50%);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 35px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: 0.78rem;
  transition: border-color 0.2s, background 0.2s;
}
.search-box input::placeholder { color: var(--muted-2); }
.search-box input:focus { border-color: rgba(242, 193, 78, 0.55); background: rgba(242, 193, 78, 0.04); outline: none; }
.search-clear {
  position: absolute;
  right: 8px; top: 50%;
  width: 24px; height: 24px;
  display: none;
  place-items: center;
  color: var(--muted);
  transform: translateY(-50%);
}
.search-clear svg { width: 12px; position: static; transform: none; }
.search-box.has-value .search-clear { display: grid; }
.library-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.78rem;
}
.library-count strong { color: var(--gold); font-family: var(--font-display); font-size: 0.9rem; }
.library-count span { color: var(--muted-2); font-family: var(--font-display); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; }
.empty-state {
  display: none;
  padding: 80px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}
.empty-state.is-visible { display: block; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.6rem; }
.empty-state p { margin: 8px auto 20px; color: var(--muted); font-size: 0.86rem; }

/* ---------- 14. Dialog ---------- */
.base-dialog {
  width: min(1000px, calc(100vw - 40px));
  max-height: min(88vh, 820px);
  padding: 0;
  border: 1px solid rgba(242, 193, 78, 0.28);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.base-dialog::backdrop {
  background: rgba(4, 7, 5, 0.78);
  backdrop-filter: blur(6px);
}
.base-dialog[open] { animation: dialogIn 0.35s var(--ease); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(20px) scale(0.985); } to { opacity: 1; transform: none; } }
.dialog-close {
  position: absolute;
  z-index: 5;
  top: 13px; right: 13px;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(9, 14, 10, 0.8);
  color: var(--text);
  backdrop-filter: blur(8px);
  transition: background 0.2s, color 0.2s;
}
.dialog-close:hover { background: var(--gold); color: var(--ink); }
.dialog-close svg { width: 16px; }
.dialog-layout { display: grid; grid-template-columns: 1.06fr 0.94fr; max-height: inherit; }
.dialog-map {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #0b1510;
  background-image:
    linear-gradient(rgba(242, 193, 78, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 193, 78, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  min-height: 430px;
}
.dialog-map svg { width: 100%; height: auto; aspect-ratio: 4 / 3; position: static; flex: 0 0 auto; }
.dialog-map__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 17px 20px 19px;
  border-top: 1px solid rgba(242, 193, 78, 0.18);
  background: rgba(9, 14, 10, 0.58);
}
.dialog-map__info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.dialog-map__info-head span:last-child { color: var(--muted-2); font-weight: 400; letter-spacing: 0.08em; }
.dialog-map__info ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px 14px;
  margin-top: 13px;
}
.dialog-map__info li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #aab4a7;
  font-size: 0.68rem;
  line-height: 1.4;
}
.dialog-map__info li i {
  width: 7px; height: 7px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.dialog-map__info li span {
  color: #d8dfd3;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.dialog-map__info > p {
  margin-top: auto;
  padding-top: 14px;
  color: var(--muted-2);
  font-size: 0.61rem;
  line-height: 1.6;
}
.dialog-map__badges { position: absolute; z-index: 2; top: 16px; left: 16px; display: flex; gap: 7px; }
.dialog-map__legend {
  position: absolute;
  z-index: 2;
  left: 16px; bottom: 15px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(9, 14, 10, 0.8);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.dialog-body { display: flex; flex-direction: column; max-height: inherit; overflow-y: auto; padding: 32px 30px 26px; border-left: 1px solid var(--line); }
.dialog-body__kicker { color: var(--gold); font-family: var(--font-display); font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; }
.dialog-body h2 { margin-top: 8px; font-size: clamp(1.4rem, 2.5vw, 1.95rem); line-height: 1.25; font-weight: 900; letter-spacing: -0.02em; }
.dialog-body > p { margin-top: 12px; color: #b4bdb1; font-size: 0.84rem; line-height: 1.75; }
.dialog-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.dialog-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.dialog-section h3 {
  display: flex; align-items: center; gap: 8px;
  color: #d9dfd4;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.dialog-section h3::before { content: ""; width: 4px; height: 12px; background: var(--gold); }
.dialog-section ul { margin-top: 11px; display: grid; gap: 8px; }
.dialog-section li { position: relative; padding-left: 14px; color: #aab4a7; font-size: 0.79rem; line-height: 1.65; }
.dialog-section li::before { content: "›"; position: absolute; left: 0; top: -1px; color: var(--gold); }
.dialog-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: auto; padding-top: 24px; }
.dialog-source { margin-top: 12px; color: var(--muted-2); font-size: 0.65rem; }
.dialog-source a { color: #a9b2a6; text-decoration: underline; text-underline-offset: 3px; }
.dialog-source a:hover { color: var(--gold); }

/* ---------- 15. Guides index ---------- */
.playbook-hero {
  position: relative;
  padding: 82px 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 10%, rgba(242, 193, 78, 0.08), transparent 30%),
    #0a0f0c;
}
.playbook-hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: end; gap: 56px; padding-bottom: 64px; }
.playbook-hero h1 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.06em;
}
.playbook-hero h1 em { display: block; color: transparent; -webkit-text-stroke: 1px rgba(242, 193, 78, 0.42); font-style: normal; font-size: 0.86em; }
.playbook-hero__lede { max-width: 43ch; margin-top: 24px; color: #b6beb3; line-height: 1.85; }
.playbook-hero__panel {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(19, 28, 22, 0.66);
}
.playbook-hero__panel::before {
  content: "TACTICAL TRIANGLE";
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
}
.triangle-list { display: grid; gap: 12px; }
.triangle-list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.triangle-list span { color: var(--gold); font-family: var(--font-display); font-size: 0.62rem; letter-spacing: 0.08em; padding-top: 1px; }
.triangle-list strong { display: block; font-size: 0.9rem; }
.triangle-list p { color: var(--muted); font-size: 0.74rem; line-height: 1.55; }
.playbook-formula {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.formula-step { position: relative; padding: 22px 24px; border-left: 1px solid var(--line); }
.formula-step:first-child { border-left: 0; }
.formula-step span { color: var(--gold); font-family: var(--font-display); font-size: 0.56rem; letter-spacing: 0.15em; }
.formula-step strong { display: block; margin-top: 4px; font-size: 0.92rem; }
.formula-step p { margin-top: 3px; color: var(--muted); font-size: 0.72rem; }
.formula-step::after {
  content: "→";
  position: absolute; right: -9px; top: 50%;
  z-index: 2;
  color: var(--gold);
  font-size: 0.8rem;
  transform: translateY(-50%);
}
.formula-step:last-child::after { display: none; }

.playbook-list { display: grid; gap: 18px; }
.playbook-card {
  display: grid;
  grid-template-columns: 300px 1fr auto;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.playbook-card:hover { border-color: rgba(242, 193, 78, 0.34); transform: translateY(-3px); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.26); }
.playbook-card__art { position: relative; min-height: 210px; background: #0c1510; overflow: hidden; }
.playbook-card__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.playbook-card__no {
  position: absolute; z-index: 2; left: 16px; top: 14px;
  color: var(--gold); font-family: var(--font-display); font-size: 0.6rem; letter-spacing: 0.16em;
}
.playbook-card__body { display: flex; flex-direction: column; justify-content: center; padding: 28px 32px; }
.playbook-card__body .chip { align-self: flex-start; }
.playbook-card__body h2 { margin-top: 12px; font-family: var(--font-display); font-size: clamp(1.45rem, 2.3vw, 2rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.025em; }
.playbook-card__body p { max-width: 62ch; margin-top: 9px; color: var(--muted); font-size: 0.86rem; line-height: 1.7; }
.playbook-card__meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; color: var(--muted-2); font-family: var(--font-display); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; }
.playbook-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.playbook-card__meta svg { width: 13px; color: var(--gold); }
.playbook-card__go {
  display: grid; place-items: center;
  width: 74px;
  border-left: 1px solid var(--line);
  color: var(--gold);
  transition: background 0.25s, color 0.25s;
}
.playbook-card__go svg { width: 24px; transition: transform 0.3s; }
.playbook-card:hover .playbook-card__go { background: var(--gold); color: var(--ink); }
.playbook-card:hover .playbook-card__go svg { transform: translateX(4px); }

/* ---------- 16. Article (paper) ---------- */
body.page-article {
  background: var(--paper);
  color: var(--ink);
}
body.page-article::before { opacity: 0.025; mix-blend-mode: multiply; }
.page-article .topline { background: #080c09; }
.page-article .site-header { background: rgba(8, 12, 9, 0.92); }
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  box-shadow: 0 0 16px rgba(242, 193, 78, 0.5);
}
.article-masthead {
  position: relative;
  padding: 58px 0 42px;
  overflow: hidden;
}
.article-masthead::after {
  content: "TACTICS";
  position: absolute;
  right: -2%; top: 10%;
  z-index: 0;
  color: rgba(24, 20, 13, 0.035);
  font-family: var(--font-display);
  font-size: 15rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
}
.article-masthead__inner { position: relative; z-index: 1; max-width: 980px; }
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #837a67;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}
.breadcrumb a:hover { color: #8f6810; }
.breadcrumb span { color: #b3a88f; }
.article-masthead__tag { display: inline-flex; margin-top: 26px; }
.article-masthead .chip--gold {
  border-color: rgba(122, 86, 8, 0.35);
  background: rgba(184, 137, 31, 0.09);
  color: #7a5608;
}
.article-masthead h1 {
  max-width: 22ch;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.9rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.045em;
  color: #18140d;
}
.article-masthead__lede {
  max-width: 64ch;
  margin-top: 22px;
  color: #5e563f;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.85;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(24, 20, 13, 0.16);
  color: #817762;
  font-size: 0.72rem;
}
.article-meta__author { display: inline-flex; align-items: center; gap: 9px; color: #3f3828; font-weight: 700; }
.article-meta__avatar {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #1b1a14;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
}
.article-meta__dot { width: 3px; height: 3px; border-radius: 50%; background: #a89c83; }
.article-meta__share {
  display: inline-flex; align-items: center; gap: 7px;
  margin-left: auto;
  padding: 7px 11px;
  border: 1px solid rgba(24, 20, 13, 0.18);
  border-radius: 2px;
  color: #4b432f;
  font-size: 0.68rem;
  transition: background 0.2s, border-color 0.2s;
}
.article-meta__share:hover { background: rgba(24, 20, 13, 0.06); border-color: rgba(24, 20, 13, 0.4); }
.article-meta__share svg { width: 13px; }
.article-hero-art {
  position: relative;
  max-width: 1120px;
  margin: 6px auto 0;
  border: 1px solid rgba(24, 20, 13, 0.24);
  background: #0d1712;
  overflow: hidden;
}
.article-hero-art svg { width: 100%; height: auto; }
.article-hero-art__caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 13px;
  border-top: 1px solid rgba(242, 193, 78, 0.2);
  background: #0b120e;
  color: #8b968b;
  font-family: var(--font-display);
  font-size: 0.53rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 292px;
  justify-content: space-between;
  gap: 64px;
  padding: 58px 0 80px;
}
.article-body {
  min-width: 0;
  color: #2e291e;
  font-size: 1.02rem;
  line-height: 1.92;
}
.article-body > p:first-child::first-letter {
  float: left;
  margin: 7px 10px 0 0;
  color: #8f6810;
  font-family: var(--font-serif);
  font-size: 4.3rem;
  line-height: 0.72;
  font-weight: 700;
}
.article-body h2 {
  position: relative;
  margin: 56px 0 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(24, 20, 13, 0.2);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.025em;
  color: #18140d;
  scroll-margin-top: 120px;
}
.article-body h2::before {
  content: attr(data-kicker);
  display: block;
  margin-bottom: 8px;
  color: #967019;
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.article-body h3 {
  margin: 32px 0 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
  color: #201b11;
}
.article-body p { margin: 0 0 18px; }
.article-body p strong { color: #18140d; font-weight: 800; background: linear-gradient(transparent 62%, rgba(242, 193, 78, 0.38) 0); }
.article-body a { color: #7d5a0d; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.article-body a:hover { color: #b77d00; }
.article-body code {
  padding: 1px 5px;
  border: 1px solid rgba(24, 20, 13, 0.16);
  background: rgba(24, 20, 13, 0.05);
  font-family: Consolas, monospace;
  font-size: 0.86em;
}
.article-body ul, .article-body ol { margin: 0 0 22px; display: grid; gap: 9px; }
.article-body ul li, .article-body ol li { position: relative; padding-left: 22px; }
.article-body ul li::before {
  content: "◆";
  position: absolute; left: 0; top: 0;
  color: #b1872a;
  font-size: 0.55rem;
  line-height: 2.9;
}
.article-body ol { counter-reset: item; }
.article-body ol li { counter-increment: item; padding-left: 30px; }
.article-body ol li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  color: #9b741c;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 2.7;
}
.article-body hr { margin: 34px 0; border: 0; border-top: 1px solid rgba(24, 20, 13, 0.15); }
.article-body blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid #b8891f;
  background: rgba(24, 20, 13, 0.045);
  color: #4c432f;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.75;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body figure { margin: 30px 0; }
.article-body figure svg { width: 100%; border: 1px solid rgba(24, 20, 13, 0.2); }
.article-body figcaption { margin-top: 9px; color: #837762; font-size: 0.7rem; text-align: center; }

.callout {
  position: relative;
  margin: 28px 0;
  padding: 22px 24px 22px 58px;
  border: 1px solid rgba(24, 20, 13, 0.17);
  background: rgba(255, 255, 255, 0.28);
}
.callout::before {
  content: "!";
  position: absolute;
  left: 20px; top: 22px;
  display: grid; place-items: center;
  width: 23px; height: 23px;
  border: 1px solid #9b741c;
  border-radius: 50%;
  color: #8a650f;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
}
.callout__label {
  display: block;
  margin-bottom: 5px;
  color: #8a650f;
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.callout p { margin: 0; font-size: 0.94rem; line-height: 1.8; }
.callout--tip { border-color: rgba(80, 110, 75, 0.3); background: rgba(80, 110, 75, 0.07); }
.callout--tip::before { content: "✓"; border-color: #56794d; color: #4f6b45; }
.callout--tip .callout__label { color: #4f6b45; }

.army-panel {
  margin: 28px 0 32px;
  border: 1px solid rgba(24, 20, 13, 0.22);
  background: #181b14;
  color: var(--text);
}
.army-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(242, 193, 78, 0.17);
}
.army-panel__head strong { color: var(--gold); font-family: var(--font-display); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; }
.army-panel__head span { color: #98a092; font-size: 0.65rem; }
.army-panel__body { display: grid; grid-template-columns: repeat(2, 1fr); }
.army-group { padding: 16px 18px; border-left: 1px solid rgba(255, 255, 255, 0.09); }
.army-group:first-child { border-left: 0; }
.army-group h4 { color: #8f9a8b; font-family: var(--font-display); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.army-group ul { margin: 9px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.army-group li {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  color: #d8dfd3;
  font-size: 0.7rem;
}
.army-group li strong { color: var(--gold); margin-right: 4px; font-family: var(--font-display); }
.army-group--wide { grid-column: 1 / -1; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.army-note { padding: 10px 18px; border-top: 1px solid rgba(255, 255, 255, 0.09); color: #8e988a; font-size: 0.65rem; }

.route-list { margin: 28px 0 34px; display: grid; gap: 0; border-left: 1px solid rgba(24, 20, 13, 0.22); }
.route-item { position: relative; padding: 0 0 26px 30px; }
.route-item::before {
  content: "";
  position: absolute;
  left: -5px; top: 5px;
  width: 9px; height: 9px;
  border: 2px solid #b38722;
  border-radius: 50%;
  background: var(--paper);
}
.route-item:last-child { padding-bottom: 0; }
.route-item__phase { color: #967019; font-family: var(--font-display); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.route-item h3 { margin: 4px 0 7px; font-size: 1.18rem; }
.route-item p { margin: 0; color: #4e4635; font-size: 0.92rem; line-height: 1.8; }

.compare-table { width: 100%; margin: 26px 0 30px; border-collapse: collapse; font-size: 0.83rem; }
.compare-table th {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(24, 20, 13, 0.4);
  color: #6f5a2c;
  font-family: var(--font-display);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}
.compare-table td { padding: 11px 12px; border-bottom: 1px solid rgba(24, 20, 13, 0.13); vertical-align: top; line-height: 1.65; }
.compare-table tr:hover td { background: rgba(24, 20, 13, 0.03); }
.compare-table td:first-child { color: #201b11; font-weight: 700; white-space: nowrap; }

.mistake-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 26px 0 32px; }
.mistake {
  padding: 17px 18px;
  border: 1px solid rgba(24, 20, 13, 0.18);
  background: rgba(255, 255, 255, 0.22);
}
.mistake span { color: #9c3e2b; font-family: var(--font-display); font-size: 0.54rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.mistake h4 { margin: 4px 0 5px; font-size: 0.92rem; font-weight: 800; }
.mistake p { margin: 0; color: #5d5340; font-size: 0.79rem; line-height: 1.7; }

.article-sidebar { position: relative; }
.article-sidebar__inner { position: sticky; top: 108px; display: grid; gap: 22px; }
.toc {
  padding: 18px;
  border: 1px solid rgba(24, 20, 13, 0.2);
  background: rgba(255, 255, 255, 0.2);
}
.toc h2 {
  margin-bottom: 13px;
  color: #6f5a2c;
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.toc ol { display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 5px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(24, 20, 13, 0.09);
  color: #6f6755;
  font-size: 0.76rem;
  line-height: 1.45;
  transition: color 0.2s;
}
.toc li:last-child a { border-bottom: 0; }
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: #a3967d;
  font-family: var(--font-display);
  font-size: 0.57rem;
  padding-top: 1px;
}
.toc a:hover, .toc a.is-active { color: #8a650f; font-weight: 700; }
.toc a.is-active::before { color: #9b741c; }
.side-card {
  padding: 20px;
  background: #141b16;
  color: var(--text);
  border: 1px solid rgba(242, 193, 78, 0.22);
}
.side-card__label { color: var(--gold); font-family: var(--font-display); font-size: 0.53rem; letter-spacing: 0.16em; text-transform: uppercase; }
.side-card h3 { margin-top: 7px; font-size: 1rem; line-height: 1.4; }
.side-card__map { margin: 15px -20px; border-block: 1px solid rgba(242, 193, 78, 0.16); background: #0b1510; }
.side-card__map svg { width: 100%; }
.side-card p { color: #a3ada0; font-size: 0.72rem; line-height: 1.65; }
.side-card .btn { margin-top: 14px; min-height: 40px; font-size: 0.75rem; }
.side-note { color: #8a806b; font-size: 0.68rem; line-height: 1.7; padding: 0 4px; }
.side-note strong { color: #5e523a; }

.article-end {
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid rgba(24, 20, 13, 0.24);
}
.article-end__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: #7d725d; font-size: 0.72rem; }
.article-end__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.article-end__tags span {
  padding: 4px 8px;
  border: 1px solid rgba(24, 20, 13, 0.2);
  color: #6f6248;
  font-size: 0.63rem;
}
.next-guide {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  margin-top: 24px;
  padding: 24px 26px;
  background: #171a13;
  color: var(--text);
  transition: background 0.25s;
}
.next-guide:hover { background: #1d2118; }
.next-guide span { color: #9da594; font-family: var(--font-display); font-size: 0.55rem; letter-spacing: 0.16em; text-transform: uppercase; }
.next-guide h3 { margin-top: 5px; font-size: 1.15rem; }
.next-guide > svg { width: 24px; color: var(--gold); }
.article-source {
  margin-top: 24px;
  color: #8a7d67;
  font-size: 0.66rem;
  line-height: 1.7;
}
.article-source a { color: #6f5a2c; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 17. About page ---------- */
.about-manifesto { max-width: 980px; padding: 32px 0 10px; }
.about-manifesto p {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.55;
  letter-spacing: -0.018em;
  color: #dfe4d8;
}
.about-manifesto p em { color: var(--gold); font-style: italic; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.about-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.about-card__no { color: var(--gold); font-family: var(--font-display); font-size: 0.6rem; letter-spacing: 0.16em; }
.about-card h3 { margin-top: 12px; font-size: 1.1rem; font-weight: 800; }
.about-card p { margin-top: 8px; color: var(--muted); font-size: 0.82rem; line-height: 1.75; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.3rem;
  transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body { max-width: 78ch; padding: 0 0 24px; color: var(--muted); font-size: 0.86rem; line-height: 1.8; }
.faq-item__body p + p { margin-top: 10px; }
.source-list { display: grid; gap: 10px; }
.source-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  color: #c5cdc2;
  font-size: 0.8rem;
  transition: border-color 0.2s, background 0.2s;
}
.source-list a:hover { border-color: rgba(242, 193, 78, 0.35); background: rgba(242, 193, 78, 0.04); }
.source-list span { color: var(--muted-2); font-size: 0.68rem; }
.import-guide { display: grid; gap: 12px; }
.import-guide__step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.import-guide__step > span {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(242, 193, 78, 0.3);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.72rem;
}
.import-guide__step h3 { font-size: 0.96rem; }
.import-guide__step p { margin-top: 3px; color: var(--muted); font-size: 0.81rem; line-height: 1.7; }

/* ---------- 18. Toast, reveal, misc ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
  max-width: calc(100vw - 32px);
  padding: 13px 18px;
  border: 1px solid rgba(242, 193, 78, 0.35);
  border-radius: 4px;
  background: #111a14;
  color: var(--text);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  font-size: 0.8rem;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; color: var(--gold); flex: 0 0 auto; }
.toast strong { color: var(--gold); }

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }

.animate-arrows .map-arrow {
  stroke-dasharray: 10 8;
  animation: dashMove 2.8s linear infinite;
}
@keyframes dashMove { to { stroke-dashoffset: -36; } }

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a49a83;
  font-family: var(--font-display);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.back-to-top svg { width: 14px; }

/* ---------- 19. Responsive ---------- */
@media (max-width: 1120px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr); gap: 32px; }
  .float-card--a { left: -3%; }
  .float-card--b { right: -2%; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 42px; }
  .playbook-card { grid-template-columns: 250px 1fr auto; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .container { width: min(var(--container), calc(100% - 36px)); }
  .section { padding: 78px 0; }
  .topline { display: none; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    z-index: 65;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 14px 18px 24px;
    border-bottom: 1px solid var(--line);
    background: #080c09;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.25s, visibility 0.25s;
  }
  body.menu-open::after {
    content: "";
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 64;
    background: rgba(4, 7, 5, 0.74);
    backdrop-filter: blur(2px);
  }
  .menu-open .site-nav { transform: translateY(0); opacity: 1; visibility: visible; }
  .site-nav a { padding: 17px 8px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--gold); }
  .menu-toggle { display: inline-flex; }
  .header-actions .server-chip { display: none; }
  .header-actions .btn { display: none; }
  .hero { padding-top: 62px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; padding-bottom: 70px; }
  .hero__copy { max-width: 760px; }
  .hero h1 { max-width: 14ch; }
  .hero__visual { min-height: 500px; max-width: 500px; width: 100%; margin-inline: auto; }
  .hero__visual::before { font-size: 18rem; top: -40px; }
  .hero__seal { right: 0; top: -2%; }
  .stats-band__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 26px 24px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .base-grid, .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-feature-grid { grid-template-columns: 1fr; }
  .guide-feature-side { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .guide-mini { grid-template-columns: 1fr; }
  .guide-mini__art { min-height: 100px; }
  .update-strip { grid-template-columns: 110px 1fr auto; gap: 24px; padding: 26px; }
  .import-grid { grid-template-columns: 1fr; gap: 45px; }
  .import-copy { max-width: 600px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__aside { display: none; }
  .playbook-hero__grid { grid-template-columns: 1fr; gap: 38px; }
  .playbook-hero__panel { max-width: 520px; }
  .playbook-card { grid-template-columns: 220px 1fr auto; }
  .playbook-card__body { padding: 24px; }
  .article-layout { grid-template-columns: 1fr; gap: 0; padding-top: 42px; }
  .article-body { max-width: 760px; }
  .article-sidebar { display: none; }
  .article-masthead { padding-top: 44px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .topline .container { justify-content: center; }
  .topline__right { display: none; }
  .topline__left { font-size: 0.64rem; letter-spacing: 0.03em; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__cn { font-size: 1rem; }
  .brand__en { font-size: 0.48rem; letter-spacing: 0.24em; }
  .header-inner { gap: 12px; }
  .section { padding: 64px 0; }
  .section-head { display: block; margin-bottom: 30px; }
  .section-head h2 { font-size: clamp(1.9rem, 8vw, 2.7rem); }
  .section-head p { margin-top: 12px; }
  .section-head .link-arrow { margin-top: 18px; }
  .hero { min-height: auto; padding-top: 48px; }
  .hero__grid { padding-bottom: 52px; gap: 38px; }
  .eyebrow { font-size: 0.58rem; letter-spacing: 0.14em; margin-bottom: 18px; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 4.2rem); letter-spacing: -0.05em; }
  .hero__lede { margin-top: 22px; font-size: 0.94rem; line-height: 1.8; }
  .hero__actions { margin-top: 28px; }
  .hero__actions .btn { flex: 1 1 160px; }
  .hero__proof { gap: 16px 22px; margin-top: 30px; padding-top: 20px; }
  .hero__proof-item strong { font-size: 1.2rem; }
  .hero__proof-item span { font-size: 0.68rem; }
  .hero__visual { min-height: 430px; padding: 0 8px; }
  .hero__visual::before { font-size: 13rem; top: -20px; right: -12%; }
  .dossier { width: 100%; max-width: 370px; }
  .dossier__bottom { padding: 15px; }
  .dossier__bottom h2 { font-size: 1.05rem; }
  .float-card { padding: 8px 10px; gap: 7px; font-size: 0.64rem; }
  .float-card strong { font-size: 0.68rem; }
  .float-card__icon { width: 25px; height: 25px; }
  .float-card--a { top: 5%; left: -1%; }
  .float-card--b { bottom: 5%; right: -1%; }
  .hero__seal { width: 74px; height: 74px; font-size: 0.46rem; right: -1%; }
  .hero__seal strong { font-size: 0.88rem; }
  .float-card { display: none; }
  .hero__seal { display: none; }
  .marquee__group { gap: 22px; padding-right: 22px; font-size: 0.58rem; }
  .marquee__group span::before { margin-right: 22px; }
  .stats-band__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 16px; }
  .stat__num { font-size: 2rem; }
  .stat__label { font-size: 0.67rem; }
  .stat:nth-child(odd) { padding-left: 0; }
  .update-strip {
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding: 22px;
    margin-top: 0;
  }
  .update-strip__date { display: none; }
  .update-strip__body h3 { font-size: 1.3rem; }
  .update-strip__body p { font-size: 0.8rem; }
  .update-strip__link { width: 44px; height: 44px; }
  .base-grid, .guide-grid { grid-template-columns: 1fr; }
  .base-card__body { padding: 17px; }
  .guide-feature-side { grid-template-columns: 1fr; }
  .guide-mini { grid-template-columns: 86px 1fr; }
  .guide-mini__art { min-height: 90px; }
  .guide-card--feature { min-height: 0; }
  .guide-card--feature .guide-card__art { min-height: 230px; }
  .guide-card--feature .guide-card__body { margin-top: -90px; padding: 0 20px 22px; }
  .import-step { grid-template-columns: 48px 1fr; gap: 14px; padding: 18px; }
  .import-step__num { width: 42px; height: 42px; font-size: 0.8rem; }
  .import-step__icon { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; padding-bottom: 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 10px; }
  .page-hero { padding: 52px 0 42px; }
  .page-hero h1 { font-size: clamp(2.7rem, 13vw, 4.2rem); }
  .page-hero h1 span { font-size: 0.4em; }
  .page-hero__lede { font-size: 0.92rem; }
  .library-notice { grid-template-columns: 34px 1fr; gap: 12px; margin-top: 22px; padding: 15px; }
  .library-notice__icon { width: 34px; height: 34px; }
  .library-notice a { grid-column: 2; }
  .library-toolbar { top: var(--header-h); margin-bottom: 22px; padding: 12px 0; }
  .library-toolbar__inner { gap: 10px; }
  .filter-divider { display: none; }
  .filter-group { gap: 5px; }
  .filter-label { width: 100%; font-size: 0.5rem; }
  .filter-chip { padding: 6px 10px; font-size: 0.69rem; }
  .search-box { min-width: 100%; margin-left: 0; }
  .library-count { margin-bottom: 14px; }
  .base-dialog { width: calc(100vw - 20px); max-height: 92vh; }
  .dialog-layout { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .dialog-map { min-height: 270px; }
  .dialog-map svg { position: static; }
  .dialog-body { max-height: none; overflow: visible; padding: 24px 20px 22px; }
  .dialog-actions { position: sticky; bottom: 0; padding: 14px 0 0; background: var(--panel); }
  .playbook-hero { padding-top: 56px; }
  .playbook-hero h1 { font-size: clamp(2.8rem, 14vw, 4.6rem); }
  .playbook-hero__lede { font-size: 0.94rem; }
  .playbook-formula { grid-template-columns: 1fr 1fr; }
  .formula-step { border-left: 0; border-top: 1px solid var(--line); }
  .formula-step:nth-child(odd) { border-right: 1px solid var(--line); }
  .formula-step::after { display: none; }
  .playbook-card { grid-template-columns: 1fr; }
  .playbook-card__art { min-height: 190px; }
  .playbook-card__go { display: none; }
  .playbook-card__body { padding: 20px; }
  .article-masthead { padding: 36px 0 28px; }
  .article-masthead::after { font-size: 7rem; }
  .article-masthead h1 { font-size: clamp(2.1rem, 10vw, 3.25rem); }
  .article-masthead__lede { font-size: 0.96rem; }
  .article-meta { gap: 8px 14px; }
  .article-meta__share { margin-left: 0; }
  .article-hero-art__caption { font-size: 0.45rem; }
  .article-hero-art__caption span:last-child { display: none; }
  .article-layout { padding-top: 34px; padding-bottom: 56px; }
  .article-body { font-size: 0.98rem; line-height: 1.86; }
  .article-body > p:first-child::first-letter { font-size: 3.5rem; }
  .article-body h2 { margin-top: 42px; }
  .army-panel__body { grid-template-columns: 1fr; }
  .army-group { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.09); }
  .army-group:first-child { border-top: 0; }
  .mistake-grid { grid-template-columns: 1fr; }
  .compare-table { display: block; overflow-x: auto; white-space: nowrap; }
  .article-end__meta { display: block; }
  .article-end__tags { margin-top: 12px; }
  .next-guide { padding: 20px; }
  .toast { bottom: 16px; }
  .closing__actions .btn { width: 100%; }
}

@media (max-width: 420px) {
  .hero__proof { gap: 12px 16px; }
  .hero__proof-item { display: grid; gap: 2px; }
  .hero__proof-item strong { font-size: 1.1rem; }
  .hero__visual { min-height: 390px; }
  .float-card--a { top: 1%; }
  .float-card--b { bottom: 1%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .filter-chip { padding: 5px 8px; font-size: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
